Elm Exactly

TheoremprogramValue_sound

StandardElmMech/Mod/Rulings.lean:18 · tactic proof

Statement

theorem programValue_sound {o : Oracle} {B : Basis} {p : List Module} {x : Expect} :
    programValueB o B p x = true → ∃ v, EvalProgram B p v ∧ x.holds v

Proof

by
  unfold programValueB; split
  · rename_i v l k h; intro hx; exact ⟨v, evProgram_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/Mod/Rulings.lean: A82, A38 and A28 on programs written by hand.

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.