~/talk

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

Talkat TyDe 2025 · on Sunday, 2025-10-12· [ai-assisted-development, typescript]
links:none on file
slides:none on file

Survey of 15 recent works finds type systems recurring in prompt frameworks and presents a formal proposal called lambda Prompt, a dependently typed calculus with probabilistic refinements; the paper catalogs 13 constraints (nine commonly encoded, four underexplored C9–C13) and demonstrates syntactic enforcement on Text-to-SQL and JSON-schema outputs; it proposes a constraint-preserving optimization rule that mutates prompts (summarization, example selection, reordering) and sketches compilation of prompts, while experiments report Text-to-SQL repair needs many retries.

AI-written summary · about

  1. 0:00Type-driven prompt programming intro
  2. 1:48System vs user prompts
  3. 3:32System prompts as components
  4. 5:25Typed prompts in apps
  5. 7:17Motivation for structured prompts
  6. 8:43Industry adoption of type systems
  7. 10:27Compiling prompts efficiently
  8. 12:23Formalizing prompt programs
  9. 15:36Research gaps in prompt optimization
  10. 17:25Optimizing via mutation and constraints
  11. 19:19Token-level type safety
  12. 20:24Emerging type-driven research
  13. 21:32Why type systems are essential for safe LLM usage
  14. 22:42Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.