Merged
Conversation
Add the Kth Largest m-Tuple counting problem (Garey & Johnson MP10). This is the first aggregate-only model using Value = Sum<u64>, which required a fix to the example_db model_specs_are_optimal test to gracefully handle models without witness support. Closes #405 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 #805 +/- ##
========================================
Coverage 97.86% 97.87%
========================================
Files 637 639 +2
Lines 69818 70008 +190
========================================
+ Hits 68325 68517 +192
+ Misses 1493 1491 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Contributor
Agentic Review ReportStructural CheckStructural Review: model KthLargestMTupleStructural Completeness
Blacklisted File Check
Build Status
Semantic Review
Issue Compliance
Summary
Quality CheckQuality ReviewDesign Principles
HCI (CLI changed)
Test Quality
IssuesCritical (Must Fix)
Important (Should Fix)
Minor (Nice to Have)
Summary
Agentic Feature TestsFeature Test Report: problem-reductionsFeature tested: Summary
Per-Feature DetailsKthLargestMTuple
Issues Found
Generated by review-pipeline |
Resolve conflicts in import lists by keeping both KthLargestMTuple (from branch) and CosineProductIntegration/ProductionPlanning (from main) in alphabetical order. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Replace false NP-completeness claim with accurate PP-completeness description citing Haase & Kiefer (2016) - Fix `pred solve` command to use `--solver brute-force` (no ILP path) - Add haase2016 BibTeX entry Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
K was stored but never used in evaluate() — the model is a pure counting problem. The G&J decision version (count >= K?) is noted in the paper but not part of the computational model. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The K threshold is needed for the standard PARTITION → KthLargestMTuple reduction (G&J R86). Without K, the counting version has no known many-one reductions — only Turing reductions exist. Retains the paper fixes: PP-completeness claim, --solver brute-force. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Collaborator
Author
|
Follow-up items (recorded during final review):
|
Resolve conflicts: keep both KthLargestMTuple and QuadraticDiophantineEquations additions in cli.rs, create.rs, and references.bib. 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
Value = Sum<u64>model_specs_are_optimaltest to gracefully skip aggregate-only models that lack witness supportpred create KthLargestMTuple --sets --k --bound), paper entry, and 14 unit testsTest plan
model_specs_are_optimalpasses with the new aggregate-only fallbackmake checkpasses (fmt + clippy + test)--features ilp-highsCloses #405
🤖 Generated with Claude Code