Elm Exactly

TheoremuniqueValue_sound

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

Statement

theorem uniqueValue_sound {o : Oracle} {E : Env} {e : Exp} {x : Expect} :
    uniqueValueB o E e x = true → (∃ v, EvalExp E e v) ∧ ∀ w, EvalExp E e w → x.holds w

Proof

by
  unfold uniqueValueB; split
  · rename_i v l h; intro hx
    exact ⟨⟨v, evExp_sound (by rw [h])⟩, fun w hw => by rw [evExp_unique h w hw]; exact 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.