talira

Functional programming language and proof assistant for formally verified code

open sourceApache-2.0free

Lean is an open source functional programming language and interactive theorem prover based on dependent type theory, used to formalize mathematics and to verify software and hardware. Proofs are built one tactic at a time with automation such as grind and bv_decide, and a minimal trusted kernel checks every one; the same language writes ordinary programs, with a run-time system based on reference counting, multi-threading and monadic IO, and metaprogramming that adds notations and proof automation. Lean is mostly implemented in itself, including its language server and the Lake build tool, and is installed through its VS Code extension. Packages are published on Reservoir, and Mathlib, its community mathematics library, holds over a million lines of formalized mathematics. Leonardo de Moura created it in 2013, and the Lean FRO develops it under the Apache 2.0 licence.

Libraries for Lean

Talira doesn't list any yet.

Problems it solves

  • prove that my algorithm is correct instead of only testing it
  • formalize a mathematical proof so a computer checks every step
  • a language where array index and termination errors are caught at compile time
  • let an AI write proofs that are checked automatically

Features

  • interactive theorem proving with tactics
  • proof automation (grind, bv_decide)
  • minimal trusted kernel
  • dependent types
  • pure functional programming
  • metaprogramming and custom notation
  • Lake build tool and language server
  • Mathlib mathematics library

Capabilities

Has a command line toolplan not known

Alternatives

The same job

These do what Lean does.

  1. Crystal A language for humans and computers
  2. Swift A general-purpose programming language that's approachable for newcomers and powerful for experts
  3. F# F# empowers everyone to write succinct, robust and performant code
  4. Kotlin Concise. Multiplatform. Fun.

Compare Lean with the top 3