Module docstring
{"# Cardinal Numbers
We define cardinal numbers as a quotient of types under the equivalence relation of equinumerity.
Main definitions
Cardinalis the type of cardinal numbers (in a given universe).Cardinal.mk αor#αis the cardinality ofα. The notation#lives in the localeCardinal.- Addition
c₁ + c₂is defined byCardinal.add_def α β : #α + #β = #(α ⊕ β). - Multiplication
c₁ * c₂is defined byCardinal.mul_def : #α * #β = #(α × β). - Exponentiation
c₁ ^ c₂is defined byCardinal.power_def α β : #α ^ #β = #(β → α). Cardinal.sumis the sum of an indexed family of cardinals, i.e. the cardinality of the corresponding sigma type.Cardinal.prodis the product of an indexed family of cardinals, i.e. the cardinality of the corresponding pi type.Cardinal.aleph0orℵ₀is the cardinality ofℕ. This definition is universe polymorphic:Cardinal.aleph0.{u} : Cardinal.{u}(contrast withℕ : Type, which lives in a specific universe). In some cases the universe level has to be given explicitly.
Implementation notes
- There is a type of cardinal numbers in every universe level:
Cardinal.{u} : Type (u + 1)is the quotient of types inType u. The operationCardinal.liftlifts cardinal numbers to a higher level. - Cardinal arithmetic specifically for infinite cardinals (like
κ * κ = κ) is in the fileMathlib/SetTheory/Cardinal/Ordinal.lean. - There is an instance
Pow Cardinal, but this will only fire if Lean already knows that both the base and the exponent live in the same universe. As a workaround, you can addlocal infixr:80 \" ^' \" => @HPow.hPow Cardinal Cardinal Cardinal _to a file. This notation will work even if Lean doesn't know yet that the base and the exponent live in the same universe (but no exponents in other types can be used). (Porting note: This last point might need to be updated.)
References
Tags
cardinal number, cardinal arithmetic, cardinal exponentiation, aleph,
Cantor's theorem, König's theorem, Konig's theorem
","### Definition of cardinals ","### Lifting cardinals to a higher universe ","### Basic cardinals ","### Indexed cardinal sum ","### Indexed cardinal prod ","### The first infinite cardinal aleph0 ","### Cardinalities of basic sets and types "}