Skip to content

[Merged by Bors] - feat: add Mathlib.RingTheory.RootsOfUnity.CyclotomicUnits#30085

Closed
riccardobrasca wants to merge 17 commits intoleanprover-community:masterfrom
riccardobrasca:RB/cyclot-units
Closed

[Merged by Bors] - feat: add Mathlib.RingTheory.RootsOfUnity.CyclotomicUnits#30085
riccardobrasca wants to merge 17 commits intoleanprover-community:masterfrom
riccardobrasca:RB/cyclot-units

Conversation

@riccardobrasca
Copy link
Member

@riccardobrasca riccardobrasca commented Sep 30, 2025

We add basic results about cyclotomic units.

From flt-regular.


Open in Gitpod

@riccardobrasca riccardobrasca added t-number-theory Number theory (also use t-algebra or t-analysis to specialize) t-algebra Algebra (groups, rings, fields, etc) labels Sep 30, 2025
@github-actions github-actions bot added the t-ring-theory Ring theory label Sep 30, 2025
@github-actions
Copy link

github-actions bot commented Sep 30, 2025

PR summary 34812cd2a7

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference
Mathlib.RingTheory.RootsOfUnity.CyclotomicUnits (new file) 1317

Declarations diff

+ associated_pow_add_sub_sub_one
+ associated_pow_sub_one_pow_of_coprime
+ associated_sub_one_pow_sub_one_of_coprime
+ geom_sum_isUnit
+ geom_sum_isUnit'
+ ntRootsFinset_pairwise_associated_sub_one_sub_of_prime
+ pow_sub_one_eq_geom_sum_mul_geom_sum_inv_mul_pow_sub_one
+ pow_sub_one_mul_geom_sum_eq_pow_sub_one_mul_geom_sum

You can run this locally as follows
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>

The doc-module for script/declarations_diff.sh contains some details about this script.


No changes to technical debt.

You can run this locally as

./scripts/technical-debt-metrics.sh 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).

Copy link
Contributor

@faenuccio faenuccio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Why not adding also

theorem geom_sum_isUnit' (hζ : IsPrimitiveRoot ζ n) (hj : j.Coprime n) (hj_Unit : IsUnit (j : A)) :
    IsUnit (∑ i ∈ range j, ζ ^ i) := by
  match n with
  | 0 => simp_all
  | 1 => simp_all
  | n +2 => exact geom_sum_isUnit hζ (by linarith) hj

@faenuccio faenuccio added the awaiting-author A reviewer has asked the author a question or requested changes. label Oct 1, 2025
@faenuccio faenuccio self-assigned this Oct 1, 2025
riccardobrasca and others added 12 commits October 1, 2025 14:18
Co-authored-by: Filippo A. E. Nuccio <filippo.nuccio@univ-st-etienne.fr>
Co-authored-by: Filippo A. E. Nuccio <filippo.nuccio@univ-st-etienne.fr>
Co-authored-by: Filippo A. E. Nuccio <filippo.nuccio@univ-st-etienne.fr>
Co-authored-by: Filippo A. E. Nuccio <filippo.nuccio@univ-st-etienne.fr>
Co-authored-by: Filippo A. E. Nuccio <filippo.nuccio@univ-st-etienne.fr>
Co-authored-by: Filippo A. E. Nuccio <filippo.nuccio@univ-st-etienne.fr>
@riccardobrasca riccardobrasca removed the awaiting-author A reviewer has asked the author a question or requested changes. label Oct 5, 2025
@faenuccio
Copy link
Contributor

Thanks, it all LGTM. Perhaps, before merging, can you add a line of todo (perhaps taken from your FLT project) so that other contributors might know what (not) to work on?

@faenuccio
Copy link
Contributor

maintainer delegate

@github-actions
Copy link

🚀 Pull request has been placed on the maintainer queue by faenuccio.

@ghost ghost added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Oct 15, 2025
@riccardobrasca
Copy link
Member Author

Thanks, it all LGTM. Perhaps, before merging, can you add a line of todo (perhaps taken from your FLT project) so that other contributors might know what (not) to work on?

This is essentially everything we have in flt-regular, so everything else has to be done

@riccardobrasca riccardobrasca changed the title feat: add Mathlib.RingTheory.RootsOfUnity.Units feat: add Mathlib.RingTheory.RootsOfUnity.CyclotomicUnits Oct 15, 2025
Copy link
Contributor

@Vierkantor Vierkantor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! 🎉

bors merge

@ghost ghost added ready-to-merge This PR has been sent to bors. and removed maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. labels Oct 15, 2025
mathlib-bors bot pushed a commit that referenced this pull request Oct 15, 2025
We add basic results about cyclotomic units.

From `flt-regular`.
@mathlib-bors
Copy link
Contributor

mathlib-bors bot commented Oct 15, 2025

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat: add Mathlib.RingTheory.RootsOfUnity.CyclotomicUnits [Merged by Bors] - feat: add Mathlib.RingTheory.RootsOfUnity.CyclotomicUnits Oct 15, 2025
@mathlib-bors mathlib-bors bot closed this Oct 15, 2025
Jlh18 pushed a commit to Jlh18/mathlib4 that referenced this pull request Oct 24, 2025
…-community#30085)

We add basic results about cyclotomic units.

From `flt-regular`.
BeibeiX0 pushed a commit to BeibeiX0/mathlib4 that referenced this pull request Nov 7, 2025
…-community#30085)

We add basic results about cyclotomic units.

From `flt-regular`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge This PR has been sent to bors. t-algebra Algebra (groups, rings, fields, etc) t-number-theory Number theory (also use t-algebra or t-analysis to specialize) t-ring-theory Ring theory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants