Skip to content

34j/best-of-lean4

best-of-lean4

🏆  A ranked list of awesome projects. Updated weekly.

This curated list contains 43 awesome open-source projects with a total of 7.5K stars grouped into 11 categories. All projects are ranked by a project-quality score, which is calculated based on various metrics automatically collected from GitHub and different package managers. If you like to add or update projects, feel free to open an issue, submit a pull request, or directly edit the projects.yaml. Contributions are very welcome!

🧙‍♂️ Discover other best-of lists or create your own.

Contents

Explanation

  • 🥇🥈🥉  Combined project-quality score
  • ⭐️  Star count from GitHub
  • 🐣  New project (less than 6 months old)
  • 💤  Inactive project (6 months no activity)
  • 💀  Dead project (12 months no activity)
  • 📈📉  Project is trending up or down
  • ➕  Project was recently added
  • ❗️  Warning (e.g. missing/risky license)
  • 👨‍💻  Contributors count from GitHub
  • 🔀  Fork count from GitHub
  • 📋  Issue count from GitHub
  • ⏱️  Last update timestamp on package manager
  • 📥  Download count from package manager
  • 📦  Number of dependent projects

Cheatsheets

Back to top

Quick reference with short text

A mathlib overview (🥇15 · ⭐ 46) - Hosts the website for mathlib and other Lean community.. MIT
  • GitHub (👨‍💻 100 · 🔀 110 · 📋 33 - 57% open · ⏱️ 30.04.2024):

    ```
    git clone https://github.com/leanprover-community/leanprover-community.github.io
    ```
    
