chore: add @[simp] to Option.not_mem_none (#6804)

This PR improves simp lemma confluence.
This commit is contained in:
Kim Morrison 2025-01-28 12:59:47 +11:00 committed by GitHub
parent 5f0fea60a6
commit d0b947bf52
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -34,7 +34,7 @@ theorem get_mem : ∀ {o : Option α} (h : isSome o), o.get h ∈ o
theorem get_of_mem : ∀ {o : Option α} (h : isSome o), a ∈ o → o.get h = a
| _, _, rfl => rfl
theorem not_mem_none (a : α) : a ∉ (none : Option α) := nofun
@[simp] theorem not_mem_none (a : α) : a ∉ (none : Option α) := nofun
theorem getD_of_ne_none {x : Option α} (hx : x ≠ none) (y : α) : some (x.getD y) = x := by
cases x; {contradiction}; rw [getD_some]