Skip to content

Commit

Permalink
feat(Filter): add Filter.EventuallyEq.symmDiff (#15016)
Browse files Browse the repository at this point in the history
  • Loading branch information
urkud committed Jul 22, 2024
1 parent 407f293 commit 5f23f7c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Mathlib/Order/Filter/Basic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ we do *not* require. This gives `Filter X` better formal properties, in particul
assert_not_exists OrderedSemiring

open Function Set Order
open scoped Classical
open scoped Classical symmDiff

universe u v w x y

Expand Down Expand Up @@ -1394,6 +1394,10 @@ theorem EventuallyEq.diff {s t s' t' : Set α} {l : Filter α} (h : s =ᶠ[l] t)
(s \ s' : Set α) =ᶠ[l] (t \ t' : Set α) :=
h.inter h'.compl

protected theorem EventuallyEq.symmDiff {s t s' t' : Set α} {l : Filter α}
(h : s =ᶠ[l] t) (h' : s' =ᶠ[l] t') : (s ∆ s' : Set α) =ᶠ[l] (t ∆ t' : Set α) :=
(h.diff h').union (h'.diff h)

theorem eventuallyEq_empty {s : Set α} {l : Filter α} : s =ᶠ[l] (∅ : Set α) ↔ ∀ᶠ x in l, x ∉ s :=
eventuallyEq_set.trans <| by simp

Expand Down

0 comments on commit 5f23f7c

Please sign in to comment.