CSLib: The Lean Computer Science Library

๐Ÿ“… 2026-02-04
๐Ÿ“ˆ Citations: 0
โœจ Influential: 0
๐Ÿ“„ PDF
๐Ÿค– AI Summary
This work addresses the lack of a systematic, formalized knowledge base for computer science in Lean, which has hindered its adoption in education, research, and large-scale verification. To bridge this gap, we present CSLibโ€”the first open-source library of formalized theorems and data structures specifically designed for computer science, built upon the Lean proof assistant and dependent type theory. CSLib establishes a reusable and composable formal infrastructure that significantly expands Leanโ€™s foundational knowledge base in computer science. By providing a comprehensive and extensible collection of verified components, CSLib enables effective collaboration between human developers and AI systems in constructing large-scale formally verified software, thereby advancing the broader application and accessibility of formal methods within the field.

Technology Category

Application Category

๐Ÿ“ Abstract
We introduce CSLib, an open-source framework for proving computer-science-related theorems and writing formally verified code in the Lean proof assistant. CSLib aims to be for computer science what Lean's Mathlib is for mathematics. Mathlib has been tremendously impactful: it is a key reason for Lean's popularity within the mathematics research community, and it has also played a critical role in the training of AI systems for mathematical reasoning. However, the base of computer science knowledge in Lean is currently quite limited. CSLib will vastly enhance this knowledge base and provide infrastructure for using this knowledge in real-world verification projects. By doing so, CSLib will (1) enable the broad use of Lean in computer science education and research, and (2) facilitate the manual and AI-aided engineering of large-scale formally verified systems.
Problem

Research questions and friction points this paper is trying to address.

formal verification
proof assistant
computer science library
Lean
verified code
Innovation

Methods, ideas, or system contributions that make the work stand out.

CSLib
formal verification
Lean proof assistant
computer science library
AI-aided verification
๐Ÿ”Ž Similar Papers
No similar papers found.