Lune

POPL2025Top-tier venue

A Dependent Type Theory for Meta-programming with Intensional Analysis

Jason Z. S. Hu, Brigitte Pientka

Abstract

In this paper, we introduce DeLaM , a dependent layered modal type theory which enables meta-programming in Martin-Löf type theory (MLTT) with recursion principles on open code. DeLaM includes three layers: the layer of static syntax objects of MLTT without any computation, the layer of pure MLTT with the computational behaviors, and the meta-programming layer, which extends MLTT with support for quoting an open MLTT code object, composing, and analyzing open code using recursion. We can also execute a code object at the meta-programming layer. The expressive power strictly increases as we move up in a given layer. In particular, while code objects only describe static syntax, we allow computation at the MLTT and meta-programming layer. As a result, DeLaM provides a dependently typed foundation for meta-programming that supports both type-safe code generation and code analysis. We prove the weak normalization of DeLaM and the decidability of convertibility using Kripke logical relations.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

1 top-tier paper has cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Impredicative Observational Equality cites Observational equality: now for good
  • Contextual MetaML: Syntax and Full Abstraction cites Mœbius: metaprogramming using contextual types: the stage where system f can pattern match on itself
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers1

  1. Contextual MetaML: Syntax and Full AbstractionHaoxuan Yin, Andrzej S. Murawski, C.-H. Luke OngLICS 2026 · 1 citation

Builds on3

  1. Mœbius: metaprogramming using contextual types: the stage where system f can pattern match on itselfJunyoung Jang, Samuel Gélineau, Stefan Monnier, Brigitte PientkaPOPL 2022 · 28 citations
  2. Observational equality: now for goodLoïc Pujet, Nicolas TabareauPOPL 2022 · 26 citations
  3. Impredicative Observational EqualityLoïc Pujet, Nicolas TabareauPOPL 2023 · 14 citations

Related papers

  1. Normalization for Multimodal Type TheoryDaniel GratzerLICS 2022 · 23 citations
  2. Multimodal Dependent Type TheoryDaniel Gratzer, G. A. Kavvos, Andreas Nuyts, Lars BirkedalLICS 2020 · 36 citations
  3. "Upon This Quote I Will Build My Church Thesis"Pierre-Marie PédrotLICS 2024 · 1 citation
  4. A Metalanguage for Cost-Aware Denotational SemanticsYue Niu, Robert HarperLICS 2023 · 5 citations
  5. Refined² Environment ClassifiersYuito Murase, Atsushi IgarashiOOPSLA 2026
Dusk over the sea between two cliffs drawn in fine vertical lines