datalog: magic-sets building blocks (199/199)
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 22s

Adds the primitives a future magic-sets rewriter will compose:

  dl-magic-rel-name rel adornment    → "magic_<rel>^<adornment>"
  dl-magic-lit rel adn bound-args    → magic literal as SX list
  dl-bound-args lit adornment        → bound-position arg values

Rewriter algorithm (worklist over (rel, adornment) pairs,
generating seed, propagation, and adorned-rule outputs) is still
TODO — these helpers are inspection-only for now.

4 new magic tests cover naming, lit construction, and bound-args
extraction (mixed/free).
This commit is contained in:
2026-05-08 09:53:38 +00:00
parent 71b73bd87e
commit 2a01d8ac91
5 changed files with 80 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
# datalog scoreboard
**194 / 194 passing** (0 failure(s)).
**199 / 199 passing** (0 failure(s)).
| Suite | Passed | Total | Status |
|-------|--------|-------|--------|
@@ -13,5 +13,5 @@
| negation | 10 | 10 | ok |
| aggregates | 18 | 18 | ok |
| api | 14 | 14 | ok |
| magic | 10 | 10 | ok |
| magic | 15 | 15 | ok |
| demo | 18 | 18 | ok |