Elm Exactly

TheoremexhOneB_sound

StandardElmMech/Stat/PatternsProof.lean:1040, The deciders · tactic proof

Statement

theorem exhOneB_sound {tbl : ConTable} {τ : Ty} {p : PatN} (h : exhOneB tbl τ p = true) :
    ExhProp tbl τ [p]

Proof

by
  unfold exhOneB at h
  simp only [Bool.and_eq_true] at h
  exact exhDec_sound (fun q hq => by simp at hq; subst hq; exact typedB_sound tbl _ τ _ h.1) h.2

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

Theorems it uses

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.