FOIL
1 program
Added 2026-02-12T13:04:51Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: —
Provenance: commit 7599820267 · authored 2026-02-12T14:05:42+01:00 · agent claude-code · model sonnet
Sources mentioning this language
4 sources · pl_id:
pl/foilRelated languages
LLM-contributed programs
Family Relationships Learning
Provenance: commit 7599820267 · authored 2026-02-12T14:05:42+01:00 · agent claude-code · model sonnet · WebSearch disabled
% FOIL program to learn family relationships
% Background knowledge
parent(tom, bob).
parent(tom, liz).
parent(bob, ann).
parent(bob, pat).
parent(pat, jim).
male(tom).
male(bob).
male(jim).
female(liz).
female(ann).
female(pat).
% Target relation to learn
father(X, Y) :- parent(X, Y), male(X).
mother(X, Y) :- parent(X, Y), female(X).
grandfather(X, Z) :- father(X, Y), parent(Y, Z).
Real programs from Software Heritage
No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)