Documentation

GaudisCrypt.Syntax.PrSyntax

Concrete syntax for probabilities #

EasyCrypt's Pr[ M.f(a₁, …, aₙ) @ &m : E ]:

Pr[ M (a₁, …, aₙ) @ &m : E ]

is the probability that the procedure M, run on the arguments a₁, …, aₙ from the globals m : VariableAssignment, ends with a result and globals satisfying the event E — the real number (Procedure.Pr p (a₁, …, aₙ) m E : ℝ) (Logic/PHoare.lean). As in EC it is a real, so that differences and absolute values of probabilities are what they look like.

It prints back in the same form (#roundtrip, PrSyntaxTest.lean).

Equations
  • One or more equations did not get rendered due to their size.
Instances For

    Printing #