We present an algebraic method for analysing probabilistic programs with counters and discrete states, Generalised Constant Probability (GCP) programs. We define the operational semantics of GCP in terms of the runs of probabilistic one-counter automata (pOC), a type of probabilistic pushdown automata. We characterise the resulting (sub-)probability generating function (pgf) Δ(z) as an algebraic function, representable via the roots of a kernel polynomial associated with the program. Next, we provide algorithms that, leveraging this information, compute under mild algebraic conditions the dominant singularities and the exact radius of convergence of Δ(z), leading to an exact asymptotic expansion and to exponential bounds for its coefficients. Our approach is sound for GCP programs and complete for the single-state subclass.

On the algebraic analysis of runtime distribution of probabilistic programs / Boreale, M., Collodi, L., Pompa Di Gregorio, A.. - In: THE JOURNAL OF LOGICAL AND ALGEBRAIC METHODS IN PROGRAMMING. - ISSN 2352-2208. - ELETTRONICO. - 152:(2027), pp. 101181.0-101181.0. [10.1016/j.jlamp.2026.101181]

On the algebraic analysis of runtime distribution of probabilistic programs

Boreale, Michele
;
Collodi, Luisa;Pompa Di Gregorio, Alessandro
2027

Abstract

We present an algebraic method for analysing probabilistic programs with counters and discrete states, Generalised Constant Probability (GCP) programs. We define the operational semantics of GCP in terms of the runs of probabilistic one-counter automata (pOC), a type of probabilistic pushdown automata. We characterise the resulting (sub-)probability generating function (pgf) Δ(z) as an algebraic function, representable via the roots of a kernel polynomial associated with the program. Next, we provide algorithms that, leveraging this information, compute under mild algebraic conditions the dominant singularities and the exact radius of convergence of Δ(z), leading to an exact asymptotic expansion and to exponential bounds for its coefficients. Our approach is sound for GCP programs and complete for the single-state subclass.
2027
152
0
0
Boreale, Michele; Collodi, Luisa; Pompa Di Gregorio, Alessandro
File in questo prodotto:
Non ci sono file associati a questo prodotto.

I documenti in FLORE sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificatore per citare o creare un link a questa risorsa: https://hdl.handle.net/2158/1499137
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 0
  • ???jsp.display-item.citation.isi??? 0
social impact