Skip to content

feat: add various lemmas about cyclotomic extensions - #45512

Open
riccardobrasca wants to merge 7 commits into
leanprover-community:masterfrom
riccardobrasca:RB/cyclot
Open

riccardobrasca wants to merge 7 commits into
leanprover-community:masterfrom
riccardobrasca:RB/cyclot

Conversation

@riccardobrasca

Copy link
Copy Markdown
Member

@github-actions

github-actions Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

PR summary 45a6f32e8f

Import changes for modified files

Dependency changes

File Base Count Head Count Change
Mathlib.NumberTheory.NumberField.Cyclotomic.Ideal 3606 3607 +1 (+0.03%)
Import changes for all files
Files Import difference
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

Declarations diff (regex)

+ Algebra.intCast_trace_int_eq_sum_automorphisms
+ Algebra.norm_one_add_smul_eq_one_of_isUnit
+ 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
+ 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 45a6f32).

  • +10 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.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

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

Current commit 45a6f32e8f
Reference commit bce3fc3a37

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

@riccardobrasca

Copy link
Copy Markdown
Member Author

@xroblot can you have another look? I think all your comments are addressed.

@xroblot

xroblot commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator

LGTM, thanks!

@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 Nov 10, 2026
@mathlib-merge-conflicts

Copy link
Copy Markdown

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

@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 Nov 11, 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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants