LF

1 program Added 2026-03-05T10:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: Logical Framework, Edinburgh LF
Provenance: commit 71e1c205c3 · authored 2026-03-05T11:25:42+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

Alfa (0.37)Grammatical Framework (0.32)GF (0.29)Loci (0.28)IMP (0.23)

LLM-contributed programs

Natural Numbers and Addition

Provenance: commit 71e1c205c3 · authored 2026-03-05T11:25:42+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.elf · added: 2026-03-05T10:00:00Z
%% Natural numbers and addition in LF (Edinburgh Logical Framework)

nat : type.
z : nat.
s : nat -> nat.

plus : nat -> nat -> nat -> type.
plus-z : plus z N N.
plus-s : plus (s M) N (s P)
       <- plus M N P.

even : nat -> type.
even-z : even z.
even-s : even (s (s N))
       <- even N.

%query 1 * plus (s (s z)) (s (s (s z))) N.
%query 1 * even (s (s (s (s z)))).

Contribute — propose a file extension

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