Theoremflat_none
Cmd.none, and a batch of nones, flatten to the empty multiset.
Statement
theorem flat_none : flat (.batch []) = some [] ∧ flat (.batch [.batch [], .batch []]) = some []Proof
by
simp [flat, flatList]Proved with tactics, which Lean expands into a proof term that its kernel checks.
In StandardElmMech/Eff/Flat.lean: Flattening of commands and subscriptions (flat, flat_leaves).
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.