Skip to content

open_nbhs -> mem_open - #2094

Open
affeldt-aist wants to merge 2 commits into
math-comp:masterfrom
affeldt-aist:fix_1969
Open

open_nbhs -> mem_open#2094
affeldt-aist wants to merge 2 commits into
math-comp:masterfrom
affeldt-aist:fix_1969

Conversation

@affeldt-aist

@affeldt-aist affeldt-aist commented Aug 30, 2026

Copy link
Copy Markdown
Member
Motivation for this change

fixes #1969

fixes #2050

fyi: @CohenCyril @andrew-appel

Checklist
  • added corresponding entries in CHANGELOG_UNRELEASED.md
  • added corresponding documentation in the headers

Reference: How to document

Merge policy

As a rule of thumb:

  • PRs with several commits that make sense individually and that
    all compile are preferentially merged into master.
  • PRs with disorganized commits are very likely to be squash-rebased.
Reminder to reviewers

@affeldt-aist affeldt-aist added this to the 1.18.0 milestone Aug 30, 2026
@affeldt-aist
affeldt-aist requested a review from mkerjean August 30, 2026 04:24
@affeldt-aist affeldt-aist added the renaming/refactoring 🔧 This is about a renaming or refactoring in the library label Aug 30, 2026
Comment thread CHANGELOG_UNRELEASED.md Outdated
+ lemma `RealsE` to include `RcosE`, `Rtrigo_PIE`, `RsinE`

- in `topology_structure.v`:
+ lemma `denseNE` not used `exists2`

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Is this sentence accurate ? What does it mean ?

@affeldt-aist affeldt-aist Aug 30, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Arg, that's a typo: it should be "now uses" :-)

@mkerjean mkerjean left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I agree that the name change is welcomed. As long as the CI is green, it can be merged in my opinion (maybe once my comment about the changelog is clarified).

Comment thread CHANGELOG_UNRELEASED.md Outdated
@CohenCyril

CohenCyril commented Aug 30, 2026

Copy link
Copy Markdown
Member

From @mkerjean at #1969 (comment)

[open_nbhs_nbhs ] has a circular flavor : one can think that open_nbhs is the conjunction of open and nbhs and that the lemma looks circular.

open_nbhs is the conjunction of open and nbhs (as shown by open_nbhsE), just not definitionally as of now because there is a "simpler" definition. I'm wary of renaming it to mem_open knowing that it actually is more than that.

Something one could do instead is swap the definitional and propositional equality, i.e., have the statement
open_nbhs p = [set A in nbhs p | open A] be definitional and open_nbhs p A = open A /\ A p be propositional.
Because that's really the open neighborhoods of a point.

@CohenCyril CohenCyril left a comment

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 would keep the name but change the definition, and write a lemma stating

Lemma open_nbhs_mem (p : T) (A : set T) : open_nbhs p A = open A /\ A p.

Context {T : topologicalType}.

Definition open_nbhs (p : T) (A : set T) := open A /\ A p.
Definition mem_open (p : T) (A : set T) := open A /\ A p.

@CohenCyril CohenCyril Aug 30, 2026

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.

Suggested change
Definition mem_open (p : T) (A : set T) := open A /\ A p.
Definition open_nbhs (p : T) := open `&` nbhs p

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

renaming/refactoring 🔧 This is about a renaming or refactoring in the library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tell explicitly that nbhs stands for "neighborhoods" Rename open_nbhs to mem_open

3 participants