TheoremcheckAtPatList_sound
Statement
theorem checkAtPatList_sound (C : Ctx) : (as : List AAtPat) → checkAtPatList C as = true →
ElAtPatList C (AAtPat.eraseList as) (AAtPat.veList as) (AAtPat.tyList as)
| [], _ => by simp only [AAtPat.eraseList, AAtPat.veList, AAtPat.tyList]; exact .seq_nil
| a :: as, h => by
simp only [checkAtPatList, Bool.and_eq_true] at h
simp only [AAtPat.eraseList, AAtPat.veList, AAtPat.tyList]
exact .seq_cons (checkAtPat_sound C a h.1) (checkAtPatList_sound C as h.2)Proof
Proved by a term, which Lean's kernel checks directly.
Used by
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.