Elm Exactly

TheoremleafCore_mapE_map

StandardElmMech/Eff/Flat.lean:36 · tactic proof

Statement

theorem leafCore_mapE_map {f : Val} {cs : List Val} (h : ∀ c ∈ cs, (leafCore c).isSome) :
    ∀ c ∈ cs.map (Val.mapE f), (leafCore c).isSome

Proof

by
  intro c hm
  simp only [List.mem_map] at hm
  obtain ⟨c0, h0, rfl⟩ := hm
  simpa [leafCore] using h c0 h0

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

In StandardElmMech/Eff/Flat.lean: Flattening of commands and subscriptions (flat, flat_leaves).

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.