Lemma 5, p. 4 — |δ(τ, X)| = 1 iff some interval representation I of δ⁻¹(τ, δ(τ, X)) has δ′(τ, I) ≠ ∞ and |δ′(τ, I)| = 1
ProvedMonoReset.IntervalBFS.lemma_5automatamonotonic-automatonp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1reset-sequencesynchronizing-word
Let be monotonic, a word and any set of states (possibly empty). Then
Here , and means that the interval has exactly one state.
This is the paper's main lemma: reset sequences of in the original automaton are exactly the words that drive a suitable interval containing to a singleton interval in the interval automaton.
Formalization Note States are Fin n, with the element and the cyclic order ; letters are Fin k; a word is a list read left to right. An interval is its pair of endpoints, and ∞ is none. Monotonicity is read cyclically (see the definition item).
Differences from the source:
- reading: δ monotonic: δ(σ, s1), …, δ(σ, sn), after removal of adjacent duplicate states, is a subsequence of a cyclic permutation of s1, …, sn → IsMonotonic (δ a) for every letter a: n = 0, or for some start m the cyclic offsets (δ a (m + i) − δ a m) mod n are nondecreasing in i; reason: 'adjacent' is read cyclically, as 'preserves the cyclic order' requires; this reading admits more automata than the linear one (s1→s1, s2→s2, s3→s1), so the statement is the stronger one; checked equal to the cyclic de-duplication reading for every map with n ≤ 6
- encoding: states s1, …, sn in cyclic order, letters σ1, …, σk, words in Σ∗ with δ(τ1τ2, s) = δ(τ2, δ(τ1, s)) → states Fin n with s_i = i − 1 and the cyclic order of Fin n, letters Fin k, words List (Fin k) read left to right (run = left fold); reason: relabelling; same instances
- encoding: interval [s_i, s_j] and the symbol ∞ → endpoint pair (i, j) : Fin n × Fin n with state set ivSet (i, j); ∞ is none in Option (Fin n × Fin n); reason: same objects; the n representations of S stay distinct pairs, as in the source
Preamble
import Mathlib import Definitions.Def_MonoReset_IntervalBFS_Model
Formal statement
namespace MonoReset.IntervalBFS
theorem lemma_5 {n k : ℕ} (δ : Fin k → Fin n → Fin n) (hδ : ∀ a, IsMonotonic (δ a))
(τ : List (Fin k)) (X : Finset (Fin n)) :
IsResetSeq δ X τ ↔
∃ I : Fin n × Fin n,
ivSet I = Finset.univ.filter (fun s => run δ τ s ∈ X.image (run δ τ)) ∧
∃ J : Fin n × Fin n, dPrime δ τ (some I) = some J ∧ (ivSet J).card = 1 := by sorry
end MonoReset.IntervalBFS
Source
Eppstein, Reset Sequences for Monotonic Automata, author manuscript of 7 Feb 1990 (SIAM J. Comput. 19, doi:10.1137/0219033; PDF sha256 6d8caa76…), p. 4 (PDF 5), Lemma 5
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.