@[simp]
Because this theorem takes Fintype α as a non-instance argument, it can be used in particular
when Fintype.card ends up with different instance than the one found by inference
@[simp]
@[simp]
theorem
Nat.card_eq_of_bijective
{α : Type u_1}
{β : Type u_2}
(f : α → β)
(hf : Function.Bijective f)
:
theorem
Nat.bijective_iff_injective_and_card
{α : Type u_1}
{β : Type u_2}
[Finite β]
(f : α → β)
:
Function.Bijective f ↔ Function.Injective f ∧ Nat.card α = Nat.card β
theorem
Nat.bijective_iff_surjective_and_card
{α : Type u_1}
{β : Type u_2}
[Finite α]
(f : α → β)
:
Function.Bijective f ↔ Function.Surjective f ∧ Nat.card α = Nat.card β
If the cardinality is positive, that means it is a finite type, so there is
an equivalence between α and Fin (Nat.card α). See also Finite.equivFin.
Instances For
@[simp]
@[simp]
@[simp]
@[simp]
@[simp]
Alias of the reverse direction of Set.natCard_pos.
@[simp]
@[simp]
@[simp]
@[simp]
@[deprecated Cardinal.natCast_le_toENat (since := "2026-02-17")]
@[deprecated Cardinal.toENat_le_natCast (since := "2026-02-17")]
@[deprecated Cardinal.natCast_eq_toENat (since := "2026-02-17")]
@[deprecated Cardinal.toENat_eq_natCast (since := "2026-02-17")]
@[deprecated Cardinal.natCast_lt_toENat (since := "2026-02-17")]
@[deprecated Cardinal.toENat_lt_natCast (since := "2026-02-17")]
theorem
ENat.exists_ne_ne_of_three_le
{α : Type u_1}
(h : 3 ≤ card α)
(x y : α)
:
∃ (z : α), z ≠ x ∧ z ≠ y
@[simp]
@[simp]