The comparison oracle of a key function #
Cslib.Query.LEQuery.keyOracle key answers the comparison a ≤ b of the query model
FreeM (LEQuery α) by comparing the keys key a ≤ key b in a linear order. Comparing edges by
their weights w : E → W is the oracle of the weight function, as in the comparison (decision
tree) complexity of minimum spanning forests, where a program may compare edge weights but never
see them.
Main definitions #
Cslib.Query.LEQuery.keyOracle: the comparison oracle ofkey : α → W.
def Cslib.Query.LEQuery.keyOracle {α : Type} {W : Type u_1} [LE W] [DecidableLE W] (key : α → W) {ι : Type} :
LEQuery α ι → ι
The comparison oracle of a key function: a ≤ b is answered by key a ≤ key b.