datalog: magic-vs-semi work-shape test on chain-12 (209/209)
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 24s

Demonstrates the practical effect of goal-directed evaluation:
chain of 12 nodes, semi-naive derives the full ancestor closure
(78 = 12·13/2 tuples), while a magic-rooted query at node 0
returns only its 12 descendants. Concrete check that magic
limits derivation to the query's transitive cone.
This commit is contained in:
2026-05-08 10:13:13 +00:00
parent 4a643a5c52
commit 43fa31375d
3 changed files with 35 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
# datalog scoreboard
**208 / 208 passing** (0 failure(s)).
**209 / 209 passing** (0 failure(s)).
| Suite | Passed | Total | Status |
|-------|--------|-------|--------|
@@ -13,5 +13,5 @@
| negation | 10 | 10 | ok |
| aggregates | 18 | 18 | ok |
| api | 17 | 17 | ok |
| magic | 21 | 21 | ok |
| magic | 22 | 22 | ok |
| demo | 18 | 18 | ok |