Elm Exactly

TheoremconBind_sk

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

Statement

theorem conBind_sk (C : Ctx) (τ : Ty) : (cb : BConBind) → (VE : ValEnv) →
    elabConBind C τ cb = some VE → FMap.mapV VE Prod.snd = conSkL cb
  | [], VE, h => by simp only [elabConBind, Option.some.injEq] at h; subst h; rfl
  | (k, tys) :: rest, VE, h => by
    simp only [elabConBind] at h
    split at h
    · rename_i τs VE' _ h2
      cases h
      rw [mapV_modify, conBind_sk C τ rest VE' h2]
      rfl
    · 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.