Elm Exactly

Theoremagrees_single

StandardElmMech/Complete.lean:181, Agreement of an oracle with a list of choices (for completeness, Completeness.lean) · tactic proof

Statement

theorem agrees_single {o : Oracle} {k : Nat} {b : Bool} (h : Agrees o k [b]) : o k = b

Proof

by
  simpa using h 0 (by simp)

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

Used by

In StandardElmMech/Complete.lean: The index of the next choice only grows (evExp_next and the others); Agrees; lemmas for the side conditions.

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.