Module docstring
{"# Exponent of a group
This file defines the exponent of a group, or more generally a monoid. For a group G it is defined
to be the minimal n≥1 such that g ^ n = 1 for all g ∈ G. For a finite group G,
it is equal to the lowest common multiple of the order of all elements of the group G.
Main definitions
Monoid.ExponentExistsis a predicate on a monoidGsaying that there is some positivensuch thatg ^ n = 1for allg ∈ G.Monoid.exponentdefines the exponent of a monoidGas the minimal positivensuch thatg ^ n = 1for allg ∈ G, by convention it is0if no suchnexists.AddMonoid.ExponentExiststhe additive version ofMonoid.ExponentExists.AddMonoid.exponentthe additive version ofMonoid.exponent.
Main results
Monoid.lcm_order_eq_exponent: For a finite left cancel monoidG, the exponent is equal to theFinset.lcmof the order of its elements.Monoid.exponent_eq_iSup_orderOf('): For a commutative cancel monoid, the exponent is equal to⨆ g : G, orderOf g(or zero if it has any order-zero elements).Monoid.exponent_piandMonoid.exponent_prod: The exponent of a finite product of monoids is the least common multiple (Finset.lcmandlcm, respectively) of the exponents of the constituent monoids.MonoidHom.exponent_dvd: Iff : M₁ →⋆ M₂is surjective, then the exponent ofM₂divides the exponent ofM₁.
TODO
- Refactor the characteristic of a ring to be the exponent of its underlying additive group. ","# Properties of monoids with exponent two "}