Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit 90fab28

Browse files
committed
feat(topology/continuous_on): generalise lemma slightly (#16840)
Generalise `frequently_nhds_within_iff` to allow `within` any set, not just complement of singleton Co-authored-by: Bhavik Mehta <bm489@cam.ac.uk>
1 parent 827f0b9 commit 90fab28

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/topology/continuous_on.lean

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ lemma eventually_nhds_within_iff {a : α} {s : set α} {p : α → Prop} :
4444
(∀ᶠ x in 𝓝[s] a, p x) ↔ ∀ᶠ x in 𝓝 a, x ∈ s → p x :=
4545
eventually_inf_principal
4646

47-
lemma frequently_nhds_within_iff {z : α} {p : α → Prop} :
48-
(∃ᶠ x in 𝓝[] z, p x) ↔ (∃ᶠ x in 𝓝 z, p x ∧ x ≠ z) :=
49-
iff.not (by simp [eventually_nhds_within_iff, not_imp_not])
47+
lemma frequently_nhds_within_iff {z : α} {s : set α} {p : α → Prop} :
48+
(∃ᶠ x in 𝓝[s] z, p x) ↔ (∃ᶠ x in 𝓝 z, p x ∧ x ∈ s) :=
49+
iff.not (by simp [eventually_nhds_within_iff, not_and'])
5050

5151
lemma mem_closure_ne_iff_frequently_within {z : α} {s : set α} :
5252
z ∈ closure (s \ {z}) ↔ ∃ᶠ x in 𝓝[≠] z, x ∈ s :=

0 commit comments

Comments
 (0)