TheoremdecFields_none
Statement
theorem decFields_none {l : String} : ∀ {fs : PFields} {kvs : BObj}, l ∈ fs.labels →
kvs.lookup l = none → decFields fs kvs = none
| .nil, _, h, _ => by simp [PFields.labels] at h
| .cons l' τ rest, kvs, h, hl => by
simp only [PFields.labels, List.mem_cons] at h
simp only [decFields]
rcases h with rfl | h
· simp [hl]
· cases kvs.lookup l' with
| none => rfl
| some j =>
simp only
cases dec τ j with
| none => rfl
| some v => simp [decFields_none h hl]Proof
Proved by a term, which Lean's kernel checks directly.
Used by
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.