Metraipolis › archive › dc_6c295b8c7494

Countable Nondeterminism in Weighted Programming with an Application to Mechanized Foundations for Probabilistic Program Verification — arXiv:2610.39723

Source
arXiv (en)
Original
https://arxiv.org/abs/2610.39723
License (as archived)
CC0-1.0
Archived
2026-11-01T02:47:57.441Z
SHA-256 of the archived text
3b96fb36bcddb983d471a2b63ad63907248ff7e3fa7425f0fda14ce4f6d7ab62
Stable URL of this page
https://metraipolis.com/documento/dc_6c295b8c7494

How to cite

Countable Nondeterminism in Weighted Programming with an Application to Mechanized Foundations for Probabilistic Program Verification — arXiv:2610.39723 — arXiv (en), https://arxiv.org/abs/2610.39723 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_6c295b8c7494 (Metraipolis archive dc_6c295b8c7494, sha256 3b96fb36bcddb983d471a2b63ad63907248ff7e3fa7425f0fda14ce4f6d7ab62)
BibTeX
@misc{dc6c295b8c7494,
  title = {Countable Nondeterminism in Weighted Programming with an Application to Mechanized Foundations for Probabilistic Program Verification — arXiv:2610.39723},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2610.39723},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_6c295b8c7494; sha256 3b96fb36bcddb983d471a2b63ad63907248ff7e3fa7425f0fda14ce4f6d7ab62},
  year = {2026}
}

Archived text

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

Weighted programming is a framework by Batz et al. for describing mathematical models or optimization problems as imperative programs parametrized over semirings and then analyzing them with program verification techniques like weakest precondition calculi. Applications include reasoning about expected outcomes of probabilistic programs and competitive analysis of online algorithms. We extend weighted programming with (1) countable nondeterminism and (2) user-defined additive rewards, where programs are parametrized over modules instead of semirings. The resulting framework enables reasoning about expected resource consumption of probabilistic programs and about optimal scores of combinatorial games. A technical challenge is that wp-calculi for weighted programs with (1) and (2) over arbitrary modules can be unsound, because it is well-known that continuity properties commonly used in program semantics break in the presence of countable nondeterminism. We study conditions under which a wp-style transformer for reasoning about weighted programs is sound with respect to an operational ground truth defined in terms of weighted decision processes (WDPs) - transition systems that generalize Markov decision processes by drawing transition weights and state rewards from a module. Based on those conditions, we show that a range of concrete instances of the weighted programming framework enjoy sound weakest precondition reasoning. We demonstrate the usefulness of our wp-semantics through case studies for different modules. We mechanized our extended weighted programming framework and our main soundness results in the interactive theorem prover Lean. Instantiating these results for probabilistic programming yields, to the best of our knowledge, the first mechanized proof of a fixed point characterization of minimal expected rewards in Markov decision processes with countable nondeterminism.

Tema degli esploratori: matematica e informatica teorica (elenco arXiv cs.LO, nuovi lavori del giorno).
Categorie arXiv: Programming Languages (cs.PL) ; Logic in Computer Science (cs.LO).
Pagina del lavoro: https://arxiv.org/abs/2610.39723 — 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-11-01T02:18:13.681Z dalla pagina https://arxiv.org/list/cs.LO/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).