fintype instances relating to units #
THIS FILE IS SYNCHRONIZED WITH MATHLIB4. Any changes to this file require a corresponding PR to mathlib4.
@[protected, instance]
Equations
- units_int.fintype = {elems := {1, -1}, complete := units_int.fintype._proof_1}
@[protected, instance]
Equations
- units.fintype = fintype.of_equiv {p // p.fst * p.snd = 1 ∧ p.snd * p.fst = 1} (units_equiv_prod_subtype α).symm
theorem
fintype.card_units
{α : Type u_1}
[group_with_zero α]
[fintype α]
[fintype αˣ] :
fintype.card αˣ = fintype.card α - 1