Elm Exactly

TheoremenvKeys_mono

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

Statement

theorem envKeys_mono {E : Env} {K K' : List SmLongId} (h : EnvKeys E K) (hs : ∀ k ∈ K, k ∈ K') :
    EnvKeys E K'

Proof

⟨fun x b hx => hs _ (h.1 x b hx), fun q I hq x b hx => hs _ (h.2 q I hq x b hx)⟩

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

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.