Skip to content

[Merged by Bors] - chore(Algebra/GroupPower/IterateHom): move all lemmas earlier#22132

Closed
YaelDillies wants to merge 3 commits intomasterfrom
kill_iterate_hom
Closed

[Merged by Bors] - chore(Algebra/GroupPower/IterateHom): move all lemmas earlier#22132
YaelDillies wants to merge 3 commits intomasterfrom
kill_iterate_hom

Conversation

@YaelDillies
Copy link
Copy Markdown
Contributor

@YaelDillies YaelDillies commented Feb 20, 2025

All lemmas in this file belong earlier. This finally gets rid of the Algebra.GroupPower folder, notorious for having caused imports increases in the algebra library (see #11855 for full motivation).


Open in Gitpod

All lemmas in this file belong earlier. This finally gets rid of the `Algebra.GroupPower` folder, notorious for having caused imports increases in the algebra library.
@YaelDillies YaelDillies added the t-algebra Algebra (groups, rings, fields, etc) label Feb 20, 2025
@github-actions
Copy link
Copy Markdown

github-actions bot commented Feb 20, 2025

PR summary bee20fd977

Import changes for modified files

Dependency changes

File Base Count Head Count Change
Mathlib.Algebra.GroupPower.IterateHom 324 0 -324 (-100.00%)
Mathlib.Algebra.Group.Basic 105 107 +2 (+1.90%)
Mathlib.Algebra.Group.Commute.Basic 109 111 +2 (+1.83%)
Mathlib.Algebra.Regular.Pow 468 462 -6 (-1.28%)
Mathlib.GroupTheory.Perm.Basic 389 385 -4 (-1.03%)
Mathlib.Data.Set.Pointwise.Iterate 451 448 -3 (-0.67%)
Mathlib.Algebra.CharP.Lemmas 793 791 -2 (-0.25%)
Mathlib.Algebra.Module.LinearMap.End 447 446 -1 (-0.22%)
Mathlib.Algebra.AddConstMap.Basic 641 640 -1 (-0.16%)
Mathlib.Algebra.Algebra.Bilinear 793 792 -1 (-0.13%)
Mathlib.GroupTheory.FixedPointFree 961 960 -1 (-0.10%)
Mathlib.Dynamics.Circle.RotationNumber.TranslationNumber 1336 1335 -1 (-0.07%)
Import changes for all files
Files Import difference
There are 3158 files with changed transitive imports taking up over 138998 characters: this is too many to display!
You can run scripts/import_trans_difference.sh all locally to see the whole output.

Declarations diff

+ mul_left_iterate_apply_one

You can run this locally as follows
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>

The doc-module for script/declarations_diff.sh contains some details about this script.


Decrease in tech debt: (relative, absolute) = (1.00, 0.00)
Current number Change Type
3362 -1 porting notes

Current commit bee20fd977
Reference commit 4fba8dcf8e

You can run this locally as

./scripts/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).

@YaelDillies YaelDillies changed the title chore(Algebra/GroupPower/IterateHom): move lemmas earlier chore(Algebra/GroupPower/IterateHom): move all lemmas earlier Feb 20, 2025
Copy link
Copy Markdown
Member

@eric-wieser eric-wieser left a comment

Choose a reason for hiding this comment

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

Can you elaborate on why the GroupPower folder was a bad idea, rather than saying it is notorious for having been one? I believe you, but let's leave a useful message for future readers.

One explanation might be that npow is part of the definition of Group itself, so moving results about it downstream don't make any sense any more. Another explanation is that GroupPower was created when this was not the case.

Copy link
Copy Markdown
Contributor

@Vierkantor Vierkantor left a comment

Choose a reason for hiding this comment

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

Agreed with Eric: the numbers look good but I'd like a bit more motivation for why this file specifically.

@YaelDillies
Copy link
Copy Markdown
Contributor Author

I've added motivation in the PR description already (the cf)

@Vierkantor
Copy link
Copy Markdown
Contributor

Ah, I see! I didn't notice that you meaant the motivation is explained there. I agree then with what it says, but maybe in case others are confused could you make it a bit clearer that te motiation is the same as in #11855?

bors d+

@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Feb 22, 2025

✌️ YaelDillies can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@ghost ghost added the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Feb 22, 2025
@YaelDillies
Copy link
Copy Markdown
Contributor Author

Clarified!

bors merge

mathlib-bors bot pushed a commit that referenced this pull request Feb 22, 2025
All lemmas in this file belong earlier. This finally gets rid of the `Algebra.GroupPower` folder, notorious for having caused imports increases in the algebra library (see #11855 for full motivation).
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Feb 22, 2025

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore(Algebra/GroupPower/IterateHom): move all lemmas earlier [Merged by Bors] - chore(Algebra/GroupPower/IterateHom): move all lemmas earlier Feb 22, 2025
@mathlib-bors mathlib-bors bot closed this Feb 22, 2025
@mathlib-bors mathlib-bors bot deleted the kill_iterate_hom branch February 22, 2025 11:46
Julian added a commit that referenced this pull request Feb 22, 2025
* origin/master:
  chore(*): add `@[fun_prop]` (#22183)
  chore(RingTheory): generalize universes for `isUnramified_iff_map_eq` (#22185)
  chore(Algebra/GroupPower/IterateHom): move all lemmas earlier (#22132)
  feat(Probability): ae filter and integrability wrt a composition of kernel and measure (#22074)
  feat(CategoryTheory): forgetting the group structure on the codomain of left-exact functors (#21973)
  feat(CategoryTheory): embeddings for opposites of Grothendieck abelian categories (#22182)
  feat(CategoryTheory): `AsSmall C` is abelian (#22184)
  feat(CategoryTheory): explicit argument versions of `epi_comp` and `mono_comp` (#22181)
  feat(Topology/Instances/EReal/Lemmas): add lemmas about limsup and multiplication (#21833)
  feat: basic structural lemmas about finite crystallographic root pairings. (#21932)
  Rename `Mem𝓛p` to `MemLp` (#22164)
  feat(Logic/Equiv): Upgrade arrowProdEquivProdArrow to dependent types (#21518)
  feat(CategoryTheory): Grothendieck abelian categories have enough injectives (#20079)
  chore: deprecate Finite.cast_card_eq_mk (#22161)
  feat(CategoryTheory/Limits/Fubini): relax `HasLimits` hypotheses (#20570)
  chore(Algebra/Order/Monoid/Unbundled/WithTop): golf, clean up (#22109)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). t-algebra Algebra (groups, rings, fields, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants