Acknowledging the ordeal of a fully formal development in a proof assistant such as Coq, we investigate gradual variations on the Calculus of Inductive Construction (CIC) for swifter prototyping with imprecise types and terms. We observe, with a no-go theorem, a crucial tradeoff between graduality and the key properties of normalization and closure of universes under dependent product that CIC enjoys. Beyond this Fire Triangle of Graduality, we explore the gradualization of CIC with three different compromises, each relaxing one edge of the Fire Triangle. We develop a parametrized presentation of Gradual CIC that encompasses all three variations, and develop their metatheory. We first present a bidirectional elaboration of Gradual CIC to a dependently-typed cast calculus, which elucidates the interrelation between typing, conversion, and the gradual guarantees. We use a syntactic model into CIC to inform the design of a safe, confluent reduction, and establish, when applicable, normalization. We also study the stronger notion of graduality as embedding-projection pairs formulated by New and Ahmed, using appropriate semantic model constructions. This work informs and paves the way towards the development of malleable proof assistants and dependently-typed programming languages.
翻译:承认Coq 等校对助理的全面正式发展的考验,我们调查进化建筑(CIC)的微积分的逐渐变异,以便以不精确的类型和术语进行更迅速的原型。我们用不切实际的理论观察,逐渐地与CIC所依赖的产品下的宇宙正常化和封闭的关键特性之间的重要权衡。除了这个渐渐变的火三角外,我们探索CIC的逐步化,采用三种不同的妥协,每个妥协都放松了火三角的边缘。我们开发了渐进式CIC的均衡化演示,包括了所有三种变异,并发展了它们的元理论。我们首先用一种自成一体的刻式微积分进行双向式的阐述,它阐明了打字、转换和逐步保证之间的相互关系。我们使用CIC的合成模型来指导安全、互不相容的减少的设计,并在适用时建立正常化。我们还研究“渐进式CIC”的较强的概念,将所有三种变异式CIC作为嵌式的组合,并发展它们的元理论。我们首先用新版和新版和新版和新版的模模版的模版的模模化的模版的模版的模版的模化的模化模型,将逐步式的模版的模版的模化的模版的模版的模化的模版的模版的模化的模版的模版式的模版的模版的模版的模版的模化的模化的模化的模化的模化的模化的模化的模化的模化法化的模化的模制化的模化的模型化的模化的模化的模化的模。