TheoremfieldOf_some_mem
Statement
theorem fieldOf_some_mem : ∀ {r : List (String × Val)} {l : String} {v : Val},
fieldOf r l = some v → (l, v) ∈ r
| [], _, _, h => by simp [fieldOf, fmLookup] at h
| (k, w) :: r, l, v, h => by
unfold fieldOf fmLookup at h
split at h
· rename_i hk; simp at hk h; subst hk h; simp
· exact List.mem_cons_of_mem _ (fieldOf_some_mem h)Proof
Proved by a term, which Lean's kernel checks directly.
Used by
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.