paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Contextual Types, Explained

Contextual Types 解析
LICS Proceedings of the 35th Annual ACM/IEEE Symposium on Logic in Computer Science2020匹配度 2/10 · 该论文是上下文类型(contextual types)的综述教程,属于类型论与证明工程的基础理论,与用户核心关注的 LLM/Agent 静态分析、AI 辅助形式化验证、浮点程序分析或贝叶斯程序分析没有直接交集。它可能对 PL 理论基础和元编程有间接价值,但既未涉及 LLM/Agent,也未提供工业落地或问题驱动的 benchmark。引用 0 inbox
Brigitte Pientka
crossref: 2026-09-12

AI 速览

一句话:综述 Contextual Types 的起源与能力:将类型与类型上下文配对,用于刻画部分程序、机器化元理论与元编程。

Contextual objects 将一个对象 M 与其有意义的类型上下文 Ψ 一起刻画;Contextual Types 则把这一思想内化到类型论中,用类型 A 与上下文 Ψ 的配对表示对象在 Ψ 中良类型。本文是教程式综述,回顾该思想的起源,并展示其在刻画部分程序、机器化元理论以及元编程中的能力。作者从简单类型设置出发,梳理将 contextual types 推广到依赖类型理论的既有工作,并讨论未来研究方向。全文不报告新实验,而是提供概念统一与路线图。

问题
如何在一个类型理论中同时刻画对象及其良类型所依赖的上下文,并支持部分程序、元理论机器化与元编程?
方法
将对象与上下文配对为 contextual type,并在类型论内部将其形式化;以教程方式梳理从简单类型到依赖类型理论的既有工作。
评估
通过综述与概念案例说明 contextual types 在部分程序、机器化元理论和元编程中的作用,并指出未来方向;属于教程性评估而非实验评估。
原文摘要(Abstract)

Contextual objects characterize an object M together with the typing context Ψ in which it is meaningful. This idea is then also internalized within the type theory itself using the notion of a contextual type which pairs the type A of an object together with the context Ψ in which the object is well-typed. In this tutorial, we review the origins of this idea and show its power in characterizing partial programs, mechanizing meta-theory, and meta-programming. Starting from the simply typed setting, we give an overview of existing work which adopts contextual types to dependent type theories and touch on future research directions.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot5520,
  title = {Contextual Types, Explained},
  author = {Brigitte Pientka},
  booktitle = {LICS},
  year = {2020},
  doi = {10.1145/3373718.3394735}
}