Core eRHL Definitions #
This file contains the lightweight definitions for the quantitative relational logic layer. It is intentionally separated from the heavier coupling-development file so downstream users that only need the interfaces and notation do not import the full theorem stack.
eRHL-style quantitative relational WP for OracleComp.
eRelWP oa ob g is the supremum over all couplings c of the expected value of g
under c.
Instances For
eRHL triple: pre ≤ eRelWP oa ob post.
Instances For
Indicator postcondition: lifts a Prop-valued relation to an ℝ≥0∞-valued one.
Instances For
pRHL-style exact relational triple, defined via eRHL with indicator postcondition.
Instances For
ε-approximate relational triple via eRHL:
"R holds except with probability at most ε."
Instances For
Exact coupling is the zero-error special case of approximate coupling.