TheoremevExpListOpt_sound
Statement
theorem evExpListOpt_sound {I : Interface} {el : Option ExpList} {I' : Option Interface} :
evExpListOpt I el = some I' → EvalExpListOpt I el I'Proof
by
cases el with
| none => simp only [evExpListOpt, Option.some.injEq]; rintro rfl; exact .opt_none I
| some el =>
simp only [evExpListOpt, Option.map_eq_some_iff]
rintro ⟨I'', h, rfl⟩; exact .opt_some I el I'' (evExpList_sound h)Proved with tactics, which Lean expands into a proof term that its kernel checks.
Theorems it uses
In StandardElmMech/Mod/Sound.lean: Its soundness.
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.