English

A Direct Lazy Sampling Proof Technique in Probabilistic Relational Hoare Logic

Cryptography and Security 2023-11-30 v1 Formal Languages and Automata Theory Logic in Computer Science

Abstract

Programs using random values can either make all choices in advance (eagerly) or sample as needed (lazily). In formal proofs, we focus on indistinguishability between two lazy programs, a common requirement in the random oracle model (ROM). While rearranging sampling instructions often solves this, it gets complex when sampling is spread across procedures. The traditional approach, introduced by Bellare and Rogaway in 2004, converts programs to eager sampling, but requires assuming finite memory, a polynomial bound, and artificial resampling functions. We introduce a novel approach in probabilistic Relational Hoare Logic (pRHL) that directly proves indistinguishability, eliminating the need for conversions and the mentioned assumptions. We also implement this approach in the EasyCrypt theorem prover, showing that it can be a convenient alternative to the traditional method.

Keywords

Cite

@article{arxiv.2311.16844,
  title  = {A Direct Lazy Sampling Proof Technique in Probabilistic Relational Hoare Logic},
  author = {Roberto Metere and Changyu Dong},
  journal= {arXiv preprint arXiv:2311.16844},
  year   = {2023}
}

Comments

12 pages, 13 figures, 1 table

R2 v1 2026-06-28T13:34:13.823Z