Elm Exactly

TheoremcheckExpRowOpt_sound

StandardElmMech/Stat/CheckSound.lean:203, Expressions · term proof

Statement

theorem checkExpRowOpt_sound (C : Ctx) : (r : Option AExpRow) → checkExpRowOpt C r = true →
    ElExpRowOpt C (AExpRow.eraseOpt r) (AExpRow.rowOpt r)
  | none, _ => by simp only [AExpRow.eraseOpt, AExpRow.rowOpt]; exact .opt_none
  | some r, h => by
    simp only [checkExpRowOpt] at h
    simp only [AExpRow.eraseOpt, AExpRow.rowOpt]
    exact .opt_some (checkExpRow_sound C r h)

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.