arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.15520cs.LOcs.SC
收藏

1986年ICON实验包中欧几里得域算法的Lean 4形式化

A Lean 4 Formalization of Euclidean Domain Algorithms from a 1986 Icon Experimentation Package

Catskills Research Company(卡茨基尔研究公司)

Lars Warren Ericson

AI总结:

本文用Lean 4形式化了1986年ICON包中欧几里得域算法,分离数学定义、可计算镜像和报告基础设施,所有算法类型检查通过,部分算法有机器验证证明。

摘要:

我们描述了NYU计算机科学技术报告#232《An ICON Package for Experimenting with Euclidean Domains》(Ericson, 1986)中算法和域类型的Lean 4形式化。原始系统通过Icon中的自定义运行时调度机制实现了Lipson的整数、有理数、模环、多项式环和截断幂级数过程目录。当前工作分离了三个关注点:基于Mathlib的EuclideanDomain层次结构的数学定义、适合评估和回归测试的可计算镜像,以及逐行复现1986年基准输出的报告格式化基础设施。报告第3节中的所有十四个应用算法均已定义并通过类型检查,无需sorry;那些基于Mathlib的算法——主要是整数gcd和扩展欧几里得——还带有机器验证的证明。我们根据每个过程相对于Mathlib的认识论状态对其进行分类,枚举证明层和可计算层之间的一致性义务,并精确说明哪些是定理支持的,哪些是回归信任的。该形式化明确了1986年包仅非正式地跨越的验证边界。

英文摘要:

We describe a Lean 4 formalization of the algorithms and domain types from NYU Computer Science Technical Report \#232, \emph{An ICON Package for Experimenting with Euclidean Domains} (Ericson, 1986). The original system implemented Lipson's catalog of procedures over integers, rationals, modular rings, polynomial rings, and truncated power series via a custom runtime dispatch mechanism in Icon. The present work separates three concerns: mathematical definitions grounded in Mathlib's \texttt{EuclideanDomain} hierarchy, computable mirrors suitable for evaluation and regression testing, and report-formatting infrastructure that reproduces the 1986 benchmark output line-for-line. All fourteen application algorithms from Section 3 of the report are defined and typecheck without \texttt{sorry}; those grounded in Mathlib -- chiefly integer gcd and extended Euclid -- additionally carry machine-checked proofs. We classify each procedure by its epistemic status relative to Mathlib, enumerate the coherence obligations between the proof and computable layers, and state precisely what is theorem-backed versus regression-trusted. The formalization makes explicit the verification boundary that the 1986 package crossed only informally.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