Documentation

CatCryptCore.Unary

Unary Probabilistic Hoare Logic (pHL) #

This module provides a unary probabilistic Hoare logic for CatCrypt, inspired by EasyCrypt's pHL and CertiCrypt's unary reasoning.

Submodules #

What's Novel #

This entire unary logic layer is new to CatCrypt - the Rocq version (CatCrypt/Coq) has only a relational logic (pRHL). The unary logic enables:

  1. Probability bounds: Direct computation of Pr[G:E] from pHL judgments
  2. Failure Event Lemma: Up-to-bad reasoning (|Pr[G₀:A] - Pr[G₁:A]| ≤ Pr[G₀:bad])
  3. Losslessness reasoning: Proving computations never fail
  4. Query counting: Bounding adversary queries for concrete security bounds

References #