TheoremportRowB_sound
Statement
theorem portRowB_sound : (ρ : Row) → portRowB ρ = true → ∀ l τ, (l, τ) ∈ ρ → Port τ
| [], _, l, τ, hm => by cases hm
| (l', τ') :: rest, h, l, τ, hm => by
simp only [portRowB, Bool.and_eq_true] at h
rcases List.mem_cons.mp hm with e | e
· cases e; exact portB_sound τ' h.1
· exact portRowB_sound rest h.2 l τ eProof
Proved by a term, which Lean's kernel checks directly.
Used by
In StandardElmMech/Stat/CheckSound.lean: The checker is sound: a phrase that checks has a derivation by the rules of Chapters 4 and 5 (checkExp_sound, checkModule_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.