Random access to a periodically guarded linear run
ProvedLinearDynamics.guarded_periodic_linear_readoutdiscrete-dynamical-systemsformal-verificationlinear-algebra
Let the state space have finite dimension over a field. A proposed period has length . At phase it prescribes a linear update and a linear observation . The actual transition agrees with whenever is zero on the current state. Define the candidate state at time by applying the full-period product times to the initial state and then applying the first updates. If the candidate observations are zero at the first times, then the candidate state equals the actual state at every time at most .
Preamble
import Mathlib.LinearAlgebra.Charpoly.Basic import Mathlib.LinearAlgebra.Dimension.Constructions import Mathlib.Logic.Function.Iterate
Formal statement
theorem LinearDynamics.guarded_periodic_linear_readout {K V : Type*}
[Field K] [AddCommGroup V] [Module K V] [FiniteDimensional K V]
(phase : ℕ → Module.End K V) (probe : ℕ → V →ₗ[K] K)
(p : ℕ) (positive : 0 < p) (step : V → V) (start : V) (T : ℕ)
(onBranch : ∀ r < p, ∀ x : V, probe r x = 0 → step x = phase r x) :
let product : ℕ → Module.End K V :=
Nat.rec 1 (fun r acc => phase r * acc)
let readout := fun t : ℕ => (product (t % p) * (product p) ^ (t / p)) start
(∀ t < min T (p * Module.finrank K V), probe (t % p) (readout t) = 0) →
∀ t ≤ T, readout t = step^[t] start := by sorrySource
Combination of the period-product construction and the Cayley–Hamilton observability argument. See Bittanti, Colaneri, and Guardabassi, H-Controllability and Observability of Linear Periodic Systems, https://doi.org/10.1137/0322056, and Kalman, Mathematical Description of Linear Dynamical Systems, https://doi.org/10.1137/0301010.