Intervals of finsets as finsets #
This file provides the LocallyFiniteOrder instance for Finset α and calculates the cardinality
of finite intervals of finsets.
If s t : Finset α, then Finset.Icc s t is the finset of finsets which include s and are
included in t. For example,
Finset.Icc {0, 1} {0, 1, 2, 3} = {{0, 1}, {0, 1, 2}, {0, 1, 3}, {0, 1, 2, 3}}
and
Finset.Icc {0, 1, 2} {0, 1, 3} = {}.
In addition, this file gives characterizations of monotone and strictly monotone functions
out of Finset α in terms of Finset.insert
LocallyFiniteOrder instance for Finset α.
We provide an optimized definition for Finset.Icc (s : Finset α) t,
then define the other intervals based on Icc.
We do not define, e.g., Finset.Ico based on Finset.ssubsets,
because it would require more code without performance gain.
Equations
Cardinality of a non-empty Icc of finsets.
Cardinality of an Ico of finsets.
Cardinality of an Ioc of finsets.
Cardinality of an Ioo of finsets.
Cardinality of an Iic of finsets.
Cardinality of an Iio of finsets.
A function f from Finset α is monotone if and only if f s ≤ f (insert a s) for all s and
a ∉ s.
A function f from Finset α is antitone if and only if f (insert a s) ≤ f s for all
s and a ∉ s.
A function f from Finset α is strictly monotone if and only if f s < f (insert a s) for
all s and a ∉ s.
A function f from Finset α is strictly antitone if and only if f (insert a s) < f s for
all s and a ∉ s.