Skip to content

feat(Tactic/Polynomial): poly_dvd_cert, certificate-based polynomial divisibility - #41347

Open
mkaratarakis wants to merge 7 commits into
leanprover-community:masterfrom
mkaratarakis:polydvdcert
Open

mkaratarakis wants to merge 7 commits into
leanprover-community:masterfrom
mkaratarakis:polydvdcert

Conversation

@mkaratarakis

@mkaratarakis mkaratarakis commented Jul 4, 2026 •

Copy link
Copy Markdown
Contributor

The poly_dvd_cert tactic: prove p ∣ q for Polynomial K polyrith-style - search the quotient uncertified in compiled MetaM (pseudo-division, so the certified identity is division-free), then verify with ring and cancel the leading-coefficient unit. Works over any field with concrete or symbolic coefficients, for monic divisors over any commutative ring, and for unit leading coefficients.

@github-actions github-actions Bot added the t-meta Tactics, attributes or user commands label Jul 4, 2026
@github-actions

github-actions Bot commented Jul 4, 2026 •

Copy link
Copy Markdown

PR summary 494bcd2969

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference
Mathlib.Tactic 1
Mathlib.Tactic.ComputablePolynomial.DvdCert (new file) 1287

Declarations diff (regex)

+ big_dvd
+ kAdd
+ kConv
+ kMul
+ kNeg
+ kPow
+ kSub
+ kZip
+ pseudoQuotient

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

  • +1 new declarations
  • −0 removed declarations
+Polynomial.DvdCert.tacticPoly_dvd_cert

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

Current commit 494bcd2969
Reference commit 0c82d69c15

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

@JovanGerb

JovanGerb commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor

I will unassign myself as there is no concensus that we want to merge this series of PRs (and because it is AI generated)

@JovanGerb JovanGerb removed their assignment Jul 15, 2026
@mkaratarakis mkaratarakis changed the title feat(Tactic/ComputablePolynomial): poly_dvd_cert, certificate-based polynomial divisibility feat(Tactic/Polynomial): poly_dvd_cert, certificate-based polynomial divisibility Aug 4, 2026
@mkaratarakis mkaratarakis reopened this Aug 4, 2026
@JovanGerb

Copy link
Copy Markdown
Contributor

Are there places in mathlib where we have polynomial divisibility goals that this tactic can solve?

@mkaratarakis

Copy link
Copy Markdown
Contributor Author

LLM-generated

@github-actions github-actions Bot added the LLM-generated PRs with substantial input from LLMs - review accordingly label Aug 4, 2026
@mkaratarakis

Copy link
Copy Markdown
Contributor Author

I am marking this one as LLM-generated, since I used Claude for it. It was written in parallel with the rest of the development, which is why it ended up in the same series. I will investigate whether it is useful in mathlib but I am also happy to mark this WIP or close it.

However, the main work and what the others wanted is the computable representation of polynomials rather than the tactics. Would it be possible to take a look at this first? The first #41339 is the first PR of the series. We can discuss what tactics are worth building on the API afterwards

@mathlib-triage mathlib-triage Bot assigned eric-wieser and unassigned kim-em Aug 28, 2026
@Vierkantor Vierkantor added the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Sep 4, 2026
@mkaratarakis

Copy link
Copy Markdown
Contributor Author

-awaiting-author

@github-actions github-actions Bot removed the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Sep 24, 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

LLM-generated PRs with substantial input from LLMs - review accordingly t-meta Tactics, attributes or user commands

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants