TheoremanyOpt_false
Statement
theorem anyOpt_false {α : Type} {g : α → Option Bool} : ∀ {xs : List α}, useful.anyOpt xs g = some false →
∀ x ∈ xs, g x = some false
| [], _, _, hx => by cases hx
| x :: xs, h, y, hy => by
simp only [useful.anyOpt] at h
split at h
· cases h
· rename_i hx
rcases List.mem_cons.mp hy with rfl | hy
· exact hx
· exact anyOpt_false h y hy
· cases hProof
Proved by a term, which Lean's kernel checks directly.
Used by
In StandardElmMech/Stat/PatternsProof.lean: The pattern decider is correct: every type is inhabited (inhabited), useful_spec, exhDec_sound, irrDec_sound.
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.