Skip to content

Tolean docs ​

Each page here is a Markdown file in the Tolean repository. This build is from commit 5f1d031.

Overview ​

  • Tolean: Tolean translates source code into Lean 4, so that proofs about a program are about its real source.

Languages ​

  • Go: Tolean translates Go code that has effects.
  • PostgreSQL: Tolean translates PostgreSQL queries written for sqlc, with the schema that their migrations build.
  • TypeScript: Tolean translates pure TypeScript functions into plain Lean functions.

Guides ​

  • Build and check: Repository layout describes where each part of Tolean lives and how to add a language.
  • Repository layout: Each language has its own front end and its own translator, and both are written in Lean.
  • The project file: A project lists what to translate in tolean.json, at its root.
  • The verification chain: What Tolean produces is a verification chain: a path from the source code that runs to theorems about it, where every link is proved, tested against a reference, or trusted.
  • Using Tolean in a project: This page shows how to lay out a project that uses Tolean, for each language that Tolean supports.
  • What Tolean trusts in Lean itself: Every link in the README's table of links also relies on parts of Lean.

Comparisons ​

  • Tolean and Aeneas: Aeneas translates safe Rust into pure Lean, and Tolean took its central idea from it.

Plans ​

Decisions ​