Handle zero Jacobian partial derivatives - #924
Merged
Merged
Conversation
Collaborator
Author
|
Independent held-out reproduction on current main (
I replayed this exact polynomial against the patch in #924: producer returned the expected degree-0 kernel and the independent verifier returned Additional local validation on the PR-equivalent fix:
This confirms #924 covers another non-monomial polynomial with a zero partial, not only the existing |
morluto
force-pushed
the
agent/handle-zero-jacobian-partials
branch
from
August 9, 2026 09:36
2f7a491 to
0cf6702
Compare
morluto
marked this pull request as ready for review
August 9, 2026 09:44
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.
What changed
h=x^2 z, whoseypartial derivative is zeroWhy
For a valid homogeneous polynomial that omits one variable, SymPy represents the corresponding zero partial with a zero term at exponent
(0,0,0). The coefficient-map builder attempted to place that term in the positive-degree target basis and raisedKeyError, surfacing asADAPTER_EXECUTION_FAILED.Skipping a zero coefficient preserves the exact linear map and lets the producer return the expected degree-0 kernel. The independent verifier accepts the resulting candidate.
Validation
python -m pytest tests/composition/runtime/test_frontier_capabilities.py -k 'graded_jacobian_syzygy or syzygy_checker_rejects' -q— 6 passedpython -m ruff check src/jacobian/domains/polynomial/jacobian_syzygy.py tests/composition/runtime/test_frontier_capabilities.pygit diff --check