Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

δ′ on words, p. 3 — cases (1)–(3) of the interval transition hold for every input sequence τ, with ∞ possible in case (2)

Proved
MonoReset.IntervalBFS.dPrime_characterization

by mikedeng1 · Oct 24, 2026 · Mathlib 0df444a (Lean v4.33.1)

automatamonotonic-automatonp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1reset-sequencesynchronizing-word

Let (S,Σ,δ)(S, \Sigma, \delta)(S,Σ,δ) be monotonic, let τ∈Σ∗\tau \in \Sigma^*τ∈Σ∗ be a word, let I=[si,sj]I = [s_i, s_j]I=[si​,sj​] be an interval, and write dx=δ(τ,sx)d_x = \delta(\tau, s_x)dx​=δ(τ,sx​). Then:

  1. if di≠djd_i \ne d_jdi​=dj​, then δ′(τ,I)=[di,dj]\delta'(\tau, I) = [d_i, d_j]δ′(τ,I)=[di​,dj​];
  2. if di=di+1=⋯=djd_i = d_{i+1} = \cdots = d_jdi​=di+1​=⋯=dj​ (that is, δ(τ,⋅)\delta(\tau, \cdot)δ(τ,⋅) is constant on [si,sj][s_i, s_j][si​,sj​]), then δ′(τ,I)=[di,di]\delta'(\tau, I) = [d_i, d_i]δ′(τ,I)=[di​,di​] or δ′(τ,I)=∞\delta'(\tau, I) = \inftyδ′(τ,I)=∞;
  3. otherwise (di=djd_i = d_jdi​=dj​ but δ(τ,⋅)\delta(\tau, \cdot)δ(τ,⋅) is not constant on [si,sj][s_i, s_j][si​,sj​]), δ′(τ,I)=∞\delta'(\tau, I) = \inftyδ′(τ,I)=∞;

and δ′(τ,∞)=∞\delta'(\tau, \infty) = \inftyδ′(τ,∞)=∞. In other words,

δ′(τ,[si,sj])∈{[δ(τ,si),δ(τ,sj)], ∞},\delta'(\tau, [s_i, s_j]) \in \bigl\{[\delta(\tau, s_i), \delta(\tau, s_j)],\ \infty\bigr\},δ′(τ,[si​,sj​])∈{[δ(τ,si​),δ(τ,sj​)], ∞},

with the first value forced when the endpoint images differ and the second forced when they coincide on a non-constant interval.

The defining rules of δ′\delta'δ′ for single letters thus persist along words, except that case (2) may now give ∞\infty∞; Lemmas 2 and 3 are read off this characterization.

Formalization Note States are Fin n, with sis_isi​ the element i−1i-1i−1 and the cyclic order 0→1→⋯→n−1→00 \to 1 \to \cdots \to n-1 \to 00→1→⋯→n−1→0; letters are Fin k; a word is a list read left to right. An interval [si,sj][s_i, s_j][si​,sj​] 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 dPrime_characterization {n k : ℕ} (δ : Fin k → Fin n → Fin n)
    (hδ : ∀ a, IsMonotonic (δ a)) (τ : List (Fin k)) (I : Fin n × Fin n) :
    (run δ τ I.1 ≠ run δ τ I.2 →
        dPrime δ τ (some I) = some (run δ τ I.1, run δ τ I.2)) ∧
    ((∀ s ∈ ivSet I, run δ τ s = run δ τ I.1) →
        dPrime δ τ (some I) = some (run δ τ I.1, run δ τ I.1) ∨ dPrime δ τ (some I) = none) ∧
    (run δ τ I.1 = run δ τ I.2 → ¬ (∀ s ∈ ivSet I, run δ τ s = run δ τ I.1) →
        dPrime δ τ (some I) = none) ∧
    dPrime δ τ none = none := 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. 3 (PDF 4), unnumbered characterization of δ′(τ, I) ("the following facts follow by an easy induction")
Human review
  • Endorsed by Shuze Chen · Oct 24, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 24, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me