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

Sn abs app multi App

Cslib.LambdaCalculus.LocallyNameless.Untyped.Term.sn_abs_app_multiApp

Plain-language statement

A term of the form λ M N P_1 … P_n is strongly normalizing if 1. N is strongly normalizing, 1. M ^ N P₁ … Pₙ is strongly normalizing, 1. N is locally closed, 1. M ^ N P₁ … Pₙ is locally closed

Exact Lean statement

lemma sn_abs_app_multiApp [DecidableEq Var] [HasFresh Var] {Ps} {M N : Term Var}
    (sn_N : SN FullBeta N) (sn_MNPs : SN FullBeta (multiApp (M ^ N) Ps))
    (lc_N : LC N) (lc_MNPs : LC (multiApp (M ^ N) Ps)) :
    SN FullBeta (multiApp (M.abs.app N) Ps)

Formal artifact

Lean source

Canonical source
Full Lean sourceLean 4
lemma sn_abs_app_multiApp [DecidableEq Var] [HasFresh Var] {Ps} {M N : Term Var}    (sn_N : SN FullBeta N) (sn_MNPs : SN FullBeta (multiApp (M ^ N) Ps))    (lc_N : LC N) (lc_MNPs : LC (multiApp (M ^ N) Ps)) :    SN FullBeta (multiApp (M.abs.app N) Ps) := by  induction Ps using List.reverseRecOn with  | nil =>    apply sn_app    · grind [sn_abs]    · exact sn_N    · grind [ steps_open_cong_abs, open_abs_lc, sn_steps]  | append_singleton Ps P ih =>    rw [multiApp_tail]    apply sn_app    · grind [cases LC, multiApp_tail, sn_app_left]    · grind [multiApp_tail, sn_app_right]    · intro Q' P' hstep1 hstep2      have M', N', Ps', h_M_red, h_N_red, h_Ps_red, h_cases := invert_abs_multiApp_mst hstep1      rcases h_cases with h_P | h_st1, h_st2      · induction Ps' using List.reverseRecOn with grind [multiApp_tail]      · have innerSteps : (M ^ N).multiApp Ps ↠βᶠ (M' ^ N').multiApp Ps' := by          trans          · exact steps_multiApp_r h_Ps_red (by grind)          · apply steps_multiApp_l            · apply steps_open_cong_abs M M' N N' <;> grind [open_abs_lc]            · grind [multiApp_steps_lc]        refine sn_steps ?_ sn_MNPs        rw [multiApp_tail]        · calc ((M ^ N).multiApp Ps).app P            _ ↠βᶠ ((M ^ N).multiApp Ps).app P' := by grind            _ ↠βᶠ Q'.abs.app P' := redex_app_l_cong (.trans innerSteps h_st2) (by grind)            _ ↠βᶠ Q' ^ P' := by              rw [Relation.reflTransGen_iff_eq_or_transGen] at  innerSteps h_st2              right              refine Relation.TransGen.single (Xi.base (Beta.beta ?_ ?_))              all_goals grind
Project
Lean Computer Science Library
License
Apache-2.0
Commit
f36649cff2c9
Source
Cslib/Languages/LambdaCalculus/LocallyNameless/Untyped/StrongNorm.lean:123-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