Elm Exactly

TheoremenvKeys_envOf

StandardElmMech/Stat/RefuseScope.lean:1187, The context of a provider map binds only what the map provides · term proof

Statement

theorem envKeys_envOf (ME : ModEnv) : (π : ProvMap) → EnvKeys (envOf ME π) (FMap.keys π)
  | [] => ⟨fun _ _ hx => (by cases hx), fun _ _ hq => (by cases hq)⟩
  | p :: π => by
    have

Proof

envKeys_step ME p _ _ (envKeys_envOf ME π)
    simpa [envOf, FMap.keys] using this

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

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.