fintype instances relating to units #
Equations
- UnitsInt.fintype = { elems := {1, -1}, complete := UnitsInt.fintype.proof_1 }
Equations
- instFintypeUnits = Fintype.ofEquiv { p // p.fst * p.snd = 1 ∧ p.snd * p.fst = 1 } (unitsEquivProdSubtype α).symm
Equations
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