feat(Topology/Order): add nonempty_nhds_inter_Ioi#37550
Open
pitmonticone wants to merge 2 commits intoleanprover-community:masterfrom
Open
feat(Topology/Order): add nonempty_nhds_inter_Ioi#37550pitmonticone wants to merge 2 commits intoleanprover-community:masterfrom
nonempty_nhds_inter_Ioi#37550pitmonticone wants to merge 2 commits intoleanprover-community:masterfrom
Conversation
PR summary caa79c2e3cImport changes for modified filesNo significant changes to the import graph Import changes for all files
Declarations diff
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 No changes to technical debt.You can run this locally as
|
ADedecker
reviewed
Apr 3, 2026
Mathlib/Topology/Order/Basic.lean
Outdated
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⟩ |
Member
There was a problem hiding this comment.
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 :
- This should go in
Mathlib.Topology.Order.DenselyOrdered - This should be proven using the two lemmas I just mentioned
- There should be similar lemmas for other type of intervals
9a33522 to
e9fdbae
Compare
Member
Author
|
Ok, thanks! Moved to DenselyOrdered, reproved via |
…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]>
e9fdbae to
bac20da
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add
nonempty_nhds_inter_Ioi: a neighborhood ofxhas nonempty intersection withIoi xwhenxis not a maximum.Upstreamed from the Carleson project.
Co-authored-by: Leo Diedering [email protected]
Co-authored-by: Michael Rothgang [email protected]