Skip to content

chore(Algebra/Category/FGModuleCat/Basic): fgModuleCat -> fgmoduleCat - #44493

Open
SnirBroshi wants to merge 2 commits into
leanprover-community:masterfrom
SnirBroshi:chore/naming/fg-module-cat-lowercase
Open

SnirBroshi wants to merge 2 commits into
leanprover-community:masterfrom
SnirBroshi:chore/naming/fg-module-cat-lowercase

Conversation

@SnirBroshi

@SnirBroshi SnirBroshi commented Oct 4, 2026 •

Copy link
Copy Markdown
Collaborator

@SnirBroshi SnirBroshi added the easy < 20s of review time. See the lifecycle page for guidelines. label Oct 4, 2026
@github-actions

github-actions Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

PR summary 2d7d1dabbf

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff (regex)

+ LinearMap.comp_id_fgmoduleCat
+ LinearMap.id_fgmoduleCat_comp
+ fgmoduleCatCoevaluation_apply_one
+ fgmoduleCatDual_coe
+ fgmoduleCatDual_obj
+ fgmoduleCatEvaluation_apply
+ fgmoduleCatEvaluation_apply'

You can run this locally as follows
## from your `mathlib4` directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci

## summary with just the declaration names:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh <optional_commit>

## more verbose report:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh long <optional_commit>

The doc-module for scripts/pr_summary/declarations_diff.sh in the mathlib-ci repository contains some details about this script.

Declarations diff (Lean)

✅ Lean-aware diff — post-build, computed from the Lean environment (commit 2d7d1da).

  • +7 new declarations
  • −0 removed declarations
+FGModuleCat.fgmoduleCatCoevaluation_apply_one
+FGModuleCat.fgmoduleCatDual_coe
+FGModuleCat.fgmoduleCatDual_obj
+FGModuleCat.fgmoduleCatEvaluation_apply
+FGModuleCat.fgmoduleCatEvaluation_apply'
+LinearMap.comp_id_fgmoduleCat
+LinearMap.id_fgmoduleCat_comp

No changes to strong technical debt.
No changes to weak technical debt.

Current commit 2d7d1dabbf
Reference commit 17e9f587d8

This script lives in the mathlib-ci repository. To run it locally, from your mathlib4 directory:

git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci
../mathlib-ci/scripts/reporting/technical-debt-metrics.py 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).

@github-actions github-actions Bot added the t-algebra Algebra (groups, rings, fields, etc) label Oct 4, 2026
@SnirBroshi SnirBroshi added the t-category-theory Category theory label Oct 4, 2026

@themathqueen themathqueen 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.

Thanks!

maintainer merge

@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by themathqueen.

@mathlib-triage mathlib-triage Bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Oct 5, 2026
@joelriou

joelriou commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

I am not super-convinced that fgmoduleCat is better than fgModuleCat. If the names were expanded as FinitelyGeneratedModuleCat, we would have no hesitation keeping the capital letter for Module. Arguably, FG works line LE.

@joelriou joelriou added awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. and removed easy < 20s of review time. See the lifecycle page for guidelines. labels Oct 5, 2026
@themathqueen

Copy link
Copy Markdown
Member

@joelriou, so you want FGFoo, LEFoo, LTFoo to be the exceptions to this rule?
I.e., in lemmas, we'd see fgFoo, leFoo, ltFoo instead of what the rule says (fgfoo, lefoo, ltfoo).

@SnirBroshi

Copy link
Copy Markdown
Collaborator Author

I am not super-convinced that fgmoduleCat is better than fgModuleCat.

This isn't about better, it's about following the established conventions.

My point with this and ltSeries (#44494) was to surface the consequences of the rule.
Personally I prefer sFinite (#44292) and nnNorm/nnReal over nnnorm/nnreal, but above all I think we should be consistent.
I don't like the outcome of special-casing fg and lt in the conventions, but that's also possible.

I don't think there's anything awaiting me, and I'm not sure if a Zulip thread will see traction, but I can try. @joelriou perhaps you could start a discussion, as a maintainer?

@joelriou

joelriou commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

I was referring to the rule "Acronyms like LE are written upper-/lowercase as a group, depending on what the first character would be.". I am not super-expert in naming conventions, but my understanding is that in FGModuleCat, there are three parts FG, Module and Cat, and so, it becomes fgModuleCat in lowerCamelCase.

@SnirBroshi

Copy link
Copy Markdown
Collaborator Author

Yeah this is not documented, but see #44292 (comment)
The rule means fgmoduleCat is the correct version.

@SnirBroshi SnirBroshi added awaiting-zulip There is a Zulip discussion; the author should await and report/implement the decision reached there and removed awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. labels Oct 6, 2026
@themathqueen themathqueen removed the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Oct 9, 2026
@mathlib-merge-conflicts mathlib-merge-conflicts Bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Nov 19, 2026
@mathlib-merge-conflicts

Copy link
Copy Markdown

This pull request has conflicts, please merge master and resolve them.

This branch has not been deployed

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

Labels

awaiting-zulip There is a Zulip discussion; the author should await and report/implement the decision reached there merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) t-algebra Algebra (groups, rings, fields, etc) t-category-theory Category theory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants