构造性伽罗瓦连接
Constructive Galois Connections
摘要:
伽罗瓦连接是在语义学中构造抽象的基本工具,它们的使用是抽象解释理论的核心。然而,使用证明助手的伽罗瓦连接的机械化仍然限于受限的使用模式,阻止了它们在机械化元理论和认证编程中的普遍应用。本文提出了建设性的伽罗瓦连接,伽罗瓦连接的一个变种,是有效的在纸上和证明助手;是完整的一个大子集的经典伽罗瓦连接,并使更一般的推理原则,包括“计算”的风格所倡导的库索。为了设计建设性的伽罗瓦连接,我们确定了一个限制模式的使用经典的,这是通用的,并服从机械化依赖类型的功能程序设计语言。我们的元理论的关键是在伽罗瓦连接中加入一元结构,以控制“规范效应”。“精确的计算可能是经典的,而纯粹的计算具有可提取的计算内容。我们的元理论使我们能够在规范和实现的世界之间进行明确的移动。为了验证我们的方法,我们提供了两个案例研究,在机械化现有的证明文献:第一个使用计算抽象解释设计一个静态分析器;第二个形成了语义基础逐步打字。这两个机械化的证明密切遵循其原来的纸和笔的同行,采用推理原则没有捕捉到以前的机械化方法,支持提取验证算法,是新颖的。
英文摘要:
Galois connections are a foundational tool for structuring abstraction in semantics and their use lies at the heart of the theory of abstract interpretation. Yet, mechanization of Galois connections using proof assistants remains limited to restricted modes of use, preventing their general application in mechanized metatheory and certified programming. This paper presents constructive Galois connections, a variant of Galois connections that is effective both on paper and in proof assistants; is complete with respect to a large subset of classical Galois connections; and enables more general reasoning principles, including the "calculational" style advocated by Cousot. To design constructive Galois connections we identify a restricted mode of use of classical ones which is both general and amenable to mechanization in dependently-typed functional programming languages. Crucial to our metatheory is the addition of monadic structure to Galois connections to control a "specification effect." Effectful calculations may reason classically, while pure calculations have extractable computational content. Explicitly moving between the worlds of specification and implementation is enabled by our metatheory. To validate our approach, we provide two case studies in mechanizing existing proofs from the literature: the first uses calculational abstract interpretation to design a static analyzer; the second forms a semantic basis for gradual typing. Both mechanized proofs closely follow their original paper-and-pencil counterparts, employ reasoning principles not captured by previous mechanization approaches, support the extraction of verified algorithms, and are novel.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。