Specifications of Available Oracles #
An OracleSpec ι is specieifes a set of oracles indexed by ι.
Defined as a map from each input to the type of the oracle's output.
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Instances
Equations
Instances
Equations
- decidableEq_A : DecidableEq spec.toPFunctor.A
Instances
Equations
Equations
Type-class gadget to enable probability notation for computation over an OracleSpec.
Can be defined for any spec with spec.Range finite and inhabited, but generally should
only be instantied for things like coinSpec or unifSpec.
dtumad: we should examine if this should be used more strictly in evalDist stuff.
We could require computations without this tag to provide their own PMF embedding,
even if it can be inferred implicitly.
Instances
Equations
Instances For
Equations
spec₁ + spec₂ specifies access to oracles in both spec₁ and spec₂.
The input is split as a sum type of the two original input sets.
This corresponds exactly to addition of the corresponding PFunctor.
Equations
Equations
Equations
Equations
Given an indexed set of OracleSpec, specifiy access to all of the oracles,
by requiring an index into the corresponding oracle in the input.
Equations
Instances For
spec₁ * spec₂ represents an oracle that takes in a pair of inputs for each set,
and returns an element in the output of one oracle or the other.
The corresponds exactly to multiplication in PFunctor.
Equations
Given an indexed set of OracleSpec, specifiy access to an oracle that given an input to
the oracle for each index returns an index and an ouptut for that index.
Equations
Instances For
Specifies access to no oracles, using the empty type as the indexing type.
Equations
Instances For
Access to a coin flipping oracle. Because of termination rules in Lean this is slightly
weaker than unifSpec, as we have only finitely many coin flips.