Skip to content
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

fixes #1301 #1303

Merged
merged 3 commits into from
Aug 27, 2024
Merged

fixes #1301 #1303

merged 3 commits into from
Aug 27, 2024

Conversation

affeldt-aist
Copy link
Member

fixes #1301

  • add relation_scope
Motivation for this change

While fixing the documentation for the notation \;, I realized that the notation for the inverse
of a relation was locally defined in three files. Since it seems to be used always along with \;,
I added a relation_scope that can be open in sections dealing with uniform spaces. I think
it is quite natural as it does not cause clashes with the already overloaded ^-1 notation and
also because it reduces the clutter in statements.

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

Reference: How to document

Reminder to reviewers

- add relation_scope
@affeldt-aist affeldt-aist added the renaming/refactoring 🔧 This is about a renaming or refactoring in the library label Aug 24, 2024
@affeldt-aist affeldt-aist added this to the 1.4.0 milestone Aug 24, 2024
@affeldt-aist affeldt-aist requested a review from zstone1 August 24, 2024 06:51
Copy link
Contributor

@zstone1 zstone1 left a comment

Choose a reason for hiding this comment

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

Quick suggestion to move a lemma around. But even as it stands this change is a strict improvement to the code, so very happy

@@ -3622,10 +3621,10 @@ move/(_ (globally [set fg | fg.1 = fg.2])); apply; split.
exact: ury_base_refl.
Qed.

Local Lemma set_prod_invK (K : set (T * T)) : (K^-1^-1)%classic = K.
Local Lemma set_prod_invK (K : set (T * T)) : K^-1^-1 = K.
Copy link
Contributor

Choose a reason for hiding this comment

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

If we're cleaning things up, shouldn't this live in classical_set rather than as a local lemma hwre?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, I missed it. Thanks.

Copy link
Member Author

Choose a reason for hiding this comment

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

I also added a definition for the diagonal, since the notation was repeated several times.

@affeldt-aist affeldt-aist merged commit 2e72931 into math-comp:master Aug 27, 2024
22 checks passed
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.

documentation of \; needs fixing
2 participants