Skip to content

[Merged by Bors] - feat: radical lemmas for natural numbers and integers#35673

Closed
Parcly-Taxel wants to merge 17 commits intoleanprover-community:masterfrom
Parcly-Taxel:radical-lemmas
Closed

[Merged by Bors] - feat: radical lemmas for natural numbers and integers#35673
Parcly-Taxel wants to merge 17 commits intoleanprover-community:masterfrom
Parcly-Taxel:radical-lemmas

Conversation

@Parcly-Taxel
Copy link
Collaborator

@Parcly-Taxel Parcly-Taxel commented Feb 23, 2026

These are needed as part of a project I'm doing for my PhD under Frank Stephan.

@github-actions github-actions bot added the large-import Automatically added label for PRs with a significant increase in transitive imports label Feb 23, 2026
@github-actions github-actions bot added the t-ring-theory Ring theory label Feb 23, 2026
@github-actions
Copy link

github-actions bot commented Feb 23, 2026

PR summary 592989bdba

Import changes exceeding 2%

% File
+28.28% Mathlib.RingTheory.Radical.NatInt

Import changes for modified files

Dependency changes

File Base Count Head Count Change
Mathlib.RingTheory.Radical.NatInt 916 1175 +259 (+28.28%)
Import changes for all files
Files Import difference
Mathlib.RingTheory.Radical.NatInt 259
Mathlib.RingTheory.Radical (new file) 1176

Declarations diff

+ UniqueFactorizationMonoid.primeFactors_eq_primeFactors_natAbs
+ radical_natAbs_eq_radical
+ self_lt_radical_iff
++ radical_eq_one_iff
++ radical_eq_prod_primeFactors
++- one_lt_radical_iff
++- radical_le_one_iff
++- radical_pos
++- two_le_radical_iff

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 scripts/pr_summary/declarations_diff.sh contains some details about this script.


No changes to technical debt.

You can run this locally as

./scripts/reporting/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).

@vihdzp
Copy link
Collaborator

vihdzp commented Feb 23, 2026

This is quite a large import change. Maybe we could have Mathlib.RingTheory.Radical.Basic with the existing material and Mathlib.RingTheory.Radical.Int with the new lemmas?

@Parcly-Taxel
Copy link
Collaborator Author

This is quite a large import change. Maybe we could have Mathlib.RingTheory.Radical.Basic with the existing material and Mathlib.RingTheory.Radical.Int with the new lemmas?

I had that in mind, but should Mathlib.RingTheory.Radical.Int also include the lemmas specific to Nat?

@Parcly-Taxel
Copy link
Collaborator Author

This is quite a large import change. Maybe we could have Mathlib.RingTheory.Radical.Basic with the existing material and Mathlib.RingTheory.Radical.Int with the new lemmas?

OK, done.

@vihdzp
Copy link
Collaborator

vihdzp commented Feb 23, 2026

I think the idea is that in your first PR you just move the file entirely, and in a follow-up PR you add deprecated_module. That way the diff stays small.

@Parcly-Taxel
Copy link
Collaborator Author

I think the idea is that in your first PR you just move the file entirely, and in a follow-up PR you add deprecated_module. That way the diff stays small.

Done.

@github-actions github-actions bot added file-removed A Lean module was (re)moved without a `deprecated_module` annotation and removed large-import Automatically added label for PRs with a significant increase in transitive imports labels Feb 23, 2026
@Parcly-Taxel Parcly-Taxel requested a review from vihdzp February 23, 2026 08:22
Copy link
Collaborator

@vihdzp vihdzp left a comment

Choose a reason for hiding this comment

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

LGTM, just some minor style/grammar remarks.

@Parcly-Taxel Parcly-Taxel requested a review from vihdzp February 23, 2026 09:04
@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 Feb 24, 2026
@mathlib-merge-conflicts
Copy link

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 Feb 25, 2026
@riccardobrasca
Copy link
Member

If I understand correctly you are splitting a file and also adding stuff. Can you please open a PR only with the splitting? Thanks!

@riccardobrasca riccardobrasca added the awaiting-author A reviewer has asked the author a question or requested changes. label Mar 2, 2026
@Parcly-Taxel Parcly-Taxel added blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) and removed awaiting-author A reviewer has asked the author a question or requested changes. labels Mar 4, 2026
@Parcly-Taxel
Copy link
Collaborator Author

If I understand correctly you are splitting a file and also adding stuff. Can you please open a PR only with the splitting? Thanks!

#36098 does the splitting.

@mathlib-dependent-issues mathlib-dependent-issues bot removed the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Mar 4, 2026
@github-actions github-actions bot added large-import Automatically added label for PRs with a significant increase in transitive imports and removed file-removed A Lean module was (re)moved without a `deprecated_module` annotation labels Mar 4, 2026
@Parcly-Taxel Parcly-Taxel requested review from riccardobrasca and removed request for vihdzp March 4, 2026 09:21
@riccardobrasca
Copy link
Member

!radar

@leanprover-radar
Copy link

leanprover-radar commented Mar 5, 2026

Benchmark results for 78b4420 against 592989b are in! @riccardobrasca

  • build//instructions: -5.3G (-0.00%)

No significant changes detected.

@riccardobrasca
Copy link
Member

Thanks!

bors merge

@mathlib-triage mathlib-triage bot added the ready-to-merge This PR has been sent to bors. label Mar 5, 2026
mathlib-bors bot pushed a commit that referenced this pull request Mar 5, 2026
These are needed as part of a project I'm doing for my PhD under Frank Stephan.

Co-authored-by: Parcly Taxel <reddeloostw@gmail.com>
@mathlib-bors
Copy link
Contributor

mathlib-bors bot commented Mar 5, 2026

This PR was included in a batch that was canceled, it will be automatically retried

mathlib-bors bot pushed a commit that referenced this pull request Mar 5, 2026
These are needed as part of a project I'm doing for my PhD under Frank Stephan.

Co-authored-by: Parcly Taxel <reddeloostw@gmail.com>
@mathlib-bors
Copy link
Contributor

mathlib-bors bot commented Mar 5, 2026

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat: radical lemmas for natural numbers and integers [Merged by Bors] - feat: radical lemmas for natural numbers and integers Mar 5, 2026
@mathlib-bors mathlib-bors bot closed this Mar 5, 2026
@Parcly-Taxel Parcly-Taxel deleted the radical-lemmas branch March 5, 2026 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

large-import Automatically added label for PRs with a significant increase in transitive imports ready-to-merge This PR has been sent to bors. t-ring-theory Ring theory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants