Progress
Cslib.LambdaCalculus.LocallyNameless.Stlc.FullBeta.progress
Plain-language statement
A typed term either full beta reduces or is a value.
Exact Lean statement
theorem progress {t : Term Var} {τ : Ty Base} (ht : [] ⊢ t ∶ τ) : t.Value ∨ ∃ t', t ⭢βᶠ t'Formal artifact
Lean source
theorem progress {t : Term Var} {τ : Ty Base} (ht : [] ⊢ t ∶ τ) : t.Value ∨ ∃ t', t ⭢βᶠ t' := by generalize eq : [] = Γ at ht induction ht case var => simp_all case abs xs mem ih => left constructor apply Term.LC.abs xs intros _ mem' exact (mem _ mem').lc case app Γ M σ τ N der_l der_r ih_l ih_r => simp only [eq, forall_const] at * right cases ih_l with -- if the lhs is a value, beta reduce the application | inl val => cases val with | abs M _ => use M ^ N, by grind -- otherwise, propagate the step to the lhs of the application | inr step => obtain ⟨M', _⟩ := step use M'.app N grind- Project
- Lean Computer Science Library
- License
- Apache-2.0
- Commit
- f36649cff2c9
- Source
- Cslib/Languages/LambdaCalculus/LocallyNameless/Stlc/Safety.lean:79-99
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.