TheoremfurtherAtExpB_sound
Statement
theorem furtherAtExpB_sound (tbl : ConTable) : (a : AAtExp) → furtherAtExpB tbl a = true → FurtherAtExp tbl a
| .tuple e1 e2 e3, h => by
simp only [furtherAtExpB, Bool.and_eq_true] at h
exact ⟨furtherExpB_sound tbl e1 h.1.1, furtherExpB_sound tbl e2 h.1.2, furtherExpOptB_sound tbl e3 h.2⟩
| .record row, h => by
simp only [furtherAtExpB] at h
exact furtherExpRowOptB_sound tbl row h
| .update _ _ _ row, h => by
simp only [furtherAtExpB] at h
exact furtherExpRowB_sound tbl row h
| .letE d e, h => by
simp only [furtherAtExpB, Bool.and_eq_true] at h
exact ⟨furtherDecB_sound tbl d h.1, furtherExpB_sound tbl e h.2⟩
| .paren e, h => by
simp only [furtherAtExpB] at h
exact furtherExpB_sound tbl e h
| .scon _ _, _ => trivial
| .var _ _ _, _ => trivial
| .con _ _ _, _ => trivial
| .op _ _ _, _ => trivial
| .unit, _ => trivial
| .nil _, _ => trivialProof
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.