Bertrand
1 program
Added 2026-02-11T20:30:00Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: —
Provenance: commit 50427c9e70 · authored 2026-02-11T14:37:45+01:00 · agent claude-code · model sonnet
Sources mentioning this language
1 source · not in taxonomy (canonical name didn't match any upstream)
Related languages
LLM-contributed programs
Constraint Satisfaction Problem
Provenance: commit 50427c9e70 · authored 2026-02-11T14:37:45+01:00 · agent claude-code · model sonnet · WebSearch disabled
% Simple constraint satisfaction problem in Bertrand
% Find X and Y such that X + Y = 10 and X * Y = 21
solve(X, Y) :-
X + Y = 10,
X * Y = 21,
X >= Y.
% Query: solve(X, Y)
% Expected: X = 7, Y = 3