Repository navigation
Conversation
f7c6e16 to
4cdc192
Compare
|
Hi, I have an on-going PR under preparation that fixes the issue you probably met with [msolve CI / build-fixed-seed (macos-latest, bash). It should be ready for review end of this week at the latest. |
325fbc3 to
b87f2d7
Compare
b87f2d7 to
03fe820
Compare
|
I stress-tested Method. For each input and block size
I compared both with
A deliberately corrupted basis was flagged, so the checker does catch differences. Results
Timeouts. Of the five msolve timeouts:
I didn't find any wrong results. The testing harness was written and run with the help of Claude Code (generative AI); I reviewed the results. |
|
I re-ran the cases that timed out in my earlier stress test on a server: 2× Xeon Gold 6246R, 1.5 TB RAM. Each case ran with a 6 h limit, msolve at 03fe820 used
Results
Times are wall clock, with CPU time in parentheses. msolve's peak memory was 0.01–0.8 GB and Maple's about 0.13 GB. The msolve output files are:
Observations
Cases finished in only one solver These two finished in only one solver within the 6 h limit, so I couldn't compare full bases over ℚ. I ran partial checks instead.
To reproduce In Maple: Inputs These are the exact files I tested. The
|
4469ae9 to
b0698ff
Compare
Over the rationals, msolve only lifted the elements of the modular Groebner basis which do not involve the eliminated variables, hence it returned the basis of the elimination ideal only. Some algorithms, e.g. Suzuki-Sato's algorithm for comprehensive Groebner systems, need the full Groebner basis w.r.t. the elimination order. The new --elim-full-basis command line option, combined with -e, makes the multi-modular lifting keep all elements of the basis (and all variables in their leading monomials) in the learning and application phases, and outputs the full basis together with the elimination monomial order in the header. The default behaviour is unchanged. While at it, the application phase now rejects primes for which the basis has fewer elements than expected before reading their lengths. Closes algebraic-solving#339. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The test script and its input and expected output files have to be listed in AC_CONFIG_LINKS so that they are shipped in the distribution tarball and linked into the build tree, otherwise make distcheck fails. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
b0698ff to
848d951
Compare
Closes #339.
Over the rationals,
-e kused to return only the basis of the elimination ideal: the multi-modular lifting kept only the elements of the modular Gröbner basis free of the eliminated variables. Algorithms such as Suzuki–Sato's for comprehensive Gröbner systems need the full basis with respect to the elimination order.This PR adds a
--elim-full-basiscommand line option. Combined with-e k, it returns the full reduced Gröbner basis for the elimination order over QQ. Without the flag, behaviour is unchanged.returns the same 7 polynomials as the characteristic-p run in the tutorial, ending with
t*z-1.Changes
src/msolve/lifting-gb.c,src/msolve/duplicate.c): two helpers,lift_elim_ideal_onlyandlifted_nvars, decide which elements are lifted and how many variables the stored leading monomials have. They are used in the learning phase, the application phase (filtering and bad-prime staircase check), the lifting setup and the buffer duplication. A newelim_full_basisfield inmd_tenables the full-basis mode.src/msolve/main.c,src/msolve/msolve-data.h): new long-only option with help text. With the flag, no variables are dropped from the output (gens->elim = 0), and the header prints the elimination monomial order like the characteristic-p output.bs == NULLis now checked beforebsis dereferenced. A prime whose basis has fewer elements than expected is rejected before its element lengths are read.README.md.test/diff/diff_elim-full-qq.shruns a parametric system with rational coefficients with-e 1/2,-t 1/2and-l 2/44.The Julia/library entry point
export_groebner_qqis untouched so its ABI stays stable. Exposing the option there can be done in a follow-up.Testing
make check: 69/69 pass.dp(k),dp(n-k)) on 14 random and parametric systems, with coefficients up to 544 bits, for all four-t/-lcombinations. All results agree, up to normalisation, since msolve prints with denominators cleared. The default mode still returns exactly the elimination-ideal part.AI disclosure
This change was written with the assistance of generative AI (Claude Code, Claude Opus 5.5), reviewed and tested by me.
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
🤖 Generated with Claude Code