Elm Exactly

TheoremcheckShowWith_sound

StandardElmMech/Checks.lean:460, A value statement for the ruling theorems · tactic proof

Statement

theorem checkShowWith_sound {shw : Val → String} {o : Oracle} {E : Env} {e : Exp} {s : String} :
    checkShowWith shw o E e s = true → ∃ v, EvalExp E e v ∧ shw v = s

Proof

by
  unfold checkShowWith; split
  · rename_i v l k h; intro hs; exact ⟨v, evExp_sound (by rw [h]), by simpa using hs⟩
  · intro h; cases h

Proved with tactics, which Lean expands into a proof term that its kernel checks.

Theorems it uses

Used by

In StandardElmMech/Checks.lean: What a check states (plan decision D9): Expect (structural values) with its decider, the parser of CHECK values, CheckStmt, the log statements EntryPat, LogCheck, ExpChecks with their deciders, regular expressions Rx.

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.