TheoremceSwap_cls
Statement
theorem ceSwap_cls : ∀ a, (ceSwap.tvApply a).cls = a.clsProof
by
intro a
rw [ceSwap_apply]
by_cases ha1 : a = .fresh 5 .num
· subst ha1; decide
· by_cases ha2 : a = .named "number"
· subst ha2; decide
· simp only [ha1, ha2, ↓reduceIte]Proved with tactics, which Lean expands into a proof term that its kernel checks.
Theorems it uses
In StandardElmMech/Stat/RenameCounterexample.lean: Two principal derivations of one program that specialisation once told apart (finding of 2026-11-12), kept as a regression theorem (ce_equal).
A Standard Definition of Elm? (Draft version 0.4) © Rupert Smith. The text is licensed under CC BY 4.0: share and adapt it freely, with credit and a link to the licence.