TY - JOUR
T1 - A Demonic Outcome Logic for Randomized Nondeterminism
AU - Zilberstein, Noam
AU - Kozen, Dexter
AU - Silva, Alexandra
AU - Tassarotti, Joseph
N1 - Publisher Copyright:
© 2025 Owner/Author.
PY - 2025/1/7
Y1 - 2025/1/7
N2 - Programs increasingly rely on randomization in applications such as cryptography and machine learning. Analyzing randomized programs has been a fruitful research direction, but there is a gap when programs also exploit nondeterminism (for concurrency, efficiency, or algorithmic design). In this paper, we introduce Demonic Outcome Logic for reasoning about programs that exploit both randomization and nondeterminism. The logic includes several novel features, such as reasoning about multiple executions in tandem and manipulating pre- and postconditions using familiar equational laws - including the distributive law of probabilistic choices over nondeterministic ones. We also give rules for loops that both establish termination and quantify the distribution of final outcomes from a single premise. We illustrate the reasoning capabilities of Demonic Outcome Logic through several case studies, including the Monty Hall problem, an adversarial protocol for simulating fair coins, and a heuristic based probabilistic SAT solver.
AB - Programs increasingly rely on randomization in applications such as cryptography and machine learning. Analyzing randomized programs has been a fruitful research direction, but there is a gap when programs also exploit nondeterminism (for concurrency, efficiency, or algorithmic design). In this paper, we introduce Demonic Outcome Logic for reasoning about programs that exploit both randomization and nondeterminism. The logic includes several novel features, such as reasoning about multiple executions in tandem and manipulating pre- and postconditions using familiar equational laws - including the distributive law of probabilistic choices over nondeterministic ones. We also give rules for loops that both establish termination and quantify the distribution of final outcomes from a single premise. We illustrate the reasoning capabilities of Demonic Outcome Logic through several case studies, including the Monty Hall problem, an adversarial protocol for simulating fair coins, and a heuristic based probabilistic SAT solver.
KW - Demonic Nondeterminism
KW - Probabilistic Programming
KW - Program Logics
UR - http://www.scopus.com/inward/record.url?scp=85211324518&partnerID=8YFLogxK
UR - http://www.scopus.com/inward/citedby.url?scp=85211324518&partnerID=8YFLogxK
U2 - 10.1145/3704855
DO - 10.1145/3704855
M3 - Article
AN - SCOPUS:85211324518
SN - 2475-1421
VL - 9
JO - Proceedings of the ACM on Programming Languages
JF - Proceedings of the ACM on Programming Languages
M1 - 19
ER -