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)
LLM (this repo) · 1

Related languages

Beta (0.27)Belcanto (0.20)Bean (0.17)Babel (0.15)Balsa (0.15)

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
code.bel · added: 2026-02-08T21:23:52Z
% 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] => ?
;

Contribute — propose a file extension

Tell us where to find evidence about Beluga (mapped to pl/beluga). 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/Beluga/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Belle Arti BEN++ →