Skip to content

Commit e028261

Browse files
committed
update CLAUDE.md
1 parent 8dce81c commit e028261

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.claude/CLAUDE.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ make mdbook # Build and serve mdBook with live reload
2727
make paper # Build Typst paper (runs examples + exports first)
2828
make coverage # Generate coverage report (>95% required)
2929
make check # Quick pre-commit check (fmt + clippy + test)
30-
make rust-export # Generate Rust mapping JSON exports
30+
make rust-export # Generate Julia parity test data (mapping stages)
3131
make export-schemas # Regenerate problem schemas JSON
3232
make qubo-testdata # Regenerate QUBO ground truth JSON
3333
make clean # Clean build artifacts
@@ -91,6 +91,8 @@ enum Direction { Maximize, Minimize }
9191
```
9292

9393
### Key Patterns
94+
- `variant_params!` macro implements `Problem::variant()` — e.g., `crate::variant_params![G, W]` for two type params, `crate::variant_params![]` for none (see `src/variant.rs`)
95+
- `declare_variants!` macro registers concrete type instantiations with best-known complexity — must appear in every model file (see `src/models/graph/maximum_independent_set.rs`)
9496
- Problems parameterized by graph type `G` and optionally weight type `W` (problem-dependent)
9597
- `ReductionResult` provides `target_problem()` and `extract_solution()`
9698
- `Solver::find_best()``Option<Vec<usize>>` for optimization problems; `Solver::find_satisfying()``Option<Vec<usize>>` for `Metric = bool`

0 commit comments

Comments
 (0)