Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 25s
Datalog has no function symbols in argument positions, but the
existing dl-add-fact! / dl-add-rule! validators only checked that
literals were ground (no free variables). A compound like `+(1, 2)`
contains no variables, so:
p(+(1, 2)).
=> stored as the unreduced tuple `(p (+ 1 2))`
double(*(X, 2)) :- n(X). n(3).
=> saturates `double((* 3 2))` instead of `double(6)`
Added dl-simple-term? (number / string / symbol) and an
args-simple? walker, used by:
- dl-add-fact!: all args must be simple terms
- dl-add-rule!: rule head args must be simple terms (variables
are symbols, so they pass)
Compounds remain legal in body literals where they encode `is` /
arithmetic / aggregate sub-goals. Error messages name the offending
literal and point the user at the body-only mechanism.
2 new regression tests; conformance 271/271.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
21 lines
775 B
JSON
21 lines
775 B
JSON
{
|
|
"lang": "datalog",
|
|
"total_passed": 271,
|
|
"total_failed": 0,
|
|
"total": 271,
|
|
"suites": [
|
|
{"name":"tokenize","passed":31,"failed":0,"total":31},
|
|
{"name":"parse","passed":23,"failed":0,"total":23},
|
|
{"name":"unify","passed":29,"failed":0,"total":29},
|
|
{"name":"eval","passed":42,"failed":0,"total":42},
|
|
{"name":"builtins","passed":26,"failed":0,"total":26},
|
|
{"name":"semi_naive","passed":8,"failed":0,"total":8},
|
|
{"name":"negation","passed":10,"failed":0,"total":10},
|
|
{"name":"aggregates","passed":23,"failed":0,"total":23},
|
|
{"name":"api","passed":22,"failed":0,"total":22},
|
|
{"name":"magic","passed":36,"failed":0,"total":36},
|
|
{"name":"demo","passed":21,"failed":0,"total":21}
|
|
],
|
|
"generated": "2026-05-11T08:44:12+00:00"
|
|
}
|