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

Concat run proj

Cslib.Automata.NA.concat_run_proj

Plain-language statement

A run of concat na1 na2 containing at least one na2 state is the concatenation of an accepting finite run of na1 followed by a run of na2.

Exact Lean statement

theorem concat_run_proj {xs : ωSequence Symbol} {ss : ωSequence (State1 ⊕ State2)} {k : ℕ}
    (hc : (concat na1 na2).Run xs ss) (hr : (ss k).isRight) :
    ∃ n, n ≤ k ∧ xs.take n ∈ language na1 ∧
    ∃ ss2, na2.Run (xs.drop n) ss2 ∧ ss.drop n = ss2.map inr

Formal artifact

Lean source

Canonical source
Full Lean sourceLean 4
theorem concat_run_proj {xs : ωSequence Symbol} {ss : ωSequence (State1State2)} {k : }    (hc : (concat na1 na2).Run xs ss) (hr : (ss k).isRight) :     n, n  k  xs.take n  language na1      ss2, na2.Run (xs.drop n) ss2  ss.drop n = ss2.map inr := by  have hr' :  k, (ss k).isRight := by grind  let n := Nat.find hr'  have hl (k) (h_k : k < n) := not_isRight.mp <| Nat.find_min hr' h_k  refine n, by grind, ?_, ?_  · by_cases h_n : n = 0    · grind [concat_start_right]    · grind [concat_run_left_right]  · exact concat_run_right hc n hl (Nat.find_spec hr')
Project
Lean Computer Science Library
License
Apache-2.0
Commit
f36649cff2c9
Source
Cslib/Computability/Automata/NA/Concat.lean:80-91

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