Elm Exactly

TheoremlitKind_spec

StandardElmMech/Stat/PatternsProof.lean:207, A97: every type has an inhabitant · tactic proof

Statement

theorem litKind_spec {τ : Ty} {k : Nat} (h : litKind τ = some k) : k = 0 ∨ k = 1 ∨ k = 2

Proof

by
  unfold litKind at h
  split at h
  · split at h
    · cases h; simp
    · split at h
      · cases h; simp
      · split at h
        · cases h; simp
        · cases h
  · cases h

Proved with tactics, which Lean expands into a proof term that its kernel checks.

Used by

In StandardElmMech/Stat/PatternsProof.lean: The pattern decider is correct: every type is inhabited (inhabited), useful_spec, exhDec_sound, irrDec_sound.

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.