TheoremnormVal_ofList
Statement
theorem normVal_ofList : ∀ vs : List Val, normVal (Val.ofList vs) = Val.ofList (vs.map normVal)
| [] => by simp [Val.ofList, normVal, normList]
| v :: vs => by simp [Val.ofList, normVal, normList, normVal_ofList vs]Proof
Proved by a term, which Lean's kernel checks directly.
In StandardElmMech/Eff/RoundTrip.lean: The round trip of encoding and decoding (roundtrip), except where A88 says otherwise (NoExc), under the named hypothesis FloatRoundTrip; the exceptions shown to be needed.
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.