Documentation

TauCeti.NumberTheory.Padics.InverseLimit

The p-adic integers as an inverse limit #

The ring of p-adic integers is the inverse limit of the finite rings ZMod (p ^ n). This file gives that inverse limit a concrete carrier: a point is a family whose finer residues reduce to its coarser residues. Mathlib's universal maps PadicInt.toZModPow and PadicInt.lift identify this ring with ℤ_[p].

The topology on the inverse limit is the subspace topology from the product of the discrete finite rings; the compatibility conditions are closed, so the inverse limit is compact for every nonzero modulus. The algebraic equivalence is a homeomorphism because its forward map is continuous and ℤ_[p] is compact.

Main definitions #

References #

def PadicInt.inverseLimit (p : ℕ) :
Subring ((n : ℕ) → ZMod (p ^ n))

The inverse limit of the rings ZMod (p ^ n): compatible residue families, with the subspace topology inherited from their product.

Equations
Instances For
    theorem PadicInt.mem_inverseLimit_iff {p : ℕ} {x : (n : ℕ) → ZMod (p ^ n)} :
    x ∈ inverseLimit p ↔ ∀ ⦃m n : ℕ⦄, m ≤ n → (x n).cast = x m

    Membership in PadicInt.inverseLimit: a family belongs to the inverse limit exactly when each of its finer residues reduces to the coarser ones. Use .mpr to build an element of the inverse limit from a compatibility proof.

    The projection from the inverse limit to ZMod (p ^ n).

    Equations
    Instances For
      @[simp]
      theorem PadicInt.inverseLimit.proj_apply (p n : ℕ) (x : ↥(inverseLimit p)) :
      (proj p n) x = ↑x n
      @[simp]
      theorem PadicInt.inverseLimit.cast_proj (p m n : ℕ) (h : m ≤ n) :
      (ZMod.castHom ⋯ (ZMod (p ^ m))).comp (proj p n) = proj p m

      The projections from the inverse limit form a compatible family.

      def PadicInt.inverseLimit.lift (p : ℕ) {R : Type u_1} [NonAssocSemiring R] (f : (n : ℕ) → R →+* ZMod (p ^ n)) (hf : ∀ (m n : ℕ) (h : m ≤ n), (ZMod.castHom ⋯ (ZMod (p ^ m))).comp (f n) = f m) :

      The universal property of the inverse limit: a family of ring homomorphisms f n : R →+* ZMod (p ^ n) compatible with the reduction maps assembles into a single ring homomorphism to PadicInt.inverseLimit p.

      Equations
      Instances For
        @[simp]
        theorem PadicInt.inverseLimit.lift_apply (p : ℕ) {R : Type u_1} [NonAssocSemiring R] (f : (n : ℕ) → R →+* ZMod (p ^ n)) (hf : ∀ (m n : ℕ) (h : m ≤ n), (ZMod.castHom ⋯ (ZMod (p ^ m))).comp (f n) = f m) (x : R) (n : ℕ) :
        ↑((lift p f hf) x) n = (f n) x
        @[simp]
        theorem PadicInt.inverseLimit.proj_comp_lift (p : ℕ) {R : Type u_1} [NonAssocSemiring R] (f : (n : ℕ) → R →+* ZMod (p ^ n)) (hf : ∀ (m n : ℕ) (h : m ≤ n), (ZMod.castHom ⋯ (ZMod (p ^ m))).comp (f n) = f m) (n : ℕ) :
        (proj p n).comp (lift p f hf) = f n

        PadicInt.inverseLimit.lift recovers the given family on each projection.

        theorem PadicInt.inverseLimit.lift_unique (p : ℕ) {R : Type u_1} [NonAssocSemiring R] (f : (n : ℕ) → R →+* ZMod (p ^ n)) (hf : ∀ (m n : ℕ) (h : m ≤ n), (ZMod.castHom ⋯ (ZMod (p ^ m))).comp (f n) = f m) (g : R →+* ↥(inverseLimit p)) (hg : ∀ (n : ℕ), (proj p n).comp g = f n) :
        g = lift p f hf

        PadicInt.inverseLimit.lift is the only homomorphism recovering the given family on each projection.

        The compatible families are cut out of the product of the discrete rings ZMod (p ^ n) by closed conditions.

        The inverse limit of the finite rings ZMod (p ^ n) is compact.

        noncomputable def PadicInt.toInverseLimit (p : ℕ) [Fact (Nat.Prime p)] :

        The residue family of a p-adic integer, regarded as a homomorphism to the inverse limit.

        Equations
        Instances For
          @[simp]
          theorem PadicInt.toInverseLimit_apply (p : ℕ) [Fact (Nat.Prime p)] (x : ℤ_[p]) (n : ℕ) :
          ↑((toInverseLimit p) x) n = (toZModPow n) x
          noncomputable def PadicInt.fromInverseLimit (p : ℕ) [Fact (Nat.Prime p)] :

          A compatible residue family determines a p-adic integer by Mathlib's inverse-limit universal property.

          Equations
          Instances For

            The ring of p-adic integers is the inverse limit of the rings ZMod (p ^ n).

            Equations
            Instances For

              Taking all residues modulo p ^ n is continuous into their inverse limit.

              The ring equivalence from ℤ_[p] to its inverse-limit presentation is continuous.

              The ring equivalence from ℤ_[p] to its inverse-limit presentation is a homeomorphism.

              Equations
              Instances For
                @[simp]

                The underlying map of PadicInt.inverseLimitHomeomorph is the ring equivalence taking a p-adic integer to all of its residues.

                The additive group of ℤ_[p] is topologically isomorphic to the additive group of its inverse-limit presentation.

                Equations
                Instances For