Finite input horizon for separating two emulation states
ProvedEmulationFiniteTests.bounded_distinguishing_wordautomataobservabilitywhole-brain-emulation
A deterministic state machine has states, an arbitrary input alphabet, and an output determined by the current state. Two start states can be separated by the final output of a finite input word if and only if some word with at most transitions separates them. The empty word observes the initial output. The bound uses truncated natural subtraction. This asks for a witness for each distinguishable pair.
Preamble
import Mathlib.Data.Fin.Basic
Formal statement
namespace EmulationFiniteTests
theorem bounded_distinguishing_word {I O : Type*} (n : Nat)
(step : Fin n → I → Fin n) (out : Fin n → O) (p q : Fin n) :
(∃ w : List I, out (w.foldl step p) ≠ out (w.foldl step q)) ↔
(∃ w : List I, w.length ≤ n - 2 ∧
out (w.foldl step p) ≠ out (w.foldl step q)) := by sorry
end EmulationFiniteTestsSource
Exercise inspired by E. F. Moore, Gedanken-Experiments on Sequential Machines (1956), Theorem 6, pp. 145–146, https://doi.org/10.1515/9781400882618-006 . Pairwise variant with input transitions counted after the initial observation.