TheoremfurtherExpB_sound
Statement
theorem furtherExpB_sound (tbl : ConTable) : (a : AExp) → furtherExpB tbl a = true → FurtherExp tbl a
| .atexp a, h => by
simp only [furtherExpB] at h
exact furtherAtExpB_sound tbl a h
| .app e a, h => by
simp only [furtherExpB, Bool.and_eq_true] at h
exact ⟨furtherExpB_sound tbl e h.1, furtherAtExpB_sound tbl a h.2⟩
| .lam p e, h => by
simp only [furtherExpB, Bool.and_eq_true] at h
exact ⟨exhOneB_sound h.1, furtherExpB_sound tbl e h.2⟩
| .caseE e m, h => by
simp only [furtherExpB, Bool.and_eq_true] at h
exact ⟨furtherExpB_sound tbl e h.1.1, matchOKB_sound h.1.2, furtherMatchB_sound tbl m h.2⟩Proof
Proved by a term, which Lean's kernel checks directly.
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.