计算机科学 > 程序设计语言
[提交于 2025年12月8日]
标题:Canonical bidirectional typechecking
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:We demonstrate that the checkable/synthesisable split in bidirectional typechecking coincides with existing dualities in polarised System L, also known as polarised $\mu\tilde{\mu}$-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.
提交历史
来自:Jules Hedges[v1] 2025年12月8日 星期一 12:47:25 UTC