Skip to content

[Merged by Bors] - feat(Topology/ClusterPt): Swapped version of ClusterPt.frequently #27407

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

tb65536
Copy link
Collaborator

@tb65536 tb65536 commented Jul 23, 2025

This PR adds the theorem

theorem ClusterPt.frequently' {F : Filter X} {p : X → Prop} (hx : ClusterPt x F)
    (hp : ∀ᶠ y in F, p y) : ∃ᶠ y in nhds x, p y := by

which is basically a swapped version of the existing theorem

theorem ClusterPt.frequently {F : Filter X} {p : X → Prop} (hx : ClusterPt x F)
    (hp : ∀ᶠ y in 𝓝 x, p y) : ∃ᶠ y in F, p y :=

I'm not sure if there's a common generalization.


Open in Gitpod

@tb65536 tb65536 added awaiting-CI t-topology Topological spaces, uniform spaces, metric spaces, filters labels Jul 23, 2025
Copy link

github-actions bot commented Jul 23, 2025

PR summary f1fa81263d

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ ClusterPt.frequently'
+ Filter.HasBasis.clusterPt_iff_frequently'
+ clusterPt_iff_frequently'

You can run this locally as follows
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>

The doc-module for script/declarations_diff.sh contains some details about this script.


No changes to technical debt.

You can run this locally as

./scripts/technical-debt-metrics.sh pr_summary
  • The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

@ADedecker
Copy link
Member

If I had to point out a "common generalization", I guess it would be Filter.inf_neBot_iff_frequently_left and Filter.inf_neBot_iff_frequently_right, but I guess we need these special cases anyways.

Could you also add the analogues of Filter.HasBasis.clusterPt_iff_frequently and clusterPt_iff_frequently, with similar proofs?

@ADedecker ADedecker added the awaiting-author A reviewer has asked the author a question or requested changes. label Jul 24, 2025
@tb65536 tb65536 added awaiting-CI and removed awaiting-author A reviewer has asked the author a question or requested changes. labels Jul 24, 2025
@ADedecker
Copy link
Member

Thanks!

bors merge

@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added the ready-to-merge This PR has been sent to bors. label Jul 25, 2025
mathlib-bors bot pushed a commit that referenced this pull request Jul 25, 2025
…27407)

This PR adds the theorem
```
theorem ClusterPt.frequently' {F : Filter X} {p : X → Prop} (hx : ClusterPt x F)
    (hp : ∀ᶠ y in F, p y) : ∃ᶠ y in nhds x, p y := by
```
which is basically a swapped version of the existing theorem
```
theorem ClusterPt.frequently {F : Filter X} {p : X → Prop} (hx : ClusterPt x F)
    (hp : ∀ᶠ y in 𝓝 x, p y) : ∃ᶠ y in F, p y :=
```
I'm not sure if there's a common generalization.
@mathlib-bors
Copy link
Contributor

mathlib-bors bot commented Jul 25, 2025

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat(Topology/ClusterPt): Swapped version of ClusterPt.frequently [Merged by Bors] - feat(Topology/ClusterPt): Swapped version of ClusterPt.frequently Jul 25, 2025
@mathlib-bors mathlib-bors bot closed this Jul 25, 2025
hrmacbeth pushed a commit to szqzs/mathlib4 that referenced this pull request Jul 28, 2025
…eanprover-community#27407)

This PR adds the theorem
```
theorem ClusterPt.frequently' {F : Filter X} {p : X → Prop} (hx : ClusterPt x F)
    (hp : ∀ᶠ y in F, p y) : ∃ᶠ y in nhds x, p y := by
```
which is basically a swapped version of the existing theorem
```
theorem ClusterPt.frequently {F : Filter X} {p : X → Prop} (hx : ClusterPt x F)
    (hp : ∀ᶠ y in 𝓝 x, p y) : ∃ᶠ y in F, p y :=
```
I'm not sure if there's a common generalization.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge This PR has been sent to bors. t-topology Topological spaces, uniform spaces, metric spaces, filters
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants