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

Eq of halts

Cslib.URM.Steps.eq_of_halts

Plain-language statement

If two halted states are reachable from the same start, they are equal. This follows from confluence: since Step p is confluent and both s₁ and s₂ are normal forms reachable from init, they must be equal.

Exact Lean statement

theorem eq_of_halts {init s₁ s₂ : State}
    (h1 : Steps p init s₁) (hh1 : s₁.isHalted p)
    (h2 : Steps p init s₂) (hh2 : s₂.isHalted p) : s₁ = s₂

Formal artifact

Lean source

Canonical source
Full Lean sourceLean 4
theorem eq_of_halts {init s₁ s₂ : State}    (h1 : Steps p init s₁) (hh1 : s₁.isHalted p)    (h2 : Steps p init s₂) (hh2 : s₂.isHalted p) : s₁ = s₂ := by  -- Use confluence: both s₁ and s₂ are reachable from init, so they're joinable  have w, hw1, hw2 := step_confluent p h1 h2  -- But s₁ and s₂ are normal forms, so w must equal both  have hn1 := isHalted_iff_normal.mp hh1  have hn2 := isHalted_iff_normal.mp hh2  obtain pc₁, regs₁ := s₁  obtain pc₂, regs₂ := s₂  grind
Project
Lean Computer Science Library
License
Apache-2.0
Commit
f36649cff2c9
Source
Cslib/Computability/URM/Execution.lean:156-166

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