Elm Exactly

TheoremexposeItems_sk

StandardElmMech/Stat/RefuseScope.lean:1595, The skeleton of a module's interface is the same in every derivation · term proof

Statement

theorem exposeItems_sk {E : Env} {T : FMap String SkVE}
    (hT : ∀ c, FMap.find? (FMap.mapV E.TE skS) c = FMap.find? T c) : (is : List BItem) → (I : IEnv) →
    exposeItems E is = some I → exposeItemsSk T is = some (skI I)
  | [], I, h => by
    simp only [exposeItems, Option.some.injEq] at h
    subst h
    rfl
  | it :: rest, I, h => by
    simp only [exposeItems] at h
    split at h
    · rename_i I1 I2 h1 h2
      cases h
      simp only [exposeItemsSk, exposeItem_sk hT it I1 h1, exposeItems_sk hT rest I2 h2, skI_plus]
    · cases h

Proof

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.