{
  "schemaVersion": 1,
  "slug": "lean-theorem-prover",
  "locale": "en",
  "pageClass": "entity",
  "entityType": "SoftwareApplication",
  "field": "technology",
  "title": "Lean (Theorem Prover)",
  "subtitle": "Open-source functional programming language and interactive proof assistant (Lean 4)",
  "aliases": [
    "Lean 4",
    "Lean theorem prover",
    "Lean programming language"
  ],
  "lead": {
    "definition": "Lean is an open-source programming language and interactive proof assistant designed to write formally verified mathematical proofs and software. Its repository is published under the Apache-2.0 license and its development is supported by the Lean Focused Research Organization. Lean 4 had its first official release (v4.0.0) on 2023-09-08. As of 2026-11-24, the latest stable release is Lean 4.36.0 (released 2026-11-16), while Lean 4.37.0-rc1 was published on 2026-11-18 as a pre-release candidate, followed by a matching Mathlib pre-release on 2026-11-19 and Google DeepMind's 2026-11-23 public release of Lean 4 quantum-program verification materials.",
    "answerSummary": "Lean (Lean 4) is an open-source programming language and proof assistant published under the Apache-2.0 license and supported by the Lean Focused Research Organization. As of 2026-11-24, its latest stable release is v4.36.0 (2026-11-16) and v4.37.0-rc1 (2026-11-18) is a release candidate; on 2026-11-23, Google DeepMind open-sourced a Lean 4 quantum-program verification library, specifications, and proofs.",
    "keyFacts": [
      {
        "label": "Latest stable release",
        "value": "v4.36.0 (2026-11-16)",
        "ref": "s5",
        "asOf": "2026-11-24"
      },
      {
        "label": "Current release candidate",
        "value": "v4.37.0-rc1 (2026-11-18, pre-release)",
        "ref": "s6",
        "asOf": "2026-11-24"
      },
      {
        "label": "Lean 4 first official release",
        "value": "v4.0.0 (2023-09-08)",
        "ref": "s4"
      },
      {
        "label": "License",
        "value": "Apache-2.0",
        "ref": "s3"
      }
    ]
  },
  "infobox": [
    {
      "label": "Type",
      "value": "Programming language and interactive proof assistant",
      "ref": "s1"
    },
    {
      "label": "Supporting organization",
      "value": "Lean Focused Research Organization (Lean FRO)",
      "ref": "s2"
    },
    {
      "label": "License",
      "value": "Apache-2.0",
      "ref": "s3"
    },
    {
      "label": "Lean 4 first official release",
      "value": "v4.0.0 (2023-09-08)",
      "ref": "s4"
    },
    {
      "label": "Latest stable release",
      "value": "v4.36.0 (2026-11-16)",
      "ref": "s5",
      "asOf": "2026-11-24"
    },
    {
      "label": "Latest pre-release",
      "value": "v4.37.0-rc1 (2026-11-18)",
      "ref": "s6",
      "asOf": "2026-11-24"
    },
    {
      "label": "Major mathematical library",
      "value": "Mathlib (mathlib4)",
      "ref": "s4"
    },
    {
      "label": "Source repository",
      "value": "github.com/leanprover/lean4",
      "ref": "s3"
    },
    {
      "label": "Official website",
      "value": "lean-lang.org",
      "ref": "s1"
    }
  ],
  "sections": [
    {
      "id": "overview-and-organization",
      "heading": "Lean overview and organization",
      "bodyMd": "Lean is an open-source programming language and proof assistant that enables users to write formal mathematical proofs and verified software.[^s1][^s3] The Lean 4 repository is published under the Apache-2.0 license, and the Lean Focused Research Organization (Lean FRO) states that it supports Lean's growth.[^s2][^s3]\n\nLean FRO states that its mission is to advance Lean's critical systems and capabilities, and lists focus areas including scalability, usability, proof automation, documentation, a diverse community, and support for AI research and verified code synthesis.[^s2] Built-in automation examples highlighted on the official Lean site include the `grind` tactic for induction, algebraic reasoning, and SMT-like reasoning, as well as `bv_decide` for deciding bitvector equations.[^s1] The Lean 4.0.0 release notes describe Mathlib as Lean's major mathematical library (`mathlib4`), and projects are managed with the `lake` build tool and `elan` toolchain manager.[^s4][^s9]"
    },
    {
      "id": "release-history-and-versions",
      "heading": "Lean 4 release history and November 2026 versions",
      "bodyMd": "Lean 4 reached its first official release with `v4.0.0` on 2023-09-08, when the developers announced plans for approximately monthly minor releases.[^s4]\n\n| Version | Type | Release date | Notes |\n|---|---|---|---|\n| v4.0.0 | Stable | 2023-09-08 | First official release of Lean 4 |\n| v4.36.0 | Stable (Latest as of 2026-11-24) | 2026-11-16 | Latest stable release tag on GitHub |\n| v4.37.0-rc1 | Release candidate (pre-release) | 2026-11-18 | 370 landed changes; subject to change before final release |\n\nAs of 2026-11-24, `v4.36.0` (released 2026-11-16) is the latest stable release of Lean 4.[^s5] On 2026-11-18, the project published `v4.37.0-rc1`, explicitly labeled as a release candidate rather than a final release.[^s6] Its release notes record 370 landed changes, including 71 feature additions, 159 fixes, 108 performance improvements, 7 refactoring changes, 4 test suite improvements, 1 documentation improvement, and 20 other changes, one of which adds the option `shiftLeft.threshold` (default 65536).[^s6] On 2026-11-19, `leanprover-community/mathlib4` tagged pre-release `v4.37.0-rc1` to bump its toolchain to the release candidate.[^s7]"
    },
    {
      "id": "formal-verification-and-deepmind-release",
      "heading": "Lean in formal verification and the November 2026 DeepMind release",
      "bodyMd": "Lean FRO names formal mathematics and software and hardware verification among the fields where Lean is applied.[^s1][^s2] On 2026-11-23, Google DeepMind announced the public release of verification materials on GitHub for quantum programs synthesized with [Google Gemini](/wiki/google-gemini) (Gemini 4) agent teams and checked in Lean 4.[^s8][^s9]\n\nThe open-sourced repository (`google-deepmind/formal-quantum-computation`, Apache-2.0 license) is grounded in quantum Hoare logic with classical variables and depends on `Mathlib4` and `QuantumInfo` (part of `Physlib`).[^s9] It separates three parts: the core `QuantumComputation` library (circuits, gates, registers, quantum Hoare logic, and resource counting), `QuantumComputationSpecs` (formal problem specifications and benchmark challenges), and a `discoveries` branch holding the reported programs and Lean proofs.[^s9][^s12]\n\nThe underlying research preprint (`arXiv:2611.09822v3`) was first submitted on 2026-11-06 and revised on 2026-11-16; the 2026-11-23 news event was the public release of the Lean library, specifications, and proofs, covered that day by The Next Web and QubitWire.[^s8][^s10][^s11][^s12] Both DeepMind and QubitWire note that the reported resource reductions (such as an 11.8x reduction in a combined qubit-and-operation cost metric and 4,338 versus 5,650 error-corrected qubits for an inertial confinement fusion calculation) are mathematically verified against formal specifications and cost models rather than measured on physical quantum hardware, and the repository lists explicit costing of classical computation and control flow as planned future work.[^s8][^s9][^s12]"
    },
    {
      "id": "scope-and-verification-limits",
      "heading": "Lean verification scope and limits",
      "bodyMd": "As noted in independent coverage of the DeepMind repository release, a machine-checked Lean proof confirms that a program satisfies its formal specification under the modeled cost assumptions, but does not by itself establish that those specifications or cost models match every physical hardware bottleneck or that external parties have independently reproduced the results.[^s12]"
    }
  ],
  "faqs": [
    {
      "q": "What is the latest stable version of Lean 4 as of 2026-11-24?",
      "a": "As of 2026-11-24, the latest stable release of Lean 4 is v4.36.0, released on 2026-11-16. Lean 4.37.0-rc1, published on 2026-11-18, is a release candidate (pre-release) rather than a final release.",
      "refs": [
        "s5",
        "s6"
      ]
    },
    {
      "q": "What is Mathlib in the Lean ecosystem?",
      "a": "Mathlib (mathlib4) is Lean's major mathematical library. On 2026-11-19, the Mathlib repository published a v4.37.0-rc1 pre-release updating its toolchain to match Lean 4.37.0-rc1.",
      "refs": [
        "s4",
        "s7"
      ]
    },
    {
      "q": "What did Google DeepMind release for Lean on 2026-11-23?",
      "a": "On 2026-11-23, Google DeepMind announced the public release of its Apache-2.0 GitHub repository formal-quantum-computation, containing a Lean 4 quantum program library, formal problem specifications, and Lean proofs from its November 2026 preprint.",
      "refs": [
        "s8",
        "s9",
        "s10"
      ]
    },
    {
      "q": "Did the DeepMind Lean release demonstrate execution on a physical quantum computer?",
      "a": "No. The 2026-11-23 announcement was the public release of Lean verification materials, and the reported resource improvements come from formal specifications and mathematical cost models rather than timing on physical quantum hardware.",
      "refs": [
        "s8",
        "s12"
      ]
    }
  ],
  "claims": [
    {
      "text": "Lean is an open-source programming language and proof assistant licensed under Apache-2.0 and supported by the Lean Focused Research Organization.",
      "refs": [
        "s1",
        "s2",
        "s3"
      ]
    },
    {
      "text": "Lean 4.0.0, the first official release of Lean 4, was published on 2023-09-08.",
      "refs": [
        "s4"
      ]
    },
    {
      "text": "As of 2026-11-24, Lean v4.36.0 (released 2026-11-16) is the latest stable release on GitHub.",
      "refs": [
        "s5"
      ]
    },
    {
      "text": "Lean 4.37.0-rc1 was published on 2026-11-18 as a release candidate with 370 landed changes, and Mathlib published a matching v4.37.0-rc1 pre-release on 2026-11-19.",
      "refs": [
        "s6",
        "s7"
      ]
    },
    {
      "text": "On 2026-11-23, Google DeepMind open-sourced its Lean 4 quantum-program verification library, problem specifications, and verified solutions in google-deepmind/formal-quantum-computation.",
      "refs": [
        "s8",
        "s9"
      ]
    },
    {
      "text": "The accompanying preprint arXiv:2611.09822v3 was submitted on 2026-11-06 and revised on 2026-11-16, and its reported circuit cost figures are derived from formal models rather than physical quantum hardware runs.",
      "refs": [
        "s10",
        "s12"
      ]
    }
  ],
  "timeline": [
    {
      "date": "2023-09-08",
      "text": "Lean 4.0.0 is released as the first official release of Lean 4.",
      "refs": [
        "s4"
      ]
    },
    {
      "date": "2026-11-06",
      "text": "Authors submit preprint arXiv:2611.09822 on discovering formally verified quantum programs in Lean with Gemini 4 agents (revised to v3 on 2026-11-16).",
      "refs": [
        "s10"
      ]
    },
    {
      "date": "2026-11-16",
      "text": "Lean v4.36.0 is published as a stable release on GitHub.",
      "refs": [
        "s5"
      ]
    },
    {
      "date": "2026-11-18",
      "text": "Lean 4.37.0-rc1 is published as a release candidate with 370 landed changes.",
      "refs": [
        "s6"
      ]
    },
    {
      "date": "2026-11-19",
      "text": "Mathlib (mathlib4) publishes pre-release v4.37.0-rc1 updating its toolchain to Lean 4.37.0-rc1.",
      "refs": [
        "s7"
      ]
    },
    {
      "date": "2026-11-23",
      "text": "Google DeepMind announces the public release of its Lean 4 quantum-program verification library, problem specifications, and verified solutions on GitHub.",
      "refs": [
        "s8",
        "s9"
      ]
    }
  ],
  "sources": [
    {
      "key": "s1",
      "url": "https://lean-lang.org/",
      "tier": 3,
      "title": "Lean Programming Language",
      "publisher": "Lean Focused Research Organization",
      "accessedAt": "2026-11-24"
    },
    {
      "key": "s2",
      "url": "https://lean-fro.org/",
      "tier": 3,
      "title": "Lean Focused Research Organization",
      "publisher": "Lean Focused Research Organization",
      "accessedAt": "2026-11-24"
    },
    {
      "key": "s3",
      "url": "https://github.com/leanprover/lean4",
      "tier": 3,
      "title": "leanprover/lean4: Lean 4 programming language and theorem prover",
      "publisher": "Lean Focused Research Organization",
      "accessedAt": "2026-11-24"
    },
    {
      "key": "s4",
      "url": "https://github.com/leanprover/lean4/releases/tag/v4.0.0",
      "tier": 3,
      "title": "Release v4.0.0 - leanprover/lean4",
      "publisher": "Lean Focused Research Organization",
      "publishedAt": "2023-09-08",
      "accessedAt": "2026-11-24"
    },
    {
      "key": "s5",
      "url": "https://github.com/leanprover/lean4/releases/tag/v4.36.0",
      "tier": 3,
      "title": "Release v4.36.0 - leanprover/lean4",
      "publisher": "Lean Focused Research Organization",
      "publishedAt": "2026-11-16",
      "accessedAt": "2026-11-24"
    },
    {
      "key": "s6",
      "url": "https://lean-lang.org/doc/reference/latest/releases/v4.37.0/",
      "tier": 3,
      "title": "Lean 4.37.0-rc1 (2026-11-18)",
      "publisher": "Lean Focused Research Organization",
      "publishedAt": "2026-11-18",
      "accessedAt": "2026-11-24"
    },
    {
      "key": "s7",
      "url": "https://github.com/leanprover-community/mathlib4/releases/tag/v4.37.0-rc1",
      "tier": 3,
      "title": "Release v4.37.0-rc1 - leanprover-community/mathlib4",
      "publisher": "Lean Community",
      "publishedAt": "2026-11-19",
      "accessedAt": "2026-11-24"
    },
    {
      "key": "s8",
      "url": "https://deepmind.google/blog/finding-faster-quantum-algorithms-with-agents-and-formal-verification/",
      "tier": 3,
      "title": "Finding faster quantum algorithms with agents and formal verification",
      "publisher": "Google DeepMind",
      "publishedAt": "2026-11-23",
      "accessedAt": "2026-11-24"
    },
    {
      "key": "s9",
      "url": "https://github.com/google-deepmind/formal-quantum-computation",
      "tier": 3,
      "title": "google-deepmind/formal-quantum-computation",
      "publisher": "Google DeepMind",
      "accessedAt": "2026-11-24"
    },
    {
      "key": "s10",
      "url": "https://arxiv.org/abs/2611.09822v3",
      "tier": 2,
      "title": "Discovering formally verified quantum programs with AI",
      "publisher": "arXiv",
      "publishedAt": "2026-11-16",
      "accessedAt": "2026-11-24"
    },
    {
      "key": "s11",
      "url": "https://thenextweb.com/news/google-deepmind-gemini-agents-quantum-algorithms-lean",
      "tier": 2,
      "title": "DeepMind's AI agents found cheaper quantum algorithms, and proved them",
      "publisher": "The Next Web",
      "publishedAt": "2026-11-23",
      "accessedAt": "2026-11-24"
    },
    {
      "key": "s12",
      "url": "https://qubitwire.com/articles/google-deepmind-quantum-program-proofs-public-release",
      "tier": 2,
      "title": "Google opens the proofs behind its AI-designed quantum programs",
      "publisher": "QubitWire",
      "publishedAt": "2026-11-23",
      "accessedAt": "2026-11-24"
    }
  ],
  "links": [
    {
      "predicate": "relatedTo",
      "toSlug": "riemann-hypothesis",
      "label": "Riemann Hypothesis"
    },
    {
      "predicate": "relatedTo",
      "toSlug": "google-gemini",
      "label": "Google Gemini"
    }
  ],
  "sameAs": [
    "https://lean-lang.org/",
    "https://github.com/leanprover/lean4",
    "https://lean-fro.org/"
  ],
  "disclaimer": null,
  "status": {
    "review": "awaiting_review",
    "provenance": "prefill",
    "autoWritten": true
  },
  "dateCreated": "2026-11-24",
  "dateModified": "2026-11-24",
  "_meta": {
    "canonicalUrl": "https://mimirwiki.com/wiki/lean-theorem-prover",
    "revision": {
      "sha256": "67e7441e6a7932ee0dbba35dc0a3d34393f73ef2df3f56ba1e528b462bc710b3",
      "short": "67e7441e",
      "hashedFields": "all fields except status and _meta, RFC 8785 canonical form"
    },
    "formats": {
      "md": "https://mimirwiki.com/wiki/lean-theorem-prover.md",
      "txt": "https://mimirwiki.com/wiki/lean-theorem-prover.txt",
      "json": "https://mimirwiki.com/wiki/lean-theorem-prover.json",
      "jsonld": "https://mimirwiki.com/wiki/lean-theorem-prover.jsonld"
    },
    "translations": {
      "en": "https://mimirwiki.com/wiki/lean-theorem-prover",
      "ko": "https://mimirwiki.com/ko/wiki/lean-theorem-prover",
      "ja": "https://mimirwiki.com/ja/wiki/lean-theorem-prover",
      "zh": "https://mimirwiki.com/zh/wiki/lean-theorem-prover",
      "es": "https://mimirwiki.com/es/wiki/lean-theorem-prover",
      "de": "https://mimirwiki.com/de/wiki/lean-theorem-prover",
      "fr": "https://mimirwiki.com/fr/wiki/lean-theorem-prover",
      "pt": "https://mimirwiki.com/pt/wiki/lean-theorem-prover",
      "ru": "https://mimirwiki.com/ru/wiki/lean-theorem-prover",
      "it": "https://mimirwiki.com/it/wiki/lean-theorem-prover",
      "hi": "https://mimirwiki.com/hi/wiki/lean-theorem-prover",
      "ar": "https://mimirwiki.com/ar/wiki/lean-theorem-prover"
    }
  }
}
