规范双向类型检查
Canonical bidirectional typechecking
AI总结:
本文提出了一种基于极化系统L的双向类型检查方法,结合了可检查与可合成的分裂,并展示了线性与cartesian类型的结合方式。
摘要:
我们证明了双向类型检查中的可检查/可合成分裂与现有极化系统L中的双重性一致,也称为极化μ~μ-calculus。具体而言,正项和负项合成为可检查的,而负项和正项合成为可合成的。这将标准的双向类型检查公式与Zeilberger的'cocontextual'变体结合在一起。我们扩展了这种形式到普通的'cartesian'系统L,使用McBride的co-de Bruijn作用域公式,并显示这两种都可以以线性-非线性方式结合,其中线性类型为正,cartesian类型为负。这导致极化系统L的移位、LNL计算系统和双向计算系统之间出现显著的三重一致性。
英文摘要:
We demonstrate that the checkable/synthesisable split in bidirectional typechecking coincides with existing dualities in polarised System L, also known as polarised $μ\tildeμ$-calculus. Specifically, positive terms and negative coterms are checkable, and negative terms and positive coterms are synthesisable. This combines a standard formulation of bidirectional typechecking with Zeilberger's `cocontextual' variant. We extend this to ordinary `cartesian' System L using Mc Bride's co-de Bruijn formulation of scopes, and show that both can be combined in a linear-nonlinear style, where linear types are positive and cartesian types are negative. This yields a remarkable 3-way coincidence between the shifts of polarised System L, LNL calculi, and bidirectional calculi.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。