Skip to content

feat(RingTheory/MvPowerSeries): partial derivatives of MvPowerSeries#39626

Open
justus-springer wants to merge 2 commits into
leanprover-community:masterfrom
justus-springer:justus/MvPowerSeries_pderiv
Open

feat(RingTheory/MvPowerSeries): partial derivatives of MvPowerSeries#39626
justus-springer wants to merge 2 commits into
leanprover-community:masterfrom
justus-springer:justus/MvPowerSeries_pderiv

Conversation

@justus-springer
Copy link
Copy Markdown
Collaborator

Previously, we had formal derivatives for PowerSeries and Polynomial and formal partial derivatives for MvPolynomial, but no formal partial derivatives for MvPowerSeries. This PR adds them. Furthermore, PowerSeries.derivative is refactored to be defined in terms of MvPowerSeries.pderiv, which reduces code duplication (In particular, there is no need to define the bare function PowerSeries.derivativeFun anymore).

Most proofs are direct generalizations from the univariate case. I only had to add a few missing API lemmas, which I am PR'ing separately below:


Open in Gitpod

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 20, 2026

PR summary d24920be61

Import changes for modified files

Dependency changes

File Base Count Head Count Change
Mathlib.RingTheory.PowerSeries.Derivative 1773 1546 -227 (-12.80%)
Mathlib.RingTheory.PowerSeries.Exp 1776 1780 +4 (+0.23%)
Import changes for all files
Files Import difference
Mathlib.RingTheory.PowerSeries.Derivative -227
14 files Mathlib.NumberTheory.LSeries.HurwitzZetaValues Mathlib.NumberTheory.ModularForms.CuspFormSubmodule Mathlib.NumberTheory.ModularForms.DedekindEta Mathlib.NumberTheory.ModularForms.Delta Mathlib.NumberTheory.ModularForms.Derivative Mathlib.NumberTheory.ModularForms.DimensionFormulas.LevelOne Mathlib.NumberTheory.ModularForms.Discriminant Mathlib.NumberTheory.ModularForms.EisensteinSeries.E2.MDifferentiable Mathlib.NumberTheory.ModularForms.EisensteinSeries.E2.Summable Mathlib.NumberTheory.ModularForms.EisensteinSeries.E2.Transform Mathlib.NumberTheory.ModularForms.EisensteinSeries.QExpansion Mathlib.NumberTheory.ModularForms.LevelOne.DimensionFormula Mathlib.NumberTheory.ModularForms.LevelOne.GradedRing Mathlib.NumberTheory.ZetaValues
1
4 files Mathlib.NumberTheory.BernoulliPolynomials Mathlib.NumberTheory.Bernoulli Mathlib.RingTheory.PowerSeries.Exp Mathlib.RingTheory.PowerSeries.Log
4
Mathlib.RingTheory.MvPowerSeries.Derivative (new file) 1244

Declarations diff

+ coeff_pderivFun
+ coeff_trunc'_mul_trunc'_eq_coeff_mul₂
+ coeff_truncFinset_mul_truncFinset_eq_coeff_mul₂
+ coeff_trunc_mul_trunc_eq_coeff_mul
+ coeff_trunc_mul_trunc_eq_coeff_mul₂
+ derivative_one
+ pderiv
+ pderiv.ext
+ pderivFun
+ pderivFun_C
+ pderivFun_add
+ pderivFun_coe
+ pderivFun_coe_mul_coe
+ pderivFun_mul
+ pderivFun_one
+ pderivFun_smul
+ pderiv_C
+ pderiv_X
+ pderiv_X_of_ne
+ pderiv_X_self
+ pderiv_coe
+ pderiv_inv
+ pderiv_inv'
+ pderiv_invOf
+ pderiv_one
+ pderiv_pow
+ trunc_pderiv
+ trunc_pderivFun
++ coeff_add_single_C
++ coeff_ne_zero_C
++ coeff_pderiv
- derivativeFun_coe_mul_coe

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.


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

@github-actions github-actions Bot added the t-ring-theory Ring theory label May 20, 2026
@mathlib-dependent-issues mathlib-dependent-issues Bot added the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) t-ring-theory Ring theory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant