Beluga
1 program
Added 2026-02-08T21:23:52Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: —
Provenance: commit d50c699948 · authored 2026-02-08T22:24:54+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
Natural Numbers and Addition
Provenance: commit d50c699948 · authored 2026-02-08T22:24:54+01:00 · agent claude-code · model sonnet · WebSearch disabled
% Natural numbers
LF nat : type =
| z : nat
| s : nat -> nat
;
% Addition
LF add : nat -> nat -> nat -> type =
| add_z : add z N N
| add_s : add (s N) M (s P) <- add N M P
;
% Proof that addition is commutative
rec add_comm : (g : cxt) {N : [g ⊢ nat]} {M : [g ⊢ nat]}
[g ⊢ add N M P] -> [g ⊢ add M N P] =
/ total n (add_comm g n) /
fn n => fn m => fn p =>
case p of
| [g ⊢ add_z] => ?
| [g ⊢ add_s D] => ?
;