LISP 1

1 program Added 2026-03-12T10:15:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: Lisp I, LISP I
Provenance: commit 6c517ed015 · authored 2026-03-12T23:54:17+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

LISP 2 (0.41)LISP 1.5 (0.38)Lisp (0.36)Lispkit Lisp (0.26)LispMe (0.25)

Programs collected by LLM agents experimental · unverified

Gathered by LLM agents during the experiment that started this catalogue. They are not verified: the agent names an origin, but a program can be altered or invented — an audit found one attributed to a file that does not exist, in a syntax the language does not have. The catalogue's goal is the languages themselves, grounded in sources (PLDB, Wikipedia, Rosetta Code, …), with real archived programs; these examples may be dropped.

Symbolic Differentiation

Provenance: commit 6c517ed015 · authored 2026-03-12T23:54:17+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.lisp · license: Public Domain · added: 2026-03-12T10:15:00Z
; LISP 1 - Symbolic differentiation
; Based on McCarthy's 1960 paper "Recursive Functions of Symbolic Expressions"
; Originally implemented on the IBM 704, 1960
;
; diff[e; x] differentiates expression e with respect to x
; M-expression form (from the paper):
;   diff[e; x] = [atom[e] -> [eq[e; x] -> 1; T -> 0];
;                 eq[car[e]; PLUS] -> list[PLUS; diff[cadr[e]; x]; diff[caddr[e]; x]];
;                 eq[car[e]; TIMES] -> list[PLUS;
;                     list[TIMES; cadr[e]; diff[caddr[e]; x]];
;                     list[TIMES; diff[cadr[e]; x]; caddr[e]]];
;                 T -> UNDEFINED]

((LABEL DIFF
  (LAMBDA (E X)
    (COND
      ((ATOM E)
       (COND ((EQ E X) (QUOTE 1))
             (T (QUOTE 0))))
      ((EQ (CAR E) (QUOTE PLUS))
       (LIST (QUOTE PLUS)
             (DIFF (CADR E) X)
             (DIFF (CADDR E) X)))
      ((EQ (CAR E) (QUOTE TIMES))
       (LIST (QUOTE PLUS)
             (LIST (QUOTE TIMES) (CADR E) (DIFF (CADDR E) X))
             (LIST (QUOTE TIMES) (DIFF (CADR E) X) (CADDR E))))
      (T (QUOTE UNDEFINED)))))
 (QUOTE (PLUS (TIMES X X) X))
 (QUOTE X))

Contribute — propose a file extension

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