{
  "schemaVersion": 1,
  "slug": "lean-theorem-prover",
  "locale": "zh",
  "pageClass": "entity",
  "entityType": "SoftwareApplication",
  "field": "technology",
  "title": "Lean（定理证明器）",
  "subtitle": "开源函数式编程语言与交互式证明助手（Lean 4）",
  "aliases": [
    "Lean 4",
    "Lean 定理证明器",
    "Lean 编程语言"
  ],
  "lead": {
    "definition": "Lean 是一种开源编程语言与交互式证明助手，旨在编写经过形式化验证的数学证明和软件。其代码仓库采用 Apache-2.0 许可证发布，开发工作由 Lean Focused Research Organization 提供支持。Lean 4 于 2023-09-08 发布了首个正式版本（v4.0.0）。截至 2026-11-24，最新稳定版本为 Lean 4.36.0（发布于 2026-11-16），而 Lean 4.37.0-rc1 已于 2026-11-18 作为预发布候选版本推出；随后，Mathlib 于 2026-11-19 发布了对应的预发布版本，Google DeepMind 则于 2026-11-23 公开了 Lean 4 量子程序验证材料。",
    "answerSummary": "Lean（Lean 4）是一种采用 Apache-2.0 许可证发布、由 Lean Focused Research Organization 支持的开源编程语言与证明助手。截至 2026-11-24，其最新稳定版本为 v4.36.0（2026-11-16），v4.37.0-rc1（2026-11-18）为候选发布版本；2026-11-23，Google DeepMind 开源了一套 Lean 4 量子程序验证库、形式化规范及证明。",
    "keyFacts": [
      {
        "label": "最新稳定版本",
        "value": "v4.36.0（2026-11-16）",
        "ref": "s5",
        "asOf": "2026-11-24"
      },
      {
        "label": "当前候选发布版本",
        "value": "v4.37.0-rc1（2026-11-18，预发布版）",
        "ref": "s6",
        "asOf": "2026-11-24"
      },
      {
        "label": "Lean 4 首个正式版本",
        "value": "v4.0.0（2023-09-08）",
        "ref": "s4"
      },
      {
        "label": "许可证",
        "value": "Apache-2.0",
        "ref": "s3"
      }
    ]
  },
  "infobox": [
    {
      "label": "类型",
      "value": "编程语言与交互式证明助手",
      "ref": "s1"
    },
    {
      "label": "支持机构",
      "value": "Lean Focused Research Organization（Lean FRO）",
      "ref": "s2"
    },
    {
      "label": "许可证",
      "value": "Apache-2.0",
      "ref": "s3"
    },
    {
      "label": "Lean 4 首个正式版本",
      "value": "v4.0.0（2023-09-08）",
      "ref": "s4"
    },
    {
      "label": "最新稳定版本",
      "value": "v4.36.0（2026-11-16）",
      "ref": "s5",
      "asOf": "2026-11-24"
    },
    {
      "label": "最新预发布版本",
      "value": "v4.37.0-rc1（2026-11-18）",
      "ref": "s6",
      "asOf": "2026-11-24"
    },
    {
      "label": "主要数学库",
      "value": "Mathlib（mathlib4）",
      "ref": "s4"
    },
    {
      "label": "源代码仓库",
      "value": "github.com/leanprover/lean4",
      "ref": "s3"
    },
    {
      "label": "官方网站",
      "value": "lean-lang.org",
      "ref": "s1"
    }
  ],
  "sections": [
    {
      "id": "overview-and-organization",
      "heading": "Lean 概述与支持机构",
      "bodyMd": "Lean 是一种开源编程语言与证明助手，支持用户编写形式化数学证明和经过验证的软件。[^s1][^s3] Lean 4 代码仓库采用 Apache-2.0 许可证发布，Lean Focused Research Organization（Lean FRO）声明其致力于支持 Lean 的发展。[^s2][^s3]\n\nLean FRO 表示其使命是推进 Lean 的核心系统与能力建设，并列出了若干重点方向，包括可扩展性、易用性、证明自动化、文档建设、多元化社区，以及对 AI 研究和经过验证的代码合成的支持。[^s2] Lean 官方网站重点介绍的内置自动化功能示例包括用于归纳、代数推理和类 SMT 推理的 `grind` 策略，以及用于判定比特向量等式的 `bv_decide`。[^s1] Lean 4.0.0 发布说明将 Mathlib 描述为 Lean 的主要数学库（`mathlib4`），项目则通过 `lake` 构建工具和 `elan` 工具链管理器进行管理。[^s4][^s9]"
    },
    {
      "id": "release-history-and-versions",
      "heading": "Lean 4 发布历史与 2026 年 11 月版本",
      "bodyMd": "Lean 4 于 2023-09-08 推出了首个正式版本 `v4.0.0`，当时开发团队宣布计划大约每月发布一次次要版本。[^s4]\n\n| 版本 | 类型 | 发布日期 | 备注 |\n|---|---|---|---|\n| v4.0.0 | 稳定版 | 2023-09-08 | Lean 4 首个正式版本 |\n| v4.36.0 | 稳定版（截至 2026-11-24 最新） | 2026-11-16 | GitHub 上最新稳定版发布标签 |\n| v4.37.0-rc1 | 候选发布版（预发布版） | 2026-11-18 | 包含 370 项已合并变更；正式发布前可能调整 |\n\n截至 2026-11-24，`v4.36.0`（发布于 2026-11-16）是 Lean 4 的最新稳定版本。[^s5] 2026-11-18，该项目发布了 `v4.37.0-rc1`，并明确将其标注为候选发布版本而非最终正式版本。[^s6] 其发布说明记录了 370 项已合并变更，包括 71 项功能新增、159 项缺陷修复、108 项性能改进、7 项重构变更、4 项测试套件改进、1 项文档改进和 20 项其他变更，其中一项变更新增了 `shiftLeft.threshold` 选项（默认值为 65536）。[^s6] 2026-11-19，`leanprover-community/mathlib4` 标记了预发布版本 `v4.37.0-rc1`，以将其工具链升级至该候选发布版本。[^s7]"
    },
    {
      "id": "formal-verification-and-deepmind-release",
      "heading": "Lean 在形式化验证中的应用与 2026 年 11 月 DeepMind 开源发布",
      "bodyMd": "Lean FRO 将形式化数学以及软件与硬件验证列为 Lean 的应用领域。[^s1][^s2] 2026-11-23，Google DeepMind 宣布在 GitHub 上公开发布由 [Google Gemini](/wiki/google-gemini)（Gemini 4）智能体团队合成并在 Lean 4 中完成检查的量子程序验证材料。[^s8][^s9]\n\n该开源仓库（`google-deepmind/formal-quantum-computation`，采用 Apache-2.0 许可证）以带经典变量的量子霍尔逻辑为基础，依赖于 `Mathlib4` 以及 `QuantumInfo`（隶属于 `Physlib`）。[^s9] 仓库分为三个部分：核心 `QuantumComputation` 库（涵盖量子电路、量子门、寄存器、量子霍尔逻辑及资源计数）、`QuantumComputationSpecs`（形式化问题规范与基准测试挑战），以及存放所报告程序和 Lean 证明的 `discoveries` 分支。[^s9][^s12]\n\n相关研究预印本（`arXiv:2611.09822v3`）最初提交于 2026-11-06，并于 2026-11-16 修订；2026-11-23 的新闻事件为该 Lean 库、规范及证明的公开发布，当天由 The Next Web 和 QubitWire 进行了报道。[^s8][^s10][^s11][^s12] DeepMind 与 QubitWire 均指出，所报告的资源缩减（例如量子比特与操作综合成本指标降低 11.8 倍，以及惯性约束聚变计算中的纠错量子比特数从 5,650 降至 4,338）是针对形式化规范和成本模型进行数学验证的结果，而非在物理量子硬件上的实测数据；此外，该仓库将经典计算与控制流的显式成本建模列为计划中的后续工作。[^s8][^s9][^s12]"
    },
    {
      "id": "scope-and-verification-limits",
      "heading": "Lean 验证的范围与局限",
      "bodyMd": "正如针对 DeepMind 代码仓库发布的独立报道所指出的，经机器检查的 Lean 证明能够确认程序在所建模的成本假设下满足其形式化规范，但本身并不能证明这些规范或成本模型覆盖了物理硬件的所有瓶颈，也不能证明外部机构已独立复现了相关结果。[^s12]"
    }
  ],
  "faqs": [
    {
      "q": "截至 2026-11-24，Lean 4 的最新稳定版本是什么？",
      "a": "截至 2026-11-24，Lean 4 的最新稳定版本是发布于 2026-11-16 的 v4.36.0。发布于 2026-11-18 的 Lean 4.37.0-rc1 属于候选发布版本（预发布版），而非最终正式版本。",
      "refs": [
        "s5",
        "s6"
      ]
    },
    {
      "q": "Mathlib 在 Lean 生态系统中是什么？",
      "a": "Mathlib（mathlib4）是 Lean 的主要数学库。2026-11-19，Mathlib 代码仓库发布了 v4.37.0-rc1 预发布版本，将其工具链更新以匹配 Lean 4.37.0-rc1。",
      "refs": [
        "s4",
        "s7"
      ]
    },
    {
      "q": "Google DeepMind 于 2026-11-23 发布了哪些与 Lean 相关的内容？",
      "a": "2026-11-23，Google DeepMind 宣布公开发布采用 Apache-2.0 许可证的 GitHub 仓库 formal-quantum-computation，其中包含其 2026 年 11 月预印本中的 Lean 4 量子程序库、形式化问题规范以及 Lean 证明。",
      "refs": [
        "s8",
        "s9",
        "s10"
      ]
    },
    {
      "q": "DeepMind 的 Lean 开源发布是否演示了在物理量子计算机上的运行？",
      "a": "没有。2026-11-23 的公告是 Lean 验证材料的公开发布，所报告的资源改进源于形式化规范和数学成本模型，而非物理量子硬件上的运行耗时测量。",
      "refs": [
        "s8",
        "s12"
      ]
    }
  ],
  "claims": [
    {
      "text": "Lean 是一种采用 Apache-2.0 许可证发布、由 Lean Focused Research Organization 支持的开源编程语言与证明助手。",
      "refs": [
        "s1",
        "s2",
        "s3"
      ]
    },
    {
      "text": "Lean 4 首个正式版本 Lean 4.0.0 发布于 2023-09-08。",
      "refs": [
        "s4"
      ]
    },
    {
      "text": "截至 2026-11-24，Lean v4.36.0（发布于 2026-11-16）是 GitHub 上的最新稳定发布版本。",
      "refs": [
        "s5"
      ]
    },
    {
      "text": "Lean 4.37.0-rc1 于 2026-11-18 作为包含 370 项已合并变更的候选发布版本推出，Mathlib 则于 2026-11-19 发布了对应的 v4.37.0-rc1 预发布版本。",
      "refs": [
        "s6",
        "s7"
      ]
    },
    {
      "text": "2026-11-23，Google DeepMind 在 google-deepmind/formal-quantum-computation 中开源了其 Lean 4 量子程序验证库、问题规范和经过验证的解法。",
      "refs": [
        "s8",
        "s9"
      ]
    },
    {
      "text": "配套预印本 arXiv:2611.09822v3 提交于 2026-11-06 并于 2026-11-16 修订，其中报告的电路成本数据源自形式化模型，而非物理量子硬件的实际运行。",
      "refs": [
        "s10",
        "s12"
      ]
    }
  ],
  "timeline": [
    {
      "date": "2023-09-08",
      "text": "Lean 4.0.0 作为 Lean 4 首个正式版本发布。",
      "refs": [
        "s4"
      ]
    },
    {
      "date": "2026-11-06",
      "text": "作者提交预印本 arXiv:2611.09822，介绍使用 Gemini 4 智能体在 Lean 中发现经过形式化验证的量子程序（于 2026-11-16 修订为 v3）。",
      "refs": [
        "s10"
      ]
    },
    {
      "date": "2026-11-16",
      "text": "Lean v4.36.0 作为稳定版本在 GitHub 上发布。",
      "refs": [
        "s5"
      ]
    },
    {
      "date": "2026-11-18",
      "text": "Lean 4.37.0-rc1 作为包含 370 项已合并变更的候选发布版本推出。",
      "refs": [
        "s6"
      ]
    },
    {
      "date": "2026-11-19",
      "text": "Mathlib（mathlib4）发布预发布版本 v4.37.0-rc1，将其工具链更新至 Lean 4.37.0-rc1。",
      "refs": [
        "s7"
      ]
    },
    {
      "date": "2026-11-23",
      "text": "Google DeepMind 宣布在 GitHub 上公开发布其 Lean 4 量子程序验证库、问题规范和经过验证的解法。",
      "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": "黎曼猜想"
    },
    {
      "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/zh/wiki/lean-theorem-prover",
    "revision": {
      "sha256": "c077807ba42fcff74e2c22a534233035d804467b6d54770712411318fe0fa762",
      "short": "c077807b",
      "hashedFields": "all fields except status and _meta, RFC 8785 canonical form"
    },
    "formats": {
      "md": "https://mimirwiki.com/zh/wiki/lean-theorem-prover.md",
      "txt": "https://mimirwiki.com/zh/wiki/lean-theorem-prover.txt",
      "json": "https://mimirwiki.com/zh/wiki/lean-theorem-prover.json",
      "jsonld": "https://mimirwiki.com/zh/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"
    }
  }
}
