minimalObjects(objs, cmp)
The comparison function cmp should take values in $\{-1,0,1\}$ as follows:
if $a>b$ then cmp(a,b) = 1,
if $a<b$ then cmp(a,b) = -1,
if $a,b$ are incomparable then cmp(a,b) = 0,
cmp(a,a) can be either -1 or 1.
As an example, consider the poset of divisors.
|
|
|
|
The object minimalObjects is a function closure.