Elm Exactly

Theoremwf_bv_iff

StandardElmMech/Eff/WF.lean:59 · tactic proof

Statement

theorem wf_bv_iff (j : BVal) : (Val.bv j).WF ↔ j.isJson = true

Proof

by
  constructor
  · intro h
    cases hj : j.isJson
    · exact absurd (BadBv.here j hj) h
    · rfl
  · intro hj h
    cases h with
    | here _ h' => rw [hj] at h' ; cases h'

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

In StandardElmMech/Eff/WF.lean: Well-formed values (Val.WF): no byte sequence outside an out leaf.

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.