lean4
by
leanprover

Description: Lean 4 programming language and theorem prover

View leanprover/lean4 on GitHub ↗

Summary Information

Updated 32 minutes ago
Added to GitGenius on May 27th, 2026
Created on April 15th, 2018
Open Issues & Pull Requests: 1,487 (+1)
Number of forks: 851
Total Stargazers: 8,113 (+0)
Total Subscribers: 77 (+0)

Issue Activity (beta)

Open issues: 879
New in 7 days: 2
Closed in 7 days: 0
Avg open age: 576 days
Stale 30+ days: 826
Stale 90+ days: 713

Recent activity

Opened in 7 days: 2
Closed in 7 days: 0
Comments in 7 days: 2
Events in 7 days: 2

Top labels

  • bug (1,377)
  • P-medium (673)
  • P-low (428)
  • RFC (276)
  • P-high (114)
  • Lake (107)
  • enhancement (81)
  • server (46)

Detailed Description

Lean 4 is an advanced programming language and interactive theorem prover, developed and maintained by the Lean community. The repository serves as the central hub for the Lean 4 language, providing its source code, documentation, installation instructions, and resources for both users and contributors. Lean 4 is designed to facilitate formal reasoning, mathematical proof development, and functional programming, making it a versatile tool for researchers, mathematicians, and software developers interested in formal verification and logic.

The primary purpose of Lean 4 is to enable the creation and verification of mathematical proofs and to support the development of reliable software through formal methods. Lean 4 builds upon its predecessors by offering improved performance, a more expressive language, and enhanced tooling. It integrates a powerful type system, dependent types, and a robust metaprogramming framework, allowing users to write proofs and programs that are both concise and highly expressive. The language is functional in nature, supporting immutable data structures, higher-order functions, and pattern matching, which are essential for both theorem proving and general-purpose programming.

The repository includes comprehensive documentation, tutorials, and examples to help users get started with Lean 4. The official website provides quickstart guides, theorem proving tutorials, and functional programming resources, making it accessible to newcomers and experienced users alike. The language reference and documentation overview offer detailed explanations of Lean 4’s syntax, semantics, and features, ensuring that users have the information they need to effectively use the language.

Lean 4’s interactive environment allows users to incrementally build and verify proofs, leveraging its sophisticated type checker and proof assistant capabilities. The system supports automation through tactics and metaprogramming, enabling the development of custom proof strategies and extensions. This flexibility makes Lean 4 suitable for a wide range of applications, from formalizing mathematical theories to verifying properties of software systems.

The repository also provides guidelines for external contributions, encouraging community involvement in the development and improvement of Lean 4. Contributors are guided through the process of building Lean from source, submitting patches, and participating in discussions about the language’s evolution. The release notes document the ongoing progress and changes in Lean 4, highlighting new features, bug fixes, and enhancements.

In summary, the leanprover/lean4 repository is the authoritative source for the Lean 4 programming language and theorem prover. It offers everything needed to install, learn, use, and contribute to Lean 4, supporting a vibrant community focused on formal reasoning and reliable software development. With its combination of powerful language features, interactive proof environment, and comprehensive documentation, Lean 4 stands out as a leading tool for both mathematical proof and functional programming.

lean4
by
leanproverleanprover/lean4

Repository Details

Fetching additional details & charts...