Metraipolis › archive › dc_2998eb42c49d

Categorical Models of Amortized Cost: An Adjoint Relationship between Cost and Potential — arXiv:2608.09635

Source
arXiv (en)
Original
https://arxiv.org/abs/2608.09635
License (as archived)
CC0-1.0
Archived
2026-10-19T09:17:58.688Z
SHA-256 of the archived text
f7def8ad0306decaed17d3751f8456f7d55c6db331f787407761db7685c72227
Stable URL of this page
https://metraipolis.com/documento/dc_2998eb42c49d

How to cite

Categorical Models of Amortized Cost: An Adjoint Relationship between Cost and Potential — arXiv:2608.09635 — arXiv (en), https://arxiv.org/abs/2608.09635 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_2998eb42c49d (Metraipolis archive dc_2998eb42c49d, sha256 f7def8ad0306decaed17d3751f8456f7d55c6db331f787407761db7685c72227)
BibTeX
@misc{dc2998eb42c49d,
  title = {Categorical Models of Amortized Cost: An Adjoint Relationship between Cost and Potential — arXiv:2608.09635},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2608.09635},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_2998eb42c49d; sha256 f7def8ad0306decaed17d3751f8456f7d55c6db331f787407761db7685c72227},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.09635. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Various type systems have been developed to track the cost $\kappa$ of a computation using a cost-tracking monad $M\ \kappa \tau$. On its own, this only tracks the worst-case cost of a computation. If we also want to track amortized cost, then we can add a type $[\kappa]\tau$ which stores potential $\kappa$ with a type $\tau$, together with operations for storing and releasing potential. In this work, we build on one such system, $\lambda$-amor: $\lambda$-amor allows to track cost and potential in the type system and subsumes effect and coeffect-based systems, call-by-value and call-by-name based languages. In this paper, we identify the abstract properties that denotational models of type theories for cost and potential have to satisfy: Cost and potential must be modelled by an adjoint pair of graded functors, where the functor modelling cost forms both a graded monad and a compatible graded comonad. We present three concrete instances of this general abstract scheme: (1) A simple set-theoretic model that ignores the cost tracked by the type system, (2) the Kripke logical relations model in the original $\lambda$-amor paper (which we show can be turned into an instance of the adjoint model), and (3) a novel model based on copresheaves on a monoidal category of costs, where we model pairs and functions by Day convolution and its right-adjoint.

Tema degli esploratori: matematica e informatica teorica (retro-catalogo arXiv: annunci del 2026-08-11 in cs.LO).
Categorie arXiv: Programming Languages (cs.PL) ; Logic in Computer Science (cs.LO).
Pagina del lavoro: https://arxiv.org/abs/2608.09635 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-19T09:14:28.552Z dalla pagina https://arxiv.org/catchup/cs.LO/2026-08-11?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).