Elm Exactly

TheoremelabTyList_length

StandardElmMech/Stat/RefuseScope.lean:828, Top-level declarations · term proof

Statement

theorem elabTyList_length (C : Ctx) : (tys : List BTy) → (τs : List Ty) → elabTyList C tys = some τs →
    τs.length = tys.length
  | [], τs, h => by simp only [elabTyList, Option.some.injEq] at h; subst h; rfl
  | t :: ts, τs, h => by
    simp only [elabTyList] at h
    split at h
    · rename_i τ τs' _ h2
      cases h
      simp [elabTyList_length C ts τs' h2]
    · cases h

Proof

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

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.