Enumerating a cofinal set #
We define a typeclass IsRegularCardinalOrder for well-ordered types, whose order type equals (the
initial ordinal of) their cofinality. This notion does not appear in the literature, but intends to
generalize the properties of intervals Iio c.ord, wherever c is a regular cardinal. Other
instances of this typeclass include ℕ, Ordinal, and Cardinal.
If s is a cofinal subset of a regular cardinal order α, there exists a unique order isomorphism
α ≃o s, which we call Order.enum. When α = Ordinal, this is referred to as the enumerator
function of the set. Note that if α = ℕ, then this definition matches Nat.nth.
TODO #
- Deprecate
Ordinal.enumOrdin favor ofOrder.enum. - Prove that
Order.enumon the naturals coincides withNat.nth.
A typeclass which expresses that the order type of a well-order equals (the initial ordinal of) its cofinality.
If α is infinite, this implies that α is order isomorphic to Iio c.ord for some regular
cardinal c. In the informal literature, one often says that α is a regular cardinal, by abuse
of notation.
Instances
Enumerate the elements of a cofinal subset of α by α itself. This is a generalization of
Nat.nth.
Equations
- Order.enum s hs = OrderIso.ofRelIsoLT ⋯.some