Elm Exactly

TheoremteSk_topOpt

StandardElmMech/Stat/RefuseScope.lean:1527, The skeleton of a module's interface is the same in every derivation · tactic proof

Statement

theorem teSk_topOpt {a : Option ATopDec} {C : Ctx} {E : Env} {PE : PortEnv}
    (h : checkTopDecOpt C a = some (E, PE)) (c : String) :
    FMap.find? (FMap.mapV E.TE skS) c = FMap.find? (teSkTopOpt (a.map ATopDec.erase)) c

Proof

by
  cases a with
  | none =>
    simp only [checkTopDecOpt, Option.some.injEq, Prod.mk.injEq] at h
    obtain ⟨rfl, rfl⟩ := h
    rfl
  | some d => exact teSk_top d C E PE h c

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

Theorems it uses

Used by

In StandardElmMech/Stat/RefuseScope.lean: Refusals by scope, constructor arity and imports, for one module and for a module after a helper (scopeFailB).

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.