Typeclasses for Denotational Monad Semantics #
This file defines typeclasses HasEvalSPMF and HasEvalPMF for assigning denotational
probability semantics to monadic computations. We also introduce functions
probOutput, probEvent, and probFailrue with associated notation.
-- dtumad: document various probability notation definitions here
The monad m can be evaluated to get a sub-distribution of outputs.
Should not be implemented manually if a HasEvalPMF instance already exists.
Instances
Probability that a computation mx returns the value x.
Equations
Instances For
Probability that a computation mx will fail to return a value.
Equations
Instances For
Probability that a computation returns a particular output.
Equations
Instances For
Probability that a computation returns a value satisfying a predicate.
Equations
Instances For
Probability that a computation fails to return a value.
Equations
Instances For
Alias of the reverse direction of probOutput_eq_zero_iff.
Alias of the forward direction of probOutput_eq_zero_iff.
Alias of the reverse direction of zero_eq_probOutput_iff.
Alias of the forward direction of probOutput_eq_zero_iff.
Alias of the reverse direction of probOutput_eq_zero_iff.
Alias of the reverse direction of zero_eq_probOutput_iff'.
Alias of the reverse direction of probOutput_pos_iff.
Alias of the forward direction of probOutput_pos_iff.
Alias of the forward direction of probOutput_pos_iff'.
Alias of the reverse direction of probOutput_pos_iff'.
Equations
Alias of the reverse direction of probEvent_eq_zero_iff.
Alias of the reverse direction of probEvent_eq_zero_iff'.
Alias of the reverse direction of probEvent_ne_zero_iff.
Alias of the reverse direction of probEvent_ne_zero_iff'.
Alias of the reverse direction of probEvent_pos_iff.
Alias of the reverse direction of probEvent_pos_iff'.
Probability that a computation returns a value satisfying a predicate.
Equations
Instances For
Probability that a computation returns a value satisfying a predicate.
See probOutput_true_eq_probEvent for relation to the above definitions.
Equations
Instances For
Alias of the reverse direction of probOutput_eq_one_iff'.
Alias of the reverse direction of one_eq_probOutput_iff'.
The monad m can be evaluated to get a distribution of outputs.
Instances
The evalDist arising from a HasEvalPMF instance never fails.