TheoremcheckExp_sound
Statement
theorem checkExp_sound (C : Ctx) (a : AExp) (h : checkExp C a = true) : ElExp C a.erase a.tyProof
checkExpS_sound C a (checkExpS_of_checkExp h)Proved by a term, which Lean's kernel checks directly.
Theorems it uses
In StandardElmMech/Stat/CheckSound.lean: The checker is sound: a phrase that checks has a derivation by the rules of Chapters 4 and 5 (checkExp_sound, checkModule_sound).
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.