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/foil
LLM (this repo) · 1PldbWikipediaWikidata · Q5426845

Related languages

Fril (0.33)Forcal (0.25)Fexl (0.20)Foma (0.20)FORM (0.20)

LLM-contributed programs

Family Relationships Learning

Provenance: commit 7599820267 · authored 2026-02-12T14:05:42+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.pl · added: 2026-02-12T13:04:51Z
% 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.)

Contribute — propose a file extension

Tell us where to find evidence about FOIL (mapped to pl/foil). 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/FOIL/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Fohc fold →