Skip to content

feat(NumberTheory/NumberField/Cyclotomic/CMField): index of the real units of ℚ(ζ_{p^k}) - #46785

Draft
xroblot wants to merge 3 commits into
leanprover-community:masterfrom
xroblot:cyclotomic-indexRealUnits
Draft

xroblot wants to merge 3 commits into
leanprover-community:masterfrom
xroblot:cyclotomic-indexRealUnits

Conversation

@xroblot

@xroblot xroblot commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

This PR proves that, for an odd prime p, the units of the cyclotomic field ℚ(ζ_{p^(k+1)}) are generated by the real units and the roots of unity, that is, the index indexRealUnits is equal to 1.

This result goes in a new file NumberField/Cyclotomic/CMField.lean. We also move IsCyclotomicExtension.Rat.isCMField and the corresponding instance from NumberField/CMField.lean to this new file where they belong.

This PR also make unitsComplexConj a def and deprecate Units.complexConj_eq_self_iff in favor of the new Units.ringOfIntegersComplexConj_eq_self_iff.

🤖 This result is used in the proof of the Kronecker-Weber theorem in #46376. Claude extracted it from my SKW project.


@github-actions github-actions Bot added the large-import Automatically added label for PRs with a significant increase in transitive imports label Nov 30, 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 Nov 30, 2026
@mathlib-dependent-issues

Copy link
Copy Markdown

This PR/issue depends on:

@github-actions

github-actions Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

PR summary 09d67beb35

Import changes for modified files

Dependency changes

File Base Count Head Count Change
Mathlib.NumberTheory.NumberField.CMField 3429 3154 -275 (-8.02%)
Import changes for all files
Files Import difference
Mathlib.NumberTheory.NumberField.CMField -275
5 files Mathlib.NumberTheory.FLT.Three Mathlib.NumberTheory.NumberField.Cyclotomic.Galois Mathlib.NumberTheory.NumberField.Cyclotomic.Ideal Mathlib.NumberTheory.NumberField.Cyclotomic.PID Mathlib.NumberTheory.NumberField.Ideal.Basic
1
Mathlib.NumberTheory.NumberField.Cyclotomic.CMField (new file) 3623

Declarations diff (regex)

+ Algebra.intCast_trace_int_eq_sum_automorphisms
+ Algebra.norm_one_add_smul_eq_one_of_isUnit
+ Units.ringOfIntegersComplexConj_eq_self_iff
+ coe_unitsComplexConj
+ dvd_of_intCast_dvd_sum_zsmul_toInteger_pow
+ dvd_sub_of_intCast_dvd_sum_zsmul_toInteger_pow
+ exists_natCast_dvd_pow_sub_intCast_pow
+ exists_notMem_and_notMem_and_spanSingleton_div_eq
+ indexRealUnits_eq_one_of_prime
+ indexRealUnits_eq_one_of_prime_pow
+ quotientMk_span_zeta_sub_one_apply
+ quotientMk_span_zeta_sub_one_comp
+ zeta_sub_one_dvd_trace_sub_smul
+ zeta_sub_one_pow_dvd_norm_one_add_smul_sub

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)

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

  • +14 new declarations
  • −0 removed declarations
+Algebra.intCast_trace_int_eq_sum_automorphisms
+Algebra.norm_one_add_smul_eq_one_of_isUnit
+FractionalIdeal.exists_notMem_and_notMem_and_spanSingleton_div_eq
+IsCyclotomicExtension.Rat.exists_natCast_dvd_pow_sub_intCast_pow
+IsCyclotomicExtension.Rat.indexRealUnits_eq_one_of_prime
+IsCyclotomicExtension.Rat.indexRealUnits_eq_one_of_prime_pow
+IsCyclotomicExtension.Rat.quotientMk_span_zeta_sub_one_apply
+IsCyclotomicExtension.Rat.quotientMk_span_zeta_sub_one_comp
+IsCyclotomicExtension.Rat.zeta_sub_one_dvd_trace_sub_smul
+IsCyclotomicExtension.Rat.zeta_sub_one_pow_dvd_norm_one_add_smul_sub
+IsPrimitiveRoot.dvd_of_intCast_dvd_sum_zsmul_toInteger_pow
+IsPrimitiveRoot.dvd_sub_of_intCast_dvd_sum_zsmul_toInteger_pow
+NumberField.IsCMField.Units.ringOfIntegersComplexConj_eq_self_iff
+NumberField.IsCMField.coe_unitsComplexConj

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

Current commit 09d67beb35
Reference commit 9a422c5b43

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

@github-actions github-actions Bot removed the large-import Automatically added label for PRs with a significant increase in transitive imports label Dec 2, 2026
@xroblot xroblot changed the title feat(NumberTheory/NumberField/CMField): index of the real units of ℚ(ζ_{p^k}) feat(NumberTheory/NumberField/Cyclotomic/CMField): index of the real units of ℚ(ζ_{p^k}) Dec 2, 2026

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)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant