Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #683 +/- ##
==========================================
- Coverage 97.28% 97.28% -0.01%
==========================================
Files 320 322 +2
Lines 41399 41598 +199
==========================================
+ Hits 40277 40470 +193
- Misses 1122 1128 +6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Implementation SummaryChanges
Deviations from Plan
Open Questions
|
There was a problem hiding this comment.
Pull request overview
Adds the PrimeAttributeName satisfaction problem — a classical NP-complete problem from relational database theory (Garey & Johnson SR28). Given attributes, functional dependencies, and a query attribute, determines if the query belongs to any candidate key.
Changes:
- New model
PrimeAttributeNamewith closure computation, minimality checking, and full test suite - CLI integration with
--depsand--queryflags for creating instances - Documentation in the paper with a visual figure and mathematical description
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/models/set/prime_attribute_name.rs | Core model: struct, constructor with validation, closure computation, evaluate, schema registration |
| src/unit_tests/models/set/prime_attribute_name.rs | Comprehensive tests covering creation, evaluation, serialization, solver, and edge cases |
| src/models/set/mod.rs | Module registration and re-export |
| src/models/mod.rs | Public re-export |
| src/lib.rs | Prelude export |
| src/example_db/fixtures/examples.json | Canonical example fixture |
| problemreductions-cli/src/cli.rs | New --deps and --query CLI flags |
| problemreductions-cli/src/commands/create.rs | CLI create command handler with dependency parsing |
| docs/paper/reductions.typ | Paper documentation with figure |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Review Pipeline Report
Remaining issues for final review
Notes
🤖 Generated by review-pipeline |
Resolve conflicts with PrecedenceConstrainedScheduling and other models added to main since branch diverged. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Summary
Add PrimeAttributeName satisfaction problem — a classical NP-complete problem from relational database theory (Garey & Johnson A4 SR28). Given attributes, functional dependencies, and a query attribute, determines if the query belongs to any candidate key.
Fixes #446