module Algebra.Group.Instances.Symmetric whereSymmetric groups🔗
If is a set, then the type of all bijections is also a set, and it forms the carrier for a group: The symmetric group on
Sym : ∀ {ℓ} (X : Set ℓ) → Group-on (∣ X ∣ ≃ ∣ X ∣)
Sym X = to-group-on group-str where
open make-group
group-str : make-group (∣ X ∣ ≃ ∣ X ∣)
group-str .mul g f = f ∙e gThe group operation is composition of equivalences; The identity element
is the identity equivalence.
group-str .unit = id , id-equivThis type is a set because
is a set (because
is a set by assumption), and being an equivalence is a proposition.
group-str .group-is-set = hlevel 2The associativity and identity laws hold definitionally.
group-str .assoc _ _ _ = trivial!
group-str .idl _ = trivial!The inverse is given by the inverse equivalence, and the inverse
equations hold by the fact that the inverse of an equivalence is both a
section and a retraction.
group-str .inv = _e⁻¹
group-str .invl (f , eqv) = ext (equiv→unit eqv)We write for the symmetric group on the standard finite set with elements.
S : Nat → Group lzero
S n = el! (Fin n ≃ Fin n) , Sym (el! (Fin n))