Short witnesses to nonzero observations in linear control graphs
ProvedLinearControlGraph.bad_path_within_remaining_rankautomata-theoryformal-verificationlinear-algebra
Let a finite directed control graph have locations. A state stores a vector in a common -dimensional vector space over a field, and each edge offers one or more linear updates available on all states at its source. Each location has an arbitrary set of starting vectors and a linear observation. Let be the sum, over locations, of the dimensions of the spans of the starting sets. If any finite path attains a nonzero observation, some path of length at most does. Subtraction is truncated at zero. The formal statement accumulates all states reachable within each step bound.
Preamble
import Mathlib
Formal statement
theorem LinearControlGraph.bad_path_within_remaining_rank {K V W ι : Type*} [Field K]
[AddCommGroup V] [Module K V] [FiniteDimensional K V]
[AddCommGroup W] [Module K W] [Fintype ι]
(edge : ι → ι → Set (Module.End K V)) (seed : ι → Set V)
(probe : ι → V →ₗ[K] W) :
let reachable : ℕ → ι → Set V :=
Nat.rec seed (fun _ previous j =>
previous j ∪ ⋃ i, ⋃ f : edge i j, f.val '' previous i)
let initialRank := ∑ i, Module.finrank K (Submodule.span K (seed i))
(∃ n i x, x ∈ reachable n i ∧ probe i x ≠ 0) ↔
∃ i x, x ∈ reachable (Fintype.card ι * Module.finrank K V - max 1 initialRank) i ∧
probe i x ≠ 0 := by sorrySource
The proof uses the reachable-span method for weighted automata. See Tzeng, A Polynomial-Time Algorithm for the Equivalence of Probabilistic Automata, SIAM Journal on Computing 21(2), 1992, https://doi.org/10.1137/0221017. Here the proof uses a separate subspace at each control location and keeps track of the initial total rank.