System #
Spec-level dynamical systems.
Global dynamics are properties of the spec transition function, independent of runtime encodings or execution order.
Why this layer exists (global dynamics context) #
The paper "Formalized Hopfield Networks and Boltzmann Machines" (Cipollina--Karatarakis--Wiedijk, 2025, arXiv:2512.07766) is a useful reference point for the kind of global dynamical claims this layer is meant to support. That paper includes deterministic Hopfield convergence, Hebbian-learning, and stochastic Boltzmann/Perron--Frobenius developments.
This repository uses the layer for checked Hopfield trajectory facts and reusable
transition-system interfaces. The checked results cover
the deterministic asynchronous Hopfield trajectory facts under
NN.MLTheory.Proofs.Hopfield, while this file provides reusable transition-system interfaces and
trajectory lemmas for other models. We do not claim the Boltzmann, Hebbian, ergodicity, or
Perron--Frobenius parts are implemented here.
All of these topics share the same shape: they are statements about trajectories generated by
repeatedly applying an update rule, not about a specific runtime implementation. That is why this
file abstracts the core notion down to step : SpecTensor s → SpecTensor s.
This file deliberately contains two kinds of objects:
- executable semantics (
iterate,trajectory,iterateWithInput, and adapters such asDrivenSystem.freeze), and - proof interfaces (
IsFixedPoint, contraction, Lyapunov stability).
The predicates remain propositions because stability is a mathematical claim, but the file should not stop at predicates. It also proves the algebra of discrete trajectories, so SSMs, diffusion samplers, Hopfield systems, and ODE discretizations can reuse the same recurrence lemmas instead of re-proving bookkeeping facts locally.
Discrete-time dynamical system on spec tensors.
- step : Spec.SpecTensor s → Spec.SpecTensor s
One autonomous transition of the system state.
Instances For
Driven system with exogenous input.
- step : Spec.SpecTensor s → Spec.SpecTensor u → Spec.SpecTensor s
One transition of the system state, parameterized by the current external input.
Instances For
Iteration semantics for a discrete-time system.
Instances For
Zero iterations leave the initial state unchanged.
One more iteration applies one system step after the previous trajectory state.
Running m+n steps is the same as running n steps and then m more.
The trajectory (orbit) of an initial condition under sys.
Instances For
The first point of a trajectory is its initial condition.
Successive trajectory points are related by the system transition.
Iteration semantics for a driven system with an input stream.
Instances For
The trajectory (orbit) of a driven system under a fixed input stream.
Instances For
Zero driven steps leave the initial state unchanged.
The first point of a driven trajectory is its initial condition.
A driven trajectory advances by applying the next input to the previous driven state.
Successive driven trajectory points follow the driven transition and input stream.
Freeze a driven system at a fixed input, turning it into an autonomous system.
Instances For
A frozen driven system takes the same step as the original system at the frozen input.
Constant-input driven iteration agrees with iteration of the frozen autonomous system.
Constant-input driven trajectories agree with trajectories of the frozen autonomous system.
x is a fixed point (equilibrium) of sys if step x = x.
Instances For
A proof-carrying fixed-point witness.
- point : Spec.SpecTensor s
Candidate equilibrium.
- isFixed : IsFixedPoint sys self.point
Machine-checked proof that the candidate is a fixed point.
Instances For
Fixed points remain fixed under any number of iterations.
A trajectory initialized at a fixed point is constant.
Contraction property for spec dynamics.
Instances For
Lyapunov stability for spec dynamics.
Instances For
Asymptotic stability for spec dynamics.
Instances For
Global stability for spec dynamics.