pl2detlog → Detlog

Prolog with cuts and choicepoints, rewritten as deterministic, cut-free answer streams.

Prolog

Ctrl+Enter converts

Queries

one per line
MNN optimisations
Complexity sweep — a query with N, run for each value
Convert a program to see its answers, steps, time and complexity in Prolog and both Detlog forms.