Documentation

CslibFrontier.Foundations.RingTheory.GaloisRing

Galois rings #

For a prime p, an exponent n โ‰  0 and an integer polynomial f that is monic and irreducible modulo p, the Galois ring GaloisRing p n f = (โ„ค / p ^ n)[X] / (f) is a local ring. Its maximal ideal is (p), and reduction modulo p identifies its residue field with ๐”ฝ_p[X] / (f), the finite field with p ^ deg f elements. In particular an element is a unit exactly when it is nonzero modulo p.

The digit lifts โˆ‘ i, c i * X ^ i with digits c i โˆˆ {0, โ€ฆ, p - 1} reduce to the p ^ deg f distinct residue-field elements, so any two of them differ by a unit, and Lagrange interpolation over the ring holds at any set of them (GaloisRing.eq_ringInterpolate_digitLift).

This is the base coefficient ring of the Boolean tensor contraction of [OAI26k] (ยงD.4.1, pp. 57โ€“58), with p = 2, a degree e = 4 โŒˆlogโ‚‚ sโŒ‰ and the precision n. The manuscript puts O = โ„ค_(2)[U] / (f) and A = O[V] / (V ^ โ„“), and computes in A / (2 ^ n) (written A_p there, with p the precision). GaloisRing 2 n f corresponds to O / (2 ^ n), since โ„ค_(2) / (2 ^ n) โ‰… โ„ค / 2 ^ n (that identification is not formalized here). It is therefore the manuscript's A / (2 ^ n) only when โ„“ = 1; the truncated V-extension for general โ„“ is not formalized here. The manuscript's binary-coordinate lifts are the digit lifts for p = 2.

The argument is that of a surjection onto a field with nilpotent kernel (RingHom.isUnit_iff_ne_zero_of_isNilpotent): reduction modulo p has kernel (p), and p ^ n = 0. The manuscript states the unit criterion for โ„ค_(2)[U] / (f) and proves it with the determinant of the multiplication matrix; at a finite precision the nilpotent kernel suffices. The statement over โ„ค_(p) is AdjoinRoot.isUnit_of_padicValuation_eq_one.

Main definitions #

Main results #

References #

Surjections with nilpotent kernel #

theorem RingHom.isLocalHom_of_isNilpotent {R : Type u_1} {S : Type u_2} [CommRing R] [CommRing S] (ฯˆ : R โ†’+* S) (hฯˆ : Function.Surjective โ‡‘ฯˆ) (hnil : โˆ€ (x : R), ฯˆ x = 0 โ†’ IsNilpotent x) :

A surjective ring homomorphism whose kernel consists of nilpotent elements is local: if ฯˆ x is a unit then x y = 1 + n for some y and nilpotent n.

theorem RingHom.isUnit_iff_ne_zero_of_isNilpotent {R : Type u_1} [CommRing R] {F : Type u_3} [Field F] (ฯˆ : R โ†’+* F) (hฯˆ : Function.Surjective โ‡‘ฯˆ) (hnil : โˆ€ (x : R), ฯˆ x = 0 โ†’ IsNilpotent x) {x : R} :
IsUnit x โ†” ฯˆ x โ‰  0

Over a surjection onto a field with nilpotent kernel, an element is a unit exactly when its image is nonzero.

Galois rings #

@[reducible, inline]
abbrev GaloisRing (p n : โ„•) (f : Polynomial โ„ค) :

The ring (โ„ค / p ^ n)[X] / (f) presented by an integer polynomial f. For a prime p, n โ‰  0 and f monic and irreducible modulo p, it is the Galois ring of characteristic p ^ n and rank deg f: a local ring with maximal ideal (p) and residue field ๐”ฝ_{p ^ deg f}.

