@@ -251,12 +251,12 @@ namespace IsCyclic
251251`n` into another group `G'` to the group of `n`th roots of unity in `G'` determined by a generator
252252`g` of `G`. It sends `φ : G →* G'` to `φ g`. -/
253253noncomputable
254- def monoidHomMulEquivRootsOfUnityOfGenerator {G : Type *} [CommGroup G] [Fintype G] {g : G}
254+ def monoidHomMulEquivRootsOfUnityOfGenerator {G : Type *} [CommGroup G] {g : G}
255255 (hg : ∀ (x : G), x ∈ Subgroup.zpowers g) (G' : Type *) [CommGroup G'] :
256- (G →* G') ≃* rootsOfUnity (Fintype .card G) G' where
256+ (G →* G') ≃* rootsOfUnity (Nat .card G) G' where
257257 toFun φ := ⟨(IsUnit.map φ <| Group.isUnit g).unit, by
258258 simp only [mem_rootsOfUnity, Units.ext_iff, Units.val_pow_eq_pow_val, IsUnit.unit_spec,
259- ← map_pow, pow_card_eq_one, map_one, Units.val_one]⟩
259+ ← map_pow, pow_card_eq_one' , map_one, Units.val_one]⟩
260260 invFun ζ := monoidHomOfForallMemZpowers hg (g' := (ζ.val : G')) <| by
261261 simpa only [orderOf_eq_card_of_forall_mem_zpowers hg, orderOf_dvd_iff_pow_eq_one,
262262 ← Units.val_pow_eq_pow_val, Units.val_eq_one] using ζ.prop
@@ -270,12 +270,11 @@ def monoidHomMulEquivRootsOfUnityOfGenerator {G : Type*} [CommGroup G] [Fintype
270270
271271/-- The group of group homomorphisms from a finite cyclic group `G` of order `n` into another
272272group `G'` is (noncanonically) isomorphic to the group of `n`th roots of unity in `G'`. -/
273- lemma monoidHom_mulEquiv_rootsOfUnity (G : Type *) [CommGroup G] [Finite G] [ IsCyclic G]
273+ lemma monoidHom_mulEquiv_rootsOfUnity (G : Type *) [CommGroup G] [IsCyclic G]
274274 (G' : Type *) [CommGroup G'] :
275275 Nonempty <| (G →* G') ≃* rootsOfUnity (Nat.card G) G' := by
276276 obtain ⟨g, hg⟩ := IsCyclic.exists_generator (α := G)
277- have : Fintype G := Fintype.ofFinite _
278- exact ⟨Nat.card_eq_fintype_card (α := G) ▸ monoidHomMulEquivRootsOfUnityOfGenerator hg G'⟩
277+ exact ⟨monoidHomMulEquivRootsOfUnityOfGenerator hg G'⟩
279278
280279end IsCyclic
281280
0 commit comments