Merged
Conversation
Add the Register Sufficiency decision problem (Garey & Johnson A11 PO1): given a DAG and bound K, determine whether the computation can be performed using at most K registers. Value type Or, category misc. Includes model, unit tests (12), CLI create handler, canonical example, and paper entry with bibliography references (Sethi 1975, Sethi-Ullman 1970, Kessler 1998). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #816 +/- ##
========================================
Coverage 97.88% 97.88%
========================================
Files 645 647 +2
Lines 70692 70940 +248
========================================
+ Hits 69196 69443 +247
- Misses 1496 1497 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Contributor
Agentic Review ReportStructural CheckStructural Review: model RegisterSufficiencyStructural Completeness
Build Status
Semantic Review
Issue Compliance
Summary
Quality CheckQuality ReviewDesign Principles
HCI (CLI changed)
Test Quality
IssuesCritical (Must Fix)None. Important (Should Fix)
Minor (Nice to Have)None. Summary
Agentic Feature TestsFeature Test Report: problem-reductionsDate: 2026-03-29 Summary
Per-Feature DetailsRegisterSufficiency
Expected vs Actual Outcome
Issues Found
Suggestions
Generated by review-pipeline |
# Conflicts: # problemreductions-cli/src/commands/create.rs # src/models/misc/mod.rs # src/models/mod.rs
RegisterSufficiency has no ILP reduction path yet, so the default solver fails. Use --solver brute-force consistent with other models lacking an ILP path (e.g., PathConstrainedNetworkFlow, RootedTreeArrangement). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Covers the documented create flow with --arcs, --bound, --num-vertices flags and verifies the output JSON structure. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Resolve conflicts: keep both RegisterSufficiency (PR) and IntExpr, IntegerExpressionMembership, KthLargestMTuple, SchedulingToMinimizeWeightedCompletionTime (main) in imports and specs. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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
RegisterSufficiencydecision problem (Garey & Johnson A11 PO1, SS19): given a DAG G=(V,A) and bound K, decide whether the computation can be evaluated using at most K registersOr, categorymisc, no type parametersnum_vertices ^ 2 * 2 ^ num_vertices(Kessler 1998 DP)pred create RegisterSufficiency --arcs ... --bound KhandlerAssociated rules: #782 (RegisterSufficiency to ILP, separate issue)
Test plan
make testpasses (all tests green)make clippypassesmake fmtpassesmake papercompilesmodel_specs_are_optimal)Closes #515
🤖 Generated with Claude Code