Skip to content

Fixed bug in the matroid realization space code - #6207

Open
LukasKuehne wants to merge 4 commits into
oscar-system:masterfrom
LukasKuehne:fix/mrs-resaturate-after-reduce
Open

Fixed bug in the matroid realization space code#6207
LukasKuehne wants to merge 4 commits into
oscar-system:masterfrom
LukasKuehne:fix/mrs-resaturate-after-reduce

Conversation

@LukasKuehne

Copy link
Copy Markdown
Contributor

The reduction pass that runs after saturation can destroy saturatedness:
eliminating a variable via a solution with a nontrivial denominator (a
unit on the localized space, certified through the inequations) clears
that denominator into the substituted generators, and the resulting
ideal can pick up components supported inside its vanishing locus. The
chart stays correct as a localized scheme, but the returned defining
ideal is then not saturated, contrary to what saturate=true promises —
on the matroid in the added test, a non-basis minor of the returned
matrix does not even lie in the returned ideal.

Fix: alternate reduction and stepwise saturation until the reduction
stabilizes; saturation runs only after a reduction that eliminated
variables, and each productive reduction strictly decreases the
variable count, so the loop terminates.

I added a test case which failed before and now works fine.

@joschmitt joschmitt added topic: combinatorics experimental Only changes experimental parts of the code bug: wrong result labels Aug 28, 2026
Comment thread experimental/MatroidRealizationSpaces/src/realization_space.jl Outdated

@antonydellavecchia antonydellavecchia left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good for the most part I would just make sure to use the accesor functions

@LukasKuehne

Copy link
Copy Markdown
Contributor Author

Thanks for the comment. I now edited the code to use the access functions consistently.

…e-after-reduce

# Conflicts:
#	experimental/MatroidRealizationSpaces/test/runtests.jl
@LukasKuehne

Copy link
Copy Markdown
Contributor Author

The last commit just fixes the small merge conflict in the runtests.

@benlorenz benlorenz added the release notes: use title For PRs: the title of this PR is suitable for direct use in the release notes label Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug: wrong result experimental Only changes experimental parts of the code release notes: use title For PRs: the title of this PR is suitable for direct use in the release notes topic: combinatorics

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants