mlsanityData to 14 Oct 2026

Weighted Programming

arXiv 2202.07577 ↗First posted 15 Feb 2022cs.PL cs.LG cs.LOcited by 1

Not on the map. Why?

Abstract (arXiv)

We study weighted programming, a programming paradigm for specifying mathematical models. More specifically, the weighted programs we investigate are like usual imperative programs with two additional features: (1) nondeterministic branching and (2) weighting execution traces. Weights can be numbers but also other objects like words from an alphabet, polynomials, formal power series, or cardinal numbers. We argue that weighted programming as a paradigm can be used to specify mathematical models beyond probability distributions (as is done in probabilistic programming). We develop weakest-precondition- and weakest-liberal-precondition-style calculi `a la Dijkstra for reasoning about mathematical models specified by weighted programs. We present several case studies. For instance, we use weighted programming to model the ski rental problem - an optimization problem. We model not only the optimization problem itself, but also the best deterministic online algorithm for solving this problem as weighted programs. By means of weakest-precondition-style reasoning, we can determine the competitive ratio of the online algorithm on source code level.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 7 of its 77 references that are in the map. First posted on arXiv 15 Feb 2022.

Builds on

7 of 77 references.

References · 7

  1. 2018Quantitative Separation Logic - A Logic for Reasoning about Probabilistic Programscited by 2
  2. 2016Healthiness from Dualitycited by 1
  3. 2019Generalized Absorptive Polynomials and Provenance Semantics for Fixed-Point Logiccited by 1
  4. 2019Generalising KAT to verify weighted computationscited by 1
  5. 2020Tensors over Semirings for Latent-Variable Weighted Logic Programscited by 1
  6. 2020Graded Hoare Logic and its Categorical Semanticscited by 1
  7. 2022Quantitative Strongest Postcited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.