Elm Exactly

TheoremkeysIn_single

StandardElmMech/Stat/RefuseScope.lean:293, Finite maps · tactic proof

Statement

theorem keysIn_single {x : K} {v : V} {xs : List K} (h : x ∈ xs) : KeysIn [(x, v)] xs

Proof

by
  intro y w hy
  simp only [FMap.find?] at hy
  split at hy
  · rename_i e; subst e; exact h
  · cases hy

Proved with tactics, which Lean expands into a proof term that its kernel checks.

Used by

In StandardElmMech/Stat/RefuseScope.lean: Refusals by scope, constructor arity and imports, for one module and for a module after a helper (scopeFailB).

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.