Theorema72_maybe_null
A72: absent flags are null; with Maybe flags the program starts with Nothing.
Statement
theorem a72_maybe_null (τ : PTy) : FlagsVal (.maybe τ) .null (.con conNothing [])Proof
.inr ⟨by simp, (dec_iff _ _ _).mpr (by simp [dec])⟩Proved by a term, which Lean's kernel checks directly.
Theorems it uses
About ruling A72 of the book, where the implementations disagreed or were silent and the definition decides.
In StandardElmMech/Prog/Rulings.lean: The rulings A62, A72, A77, A79, A80 and A81 as theorems, and a66_batch_order_open: a program whose batch is delivered in either order.
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.