Instances For

    Reducing integer coefficients modulo m and then modulo a divisor d of m is reducing modulo d.

    noncomputable def GaloisRing.digitLift (p n : โ„•) (f : Polynomial โ„ค) (c : Fin f.natDegree โ†’ ZMod p) :

    The digit lift โˆ‘ i, c i * X ^ i of a digit vector c, with each digit c i โˆˆ ZMod p read as an integer in {0, โ€ฆ, p - 1}. For p = 2 these are the binary-coordinate lifts of [OAI26k] (ยงD.4.1, p. 58).

    Reduction modulo p, from (โ„ค / p ^ n)[X] / (f) onto ๐”ฝ_p[X] / (f).

    @[simp]
    theorem GaloisRing.residue_of (p n : โ„•) (f : Polynomial โ„ค) [NeZero n] (a : ZMod (p ^ n)) :
    theorem GaloisRing.residue_digitLift (p n : โ„•) (f : Polynomial โ„ค) [NeZero n] [Fact (Nat.Prime p)] (c : Fin f.natDegree โ†’ ZMod p) :
    (residue p n f) (digitLift p n f c) = (AdjoinRoot.mk (Polynomial.map (Int.castRingHom (ZMod p)) f)) (โˆ‘ i : Fin f.natDegree, Polynomial.C (c i) * Polynomial.X ^ โ†‘i)

    A digit lift reduces to โˆ‘ i, c i * X ^ i modulo p.

    theorem GaloisRing.residue_digitLift_injective {p n : โ„•} {f : Polynomial โ„ค} [NeZero n] [Fact (Nat.Prime p)] (hf : f.Monic) :
    Function.Injective fun (c : Fin f.natDegree โ†’ ZMod p) => (residue p n f) (digitLift p n f c)

    Digit lifts reduce to distinct elements modulo p: the coordinates 1, X, โ€ฆ, X ^ (deg f - 1) are independent in ๐”ฝ_p[X] / (f) for monic f.

    theorem GaloisRing.ker_residue {p n : โ„•} {f : Polynomial โ„ค} [NeZero n] [Fact (Nat.Prime p)] (hf : f.Monic) :

    The kernel of reduction modulo p is (p), when f is monic.

    theorem GaloisRing.isNilpotent_of_residue_eq_zero {p n : โ„•} {f : Polynomial โ„ค} [NeZero n] [Fact (Nat.Prime p)] (hf : f.Monic) {x : GaloisRing p n f} (hx : (residue p n f) x = 0) :

    p ^ n = 0, so elements that vanish modulo p are nilpotent.

    theorem GaloisRing.isUnit_iff {p n : โ„•} {f : Polynomial โ„ค} [NeZero n] [Fact (Nat.Prime p)] (hf : f.Monic) (hirr : Irreducible (Polynomial.map (Int.castRingHom (ZMod p)) f)) {x : GaloisRing p n f} :

    Units are the elements that are nonzero modulo p.

    theorem GaloisRing.isUnit_digitLift_sub {p n : โ„•} {f : Polynomial โ„ค} [NeZero n] [Fact (Nat.Prime p)] (hf : f.Monic) (hirr : Irreducible (Polynomial.map (Int.castRingHom (ZMod p)) f)) {c c' : Fin f.natDegree โ†’ ZMod p} (h : c โ‰  c') :
    IsUnit (digitLift p n f c - digitLift p n f c')

    Distinct digit lifts differ by a unit.

    theorem GaloisRing.eq_ringInterpolate_digitLift {p n : โ„•} {f : Polynomial โ„ค} [NeZero n] [Fact (Nat.Prime p)] (hf : f.Monic) (hirr : Irreducible (Polynomial.map (Int.castRingHom (ZMod p)) f)) {s : Finset (Fin f.natDegree โ†’ ZMod p)} {P : Polynomial (GaloisRing p n f)} (hP : P.degree < โ†‘s.card) :
    P = (Lagrange.ringInterpolate s (digitLift p n f)) fun (c : Fin f.natDegree โ†’ ZMod p) => Polynomial.eval (digitLift p n f c) P

    Lagrange interpolation at digit lifts. A polynomial over a Galois ring of degree less than #s, for a set s of digit vectors, is the interpolant of its values at their lifts; the lifts have unit differences.

    A Galois ring is local.

    ๐”ฝ_p[X] / (f) has p ^ deg f elements.

    The residue field #

    The maximal ideal of a Galois ring is (p).

    The residue field of a Galois ring is ๐”ฝ_p[X] / (f), by reduction modulo p.

    The residue field is the Galois field with p ^ deg f elements.