TheoremappVal_arrayToList
Statement
theorem appVal_arrayToList {v w : Val} : AppVal (bas .arrayToList) v w ↔ v = .con conArr [w]Proof
by
constructor
· intro h
cases h with
| r_d_app_basic_partial _ _ _ h => simp [BasVal.arity] at h
| r_d_app_basic_apply _ _ _ _ _ ha => cases ha; rfl
· rintro rfl
exact .r_d_app_basic_apply _ [] _ _ (by simp [BasVal.arity]) (.arrayToList_ _)Proved with tactics, which Lean expands into a proof term that its kernel checks.
Rules of the book it uses
In StandardElmMech/Eff/EncDec.lean: The book's relations Enc and Dec (15 and 14 rules, r_e_enc_*, r_e_dec_*), enc_iff, dec_iff, and that both are partial functions.
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.