GenLimitLib: A Formal Library for Language Generation in the Limit and AI-Assisted Mathematical Research

Shuangping Li, Peng Zhang
9/29/2026
cs.LGcs.LO

Official code: pengzhang91/generation-in-the-limit-lib (5 stars, Apache-2.0, last commit 2026-09-26).

Abstract

We present GenLimitLib, a source-aligned Lean 4 library for language generation in the limit. Introduced by Kleinberg and Mullainathan at NeurIPS 2024, language generation in the limit studies a theoretical question motivated by LLMs: how to generate valid new strings from observed examples. This young and rapidly evolving field offers a natural testbed for studying large-scale formalization. GenLimitLib contains formal developments for 30 papers. It extracts shared definitions and reusable proof components while preserving paper-specific assumptions and statements, and records relationships across papers. In this way, GenLimitLib provides a concrete and structured view of the literature. We show through mathematical case studies and LLM experiments how our library can support both human mathematical research and AI-assisted research. Our Library: https://github.com/pengzhang91/generation-in-the-limit-lib.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

A lean library and paper map for ``language generation in the limit``

50Lean, ShellJul 10, 20263 weeks agoApache-2.0

Similar Papers

Cite this paper

@article{li2026genlimitlib,
  title  = {GenLimitLib: A Formal Library for Language Generation in the Limit and AI-Assisted Mathematical Research},
  author = {Shuangping Li and Peng Zhang},
  year   = {2026},
  eprint = {2609.36663},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.36663v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2609.36663.svg)](https://codeofpaper.com/paper/2609.36663)

Discussion