Repository navigation
feat(Tactic/ComputablePolynomial): poly_decide, axiom-free reflection for Polynomial - #41345
mkaratarakis wants to merge 5 commits into
Conversation
PR summary e7ece7afa0
|
| Files | Import difference |
|---|---|
Mathlib.Tactic |
4 |
Mathlib.Tactic.ComputablePolynomial.Basic (new file) |
1159 |
Mathlib.Tactic.ComputablePolynomial.OfList (new file) |
1160 |
Mathlib.Tactic.ComputablePolynomial.Ring (new file) |
1161 |
Mathlib.Tactic.ComputablePolynomial.Reflect (new file) |
1170 |
Declarations diff (regex)
+ C
+ CHom
+ SparsePoly
+ TL
+ X
+ addCore
+ addCore_degLt
+ addCore_sorted
+ bridgeSimpK
+ coeff_toPolyCore_head
+ coeff_toPolyCore_listCoeff
+ coeff_toPolyCore_of_degLt
+ dedupList
+ dedupList_degLt
+ dedupList_sorted
+ degLt
+ degLt_of_sorted_cons
+ divMod
+ divModK
+ dvd_of_divMod
+ eq_of_core
+ insertK
+ instance : Add (SparsePoly R)
+ instance : Algebra R (SparsePoly R)
+ instance : CommRing (SparsePoly R)
+ instance : Mul (SparsePoly R)
+ instance : Neg (SparsePoly R)
+ instance : One (SparsePoly R)
+ instance : Zero (SparsePoly R)
+ instance [CommRing R] [Lean.ToFormat R] : Lean.ToFormat (SparsePoly R)
+ kAdd
+ kMul
+ kNeg
+ kPow
+ kSub
+ listCoeff
+ ne_of_core
+ ofList
+ ofSortedList
+ ofSortedList_of_nonzero
+ polyNeBool
+ sq_expand
+ toPoly
+ toPolyCore
+ toPolyCore_C_coeffs
+ toPolyCore_X_coeffs
+ toPolyCore_addCore
+ toPolyCore_append
+ toPolyCore_cons
+ toPolyCore_cons_split
+ toPolyCore_dedupList
+ toPolyCore_divMod
+ toPolyCore_divModK
+ toPolyCore_filter_nonzero
+ toPolyCore_injective_of_sorted
+ toPolyCore_insertK
+ toPolyCore_kAdd
+ toPolyCore_kMul
+ toPolyCore_kNeg
+ toPolyCore_kPow
+ toPolyCore_kSub
+ toPolyCore_mergeSort
+ toPolyCore_mul_x
+ toPolyCore_mul_y
+ toPolyCore_one_coeffs
+ toPolyCore_perm
+ toPolyCore_zero_coeffs
+ toPoly_C
+ toPoly_X
+ toPoly_add
+ toPoly_injective
+ toPoly_mul
+ toPoly_neg
+ toPoly_ofList
+ toPoly_one
+ toPoly_zero
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
e7ece7a).
- +101 new declarations
- −0 removed declarations
+SparsePoly
+SparsePoly.C
+SparsePoly.CHom
+SparsePoly.Kernel.TL
+SparsePoly.Kernel.bridgeSimpK
+SparsePoly.Kernel.coeff_toPolyCore_listCoeff
+SparsePoly.Kernel.divMod
+SparsePoly.Kernel.divModK
+SparsePoly.Kernel.divModK.eq_def
+SparsePoly.Kernel.dvd_of_divMod
+SparsePoly.Kernel.eq_of_core
+SparsePoly.Kernel.insertK
+SparsePoly.Kernel.insertK.eq_def
+SparsePoly.Kernel.kAdd
+SparsePoly.Kernel.kMul
+SparsePoly.Kernel.kNeg
+SparsePoly.Kernel.kPow
+SparsePoly.Kernel.kPow.eq_def
+SparsePoly.Kernel.kSub
+SparsePoly.Kernel.listCoeff
+SparsePoly.Kernel.ne_of_core
+SparsePoly.Kernel.polyNeBool
+SparsePoly.Kernel.reifyK
+SparsePoly.Kernel.toPolyCore_C_coeffs
+SparsePoly.Kernel.toPolyCore_X_coeffs
+SparsePoly.Kernel.toPolyCore_cons
+SparsePoly.Kernel.toPolyCore_cons_split
+SparsePoly.Kernel.toPolyCore_divMod
+SparsePoly.Kernel.toPolyCore_divModK
+SparsePoly.Kernel.toPolyCore_insertK
+SparsePoly.Kernel.toPolyCore_kAdd
+SparsePoly.Kernel.toPolyCore_kMul
+SparsePoly.Kernel.toPolyCore_kNeg
+SparsePoly.Kernel.toPolyCore_kPow
+SparsePoly.Kernel.toPolyCore_kSub
+SparsePoly.Kernel.toPolyCore_one_coeffs
+SparsePoly.Kernel.toPolyCore_zero_coeffs
+SparsePoly.X
+SparsePoly.addCore
+SparsePoly.addCore.eq_def
+SparsePoly.addCore_degLt
+SparsePoly.addCore_sorted
+SparsePoly.casesOn
+SparsePoly.coeff_toPolyCore_head
+SparsePoly.coeff_toPolyCore_of_degLt
+SparsePoly.coeffs
+SparsePoly.ctorIdx
+SparsePoly.dedupList
+SparsePoly.dedupList.eq_def
+SparsePoly.dedupList_degLt
+SparsePoly.dedupList_sorted
+SparsePoly.degLt
+SparsePoly.degLt_of_sorted_cons
+SparsePoly.ext
+SparsePoly.ext_iff
+SparsePoly.instAdd
+SparsePoly.instAlgebra
+SparsePoly.instCommRing
+SparsePoly.instMul
+SparsePoly.instNeg
+SparsePoly.instOne
+SparsePoly.instToFormat
+SparsePoly.instZero
+SparsePoly.mk
+SparsePoly.mk.congr_simp
+SparsePoly.mk.inj
+SparsePoly.mk.injEq
+SparsePoly.mk.noConfusion
+SparsePoly.mk.sizeOf_spec
+SparsePoly.noConfusion
+SparsePoly.noConfusionType
+SparsePoly.nonzero
+SparsePoly.ofList
+SparsePoly.ofSortedList
+SparsePoly.ofSortedList_of_nonzero
+SparsePoly.rec
+SparsePoly.recOn
+SparsePoly.sorted
+SparsePoly.toPoly
+SparsePoly.toPolyCore
+SparsePoly.toPolyCore.eq_def
+SparsePoly.toPolyCore_addCore
+SparsePoly.toPolyCore_append
+SparsePoly.toPolyCore_dedupList
+SparsePoly.toPolyCore_filter_nonzero
+SparsePoly.toPolyCore_injective_of_sorted
+SparsePoly.toPolyCore_mergeSort
+SparsePoly.toPolyCore_mul_x
+SparsePoly.toPolyCore_mul_y
+SparsePoly.toPolyCore_perm
+SparsePoly.toPoly_C
+SparsePoly.toPoly_X
+SparsePoly.toPoly_add
+SparsePoly.toPoly_injective
+SparsePoly.toPoly_mul
+SparsePoly.toPoly_neg
+SparsePoly.toPoly_ofList
+SparsePoly.toPoly_one
+SparsePoly.toPoly_zero
+tacticPoly_compute
+tacticPoly_decideNo changes to strong technical debt.
Increase in weak tech debt: (relative, absolute) = (4.00, 0.00)
| Current number | Change | Type (weak) |
|---|---|---|
| 5004 | 4 | exposed public sections |
Current commit e7ece7afa0
Reference commit c093ecaf22
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.sh pr_summary
- The
relativevalue is the weighted sum of the differences with weight given by the inverse of the current value of the statistic. - The
absolutevalue is therelativevalue divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).
…ivariate polynomial Co-Authored-By: Claude Fable 5 <[email protected]>
…ity of toPoly Co-Authored-By: Claude Fable 5 <[email protected]>
… for SparsePoly Co-Authored-By: Claude Fable 5 <[email protected]>
… for Polynomial Co-Authored-By: Claude Fable 5 <[email protected]>
739a65a to
4ee8834
Compare
|
This PR/issue depends on: |
|
LLM-generated |
The
poly_decide/poly_computetactic: prove equalities and inequalities ofPolynomial Rby reflecting onto kernel-reducible normal-form coefficient lists (structural recursion, sodecide +kernelreduces them) — axiom-free, nonative_decide. The#guard_msgs-checked#print axiomstest asserts exactly[propext, Classical.choice, Quot.sound]. Depends only on parts 1–3 (not on the division/gcd line).