跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 程序设计语言

arXiv:2508.12475 (cs)
[提交于 2025年8月17日]

标题:Type-Driven Prompt Programming: From Typed Interfaces to a Calculus of Constraints

作者:Abhijit Paul
查看论文《Type-Driven Prompt Programming: From Typed Interfaces to a Calculus of Constraints》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Prompt programming treats large language model prompts as software components with typed interfaces. Based on a literature survey of 15 recent works from 2023 to 2025, we observe a consistent trend: type systems are central to emerging prompt programming frameworks. However, there are gaps in constraint expressiveness and in supporting algorithms. To address these issues, we introduce the notion of Lambda Prompt, a dependently typed calculus with probabilistic refinements for syntactic and semantic constraints. While this is not yet a full calculus, the formulation motivates a type-theoretic foundation for prompt programming. Our catalog of 13 constraints highlights underexplored areas in constraint expressiveness (constraints 9 through 13). To address the algorithmic gap, we propose a constraint-preserving optimization rule. Finally, we outline research directions on developing a compiler for prompt programs.
评论: Accepted as Extended Abstract in TyDe Workshop 2025,co-located with ICFP
主题: 程序设计语言 (cs.PL); 形式语言与自动机理论 (cs.FL)
引用方式: arXiv:2508.12475 [cs.PL]
  (或者 arXiv:2508.12475v1 [cs.PL] 对于此版本)
  https://doi.org/10.48550/arXiv.2508.12475

提交历史

来自:Abhijit Paul
[v1] 2025年8月17日 星期日 19:34:24 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.PL
< 上一篇   |   下一篇 >
最新 | 近期 | 2025-08
切换浏览方式为:
cs
cs.FL

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站