TheoremcanonB_ofList
Statement
theorem canonB_ofList : ∀ (js : List BVal), (∀ j ∈ js, j.canonB = true) → (BArr.ofList js).canonB = true
| [], _ => rfl
| j :: js, h => by
simp only [BArr.ofList, BArr.canonB, Bool.and_eq_true]
exact ⟨h j (by simp), canonB_ofList js (fun j' hm => h j' (by simp [hm]))⟩Proof
Proved by a term, which Lean's kernel checks directly.
In StandardElmMech/Eff/Properties.lean: APPLY of the effect values has one member; the rulings A74, A76, A88 and A92; canonical payload types, the decimality of a float's exact value, and that every value of a payload type has a canonical encoding (enc_total).
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.