feat: add NAESatisfiability → SetSplitting reduction (#841)#984
Closed
feat: add NAESatisfiability → SetSplitting reduction (#841)#984
Conversation
Typst: Construction (3 steps) + Correctness (⟹ + ⟸) + Extraction + Overhead + YES/NO examples Constructor: 32,513 checks, 0 failures (exhaustive n ≤ 5, 7 sections) Adversary: 46,774 checks, 0 failures (independent impl + hypothesis) Cross-comparison: 615 instances, all agree Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Collaborator
Author
Agentic Review ReportStructural Check
10/10 structural checks pass. Quality Check
One minor suggestion: add Agentic Feature Tests
8/8 agentic tests pass. End-to-end pipeline works: create → reduce → solve → extract. Pipeline provenance: This reduction was implemented via the Generated by review-pipeline |
4 tasks
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
Implements the NAESatisfiability → SetSplitting reduction rule using the new
/verify-reduction→/add-reductionpipeline.This is the first reduction implemented through the verified artifacts pipeline:
/verify-reductionproduced Typst proof + dual Python scripts (PR docs: verify reduction #841 — NAESatisfiability → SetSplitting #980, 79K+ checks)/add-reductiontranslated the verified Pythonreduce()to RustImplementation
Construction (from verified Python spec):
universe_size = 2 * num_vars,num_subsets = num_clauses + num_varsSolution extraction: Variable i is true iff element 2i is in partition part 0.
Files
src/rules/naesatisfiability_setsplitting.rs— reduction implementationsrc/unit_tests/rules/naesatisfiability_setsplitting.rs— 5 tests (closed-loop, infeasible, structure, all-witnesses, known-assignment)docs/paper/verify-reductions/— Typst proof + Python verification scripts from PR docs: verify reduction #841 — NAESatisfiability → SetSplitting #980Pipeline Demo
Test plan
cargo test naesatisfiability_to_setsplitting— 5/5 passcargo clippy— cleanCloses #841
🤖 Generated with Claude Code