Elm Exactly

TheoremelabItem_sk

StandardElmMech/Stat/RefuseScope.lean:1271, Skeletons of interfaces: what the elaboration of imports reads of them · tactic proof

Statement

theorem elabItem_sk (mid : ModId) (I : IEnv) (it : BItem) : elabItem (mid, I) it = elabItemSk mid (skI I) it

Proof

by
  cases it with
  | var x => simp only [elabItem, elabItemSk, skI] <;> rfl
  | op o => simp only [elabItem, elabItemSk]
  | ty c =>
    simp only [elabItem, elabItemSk, skI, find?_mapV]
    cases FMap.find? I.TE c with
    | none => rfl
    | some st =>
      obtain ⟨θ, VE⟩ := st
      simp only [Option.map_some, skS, keys_ofStatusV]
  | tyAll c =>
    simp only [elabItem, elabItemSk, skI, find?_mapV]
    cases FMap.find? I.TE c with
    | none => rfl
    | some st =>
      obtain ⟨θ, VE⟩ := st
      simp only [Option.map_some, skS, keys_mapV, any_find?_mapV] <;> rfl

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

Theorems it uses

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.