TheoremmatchOKB_sound
Statement
theorem matchOKB_sound {tbl : ConTable} {τ : Ty} {ps : List PatN} (h : matchOKB tbl τ ps = true) :
MatchOK tbl τ psProof
by
unfold matchOKB at h
simp only [Bool.and_eq_true, List.all_eq_true] at h
obtain ⟨⟨ht, he⟩, hi⟩ := h
have ht' : ∀ p ∈ ps, PTyped tbl τ p := fun p hp => typedB_sound tbl _ τ p (ht p hp)
exact ⟨exhDec_sound ht' he, irrDec_sound ht' hi⟩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.