Elm Exactly

TheoremisInh_leaf

StandardElmMech/Stat/PatternsProof.lean:139, Inhabitants: construction and decomposition · tactic proof

Statement

theorem isInh_leaf {tbl : ConTable} {mode : Mode} {τ : Ty} {nd : INode} (hc : Clause tbl mode τ nd)
    (ha : nd.arity = 0) : IsInh tbl mode τ (Inh.leaf nd)

Proof

by
  intro n
  cases n with
  | zero => trivial
  | succ n =>
    refine ⟨nd, rfl, hc, fun i p _ => rfl, ?_⟩
    intro k as he _ i hi
    subst he
    simp only [INode.arity] at ha
    omega

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.