Conversation
Adds Sahni's multiplier-flow gadget: each Partition element becomes an item vertex whose multiplier amplifies a binary source choice into either 0 or a_i units entering a relay. A single bottleneck arc of capacity S/2 converts the target's "net inflow at least R" condition into the exact equality needed by Partition. Odd-S inputs reduce to a fixed infeasible 3-vertex instance. - src/rules/partition_integralflowwithmultipliers.rs: reduction impl with odd-S/even-S branches and witness extraction from source arcs - src/unit_tests/rules/partition_integralflowwithmultipliers.rs: 5 tests (closed-loop, structure on even-total YES instance, even-total NO exercises bottleneck, odd-total fixed NO target, witness extraction, canonical example spec) - src/rules/mod.rs: register module and example specs - docs/paper/reductions.typ: full theorem with construction, correctness proof, and worked example using the canonical fixture Closes #363. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1068 +/- ##
========================================
Coverage 97.93% 97.93%
========================================
Files 966 968 +2
Lines 100154 100294 +140
========================================
+ Hits 98083 98222 +139
- Misses 2071 2072 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Summary
Add the implementation plan for the
Partition -> IntegralFlowWithMultipliersreduction and then execute it in follow-up commits.Fixes #363