Value Queries for Set-Function Optimization #
ValueQuery α β is the query signature for algorithms that access an unknown set function
f : Finset α → β through a value oracle ([NW78], Section 2): a query
ValueQuery.value S asks for the value f S : β of a finite subset S : Finset α.
In addition to the standard ask and oracleOf combinators, this module defines
ValueQuery.queriedSets, which records the exact Finset (Finset α) of subsets inspected along an
execution path, and proves the path-indistinguishability lemma
ValueQuery.eval_eq_of_agree_on_queriedSets used in adversarial value-oracle lower bounds.
Main definitions #
Cslib.Query.ValueQuery: query functor with single operation.value (S : Finset α).Cslib.Query.ValueQuery.ask: lift a subset query intoFreeM (ValueQuery α β) β.Cslib.Query.ValueQuery.oracleOf: interpretf : Finset α → βas aValueQueryoracle.Cslib.Query.ValueQuery.queriedSets: finite set of subsets queried along an oracle path.
Main results #
ValueQuery.card_queriedSets_le_countQueries:(queriedSets oracle p).card ≤ p.countQueries oracle.ValueQuery.eval_and_countQueries_eq_of_agree_on_queriedSets,ValueQuery.eval_eq_of_agree_on_queriedSets: two oracles agreeing on all sets inqueriedSets o₁ pinduce identicalevaloutputs andcountQueriescounts.
References #
- [NW78] George L. Nemhauser and Laurence A. Wolsey, Best Algorithms for Approximating the Maximum of a Submodular Set Function, 1978.
Value-oracle query signature for set functions Finset α → β: .value S requests f S : β.
- value {α β : Type} (S : Finset α) : ValueQuery α β β
Query the value of subset S in FreeM (ValueQuery α β) β.
Turn a set function f : Finset α → β into a ValueQuery α β oracle.
The finite set of subsets queried along the execution path of p against oracle.
The number of distinct subsets queried never exceeds the total query count.
If two oracles return identical values on every subset in ValueQuery.queriedSets o₁ p, then
p follows the exact same execution branch under both oracles and produces the same output and
query count.