Lean 4 Tactics (🥈7 · ⭐ 31 · 📈) - Overview of tactics in Lean 4 for beginners longer version. Unlicense
  • GitHub (👨‍💻 2 · 🔀 1 · ⏱️ 29.04.2024):

    ```
    git clone https://github.com/madvorak/lean4-tactics
    ```
    
  • Lean 4 Tactics Reverse Lookup List (🥈5) - Lean 4 Tactics Reverse Lookup List. MIT ja
  • GitHub (👨‍💻 3 · ⏱️ 27.01.2024):

    ```
    git clone https://github.com/lean-ja/lean-ja.github.io
    ```
    
  • lean3-tactic-lean4 (🥉4 · ⭐ 19) - Reference sheet for people who know Lean 3 and want.. Unlicense Lean 3
  • GitHub (👨‍💻 2 · 🔀 2 · ⏱️ 18.03.2024):

    ```
    git clone https://github.com/madvorak/lean3-tactic-lean4
    ```
    
  • Lean 4 Cheatsheet (🥉4 · ⭐ 17) - Printable (A4) overview of tactics in Lean 4 for beginners. Unlicense
  • GitHub (🔀 1 · ⏱️ 07.02.2024):

    ```
    git clone https://github.com/madvorak/lean4-cheatsheet
    ```
    
  • (Mathlib4) General Documentation (API Reference) (🥉2 · ⭐ 6) - Official Mathlib API Reference. ❗Unlicensed
  • GitHub (👨‍💻 3 · 🔀 1 · ⏱️ 07.05.2024):

    ```
    git clone https://github.com/leanprover-community/mathlib4_docs
    ```
    
  • Moogle: Semantic search over mathlib4 (🥉1) - Better performance (latency) than `General.. ❗Unlicensed
  • No project information available.

  • `#help` command output (🥉1) - Output of `#help option`, `#help attr`, ... shown in.. ❗Unlicensed
    • No project information available.
    Show 1 hidden projects...
    • cs-dm/CheatSheet.lean (🥈6 · ⭐ 15 · 💀) - CS2012 UVa CS Discrete Math Spring 2018. ❗Unlicensed Lean 3

    Tutorials

    Back to top

    Tutorials with long text

    A Lean 4 Metaprogramming Book (🥇15 · ⭐ 200) - Practical manual with code that goes into the.. Apache-2
    • GitHub (👨‍💻 19 · 🔀 46 · 📥 81 · 📋 37 - 40% open · ⏱️ 21.04.2024):

      ```
      git clone https://github.com/leanprover-community/lean4-metaprogramming-book
      ```
      
    Theorem Proving in Lean 4 (🥈13 · ⭐ 140) - Theorem Proving in Lean 4. Apache-2
  • GitHub (👨‍💻 78 · 🔀 75 · 📋 26 - 53% open · ⏱️ 01.03.2024):

    ```
    git clone https://github.com/leanprover/theorem_proving_in_lean4
    ```
    
  • The mechanics of proof (🥈9 · ⭐ 140) - Early university level course. ❗Unlicensed
  • GitHub (🔀 43 · ⏱️ 27.04.2024):

    ```
    git clone https://github.com/hrmacbeth/math2001
    ```
    
  • Mathmatics in Lean (🥉8 · ⭐ 190) - Note that there are many parts of the documentation.. ❗Unlicensed
  • GitHub (👨‍💻 3 · 🔀 130 · ⏱️ 02.05.2024):

    ```
    git clone https://github.com/leanprover-community/mathematics_in_lean
    ```
    
  • Functional Programming in Lean (🥉8 · ⭐ 58) - Functional Programming in Lean. ❗Unlicensed
  • GitHub (👨‍💻 2 · 🔀 14 · 📥 35 · 📋 140 - 27% open · ⏱️ 06.02.2024):

    ```
    git clone https://github.com/leanprover/fp-lean
    ```
    
  • The Lean Reference Manual (🥉1) - Official Lean 3 Reference Manual. ❗Unlicensed Lean 3
  • No project information available.

  • Lean Manual (🥉1) - Official Manual. ❗Unlicensed
    • No project information available.

    Samples

    Back to top

    Actual Lean 4 code for learning purposes

    Lean Math Workshop (🥇11 · ⭐ 58 · 📉) - Materials for a workshop held in Japan. Apache-2 ja
    • GitHub (👨‍💻 5 · 🔀 19 · 📋 12 - 8% open · ⏱️ 04.05.2024):

      ```
      git clone https://github.com/yuma-mizuno/lean-math-workshop
      ```
      
    The Matrix Cookbook, using Lean's mathlib (🥉7 · ⭐ 44) - The matrix cookbook, proved in the Lean theorem prover. MIT
  • GitHub (👨‍💻 2 · 🔀 6 · ⏱️ 15.01.2024):

    ```
    git clone https://github.com/eric-wieser/lean-matrix-cookbook
    ```
    

  • Packages (Meta)

    Back to top

    Reusable Lean 4 code for enhancing usability

    ProofWidgets (🥇18 · ⭐ 86) - Helper toolkit for creating your own Lean 4 UserWidgets. Apache-2
    • GitHub (👨‍💻 13 · 🔀 19 · 📥 150K · 📋 19 - 68% open · ⏱️ 07.05.2024):

      ```
      git clone https://github.com/leanprover-community/ProofWidgets4
      ```
      
    llmstep (🥉8 · ⭐ 93) - llmstep: [L]LM proofstep suggestions in Lean 4. MIT
  • GitHub (👨‍💻 5 · 🔀 13 · 📋 3 - 33% open · ⏱️ 11.11.2023):

    ```
    git clone https://github.com/wellecks/llmstep
    ```
    

  • Packages

    Back to top

    Reusable Lean 4 code (theorems, etc.)

    SciLean (🥇15 · ⭐ 220) - Scientific computing in Lean 4. Apache-2
    • GitHub (👨‍💻 6 · 🔀 15 · 📋 29 - 55% open · ⏱️ 06.05.2024):

      ```
      git clone https://github.com/lecopivo/SciLean
      ```
      
    CvxLean (🥈14 · ⭐ 27) - Convex optimization modeling in Lean 4. Apache-2
  • GitHub (👨‍💻 3 · 🔀 3 · ⏱️ 25.04.2024):

    ```
    git clone https://github.com/verified-optimization/CvxLean
    ```
    
  • aesop (🥈13 · ⭐ 150 · 📉) - Proof search tactic (Automated Extensible Search for Obvious Proofs). Apache-2
  • GitHub (👨‍💻 17 · 🔀 22 · 📋 58 - 34% open · ⏱️ 09.05.2024):

    ```
    git clone https://github.com/leanprover-community/aesop
    ```
    
  • SMT Lean (🥉10 · ⭐ 68 · 📈) - Tactics for discharging Lean goals into SMT solvers. Apache-2
  • GitHub (👨‍💻 4 · 🔀 16 · 📋 9 - 33% open · ⏱️ 09.05.2024):

    ```
    git clone https://github.com/ufmg-smite/lean-smt
    ```
    
  • SATurn (🥉8 · ⭐ 49) - Experiments with SAT solvers with proofs in Lean 4. MIT
  • GitHub (👨‍💻 2 · 🔀 1 · ⏱️ 18.04.2024):

    ```
    git clone https://github.com/siddhartha-gadgil/Saturn
    ```
    
  • lean-crypto (🥉5 · ⭐ 35 · 💤) - Cryptographic routines for the Lean 4 language. ❗Unlicensed
  • GitHub (👨‍💻 3 · 🔀 2 · ⏱️ 02.10.2023):

    ```
    git clone https://github.com/joehendrix/lean-crypto
    ```
    

  • Core packages

    Back to top

    Core Lean 4 code

    lean4 (🥇30 · ⭐ 3.8K) - Lean 4 repository. Includes `Lake`. Apache-2
    • GitHub (👨‍💻 170 · 🔀 320 · 📥 190K · 📋 1.5K - 34% open · ⏱️ 09.05.2024):

      ```
      git clone https://github.com/leanprover/lean4
      ```
      
    mathlib4 (🥈23 · ⭐ 890) - Math library. Apache-2
  • GitHub (👨‍💻 260 · 🔀 230 · 📋 360 - 60% open · ⏱️ 09.05.2024):

    ```
    git clone https://github.com/leanprover-community/mathlib4
    ```
    
  • elan (🥈18 · ⭐ 260 · 📉) - Version Manager. Apache-2
  • GitHub (👨‍💻 19 · 🔀 34 · 📥 560K · 📋 69 - 31% open · ⏱️ 22.02.2024):

    ```
    git clone https://github.com/leanprover/elan
    ```
    
  • std4 (🥉17 · ⭐ 200) - Standard Library. Apache-2
  • GitHub (👨‍💻 55 · 🔀 83 · 📋 57 - 43% open · ⏱️ 09.05.2024):

    ```
    git clone https://github.com/leanprover/std4
    ```
    
  • doc-gen4 (🥉13 · ⭐ 54 · 📉) - Document Generator. Apache-2
  • GitHub (👨‍💻 25 · 🔀 33 · 📋 74 - 37% open · ⏱️ 08.05.2024):

    ```
    git clone https://github.com/leanprover/doc-gen4
    ```
    
  • quote4 (🥉10 · ⭐ 65) - Intuitive, type-safe expression quotations for Lean 4. Apache-2
  • GitHub (👨‍💻 8 · 🔀 9 · 📋 19 - 57% open · ⏱️ 04.05.2024):

    ```
    git clone https://github.com/leanprover-community/quote4
    ```
    

  • Games

    Back to top

    Lean 4 Games

    Lean Game Server (🥇15 · ⭐ 120) - Mainly for Natural Number Game. Be careful not to.. ❗️GPL-3.0
    • GitHub (👨‍💻 15 · 🔀 20 · 📋 200 - 31% open · ⏱️ 03.05.2024):

      ```
      git clone https://github.com/leanprover-community/lean4game
      ```
      

    Community

    Back to top

    Community

    Zulip chat for discussions about Lean and mathlib (🥇1) - Official community. ❗Unlicensed
    • No project information available.
    Lean 4 Anarchy (Discord) (🥇1) - Anarchy discord server. ❗Unlicensed
    • No project information available.

    Tools

    Back to top

    Tools not made in Lean 4

    vscode-lean4 (🥇19 · ⭐ 120) - Visual Studio Code extension. Apache-2
    • GitHub (👨‍💻 54 · 🔀 38 · 📥 380 · 📋 180 - 25% open · ⏱️ 08.05.2024):

      ```
      git clone https://github.com/leanprover/vscode-lean4
      ```
      
    Paperproof (🥉14 · ⭐ 300 · 📉) - Theorem proving interface which feels like pen-and-paper proofs. MIT
  • GitHub (👨‍💻 4 · 🔀 6 · 📋 28 - 35% open · ⏱️ 01.04.2024):

    ```
    git clone https://github.com/Paper-Proof/paperproof
    ```
    
  • lean4web (🥉11 · ⭐ 46 · 📈) - Web editor. Apache-2
  • GitHub (👨‍💻 5 · 🔀 12 · 📋 20 - 35% open · ⏱️ 29.04.2024):

    ```
    git clone https://github.com/leanprover-community/lean4web
    ```
    

  • Other awesome lists

    Back to top

    LEAN JA リンク集 (🥇5) - Japanese translated versions of several tutorials are available. (). MIT ja
    • GitHub (👨‍💻 3 · ⏱️ 27.01.2024):

      ```
      git clone https://github.com/lean-ja/lean-ja.github.io
      ```
      
    Links (lean-lang.org) (🥉1) - Official collection of links. ❗Unlicensed
  • No project information available.

  • lean4 - Where is the syntax of Lean 4 documented? - Proof Assistants Stack Exchange (🥉1) - Discussion regarding Lean 4 documentation. ❗Unlicensed
    • No project information available.

    Movies

    Back to top

    lean4 - YouTube (🥇1) - YouTube movies. ❗Unlicensed
    • No project information available.
    人気の「Lean」動画 14本 - ニコニコ動画 (🥇1) - Niconico movies. Entertaining instructions using TTS.. ❗Unlicensed ja
    • No project information available.

    Related Resources

    • Best-of lists: Discover other best-of lists with awesome open-source projects on all kinds of topics.

    Contribution

    Contributions are encouraged and always welcome! If you like to add or update projects, choose one of the following ways:

    • Open an issue by selecting one of the provided categories from the issue page and fill in the requested information.
    • Modify the projects.yaml with your additions or changes, and submit a pull request. This can also be done directly via the Github UI.

    If you like to contribute to or share suggestions regarding the project metadata collection or markdown generation, please refer to the best-of-generator repository. If you like to create your own best-of list, we recommend to follow this guide.

    For more information on how to add or update projects, please read the contribution guidelines. By participating in this project, you agree to abide by its Code of Conduct.

    License

    CC0