HiLog

1 program Added 2026-02-23T10:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: enabled Evidence Report issue View issues
Aliases: HiLog programming language
Provenance: commit f96aecfeb7 · authored 2026-02-23T17:58:46+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

J (0.64)S (0.64)Turing (0.63)Eta (0.60)Jac (0.60)

LLM-contributed programs

Higher-Order Operators: Closure, Maplist, Call, Traverse

Provenance: commit f96aecfeb7 · authored 2026-02-23T17:58:46+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch enabled
code.P · added: 2026-02-23T10:00:00Z
% HiLog: Higher-Order Logic Programming
% Examples demonstrating higher-order syntax in logic programming

% Transitive closure operator - parametric over any binary predicate P
closure(P)(X,Y) <- P(X,Y).
closure(P)(X,Y) <- P(X,Z), closure(P)(Z,Y).

% LISP-like mapping operator - applies binary predicate F element-wise
maplist(F)([], []).
maplist(F)([X|R], [Y|Z]) <- F(X,Y), maplist(F)(R,Z).

% Meta-predicate call expressed naturally in HiLog (without extra-logical features)
call(X) <- X.

% Binary tree traversal using a variable functor
traverse(X(L,R)) <- traverse(L), traverse(R).

Contribute — propose a file extension

Tell us where to find evidence about HiLog (mapped to pl/hilog). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/HiLog/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← hilltop-lang hilvl →