Elm Exactly

TheoremlookSim_of_same

StandardElmMech/Stat/RefuseTypes.lean:508, Lookups in modified contexts · tactic proof

Statement

theorem lookSim_of_same {f : TyName → TyName} {C C' A : Ctx} (hs : SameTy C C') {lc : LongId}
    (h : LookSim f C' A lc) : LookSim f C A lc

Proof

by
  intro θ VE hl; rw [hs lc] at hl; exact h θ VE hl

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

Used by

In StandardElmMech/Stat/RefuseTypes.lean: Refusals by type expressions (aliases, constructor arguments, annotations, ports) and by the type of main (typesFailB, mainFailB), for every choice of generated names and variable sorts.

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.