LEQuery: Comparison Queries for Sorting #
LEQuery α is the query type for comparison-based sorting algorithms.
A query LEQuery.le a b asks whether a ≤ b and returns a Bool.
@[reducible, inline]
Lift LEQuery.le a b into a FreeM that returns the comparison result.
@[simp]
Every LEQuery α ι has response type ι = Bool, of cardinality two.