Is Church injective
Cslib.SKI.isChurch_injective
Plain-language statement
Injectivity for Church numerals
Exact Lean statement
theorem isChurch_injective (x y : SKI) (n m : Nat) (hx : IsChurch n x) (hy : IsChurch m y)
(hxy : MJoin Red x y) : n = mFormal artifact
Lean source
theorem isChurch_injective (x y : SKI) (n m : Nat) (hx : IsChurch n x) (hy : IsChurch m y) (hxy : MJoin Red x y) : n = m := by suffices MJoin Red (churchK n) (churchK m) by apply churchK_injective exact eq_of_mJoin_red_redexFree this (churchK_redexFree n) (churchK_redexFree m) apply mJoin_red_equivalence.trans (y := x ⬝ K ⬝ K) · simp_rw [churchK_church] exact mJoin_red_equivalence.symm <| Relation.MJoin.single (hx K K) · apply mJoin_red_equivalence.trans (y := y ⬝ K ⬝ K) · apply mJoin_red_head; apply mJoin_red_head; assumption · simp_rw [churchK_church] exact Relation.MJoin.single (hy K K)- Project
- Lean Computer Science Library
- License
- Apache-2.0
- Commit
- f36649cff2c9
- Source
- Cslib/Languages/CombinatoryLogic/Evaluation.lean:250-261
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.