Elm Exactly

Theoremmem_headCons

StandardElmMech/Stat/PatternsProof.lean:569, Small facts the induction uses · tactic proof

Statement

theorem mem_headCons {P : List (List PatN)} {k : String} {args : List PatN} {rest : List PatN}
    (h : (PatN.con k args :: rest) ∈ P) : k ∈ headCons P

Proof

by
  unfold headCons
  rw [mem_dedupL]
  exact List.mem_filterMap.mpr ⟨_, h, rfl⟩

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

Theorems it uses

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.