Theoremprincipal_unique
Statement
theorem principal_unique {C : Ctx} {a a' : AExp} (h : IsPrincipal C a) (h' : IsPrincipal C a')
(he : a.erase = a'.erase) : InstanceOf C a a' ∧ InstanceOf C a' aProof
⟨h'.2 a h.1 he, h.2 a' h'.1 he.symm⟩Proved by a term, which Lean's kernel checks directly.
In StandardElmMech/Stat/Principal.lean: Instances of derivations, principal derivations of phrases and modules, InferPrincipalFor (D11: what the inference returns is principal).
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.