M Yields m Tr
Cslib.Computability.Turing.SingleTape.SingleTapeNTM.mYields_mTr
Plain-language statement
Characterisation of executions in terms of multistep transitions.
Exact Lean statement
@[scoped grind =]
theorem mYields_mTr {m : SingleTapeNTM State Symbol} :
m.MYields c c' ↔ ∃ μs, m.MTr c.state μs c'.state ∧
μs.foldl TrLabel.applyToTape (some c.tape) = c'.tapeFormal artifact
Lean source
@[scoped grind =]theorem mYields_mTr {m : SingleTapeNTM State Symbol} : m.MYields c c' ↔ ∃ μs, m.MTr c.state μs c'.state ∧ μs.foldl TrLabel.applyToTape (some c.tape) = c'.tape := by apply Iff.intro <;> intro h case mp => induction h using Relation.ReflTransGen.head_induction_on case refl => exists [] grind case head _ c cb hred hmred ih => rcases ih with ⟨μs, hmtr, ih⟩ have ⟨μ, _⟩ := yields_tr.mp hred exists μ :: μs grind case mpr => rcases h with ⟨μs, hmtr, h⟩ induction μs generalizing c case nil => rw [show c = c' by grind [Cfg.ext]] apply Relation.ReflTransGen.refl case cons μ μs ih => cases hmtr case stepL sb htr hmtr => have hat : ∀ (μ : TrLabel Symbol) t, (μ.applyToTape t).isSome → t.isSome := by grind have ⟨tb, htb⟩ : ∃ tb, μ.applyToTape c.tape = some tb := by grind [Option.isSome_iff_exists] let cb := {state := sb, tape := tb : Cfg State Symbol} have hmyields : m.MYields cb c' := by grind apply Relation.ReflTransGen.head (b := cb) (by grind) simp only [MYields] at hmyields grind- Project
- Lean Computer Science Library
- License
- Apache-2.0
- Commit
- f36649cff2c9
- Source
- Cslib/Computability/Machines/Turing/SingleTape/NonDeterministic.lean:65-95
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
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.
Source project: Lean Computer Science Library
Person-level attribution pending.
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.
Source project: Lean Computer Science Library
Person-level attribution pending.
Buchi Family saturation
Cslib.Automata.NA.Buchi.buchiFamily_saturation
Plain-language statement
na.buchiFamily saturates the ω-language accepted by na.
Source project: Lean Computer Science Library
Person-level attribution pending.