/-
Copyright (c) 2022 Eric Rodriguez. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Rodriguez
-/
module
public import Mathlib.Algebra.Group.Conj
public import Mathlib.Algebra.GroupWithZero.Units.Fintype
/-!
# Conjugacy of elements of finite groups
-/
public section
assert_not_exists Field
-- TODO: the following `assert_not_exists` should work, but does not
-- assert_not_exists MonoidWithZero
variable {α : Type*} [Monoid α]
attribute [local instance] IsConj.setoid
instance [Fintype α] [DecidableRel (IsConj : α → α → Prop)] : Fintype (ConjClasses α) :=
Quotient.fintype (IsConj.setoid α)
instance [Finite α] : Finite (ConjClasses α) :=
Quotient.finite _
instance [DecidableEq α] [Fintype α] : DecidableRel (IsConj : α → α → Prop) := fun a b =>
inferInstanceAs (Decidable (∃ c : αˣ, c.val * a = b * c.val))
instance conjugatesOf.fintype [Fintype α] [DecidableRel (IsConj : α → α → Prop)] {a : α} :
Fintype (conjugatesOf a) :=
@Subtype.fintype _ _ (‹DecidableRel IsConj› a) _
namespace ConjClasses
variable [Fintype α] [DecidableRel (IsConj : α → α → Prop)]
instance {x : ConjClasses α} : Fintype (carrier x) :=
Quotient.recOnSubsingleton x fun _ => conjugatesOf.fintype
end ConjClasses
¤ Dauer der Verarbeitung: 0.4 Sekunden
¤
*© Formatika GbR, Deutschland