Conversion between Cardinal
and ℕ∞
#
In this file we define a coercion Cardinal.ofENat : ℕ∞ → Cardinal
and a projection Cardinal.toENat : Cardinal →+*o ℕ∞
.
We also prove basic theorems about these definitions.
Implementation notes #
We define Cardinal.ofENat
as a function instead of a bundled homomorphism
so that we can use it as a coercion and delaborate its application to ↑n
.
We define Cardinal.toENat
as a bundled homomorphism
so that we can use all the theorems about homomorphisms without specializing them to this function.
Since it is not registered as a coercion, the argument about delaboration does not apply.
Keywords #
set theory, cardinals, extended natural numbers
Coercion ℕ∞ → Cardinal
. It sends natural numbers to natural numbers and ⊤
to ℵ₀
.
See also Cardinal.ofENatHom
for a bundled homomorphism version.
Equations
- ↑(some n) = ↑n
- ↑none = Cardinal.aleph0
Instances For
Equations
- Cardinal.instCoeENat = { coe := Cardinal.ofENat }
Alias of the reverse direction of Cardinal.ofENat_lt_ofENat
.
Alias of the reverse direction of Cardinal.ofENat_le_ofENat
.
Unbundled version of Cardinal.toENat
.
Equations
- Cardinal.toENatAux = Function.extend Nat.cast Nat.cast fun (x : Cardinal.{?u.8}) => ⊤
Instances For
Projection from cardinals to ℕ∞
. Sends all infinite cardinals to ⊤
.
We define this function as a bundled monotone ring homomorphism.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The coercion Cardinal.ofENat
and the projection Cardinal.toENat
form a Galois connection.
See also Cardinal.gciENat
.
The coercion Cardinal.ofENat
and the projection Cardinal.toENat
form a Galois coinsertion.
Equations
- Cardinal.gciENat = Cardinal.enat_gc.toGaloisCoinsertion Cardinal.gciENat.proof_1
Instances For
Alias of the reverse direction of Cardinal.ofENat_toENat_eq_self
.
The coercion Cardinal.ofENat
as a bundled homomorphism.
Equations
- One or more equations did not get rendered due to their size.