Fixed-cardinality subsets of linear orders #
This file collects two enumerations of fixed-cardinality subsets through Mathlib's
Set.powersetCard.ofFinEmbEquiv, together with the sum and product formulas for its increasing
enumeration.
In a linear order, a three-element finite set is listed exactly once as an increasing triple
a < b < c. Set.powersetCard.ofLtTriple is this enumeration, an equivalence between the
increasing triples and Set.powersetCard I 3. It is the case n = 3 of Mathlib's
Set.powersetCard.ofFinEmbEquiv, stated for triples so that sums and products over the
increasing triples {t : I × I × I // t.1 < t.2.1 ∧ t.2.1 < t.2.2} can be compared with sums over
three-element sets. For instance, a finite linear order with n elements has n.choose 3
increasing triples.
For k + p = N, the indices k, …, N - 1 of Fin N form the p-subset TauCeti.topBlock h,
built through Set.powersetCard.ofFinEmbEquiv from the order embedding a ↦ k + a. Its increasing
enumeration is a ↦ k + a, an index lies in it exactly when it is at least k, and every other
p-subset meets the first k indices.
The shuffle of two disjoint fixed-cardinality subsets lists the increasing enumeration of the first
followed by that of the second. The shuffle of a singleton {i} with s.erase i lists i first
and then s.erase i, and in the presentation Fin (n + 1) it is the inverse cycle moving the
position of i in s to the front.
A product over the increasing enumeration of a fixed-cardinality subset is the product over that subset.
Summing over the increasing enumeration of a fixed-cardinality subset is the same as summing over that subset.
The increasing triples a < b < c of a linear order enumerate its three-element sets, by
(a, b, c) ↦ {a, b, c}.
Instances For
Every three-element set of a linear order is {a, b, c} for some a < b < c.
A finite linear order with n elements has n.choose 3 increasing triples.
The shuffle of two disjoint fixed-cardinality subsets u and t lists the increasing
enumeration of u, followed by the increasing enumeration of t, inside the increasing
enumeration of their union.
The shuffle of the singleton {i} and s.erase i places i first, followed by the
increasing enumeration of s.erase i.
The shuffle of the singleton {i} and s.erase i, in the presentation Fin (n + 1), is the
inverse cycle moving the position of i in the increasing enumeration of s to the front.
The top block {k, …, N - 1} of the indices of Fin N, for k + p = N, as a
p-subset.
Instances For
A p-subset other than the top block meets the first k indices.