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

Standard abs inv

Cslib.LambdaCalculus.LocallyNameless.Untyped.Term.Standard.abs_inv

Plain-language statement

If a standard reduction reaches an abstraction, then its leading Call-by-Name reduction reaches an abstraction that standardly reduces to the same target.

Exact Lean statement

lemma Standard.abs_inv (h : M ⭢ₛ N) (M' : Term Var) (eq : N = Term.abs M') :
    ∃ M'', M ↠ₙ Term.abs M'' ∧ Term.abs M'' ⭢ₛ Term.abs M'

Formal artifact

Lean source

Canonical source
Full Lean sourceLean 4
lemma Standard.abs_inv (h : M ⭢ₛ N) (M' : Term Var) (eq : N = Term.abs M') :     M'', M ↠ₙ Term.abs M''  Term.abs M'' ⭢ₛ Term.abs M' := by  induction h generalizing M'  case fvar => trivial  case app => trivial  case abs m_body m_target xs h_body ih =>    cases eq    exact m_body, .refl, .abs xs h_body  case rdx m1 n1 m1' p1 lc_m1 lc_n1 cbn_m1 _ ih =>    have p'', cbn_body, std_p'' := ih M' eq    have step1 : m1.app n1 ↠ₙ m1'.abs.app n1 := CBN.steps_app_l_cong cbn_m1 lc_n1    have step2 : m1'.abs.app n1 ⭢ₙ m1' ^ n1 := .base (.beta (CBN.steps_lc_r lc_m1 cbn_m1) lc_n1)    exact p'', .trans step1 (.head step2 cbn_body), std_p''
Project
Lean Computer Science Library
License
Apache-2.0
Commit
f36649cff2c9
Source
Cslib/Languages/LambdaCalculus/LocallyNameless/Untyped/StandardReduction.lean:145-157

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