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
Indicator postcondition: lifts a Prop-valued relation to an ℝ≥0∞-valued one.
Instances For
pRHL-style exact relational triple, defined via quantitative relational WP with an indicator postcondition.
Instances For
ε-approximate relational triple via quantitative relational WP:
R holds except with probability at most ε.
Instances For
Exact coupling is the zero-error special case of approximate coupling.