Theorema92_bytes_nested
A92: a list of byte sequences encodes as an array of byte sequences.
Statement
theorem a92_bytes_nested :
Enc (.list .bytes) (Val.ofList [binVal [1, 2]]) (.arr (.cons (.bytes [1, 2]) .nil))Proof
(enc_iff _ _ _).mpr (by decide +kernel)Proved by decide +kernel: Lean's kernel itself runs the decision procedure, here the evaluator, and checks that the answer is true, so nothing outside the kernel is trusted.
Theorems it uses
About ruling A92 of the book, where the implementations disagreed or were silent and the definition decides.
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.