Elm Exactly

TheoremfurtherTopDecB_sound

StandardElmMech/Stat/PatternsProof.lean:1121, The further restrictions of a derivation, decided · term proof

Statement

theorem furtherTopDecB_sound (tbl : ConTable) : (a : ATopDec) → furtherTopDecB tbl a = true → FurtherTopDec tbl a
  | .value _ vb, h => furtherValBindB_sound tbl vb h
  | .seq a1 a2, h => by
    simp only [furtherTopDecB, Bool.and_eq_true] at h
    exact ⟨furtherTopDecB_sound tbl a1 h.1, furtherTopDecB_sound tbl a2 h.2⟩
  | .types _ _ _ _, _ => trivial
  | .port _ _ _, _ => trivial

Proof

Proved by a term, which Lean's kernel checks directly.

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.