Theoremfind?_cons
Statement
theorem find?_cons (k k' : K) (v : V) (r : FMap K V) :
find? ((k', v) :: r) k = if k' = k then some v else find? r kProof
rflProved by a term, which Lean's kernel checks directly.
In StandardElmMech/Stat/FMap.lean: Finite maps for the static semantics (association lists, first occurrence wins), with their lemmas.
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.