fintype instances relating to units #
Equations
- UnitsInt.fintype = { elems := {1, -1}, complete := UnitsInt.fintype.proof_1 }
Equations
- instFintypeUnitsOfDecidableEq = Fintype.ofEquiv { p : α × α // p.1 * p.2 = 1 ∧ p.2 * p.1 = 1 } (unitsEquivProdSubtype α).symm
theorem
Fintype.card_eq_card_units_add_one
{α : Type u_1}
[GroupWithZero α]
[Fintype α]
[DecidableEq α]
:
Fintype.card α = Fintype.card αˣ + 1
theorem
Fintype.card_units
{α : Type u_1}
[GroupWithZero α]
[Fintype α]
[DecidableEq α]
:
Fintype.card αˣ = Fintype.card α - 1