Lower sets carried by finsets #
The lower-set predicate on the coercion of a finset, IsLowerSet (↑s : Set α), is decidable over
a finite type with decidable order, and the lower sets contained in a finset form a finset. In a
linear order a lower finset is empty or the initial segment up to its maximum, so the lower finsets
are order-isomorphic to WithBot α by their maximum, and a finite chain of n elements has
n + 1 of them.
Main definitions #
Fintype.toLocallyFiniteOrderBot: the bottom intervals of a finite order.IsLowerSet.orderIsoWithBot: the lower finsets of a linear order asWithBot α.Finset.lowerSubsets: the lower sets contained in a finset.
Main results #
IsLowerSet.mem_iff_le_max: a lower finset of a linear order isIicof its maximum.IsLowerSet.eq_empty_or_eq_Iic: a lower finset of a linear order is empty or anIic.Fintype.card_subtype_isLowerSet: a finite chain has one more lower finset than elements.
A lower finset of a linear order is the initial segment up to its maximum. [UPSTREAM]
Lower finsets of a linear order are nested. [UPSTREAM]
The lower finsets of a linear order form a chain under inclusion. [UPSTREAM]
Equations
- One or more equations did not get rendered due to their size.
A finite order has finite bottom intervals. This mirrors Fintype.toLocallyFiniteOrder and is
not an instance for the same reason. [UPSTREAM]
Equations
- Fintype.toLocallyFiniteOrderBot = { finsetIio := fun (a : α) => {x : α | x < a}, finsetIic := fun (a : α) => {x : α | x ≤ a}, finset_mem_Iic := ⋯, finset_mem_Iio := ⋯ }
Instances For
A lower finset of a linear order is the initial segment of its maximum.
A lower finset of a linear order is empty or an initial segment.
The lower finsets of a linear order are WithBot α by their maximum, ∅ going to ⊥ and
Iic a to a. [UPSTREAM]
Equations
- One or more equations did not get rendered due to their size.
Instances For
A finite chain of n elements has n + 1 lower finsets. [UPSTREAM]
Equations
- instDecidableIsLowerSetCoeFinset_linglib s = decidable_of_iff (∀ a ∈ s, ∀ b ≤ a, b ∈ s) ⋯
t.lowerSubsets is the finset of lower sets contained in t.
Equations
- t.lowerSubsets = {s ∈ t.powerset | IsLowerSet ↑s}