Module docstring
{"# Integers mod n
Definition of the integers mod n, and the field structure on the integers mod p.
Definitions
ZMod n, which is for integers modulo a natn : ℕval ais defined as a natural number:- for
a : ZMod 0it is the absolute value ofa - for
a : ZMod nwith0 < nit is the least natural number in the equivalence class
- for
A coercion
castis defined fromZMod ninto any ring. This is a ring hom if the ring has characteristic dividingn
","If the characteristic of R divides n, then cast is a homomorphism. ","Some specialised simp lemmas which apply when R has characteristic n. ","### Groups of bounded torsion
For G a group and n a natural number, G having torsion dividing n
(∀ x : G, n • x = 0) can be derived from Module R G where R has characteristic dividing n.
It is however painful to have the API for such groups G stated in this generality, as R does not
appear anywhere in the lemmas' return type. Instead of writing the API in terms of a general R, we
therefore specialise to the canonical ring of order n, namely ZMod n.
This spelling Module (ZMod n) G has the extra advantage of providing the canonical action by
ZMod n. It is however Type-valued, so we might want to acquire a Prop-valued version in the
future.
"}