Skip to content

[Merged by Bors] - feat(Data/Nat/Factorization/PrimePow): add Nat.nontrivial_primeFactors_of_two_le_of_not_isPrimePow#33551

Closed
metakunt wants to merge 6 commits intoleanprover-community:masterfrom
metakunt:primeFactors_nontrivial
Closed

[Merged by Bors] - feat(Data/Nat/Factorization/PrimePow): add Nat.nontrivial_primeFactors_of_two_le_of_not_isPrimePow#33551
metakunt wants to merge 6 commits intoleanprover-community:masterfrom
metakunt:primeFactors_nontrivial

Conversation

@metakunt
Copy link
Copy Markdown
Collaborator

@metakunt metakunt commented Jan 4, 2026

No description provided.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jan 4, 2026

PR summary 4c87e1d930

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ Nat.not_isPrimePow_iff_nontrivial_of_two_le

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

@github-actions github-actions bot added the t-data Data (lists, quotients, numbers, etc) label Jan 4, 2026
Copy link
Copy Markdown
Contributor

@Ruben-VandeVelde Ruben-VandeVelde left a comment

Choose a reason for hiding this comment

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

Thanks!

+awaiting-author

Comment thread Mathlib/Data/Nat/Factorization/PrimePow.lean Outdated
Comment thread Mathlib/Data/Nat/Factorization/PrimePow.lean Outdated
@Ruben-VandeVelde Ruben-VandeVelde added the awaiting-author A reviewer has asked the author a question or requested changes. label Jan 8, 2026
@metakunt metakunt removed the awaiting-author A reviewer has asked the author a question or requested changes. label Jan 9, 2026
@metakunt
Copy link
Copy Markdown
Collaborator Author

metakunt commented Jan 9, 2026

Is it possible to add grind annotations on Finset.card_eq_zero, primeFactors_eq_empty? They are both simp annotated.

@metakunt metakunt changed the title feat(Data/Nat/Factorization/PrimePow): Add Nat.primeFactors_nontrivial_of_two_le_of_not_isPrimePow feat(Data/Nat/Factorization/PrimePow): Add Nat.nontrivial_primeFactors_of_two_le_of_not_isPrimePow Jan 9, 2026
@joneugster joneugster changed the title feat(Data/Nat/Factorization/PrimePow): Add Nat.nontrivial_primeFactors_of_two_le_of_not_isPrimePow feat(Data/Nat/Factorization/PrimePow): add Nat.nontrivial_primeFactors_of_two_le_of_not_isPrimePow Jan 23, 2026
Copy link
Copy Markdown
Contributor

@joneugster joneugster left a comment

Choose a reason for hiding this comment

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

I'm afraid I don't know the answer about grind-annotations. My intuition would say yes, but I haven't used grind much yet.

Anyways the PR looks good to me and seems to already been approved once by @Ruben-VandeVelde.

maintainer merge

@github-actions
Copy link
Copy Markdown

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

@ghost ghost added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Jan 23, 2026
Comment thread Mathlib/Data/Nat/Factorization/PrimePow.lean Outdated
@jcommelin jcommelin added the awaiting-author A reviewer has asked the author a question or requested changes. label Jan 23, 2026
Copy link
Copy Markdown
Contributor

@ocfnash ocfnash 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 d+

Comment thread Mathlib/Data/Nat/Factorization/PrimePow.lean Outdated
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Jan 24, 2026

✌️ metakunt can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@ghost ghost added delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). and removed awaiting-author A reviewer has asked the author a question or requested changes. maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. labels Jan 24, 2026
@metakunt
Copy link
Copy Markdown
Collaborator Author

Thanks.

bors r+

mathlib-bors bot pushed a commit that referenced this pull request Jan 25, 2026
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Jan 25, 2026

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat(Data/Nat/Factorization/PrimePow): add Nat.nontrivial_primeFactors_of_two_le_of_not_isPrimePow [Merged by Bors] - feat(Data/Nat/Factorization/PrimePow): add Nat.nontrivial_primeFactors_of_two_le_of_not_isPrimePow Jan 25, 2026
@mathlib-bors mathlib-bors bot closed this Jan 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). t-data Data (lists, quotients, numbers, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants