Skip to content

feat(RingTheory/PowerSeries/Substitution): add API #26961

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mariainesdff
Copy link
Collaborator

@mariainesdff mariainesdff commented Jul 10, 2025

Co-authored-by: @AntoineChambert-Loir


Open in Gitpod

@github-actions github-actions bot added the t-algebra Algebra (groups, rings, fields, etc) label Jul 10, 2025
Copy link

PR summary bc780624b0

Import changes for modified files

Dependency changes

File Base Count Head Count Change
Mathlib.RingTheory.PowerSeries.Substitution 1411 1412 +1 (+0.07%)
Import changes for all files
Files Import difference
Mathlib.RingTheory.PowerSeries.Substitution 1

Declarations diff

+ rescaleAlgHom
+ rescaleAlgHom_apply
+ rescaleAlgHom_def
+ rescale_eq
+ rescale_eq_subst
+ rescale_map_eq_map_rescale
+ rescale_map_eq_map_rescale'
+ subst_def
+ subst_linear_subst_scalar_comm

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.


No changes to technical debt.

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

@mariainesdff mariainesdff changed the title feat(RingTheory/PowerSeries/Substitution): add APi feat(RingTheory/PowerSeries/Substitution): add API Jul 10, 2025
Copy link
Collaborator

@Ruben-VandeVelde Ruben-VandeVelde left a comment

Choose a reason for hiding this comment

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

Thanks

@@ -624,6 +624,18 @@ theorem rescale_mul (a b : R) : rescale (a * b) = (rescale b).comp (rescale a) :
ext
simp [← rescale_rescale]

theorem rescale_map_eq_map_rescale' {S : Type*} [CommSemiring S] (φ : R →+* S) (r : R) (f : R⟦X⟧) :
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we find a better way to distinguish this lemma than the prime suffix?

rw [rescale_eq, RingHom.coe_coe, rescaleAlgHom_def, MvPowerSeries.rescaleAlgHom_apply]

/-- When `p` is linear, substitution of `p` and then a scalar homothety is substitution of
the homothety then `p`. -/
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
the homothety then `p`. -/
the homothety then `p`. -/

intro d hd
convert hp_lin d hd using 1
simp [Finsupp.weight, Finsupp.linearCombination, Finsupp.degree]
rfl
Copy link
Collaborator

Choose a reason for hiding this comment

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

This rfl seems to indicate missing API

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t-algebra Algebra (groups, rings, fields, etc)
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants