All proofs
Project-declaredLean 4.33.0-rc1 · mathlib@169c26b52a38

Loop run one iter

Cslib.Automata.NA.loop_run_one_iter

Plain-language statement

A run of na.loop containing at least one non-initial () state is the concatenation of a nonempty finite run of na followed by a run of na.loop.

Exact Lean statement

theorem loop_run_one_iter {xs : ωSequence Symbol} {ss : ωSequence (Unit ⊕ State)} {k : ℕ}
    (h : na.loop.Run xs ss) (h1 : 0 < k) (h2 : (ss k).isLeft) :
    ∃ n, n ≤ k ∧ xs.take n ∈ language na - 1 ∧ na.loop.Run (xs.drop n) (ss.drop n)

Formal artifact

Lean source

Canonical source
Full Lean sourceLean 4
theorem loop_run_one_iter {xs : ωSequence Symbol} {ss : ωSequence (UnitState)} {k : }    (h : na.loop.Run xs ss) (h1 : 0 < k) (h2 : (ss k).isLeft) :     n, n  k  xs.take n  language na - 1  na.loop.Run (xs.drop n) (ss.drop n) := by  have h1' :  k, 0 < k  (ss k).isLeft := by grind  let n := Nat.find h1'  have : 0 < n  (ss n).isLeft := Nat.find_spec h1'  have :  k, 0 < k  k < n  (ss k).isRight := by grind [Nat.find_min h1']  refine n, by grind, ?_, ?_, ?_  · grind [loop_run_left_right_left]  · have neq : (ωSequence.take n xs).length  0 := by grind    exact neq.imp (congrArg List.length)  · grind [loop_run_from_left]
Project
Lean Computer Science Library
License
Apache-2.0
Commit
f36649cff2c9
Source
Cslib/Computability/Automata/NA/Loop.lean:82-93

Reuse this declaration

Bring the exact result into your workflow

The import identifies the source module. Your project still needs the pinned package dependency shown on this page.

What this badge means

This completion status comes from the project or community source. It has not yet been represented here as an independent rebuild and axiom audit.

Continue in this project

Related declarations

Project-declaredLean 4.33.0-rc1

Unique minimal

Cslib.Automata.DA.FinAcc.unique_minimal

Plain-language statement

The minimal DFA M accepting the language l is unique up to unique isomorphism.

computer sciencecomputabilityprogram semantics

Source project: Lean Computer Science Library

Person-level attribution pending.

View proof record
Project-declaredLean 4.33.0-rc1

Buchi Family cover

Cslib.Automata.NA.Buchi.buchiFamily_cover

Project documentation

na.buchiFamily is a cover if na has only finitely many states. This theorem uses the Ramsey theorem for infinite graphs and does not depend on any details of na.BuchiCongruence other than that it is of finite index.

computer sciencecomputabilityprogram semantics

Source project: Lean Computer Science Library

Person-level attribution pending.

View proof record