Skip to content

feat(NumberTheory/NumberField): summability of the prime ideal zeta sum - #42567

Open
xroblot wants to merge 15 commits into
leanprover-community:masterfrom
xroblot:summable_primeIdealZetaSum
Open

xroblot wants to merge 15 commits into
leanprover-community:masterfrom
xroblot:summable_primeIdealZetaSum

Conversation

@xroblot

@xroblot xroblot commented Aug 8, 2026 •

Copy link
Copy Markdown
Collaborator

The main result is that the prime ideal zeta sum of a number field converges for real exponents greater than one. It follows that the set of all nonzero prime ideals has Dirichlet density one.

The mathematics and design are mine. Claude Code was used as a coding assistant and for the housekeeping around this PR. 🤖


@github-actions github-actions Bot added the large-import Automatically added label for PRs with a significant increase in transitive imports label Aug 8, 2026
@xroblot xroblot added the WIP Work in progress label Aug 8, 2026
@github-actions github-actions Bot added the tech debt Fixes cross-cutting technical debt, see the "technical debt counters" stream on zulip label Aug 8, 2026
@github-actions

github-actions Bot commented Aug 8, 2026 •

Copy link
Copy Markdown

PR summary 4221c701ac

Import changes exceeding 2%

% File
+43.91% Mathlib.NumberTheory.NumberField.DirichletDensity

Import changes for modified files

Dependency changes

File Base Count Head Count Change
Mathlib.NumberTheory.NumberField.DirichletDensity 2489 3582 +1093 (+43.91%)
Mathlib.NumberTheory.Padics.HeightOneSpectrum 2620 2635 +15 (+0.57%)
Import changes for all files
Files Import difference
Mathlib.NumberTheory.Padics.HeightOneSpectrum 15
Mathlib.NumberTheory.NumberField.DirichletDensity 1093

Declarations diff (regex)

+ _root_.IsDedekindDomain.HeightOneSpectrum.absNorm_ne_zero
+ absNorm_ne_zero_nnreal
+ dirichletDensity_univ
+ hasDirichletDensity_univ
+ infinite_of_isIntegral
+ instance : Infinite (HeightOneSpectrum ℤ) := primesEquivInt.infinite_iff.mpr inferInstance
+ instance : NeZero v.asIdeal := ⟨v.ne_bot⟩
+ instance [IsDedekindDomain A] [IsDedekindDomain B] [Module.IsTorsionFree A B]
+ instance [NumberField K] : Infinite (HeightOneSpectrum (𝓞 K))
+ ncard_primesOver_le
+ primeIdealZetaSum_pos
+ primesEquivInt
+ primesEquiv_apply_coe
+ primesEquiv_symm_apply_asIdeal
+ primesOverEquiv
+ sum_fiber_le
+ summable_primeIdealZetaSum
+ under_eq_iff
++- absNorm_under_dvd_absNorm
+-+ one_lt_absNorm

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 -- stale; merge master and push to refresh)

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

  • +24 new declarations
  • −3 removed declarations
+Ideal.absNorm_under_dvd_absNorm
+Ideal.ncard_primesOver_le
+Ideal.one_lt_absNorm
+IsDedekindDomain.HeightOneSpectrum.absNorm_ne_zero
+IsDedekindDomain.HeightOneSpectrum.infinite_of_isIntegral
+IsDedekindDomain.HeightOneSpectrum.instFiniteSubtypeEqUnderOfIsTorsionFree
+IsDedekindDomain.HeightOneSpectrum.instInfiniteInt
+IsDedekindDomain.HeightOneSpectrum.instNeZeroIdealAsIdeal
+IsDedekindDomain.HeightOneSpectrum.primesEquiv
+IsDedekindDomain.HeightOneSpectrum.primesEquiv.congr_simp
+IsDedekindDomain.HeightOneSpectrum.primesEquivInt
+IsDedekindDomain.HeightOneSpectrum.primesEquivInt_apply_coe
+IsDedekindDomain.HeightOneSpectrum.primesEquivInt_symm_apply
+IsDedekindDomain.HeightOneSpectrum.primesEquiv_apply_coe
+IsDedekindDomain.HeightOneSpectrum.primesEquiv_symm_apply_asIdeal
+IsDedekindDomain.HeightOneSpectrum.primesOverEquiv
+IsDedekindDomain.HeightOneSpectrum.under.congr_simp
+IsDedekindDomain.HeightOneSpectrum.under_eq_iff
+NumberField.HeightOneSpectrum.absNorm_ne_zero_nnreal
+NumberField.Set.dirichletDensity_univ
+NumberField.Set.hasDirichletDensity_univ
+NumberField.Set.primeIdealZetaSum_pos
+NumberField.Set.summable_primeIdealZetaSum
-Rat.HeightOneSpectrum.natGenerator.congr_simp
-Rat.HeightOneSpectrum.primesEquiv
-Rat.IsIntegralClosure.intEquiv.congr_simp
+instInfiniteHeightOneSpectrumRingOfIntegersOfNumberField

Decrease in strong tech debt: (relative, absolute) = (1.00, 0.00)
Current number Change Type (strong)
2206 -1 backward.isDefEq.respectTransparency.types
No changes to weak technical debt.

Current commit 4221c701ac
Reference commit 6972d52c0d

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

@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 Aug 14, 2026
@mathlib-merge-conflicts

Copy link
Copy Markdown

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

@joneugster
joneugster marked this pull request as draft October 24, 2026 02:06
…alZetaSum

# Conflicts:
#	Mathlib/NumberTheory/NumberField/Completion/FinitePlace.lean
#	Mathlib/NumberTheory/NumberField/DirichletDensity.lean
#	Mathlib/NumberTheory/NumberField/Ideal/Basic.lean
#	Mathlib/NumberTheory/Padics/HeightOneSpectrum.lean
#	Mathlib/RingTheory/Ideal/Int.lean
#	Mathlib/RingTheory/Ideal/Norm/AbsNorm.lean
#	Mathlib/RingTheory/Ideal/Quotient/HasFiniteQuotients.lean
@github-actions github-actions Bot removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Oct 24, 2026
@xroblot
xroblot marked this pull request as ready for review October 26, 2026 13:25
@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 Oct 26, 2026
@mathlib-dependent-issues

Copy link
Copy Markdown

@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 Oct 27, 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

blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) large-import Automatically added label for PRs with a significant increase in transitive imports merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) tech debt Fixes cross-cutting technical debt, see the "technical debt counters" stream on zulip WIP Work in progress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant