Elm Exactly

TheoremevHeader_sound

StandardElmMech/Mod/Sound.lean:63 · tactic proof

Statement

theorem evHeader_sound {I : Interface} {h : Header} {m : ModId} {I' : Interface} :
    evHeader I h = some (m, I') → EvalHeader I h m I'

Proof

by
  obtain ⟨isPort, mid, el⟩ := h
  simp only [evHeader, Option.map_eq_some_iff, Prod.mk.injEq]
  rintro ⟨I'', hl, rfl, rfl⟩
  exact .r_dm_header I isPort mid el I'' (evExpList_sound hl)

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

Rules of the book it uses

Theorems it uses

Used by

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.