You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add plan for #445: [Model] AdditionalKey
* Implement AdditionalKey satisfaction problem model (#445)
Add the Additional Key problem from relational database theory (Garey &
Johnson SR7). Given a relational schema (R, F) and known candidate keys K,
determines whether R has a candidate key not in K.
- Model file with closure computation, minimality check, and known-key filter
- 13 unit tests covering creation, evaluation, edge cases, brute force, serialization
- CLI create support with --num-attributes, --dependencies, --relation-attrs, --known-keys
- Module registration and re-exports
- Canonical example-db entry with regenerated fixtures
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Apply rustfmt formatting fixes
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Add AdditionalKey model (Batch 1)
Implement the AdditionalKey satisfaction problem from relational database
theory (Garey & Johnson A4 SR27). Includes model, CLI registration, unit
tests, and example-db entry.
* Add AdditionalKey problem definition to paper
Add problem-def entry, display name, and bibliography reference (Beeri & Bernstein, 1979)
for the Additional Key problem from relational database theory.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* chore: remove plan file after implementation
* Fix AdditionalKey canonical example to use updated ModelExampleSpec API
The merge brought in API changes to ModelExampleSpec (removed `build` closure,
added direct `instance`/`optimal_config`/`optimal_value` fields). Update
AdditionalKey's canonical_model_example_specs to match.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Address review findings: panic tests, pinned solution count, help text
- Add 5 #[should_panic] tests for constructor validation paths
- Pin brute-force solution count to 2 (additional keys: {0,2} and {0,3,5})
- Fix --known-keys help text to use [brackets] for optional flag
- Remove redundant test_additional_key_paper_example
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Fix merge artifacts: fmt, missing fields in test helper
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Cover data getter methods in creation test
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Xiwei Pan <xiwei.pan@connect.hkust-gz.edu.cn>
0 commit comments