Elm Exactly

TheoremkeysIn_typBind

StandardElmMech/Stat/RefuseScope.lean:886, Top-level declarations · tactic proof

Statement

theorem keysIn_typBind (C : Ctx) (tb : BTypBind) (VE : ValEnv) (TE : TyEnv)
    (h : elabTypBind C tb = some (VE, TE)) : KeysIn VE [tb.c]

Proof

by
  unfold elabTypBind at h
  split at h
  · cases h
  · split at h
    · simp only [Option.some.injEq, Prod.mk.injEq] at h
      obtain ⟨rfl, rfl⟩ := h
      exact keysIn_nil _
    · split at h
      · split at h
        · split at h
          · simp only [Option.some.injEq, Prod.mk.injEq] at h
            obtain ⟨rfl, rfl⟩ := h
            exact keysIn_closVE _ (keysIn_single (by simp))
          · cases h
        · cases h
      · cases h

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.