[Merged by Bors] - chore: minor edits to GNS construction files#37322
[Merged by Bors] - chore: minor edits to GNS construction files#37322gw90 wants to merge 9 commits intoleanprover-community:masterfrom
Conversation
Welcome new contributor!Thank you for contributing to Mathlib! If you haven't done so already, please review our contribution guidelines, as well as the style guide and naming conventions. In particular, we kindly remind contributors that we have guidelines regarding the use of AI when making pull requests. We use a review queue to manage reviews. If your PR does not appear there, it is probably because it is not successfully building (i.e., it doesn't have a green checkmark), has the If you haven't already done so, please come to https://leanprover.zulipchat.com/, introduce yourself, and mention your new PR. Thank you again for joining our community. |
PR summary b301d257a1Import 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 Increase in tech debt: (relative, absolute) = (1.00, 0.00)
Current commit ebb8569725 You can run this locally as
|
fixing indents Co-authored-by: Monica Omar <23701951+themathqueen@users.noreply.github.com>
shortening proof Co-authored-by: Monica Omar <23701951+themathqueen@users.noreply.github.com>
| -/ | ||
| @[simp] | ||
| private lemma gnsNonUnitalStarAlgHom_map_smul (m : ℂ) (x : A) : | ||
| (f.leftMulMapPreGNS (m • x)).completion = m • (f.leftMulMapPreGNS x).completion := by |
There was a problem hiding this comment.
I know it's private so it doesn't matter as much, but probably completion_leftMulMapPreGNS_map_smul is a more appropriate name?
There was a problem hiding this comment.
How about leftMulMapPreGNS_completion_map_smul? It just matches more closely with the theorem statement.
There was a problem hiding this comment.
I don't think so? Remember (f.leftMulMapPreGNS ...).completion is really ContinuousLinearMap.completion (f.leftMulMapPreGNS ...). The naming generally follows that and not the dot notation.
There was a problem hiding this comment.
Ok, but the wouldn't that reasoning also apply to ContinuousLinearMap.toAddMonoidHom_completion? Or is it fine there because the theorem is stating that toAddMonoidHom and completion can basically be applied in either order?
There was a problem hiding this comment.
No, ContinuousLinearMap.toAddMonoidHom_completion is right: it's basically LinearMap.toAddMonoidHom (ContinuousLinearMap.completion f) = .... The takeaway is, when you're naming a lemma, don't look at it with dot notation.
There was a problem hiding this comment.
But note that the community is currently divided on this issue, and we haven't come to a final decision about how to name things. There are arguments in both directions.
…4 into gw90/GNS-Construction-edits
…4 into gw90/GNS-Construction-edits
Co-authored-by: Gregory Wickham <gwickham99@gmail.com>
|
Pull request successfully merged into master. Build succeeded: |
Fixing a typo in a docstring and making some edits for concision. No API changes.