IndepQuery: Independence-Oracle Queries for Matroid Algorithms #
IndepQuery α is the query signature for independence-oracle matroid algorithms in CSLib's
FreeM query-complexity framework (Cslib.Algorithms.Lean.Query.FreeM). A single query
IndepQuery.indep S tests whether a finite candidate subset S : Finset α is independent,
returning Bool.
Decoupling the computable query syntax FreeM (IndepQuery α) from the propositional predicate
IndepQuery.ImplementsMatroid oracle M allows algorithms to execute computably against concrete
Boolean independence checkers while proving mathematical optimality against arbitrary (possibly
noncomputable) Mathlib.Combinatorics.Matroid instances.
Main definitions #
Cslib.Query.IndepQuery: query signature with constructorindep (S : Finset α).Cslib.Query.IndepQuery.ask: lift an independence query intoFreeM (IndepQuery α) Bool.Cslib.Query.IndepQuery.oracleOf: build anIndepQueryoracle fromFinset α → Bool.Cslib.Query.IndepQuery.ImplementsMatroid: states thatoracleanswersindep Swithtrueif and only ifM.Indep (S : Set α).Cslib.Query.IndepQuery.matroidOracle: classical oracle canonically implementing anyM : Matroid α.
Lift IndepQuery.indep S into FreeM (IndepQuery α) Bool.
Build an IndepQuery α oracle from a Boolean predicate on finite sets Finset α → Bool.
ImplementsMatroid oracle M states that oracle faithfully decides finite-set independence in
M : Matroid α.
Classical independence oracle associated with an arbitrary M : Matroid α.
Every IndepQuery α ι has response type ι = Bool, of cardinality 2.