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
Equations
- One or more equations did not get rendered due to their size.
Cardinality of an Iic of finsets.
theorem
Finset.strictMono_iff_forall_lt_insert
{α : Type u_1}
{β : Type u_2}
[Preorder β]
{f : Finset α → β}
[DecidableEq α]
:
A function f from Finset α is strictly monotone if and only if f s < f (insert a s) for
all s and a ∉ s.
theorem
Finset.strictAnti_iff_forall_lt_insert
{α : Type u_1}
{β : Type u_2}
[Preorder β]
{f : Finset α → β}
[DecidableEq α]
:
A function f from Finset α is strictly antitone if and only if f (insert a s) < f s for
all s and a ∉ s.