20260706:新增一些文章

This commit is contained in:
2026-07-06 10:14:02 +08:00
parent 6021dea160
commit 24b006225b
194 changed files with 8512 additions and 91 deletions

View File

@@ -0,0 +1,43 @@
---
title: "Lean 证明助手Lean Proof Assistant"
created: 2026-07-03
updated: 2026-07-03
type: concept
tags: ["mathematics", "formal-verification", "lean", "dependent-types"]
sources: ["arxiv:2606.03303"]
---
# Lean 证明助手
> 一个基于依赖类型理论的交互式定理证明器和函数式编程语言,由 Leonardo de Moura 等开发。
## 核心定义
**Lean** 是现代 [[formal-theorem-proving|形式化定理证明]] 中最活跃的系统之一。它同时是一门函数式编程语言和一个证明助手,允许数学家编写机器可检查的证明,由严格的 Lean 内核验证。
## 关键特性
- **依赖类型系统**类型可以依赖值使证明即程序Curry-Howard 同构)
- **mathlib4**:庞大的数学形式化库
- **Lean Blueprint 工具**:用于组织大型形式化项目的人类可读路线图 + DAG 可视化
- **验证保证**Lean 编译器提供严格的语法和类型检查
## 在 ATP 中的作用
在 [[leap-agentic-atp|LEAP]] 等 agentic 框架中Lean 编译器扮演双重角色:
1. **形式验证器**:检查候选证明的正确性
2. **反馈源**:编译错误信息指导 LLM 的迭代修正
Lean 的 `sorry` 占位符机制允许部分证明sketch——声明子目标而不必立即证明——这是 [[blueprint-driven-atp|蓝图驱动 ATP]] 的关键能力。
## 大型项目
- Fermat's Last Theorem 形式化路线图(多年代码,显式依赖图)
- mathlib4 社区驱动的数学知识库
## 参考
- [[formal-theorem-proving|形式化定理证明]]
- [[leap-agentic-atp|LEAP]]
- [[blueprint-driven-atp|蓝图驱动 ATP]]
- [[autoformalization|自动形式化]]