NLA-lib Explorer

Adaptive query algorithms

Library · Source module

Adaptive query algorithms

A deterministic algorithm that makes q adaptive queries to an oracle f : Q → R and then outputs a value of type β: the i-th query is a function of the first i responses, and the output is a function of all q of them. Randomness is not part of the object: a randomized algorithm is a family S → QueryAlgorithm Q R q β indexed by a seed, and a random input is a random variable on the probability space, so a lower bound is a statement about one product probability space and needs no Markov kernels.

The matrix–vector query model is the oracle A.mulVec of a matrix A : Matrix m n 𝕜: a query is a vector \mathbf{x}, its response \mathbf{A}\mathbf{x}. Access to both \mathbf{A} and \mathbf{A}^{\mathsf{H}} is the oracle twoSidedMulVec A: a query is a pair (\mathbf{x}, \mathbf{y}) and its response (\mathbf{A}\mathbf{x}, \mathbf{A}^{\mathsf{H}}\mathbf{y}). Either side may be zero, and a zero side costs nothing: rightCount τ and leftCount τ count the rounds whose right part \mathbf{x}, respectively left part \mathbf{y}, is nonzero, so separate budgets for products with \mathbf{A} and with \mathbf{A}^{\mathsf{H}} are hypotheses rightCount τ ≤ q_R, leftCount τ ≤ q_L. The number q of rounds bounds both.

The definitions are total. query i is defined for every i : ℕ; only i < q is ever used.

The responses of an algorithm are the oracle's values at its queries; two oracles that agree at the queries made on one of them give the same transcript (indistinguishability); non-adaptive queries do not depend on the transcript; measurable algorithms have measurable transcripts and outputs; the rank of the right (left) query matrix of pair queries is at most the number of right (left) products; the Gram simulation runs an algorithm for \mathbf{X}\mathbf{X}^{\mathsf{H}} on two-sided queries to \mathbf{X}, with q products on each side.

Main definitions

* NLAlib.QueryAlgorithm Q R q β: the algorithm. * NLAlib.QueryAlgorithm.history, NLAlib.QueryAlgorithm.queryAt, NLAlib.QueryAlgorithm.transcript, NLAlib.QueryAlgorithm.run: running it against an oracle. * NLAlib.QueryAlgorithm.truncate: the first i queries as an algorithm of its own. * NLAlib.QueryAlgorithm.queries, NLAlib.QueryAlgorithm.queryMatrix: the queries recomputed from a transcript, and for vector queries the matrix with the queries as columns. * NLAlib.twoSidedMulVec: the two-sided matrix–vector oracle. * NLAlib.QueryAlgorithm.rightQueryMatrix, NLAlib.QueryAlgorithm.leftQueryMatrix, NLAlib.QueryAlgorithm.rightCount, NLAlib.QueryAlgorithm.leftCount, NLAlib.QueryAlgorithm.IsOneSided: the two sides of pair queries and their costs. * NLAlib.QueryAlgorithm.IsNonAdaptive: the queries do not depend on the responses. * NLAlib.QueryAlgorithm.IsPassStructured: the queries come in passes, each a block chosen from the responses of the earlier passes. * NLAlib.QueryAlgorithm.comapResponse, NLAlib.QueryAlgorithm.mapOutput: reading the responses through a map (a weaker oracle) and post-processing the output. * NLAlib.QueryAlgorithm.IsMeasurable, NLAlib.QueryAlgorithm.IsMeasurableFamily: measurability of an algorithm and joint measurability of a seeded family. * NLAlib.QueryAlgorithm.gramSimulation: a 2q-round algorithm against the two-sided oracle of \mathbf{X} that runs a q-query algorithm against \mathbf{X}\mathbf{X}^{\mathsf{H}}; NLAlib.QueryAlgorithm.gramDecode reads the simulated responses off its history.

Main results

* NLAlib.Measurable.twoSidedMulVec: the two-sided oracle is measurable. * NLAlib.QueryAlgorithm.history_apply, NLAlib.QueryAlgorithm.queryAt_eq_queries_transcript. * NLAlib.QueryAlgorithm.transcript_eq_of_forall_apply_queries_eq, NLAlib.QueryAlgorithm.run_eq_of_forall_apply_queries_eq: indistinguishability. * NLAlib.QueryAlgorithm.IsNonAdaptive.queries_eq. * NLAlib.QueryAlgorithm.IsMeasurable.measurable_history, NLAlib.QueryAlgorithm.IsMeasurable.measurable_transcript, NLAlib.QueryAlgorithm.IsMeasurable.measurable_run, NLAlib.QueryAlgorithm.IsMeasurable.measurable_queryMatrix, NLAlib.QueryAlgorithm.IsMeasurable.measurable_rightQueryMatrix, NLAlib.QueryAlgorithm.IsMeasurable.measurable_leftQueryMatrix, NLAlib.QueryAlgorithm.IsMeasurableFamily.measurable_run, NLAlib.QueryAlgorithm.IsMeasurableFamily.isMeasurable. * NLAlib.QueryAlgorithm.rank_rightQueryMatrix_le_rightCount, NLAlib.QueryAlgorithm.rank_leftQueryMatrix_le_leftCount: query spans and costs. * NLAlib.QueryAlgorithm.gramDecode_history_gramSimulation, NLAlib.QueryAlgorithm.run_gramSimulation, NLAlib.QueryAlgorithm.queryAt_gramSimulation_two_mul, NLAlib.QueryAlgorithm.queryAt_gramSimulation_two_mul_add_one, NLAlib.QueryAlgorithm.IsMeasurable.gramSimulation, NLAlib.QueryAlgorithm.rightCount_gramSimulation_le, NLAlib.QueryAlgorithm.leftCount_gramSimulation_le, NLAlib.QueryAlgorithm.rank_rightQueryMatrix_gramSimulation_le. * NLAlib.QueryAlgorithm.history_comapResponse, NLAlib.QueryAlgorithm.run_comapResponse. * NLAlib.QueryAlgorithm.history_mapOutput, NLAlib.QueryAlgorithm.run_mapOutput. * NLAlib.QueryAlgorithm.IsMeasurable.comapResponse, NLAlib.QueryAlgorithm.IsMeasurable.mapOutput, NLAlib.QueryAlgorithm.IsMeasurableFamily.comapResponse, NLAlib.QueryAlgorithm.IsMeasurableFamily.mapOutput. * NLAlib.QueryAlgorithm.IsPassStructured.comapResponse, NLAlib.QueryAlgorithm.IsPassStructured.mapOutput, NLAlib.QueryAlgorithm.isPassStructured_id, NLAlib.QueryAlgorithm.isPassStructured_zero_iff_isNonAdaptive.

Declarations