Skip to content

feat(Topology/Order): add nonempty_nhds_inter_Ioi#37550

Open
pitmonticone wants to merge 2 commits intoleanprover-community:masterfrom
pitmonticone:carleson/nonempty-nhds-inter-Ioi
Open

feat(Topology/Order): add nonempty_nhds_inter_Ioi#37550
pitmonticone wants to merge 2 commits intoleanprover-community:masterfrom
pitmonticone:carleson/nonempty-nhds-inter-Ioi

Conversation

@pitmonticone
Copy link
Copy Markdown
Member

Add nonempty_nhds_inter_Ioi: a neighborhood of x has nonempty intersection with Ioi x when x is not a maximum.

Upstreamed from the Carleson project.

Co-authored-by: Leo Diedering [email protected]
Co-authored-by: Michael Rothgang [email protected]


@pitmonticone pitmonticone added carleson part of the ongoing formalization of Carleson's theorem easy < 20s of review time. See the lifecycle page for guidelines. labels Apr 2, 2026
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 2, 2026

PR summary caa79c2e3c

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ nonempty_nhds_inter_Iio
+ nonempty_nhds_inter_Ioi

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

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

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


No changes to technical debt.

You can run this locally as

./scripts/reporting/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).

@github-actions github-actions bot added the t-topology Topological spaces, uniform spaces, metric spaces, filters label Apr 2, 2026
Comment on lines +463 to +469
theorem nonempty_nhds_inter_Ioi [DenselyOrdered α] {x : α} {u : Set α}
(hu : u ∈ nhds x) (hx : ¬ IsMax x) :
(u ∩ Set.Ioi x).Nonempty := by
obtain ⟨b, hx⟩ := not_isMax_iff.mp hx
obtain ⟨b, hb, Ico_sub⟩ := exists_Ico_subset_of_mem_nhds' hu hx
obtain ⟨a, x_lt_a, a_lt_b⟩ := exists_between hb.1
exact ⟨a, Ico_sub ⟨x_lt_a.le, a_lt_b⟩, x_lt_a⟩
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure I'm a big fan of adding this, is it too annoying to use closure_Ioi' together with mem_closure_iff_nhds?

In any case, if we really want this :

  1. This should go in Mathlib.Topology.Order.DenselyOrdered
  2. This should be proven using the two lemmas I just mentioned
  3. There should be similar lemmas for other type of intervals

@ADedecker ADedecker added awaiting-author A reviewer has asked the author a question or requested changes. and removed easy < 20s of review time. See the lifecycle page for guidelines. labels Apr 3, 2026
@pitmonticone pitmonticone force-pushed the carleson/nonempty-nhds-inter-Ioi branch from 9a33522 to e9fdbae Compare April 3, 2026 10:30
@pitmonticone
Copy link
Copy Markdown
Member Author

Ok, thanks! Moved to DenselyOrdered, reproved via closure_Ioi' + mem_closure_iff_nhds, and added nonempty_nhds_inter_Iio.

…s_inter_Iio`

Add `nonempty_nhds_inter_Ioi` and `nonempty_nhds_inter_Iio`: a neighborhood of `x` has nonempty intersection with `Ioi x` (resp. `Iio x`) when `x` is not a maximum (resp. minimum).

Upstreamed from the [Carleson](https://github.com/fpvandoorn/carleson) project.

Co-authored-by: Leo Diedering <[email protected]>
Co-authored-by: Michael Rothgang <[email protected]>
@pitmonticone pitmonticone force-pushed the carleson/nonempty-nhds-inter-Ioi branch from e9fdbae to bac20da Compare April 3, 2026 10:39
@pitmonticone pitmonticone removed the awaiting-author A reviewer has asked the author a question or requested changes. label Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

carleson part of the ongoing formalization of Carleson's theorem t-topology Topological spaces, uniform spaces, metric spaces, filters

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants