Elm Exactly

TheoremcheckPatRow_sound

StandardElmMech/Stat/CheckSound.lean:71, Patterns · term proof

Statement

theorem checkPatRow_sound (C : Ctx) : (r : APatRow) → checkPatRow C r = true → ElPatRow C r.erase r.ve r.row
  | .field l x τ rest, h => by
    simp only [checkPatRow] at h
    simp only [APatRow.erase, APatRow.ve, APatRow.row]
    exact .r_s_patrow (checkPatRowOpt_sound C rest h)

Proof

Proved by a term, which Lean's kernel checks directly.

Rules of the book 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.