definition example

A group is a Monoid in which every element has an inverse — equivalently, a one-object Category in which every morphism is an Isomorphism (a one-object Groupoid).

Sources: 7 Sketches Exercise 3.32, Example 3.18 (), §3.2.4 (: “reversible action, symmetry”), Example 3.74 (abelianization is a left adjoint); Kittenlab Lecture 7 (natural transformations between group homomorphisms are conjugations); CTfS §3.2 (Definition 3.2.1.1, Proposition 3.2.1.2, Examples 3.2.1.3–3.2.1.10, Application 3.2.1.6, Exercises 3.2.1.7–3.2.1.14), Slogan 4.2.1.5, Application 4.1.2.4

  • Examples (CTfS §3.2): ; the clock (the inverse of is ); the eight symmetries of a square with , ; invertible matrices , the orthogonal group (symmetries of the sphere) and the Euclidean group of isometries of ; the permutations of a set; the circle group of angles. In crystallography the space group of an arrangement of atoms consists of the isometries of that map into (CTfS Application 3.2.1.6). Inverses are unique: (CTfS Proposition 3.2.1.2). The cyclic groups are and — exactly the cyclic monoids “without a tail” (Presentation of a Monoid).
  • Time-reversibility (CTfS §3.2): “monoids are likely useful in thinking about diffusion, in which time plays a role and things cannot be undone; groups are more likely useful in thinking about mechanics, where actions are time-reversible”. When a symmetry breaks, pass along the forgetful functor and keep working with the monoid (CTfS Application 4.1.2.4). How groups act on sets — orbits, latitudes on the earth — is in Group Action.
  • The monoid of Example 3.13 is not a group (); the category presented by one loop with is the group (7S Exercise 3.32).
  • Functors between groups-as-categories are group homomorphisms; a Natural Transformation between homomorphisms is an with — for abelian only , but e.g. rotation by and by in are conjugate by a reflection (Kittenlab Lecture 7).
  • (forgetful) has a left adjoint (free group); has left adjoint the abelianization (Free-Forgetful Adjunction).
  • A dagger structure in which every morphism is unitary makes a category a groupoid; symmetric-monoidal groupoids underlie compact closed structure in physics.
#check Group
#check CategoryTheory.SingleObj       -- a group/monoid as a one-object category
#check CategoryTheory.Groupoid        -- every morphism is an iso
#check CategoryTheory.GrpCat          -- the category of groups
class Monoid g => Group g where
  inverse :: g -> g
  -- inverse x <> x = mempty = x <> inverse x
newtype Z2 = Z2 Bool deriving (Eq, Show)
instance Semigroup Z2 where Z2 a <> Z2 b = Z2 (a /= b)
instance Monoid Z2 where mempty = Z2 False
instance Group Z2 where inverse = id