Munkres泛拓扑论在Isabelle/HOL中的自动形式化
Munkres' General Topology Autoformalized in Isabelle/HOL
AI总结:
本研究利用LLM辅助在Isabelle/HOL中自动形式化Munkres泛拓扑教材,生成85000余行代码,涵盖39章节,证明包括Tychonoff定理等核心结果,方法结合声明性证明与sledgehammer工具,展现高效形式化潜力。
摘要:
我们描述了一个利用LLM辅助自动形式化的实验,生成了超过85000行Isabelle/HOL代码,覆盖Munkres《拓扑学》(泛拓扑,第2至8章)的所有39章节,从拓扑空间到维度理论。LLM基于编码代理(最初为ChatGPT 5.2,后为Claude Opus 4.6)在24个活跃日内完成该任务。形式化是完整的:所有806个形式化结果均被完全证明,无任何sorry。证明的结果包括Tychonoff定理、Baire类别定理、Nagata-Smirnov和Smirnov度量定理、Stone-Čech紧致化、Ascoli定理、空间填充曲线等。方法基于“先假证明”的声明性证明工作流,结合大量使用sledgehammer——Isabelle的两大主要优势。这导致相对快速的自动形式化进展。我们详细分析了所得到的形式化,分析了会话日志中的人与LLM交互模式,并简要比较了与Megalodon、HOL Light和Naproche中的相关自动形式化努力。结果表明,利用LLM辅助在Isabelle/HOL中形式化标准数学教材是相当可行、经济且快速的,即使某些人类监督是有用的。
英文摘要:
We describe an experiment in LLM-assisted autoformalization that produced over 85,000 lines of Isabelle/HOL code covering all 39 sections of Munkres' Topology (general topology, Chapters 2--8), from topological spaces through dimension theory. The LLM-based coding agents (initially ChatGPT 5.2 and then Claude Opus 4.6) used 24 active days for that. The formalization is complete: all 806 formal results are fully proved with zero sorry's. Proved results include the Tychonoff theorem, the Baire category theorem, the Nagata--Smirnov and Smirnov metrization theorems, the Stone--Čech compactification, Ascoli's theorem, the space-filling curve, and others. The methodology is based on a "sorry-first" declarative proof workflow combined with bulk use of sledgehammer - two of Isabelle major strengths. This leads to relatively fast autoformalization progress. We analyze the resulting formalization in detail, analyze the human--LLM interaction patterns from the session log, and briefly compare with related autoformalization efforts in Megalodon, HOL Light, and Naproche. The results indicate that LLM-assisted formalization of standard mathematical textbooks in Isabelle/HOL is quite feasible, cheap and fast, even if some human supervision is useful.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。