Just Type It in Isabelle! AI Agents Drafting, Mechanizing, and Generalizing from Human Hints
Just Type It in Isabelle! AI Agents Drafting, Mechanizing, and Generalizing from Human Hints
AI总结:
研究Isabelle中秩一多态λ项的类型标注问题,通过人类和AI代理(LLM)分别进行纸笔证明和自动形式化,并利用人类提示进行改进和泛化。
摘要:
类型标注在打印项时至关重要,以确保其在重新解析和类型推断下保持含义。我们研究了Isabelle中使用的秩一多态$λ$-演算项的完全且最小类型标注问题。基于Smolka、Blanchette等人的先前工作,我们对该问题进行了元理论阐述,包括完整的形式化规范和证明,并在Isabelle/HOL中进行了形式化。我们的开发是一系列实验,展示了人类驱动和AI驱动的形式化工作流程:人类和基于LLM的AI代理独立产生纸笔证明,AI代理在Isabelle中自动形式化两者,并通过进一步的人类提示AI干预来改进和泛化开发。
英文摘要:
Type annotations are essential when printing terms in a way that preserves their meaning under reparsing and type inference. We study the problem of complete and minimal type annotations for rank-one polymorphic $λ$-calculus terms, as used in Isabelle. Building on prior work by Smolka, Blanchette et al., we give a metatheoretical account of the problem, with a full formal specification and proofs, and formalize it in Isabelle/HOL. Our development is a series of experiments featuring human-driven and AI-driven formalization workflows: a human and an LLM-powered AI agent independently produce pen-and-paper proofs, and the AI agent autoformalizes both in Isabelle, with further human-hinted AI interventions refining and generalizing the development.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。