Elm Exactly

TheoremlookupTy_oplusTE_some

StandardElmMech/Stat/RefuseTypes.lean:468, Lookups in modified contexts · term proof

Statement

theorem lookupTy_oplusTE_some (C : Ctx) (TE : TyEnv) (m c : String) :
    (C.oplusTE TE).lookupTy ⟨some m, c⟩ = C.lookupTy ⟨some m, c⟩

Proof

rfl

Proved by a term, which Lean's kernel checks directly.

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.