REPOSITORY CODING · HARD
Deduplicate all fact tuples and honor constants in queries, retaining only matching tuples in the answer
Deduplicate all fact tuples and honor constants in queries, retaining only matching tuples in the answer. The complete application includes native models, services, repository projections, a working preview and visible acceptance cases. Preserve the other documented invariants and run bash test/run.sh.
logic-rulesStratified Datalog rule laboratory
Work through a real codebase.
Choose an environment, investigate the existing implementation and use the tests to check your change. Sign in to open a workspace; execution and Ono usage follow your plan’s allowances.
Task requirements and environments
PHP · 80 minute session
- Unification must bind repeated variables consistently and compare constants exactly, including the literal zero string.
- Evaluate recursive positive rules to a fixed point, not one pass. Report relation tuples with deterministic set semantics.
- Evaluate bound negation after positive bindings and after its dependency stratum is complete. Antijoins test the complete tuple.
- Reject recursion through negation and range-unsafe head variables before evaluating any rules.
- Deduplicate all fact tuples and honor constants in queries, retaining only matching tuples in the answer.
- Function-free string tuples, at most twelve predicates of arity one to three, twelve rules and 500 derived facts. Positive bodies join before negation. Predicate strata are the least satisfying dependency levels. No rule executes host code.
Symfony · 80 minute session
- Unification must bind repeated variables consistently and compare constants exactly, including the literal zero string.
- Evaluate recursive positive rules to a fixed point, not one pass. Report relation tuples with deterministic set semantics.
- Evaluate bound negation after positive bindings and after its dependency stratum is complete. Antijoins test the complete tuple.
- Reject recursion through negation and range-unsafe head variables before evaluating any rules.
- Deduplicate all fact tuples and honor constants in queries, retaining only matching tuples in the answer.
- Function-free string tuples, at most twelve predicates of arity one to three, twelve rules and 500 derived facts. Positive bodies join before negation. Predicate strata are the least satisfying dependency levels. No rule executes host code.