Theoremvesound_typBinds
Statement
theorem vesound_typBinds {C : Ctx} {tbs : List BTypBind} {VEs : List ValEnv} {TEs : List TyEnv}
(h : elabTypBinds C tbs = some (VEs, TEs)) :
VESound (FMap.plusAll VEs) (vs ((tbs.map (·.c)).reverse))Proof
by
apply vesound_of_keysIn
exact keysIn_mono (keysIn_plusAll (keysIn_typBinds C tbs VEs TEs h)) (by intro x hx; simpa using hx)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.