GitPedia

Cslib

The Lean Computer Science Library (CSLib)

From leanprover·Updated June 25, 2026·View on GitHub·

CSLib aims at formalising Computer Science theories and tools, broadly construed, in the Lean programming language. The project is written primarily in Lean, distributed under the Apache License 2.0 license, first published in 2025. Key topics include: computer-science, lean.

Latest release: v4.32.0-rc1
June 19, 2026View Changelog →

CSLib

The Lean library for Computer Science.

Official website at https://www.cslib.io/.

What's CSLib?

CSLib aims at formalising Computer Science theories and tools, broadly construed, in the Lean programming language.

Aims

  • Offer APIs and languages for formalisation projects, software verification, and certified software (among others).
  • Establish a common ground for connecting different developments in Computer Science, in order to foster synergies and reuse.

Using CSLib in your project

To add CSLib as a dependency to your Lean project, add the following to your lakefile.toml:

toml
[[require]] name = "cslib" scope = "leanprover" rev = "main"

Or if you're using lakefile.lean:

lean
require cslib from git "https://github.com/leanprover/cslib" @ "main"

Then run lake update cslib to fetch the dependency. You can also use a release tag instead of main for the rev value.

Contributing and discussion

Please see our contribution guide and code of conduct.

For discussions, you can reach out to us on the Lean prover Zulip chat.

Contributors

Showing top 12 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from leanprover/cslib via the GitHub API.Last fetched: 6/26/2026