Skip to content

fixes #1301#1303

Merged
affeldt-aist merged 3 commits intomath-comp:masterfrom
affeldt-aist:fixes_1301
Aug 27, 2024
Merged

fixes #1301#1303
affeldt-aist merged 3 commits intomath-comp:masterfrom
affeldt-aist:fixes_1301

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

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
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