Elm Exactly

TheoremvalueCheck_sound

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

Statement

theorem valueCheck_sound {o : Oracle} {E : Env} {e : Exp} {x : Expect} :
    valueCheckB o E e x = true → ∃ v, EvalExp E e v ∧ x.holds v

Proof

by
  unfold valueCheckB; split
  · rename_i v l k h; intro hx; exact ⟨v, evExp_sound (by rw [h]), hx⟩
  · 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.