Sleight: A Language for LLMs

Slides for a talk on Sleight, a programming language with restricted dependent types whose proofs erase at compile time, designed for LLMs to write, and on an agent runner that tests whether models can write it. In the main task, models write a fast, in-place heapsort certified correct against a supplied specification; 25 of 28 runs across 10 models passed, and their sorts run in about the time of handwritten C and OCaml. The talk also covers what the models found hard, an attempt to have agents prove False, and the language itself: erasure and uniqueness declared on every binder, zero-cost coercions, memory locations tracked separately from values, termination by first-class levels, Type : Type with no positivity check, Kernel-style first-class special forms, and three implementations (an OCaml reference interpreter, a self-hosted compiler, and a Lean 4 model with a machine-checked soundness proof for a fragment). An appendix gives further examples, the soundness sketch, and the full benchmark tables. Code: https://doi.org/10.5281/zenodo.23361871

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-10-14
DOI
https://doi.org/10.5281/zenodo.23367391
Primary Topic
Logic, programming, and type systems
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Sleight: A Language for LLMs

Eric Michael Marion
Zenodo (CERN European Organization for Nuclear Research)
Logic, programming, and type systems
article

Sleight: A Language for LLMs

Eric Michael Marion
article en

Abstract

Slides for a talk on Sleight, a programming language with restricted dependent types whose proofs erase at compile time, designed for LLMs to write, and on an agent runner that tests whether models can write it. In the main task, models write a fast, in-place heapsort certified correct against a supplied specification; 25 of 28 runs across 10 models passed, and their sorts run in about the time of handwritten C and OCaml. The talk also covers what the models found hard, an attempt to have agents prove False, and the language itself: erasure and uniqueness declared on every binder, zero-cost coercions, memory locations tracked separately from values, termination by first-class levels, Type : Type with no positivity check, Kernel-style first-class special forms, and three implementations (an OCaml reference interpreter, a self-hosted compiler, and a Lean 4 model with a machine-checked soundness proof for a fragment). An appendix gives further examples, the soundness sketch, and the full benchmark tables. Code: https://doi.org/10.5281/zenodo.23361871

Zenodo (CERN European Organization for Nuclear Research)
Openalex Percentile: Top 13%
Logic, programming, and type systems
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.