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.
Instances For
Instances For
Instances For
Instances For
Instances
Instances
- decidableEq_A : DecidableEq spec.toPFunctor.A
Instances
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.
TODO: Examine if this should be used as a requirement in evalDist instances.
Just forces more explicit differentiation of when the semantics should apply.
Instances
Instances For
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.
Given an indexed set of OracleSpec, specifiy access to all of the oracles,
by requiring an index into the corresponding oracle in the input.
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.
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.
Instances For
Specifies access to no oracles, using the empty type as the indexing type.
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.