[Merged by Bors] - refactor(NumberTheory): golf Mathlib/NumberTheory/ArithmeticFunction/Zeta#38278
[Merged by Bors] - refactor(NumberTheory): golf Mathlib/NumberTheory/ArithmeticFunction/Zeta#38278yuanyi-350 wants to merge 3 commits intoleanprover-community:masterfrom
Mathlib/NumberTheory/ArithmeticFunction/Zeta#38278Conversation
PR summary 4fceb4697eImport changes for modified filesNo significant changes to the import graph Import changes for all files
Declarations diffNo declarations were harmed in the making of this PR! 🐙 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 No changes to technical debt.This script lives in the
|
|
I ran a profiler comparison for the changed declarations in this PR. Results (seconds):
Overall:
|
|
!radar |
|
Benchmark results for c4aa6b0 against 4fceb46 are in. No significant results found. @yuanyi-350
Small changes (1✅, 1🟥)
|
FLDutchmann
left a comment
There was a problem hiding this comment.
Thanks! These proofs are much nicer.
| theorem coe_zeta_mul_comm [Semiring R] {f : ArithmeticFunction R} : ζ * f = f * ζ := by | ||
| ext x | ||
| rw [coe_zeta_mul_apply, coe_mul_zeta_apply] | ||
| rw [mul_apply, ← map_swap_divisorsAntidiagonal, Finset.sum_map] | ||
| simp [mul_apply] |
There was a problem hiding this comment.
Can you move this to be above coe_zeta_mul_apply? That way moe_coe_zeta and coe_zeta_mul will be next to eachother in the docs.
There was a problem hiding this comment.
Also this lemma is true for zeta replaced by any ArithmeticFunction Nat, but if this breaks anything I'm happy to fix this in a follow-up PR.
There was a problem hiding this comment.
Thank you for the suggestion! I'm actually not an expert in this field and don't completely understand the broader definitions. Given that, I'd rather not touch this part right now just to be safe. Would it be okay if we hold off on this change for now?
Co-authored-by: Michael Stoll <99838730+MichaelStollBayreuth@users.noreply.github.com>
MichaelStollBayreuth
left a comment
There was a problem hiding this comment.
maintainer merge
|
🚀 Pull request has been placed on the maintainer queue by MichaelStollBayreuth. |
|
Thanks! bors merge |
…/Zeta` (#38278) - proves `coe_zeta_mul_comm` directly by reindexing the divisor antidiagonal with `map_swap_divisorsAntidiagonal` - derives `coe_mul_zeta_apply` from `coe_zeta_mul_comm` and `coe_zeta_mul_apply` Extracted from #38144 [](https://gitpod.io/from-referrer/)
|
Pull request successfully merged into master. Build succeeded: |
Mathlib/NumberTheory/ArithmeticFunction/ZetaMathlib/NumberTheory/ArithmeticFunction/Zeta
coe_zeta_mul_commdirectly by reindexing the divisor antidiagonal withmap_swap_divisorsAntidiagonalcoe_mul_zeta_applyfromcoe_zeta_mul_commandcoe_zeta_mul_applyExtracted from #38144