Repository navigation
A Gröbner root in decimals is checked to its precision - #2322
Merged
Rafael-SOWNet merged 1 commit intoNov 1, 2026
Merged
Rafael-SOWNet merged 1 commit into
Rafael-SOWNet merged 1 commit into
Conversation
The Gröbner triangularisation kept a tuple only where every equation came back exactly zero with the tuple put in. A root of a univariate factor with no closed form is found numerically, and no structural pass makes its residual zero, so one such root declined the whole system. The eliminator it fell back to answered in decimals and could lose solutions: x^2 + y^2 = 2, x^3 - y = -2 eliminates to (x + 1) times a quintic with no roots in radicals, and 2.6.0 and master both answered its four complex solutions without either real one, (-1, 1) and (-1.3455, -0.4356). A tuple with a decimal in it is now kept where each equation's residual is under 1E-10 of the largest term the equation adds up to. A tuple that is no solution, as a basis out of shape position can give, misses by whole quantities and fails this as it fails the exact test. An exact tuple is still checked exactly, and the decimal test is made only once the exact one has failed. An entry in decimals is listed as the number it evaluates to, rather than as the polynomial in decimals back-substitution wrote it as. Generated systems with known solutions (e387 syscheck, 1190 systems): known solutions missing 10 -> 7, wrong rows 0 -> 0. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2322 +/- ##
==========================================
- Coverage 86.75% 86.75% -0.01%
==========================================
Files 312 312
Lines 68338 68351 +13
Branches 19870 19877 +7
==========================================
+ Hits 59289 59295 +6
- Misses 4891 4895 +4
- Partials 4158 4161 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Rafael-SOWNet
deleted the
a-groebner-root-in-decimals-is-checked-to-its-precision
branch
November 1, 2026 21:27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Gröbner triangularisation keeps a tuple only where every equation comes back exactly zero with the tuple put in. A root of a univariate factor with no closed form is found numerically, and its residual is never exactly zero, so one such root declined the whole system. The eliminator it fell back to answered in decimals and could lose solutions.
x^2 + y^2 = 2, x^3 - y = -2eliminates to(x + 1)times a quintic with no roots in radicals. 2.6.0 and master both answer its four complex solutions without either real one:(-1, 1)(-1.3455, -0.4356)A tuple with a decimal in it is now kept where each equation's residual is under
1E-10of the largest term the equation adds up to. A tuple that is no solution, as a basis out of shape position can give, misses by whole quantities. An exact tuple is still checked exactly, and the decimal test runs only after the exact one has failed. An entry in decimals is listed as the number it evaluates to.No issue was filed. A check of generated systems with known solutions (1190 systems) found it: known solutions missing 10 → 7, wrong rows 0 → 0. The three recovered are all of that shape (
x^2 + y^2 = 20, x^3 - y = -12andx^2 + y^2 = 5, x^3 - y = 1besides the one above), and the seven still missing are missing on master too.BREAKING-CHANGES.mdhas an entry. Test:GroebnerSystemTest.ARationalSolutionBesideDecimalOnesIsKept, which fails on master.APolynomialSystemWithDecimalRootsIsStillAnswered's comment described the old decline, and is updated.🤖 Generated with Claude Code