Skip to content

[Merged by Bors] - chore: minor edits to GNS construction files#37322

Closed
gw90 wants to merge 9 commits intoleanprover-community:masterfrom
gw90:gw90/GNS-Construction-edits
Closed

[Merged by Bors] - chore: minor edits to GNS construction files#37322
gw90 wants to merge 9 commits intoleanprover-community:masterfrom
gw90:gw90/GNS-Construction-edits

Conversation

@gw90
Copy link
Copy Markdown
Contributor

@gw90 gw90 commented Mar 28, 2026


Fixing a typo in a docstring and making some edits for concision. No API changes.

@github-actions github-actions bot added the new-contributor This PR was made by a contributor with at most 5 merged PRs. Welcome to the community! label Mar 28, 2026
@github-actions
Copy link
Copy Markdown

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 awaiting-author tag, or another reason described in the Lifecycle of a PR. The review dashboard has a dedicated webpage which shows whether your PR is on the review queue, and (if not), why.

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.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 28, 2026

PR summary b301d257a1

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ completion_leftMulMapPreGNS_map_smul

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 scripts/pr_summary/declarations_diff.sh contains some details about this script.


Increase in tech debt: (relative, absolute) = (1.00, 0.00)
Current number Change Type
6896 1 backward.isDefEq

Current commit ebb8569725
Reference commit b301d257a1

You can run this locally as

./scripts/reporting/technical-debt-metrics.sh pr_summary
  • The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

gw90 and others added 2 commits March 29, 2026 22:38
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
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 know it's private so it doesn't matter as much, but probably completion_leftMulMapPreGNS_map_smul is a more appropriate name?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

How about leftMulMapPreGNS_completion_map_smul? It just matches more closely with the theorem statement.

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 don't think so? Remember (f.leftMulMapPreGNS ...).completion is really ContinuousLinearMap.completion (f.leftMulMapPreGNS ...). The naming generally follows that and not the dot notation.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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?

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.

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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

@themathqueen themathqueen added the t-analysis Analysis (normed *, calculus) label Mar 31, 2026
Copy link
Copy Markdown
Contributor

@j-loreaux j-loreaux left a comment

Choose a reason for hiding this comment

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

Thanks!

bors merge

@mathlib-triage mathlib-triage bot added the ready-to-merge This PR has been sent to bors. label Mar 31, 2026
mathlib-bors bot pushed a commit that referenced this pull request Mar 31, 2026
Co-authored-by: Gregory Wickham <gwickham99@gmail.com>
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Mar 31, 2026

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore: minor edits to GNS construction files [Merged by Bors] - chore: minor edits to GNS construction files Mar 31, 2026
@mathlib-bors mathlib-bors bot closed this Mar 31, 2026
aditya-ramabadran pushed a commit to aditya-ramabadran/mathlib4 that referenced this pull request Apr 1, 2026
)

Co-authored-by: Gregory Wickham <gwickham99@gmail.com>
xroblot pushed a commit to xroblot/mathlib4 that referenced this pull request Apr 3, 2026
)

Co-authored-by: Gregory Wickham <gwickham99@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-contributor This PR was made by a contributor with at most 5 merged PRs. Welcome to the community! ready-to-merge This PR has been sent to bors. t-analysis Analysis (normed *, calculus)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants