Adapted from k3nfalt/longtails, commit 269cbc764dd36851fd0b64f2f950f329ee127de4. Modified for Lean Pool: module visibility, namespace isolation, and current Mathlib.
An oracle algorithm with an internal state and its own random seed.
- Seed : Type
Random seed used to initialize the algorithm.
- seedSpace : MeasurableSpace self.Seed
Measurable structure on algorithm seeds.
- law : MeasureTheory.ProbabilityMeasure self.Seed
Probability law of the algorithm seed.
- State : Type (max uQ uR uO)
Internal state retained between oracle calls.
Initial state chosen from the algorithm seed.
Oracle index and query selected by the current state.
State after receiving the reply to the selected query.
- output : self.State → Output
Point reported when the query budget is exhausted.
Instances For
A sequence of oracle replies, with an arbitrary joint law for the query samples.
Sample type at each query index.
- seedSpace (k : ℕ) : MeasurableSpace (self.Seed k)
Measurable structure on each query sample.
- law : MeasureTheory.ProbabilityMeasure ((k : ℕ) → self.Seed k)
Joint probability law of all samples; independence is not assumed.
Reply at a query index, oracle index, query and sample.
Instances For
Run at most the supplied fuel, decrementing the budget of each queried oracle.
Equations
- One or more equations did not get rendered due to their size.
- LongTails.OracleTemplate.executeLoop oracle A 0 x✝² x✝¹ x✝ = A.output x✝
Instances For
Execute an algorithm using explicit per-oracle call budgets and fixed random seeds.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The public information, admissible instances and success criterion of an oracle problem.
- numOracles : ℕ
Number of available oracle interfaces.
- Params : Type uP
Parameters of a guarantee, including hidden accuracy targets.
- Public : Type uD
Information available to the algorithm.
Mathematical instance hidden behind the oracle.
Type of query accepted by each oracle.
Type of oracle reply.
Type of result returned by the algorithm.
Public information extracted from guarantee parameters.
Admissible numerical regimes for the guarantee parameters.
- admissible (p : self.Params) : self.Instance (self.publicInput p) → Oracle (self.Query (self.publicInput p)) (self.Reply (self.publicInput p)) self.numOracles → Prop
Mathematical assumptions on the instance and its oracle.
- successful {Ω : Type} [MeasurableSpace Ω] (p : self.Params) : self.Instance (self.publicInput p) → (Ω → self.Output (self.publicInput p)) → MeasureTheory.ProbabilityMeasure Ω → Prop
Accuracy criterion evaluated under the supplied law of seeds.
- allowedAlgorithm (p : self.Public) : Algorithm (self.Query p) (self.Reply p) (self.Output p) self.numOracles → Prop
Optional restrictions on the algorithm family.
Instances For
One algorithm family meets the setup criterion within the stated query budgets.
Equations
- One or more equations did not get rendered due to their size.