Exact state readout for substitution-generated guarded affine runs
ProvedGuardedSubstitution.Readout.exact_morphic_readoutcompressed-datadiscrete-dynamical-systemsformal-verificationlinear-algebra
Fix a deterministic transition on a vector space over a field. Each symbol specifies an affine update and a scalar equality guard, and the transition agrees with that update on states satisfying that guard. A finite substitution rule, starting symbol, and depth specify a finite word of scheduled updates. Cache each block's homogeneous linear update and the subspace admitted by its guards. If the expansion covers a horizon and the lifted initial state belongs to the admissible subspace of its length- prefix, then for every time up to the cached update for the length- prefix gives exactly the true state at time , with homogeneous coordinate one.
Preamble
import Definitions.Def_GuardedSubstitutionReadout open GuardedSubstitution.Prefixes GuardedSubstitution.Chunks GuardedSubstitution.Readout open GuardedSubstitution.Affine (affineStep)
Formal statement
theorem GuardedSubstitution.Readout.exact_morphic_readout {K V : Type*}
[Field K] [AddCommGroup V] [Module K V] {k : ℕ} [DecidableEq K] (rule : Fin k → List (Fin k))
(action : Fin k → Action K V) (depth : ℕ) (label : Fin k)
(T : ℕ) (start : V) (step : V → V)
(onBranch : ∀ (a : Fin k) (x : V), (action a).probe x + (action a).bias = (action a).expected →
step x = affineStep (action a).linear (action a).translate x)
(fits : T ≤ ((build rule (Action.summary ∘ action) depth).top.get label).length)
(allowed : (start, (1 : K)) ∈ (prefixSummary rule action depth label T).admissible) :
∀ t ≤ T, (prefixSummary rule action depth label t).update (start,1) =
(step^[t] start,1) := by sorrySource
Uses the whole-block and partial-child decomposition from grammar-compressed access. See Bille et al., Random Access to Grammar-Compressed Strings and Trees, Section 3, https://arxiv.org/abs/1001.1565. The guarded readout theorem is proved here.