formal methods

Elton: Urn Resources for Reasoning about Adversarial Probabilistic Programs

arXiv:2607.13459

summary

The paper presents Elton, a higher-order separation logic for reasoning about probabilistic programs that may contain unknown adversarial code, introducing urn resources and delayed sampling to specify distributional invariants and demonstrating soundness and security applications.

Abstract

Probabilistic programs are important for many applications. For security applications in particular, one is interested in establishing properties that hold in the presence of arbitrary adversaries, i.e., unknown pieces of code. We present Elton, a higher-order separation logic for reasoning about higher-order probabilistic programs utilizing unknown adversarial code. Elton incorporates novel logical facilities for specifying invariants over distributional properties using delayed samplings at the language level, and a new kind of separation-logic predicate called urn resources at the logic level. We show that these extensions are sound and can be erased back to a standard call-by-value semantics. Combined with other features, e.g. invariants and ghost resources, Elton is expressive enough to prove error bounds on a wide range of security examples, some of which are beyond the scope of previous techniques. All proofs are mechanized with the Rocq proof assistant and the Iris separation logic framework.

Topics & keywords

#probabilistic programming#separation logic#adversarial code#higher-order reasoning#security verification#urn resourceshigher-order separation logicprobabilistic programsadversarial codeurn resourcesIris frameworkCoqerror bounds
Elton: Urn Resources for Reasoning about Adversarial Probabilistic Programs · wovepaper