File size: 4,762 Bytes
4a56cd6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
import OAI.AlgebraicGeometry.FormalGeometry.Completion.Finite.CoefficientTopology

/-! # Coefficient Limit -/

namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.CoefficientLimit.Construction

noncomputable section

/-!
# Completion: integral coefficients as the inverse limit of finite coefficients

The inverse-limit description includes the topology. Compatible continuous
finite-coefficient functions therefore reconstruct a unique continuous
integral coefficient function.
-/

variable (β„“ : β„•) [Fact β„“.Prime]

/-- Compatible residues in all finite coefficient rings. -/
def coherentFiniteCoefficients : Subring (βˆ€ n : β„•, ZMod (β„“ ^ n)) where
  carrier := {a | βˆ€ m n (h : m ≀ n), ZMod.castHom (pow_dvd_pow β„“ h) (ZMod (β„“ ^ m)) (a n) = a m}
  zero_mem' := fun m n h => (ZMod.castHom (pow_dvd_pow β„“ h) (ZMod (β„“ ^ m))).map_zero
  one_mem' := fun m n h => (ZMod.castHom (pow_dvd_pow β„“ h) (ZMod (β„“ ^ m))).map_one
  add_mem' := by
    intro a b ha hb m n h
    exact (map_add _ _ _).trans (congrArgβ‚‚ (Β· + Β·) (ha m n h) (hb m n h))
  mul_mem' := by
    intro a b ha hb m n h
    exact (map_mul _ _ _).trans (congrArgβ‚‚ (Β· * Β·) (ha m n h) (hb m n h))
  neg_mem' := by
    intro a ha m n h
    exact (map_neg _ _).trans (congrArg Neg.neg (ha m n h))

/-- Projection to one finite coefficient ring. -/
def coherentFiniteProjection (n : β„•) : coherentFiniteCoefficients β„“ β†’+* ZMod (β„“ ^ n) where
  toFun a := a.val n
  map_zero' := rfl
  map_one' := rfl
  map_add' _ _ := rfl
  map_mul' _ _ := rfl

omit [Fact β„“.Prime] in
theorem coherentFiniteProjection_compatible (m n : β„•) (h : m ≀ n) :
    (ZMod.castHom (pow_dvd_pow β„“ h) (ZMod (β„“ ^ m))).comp
      (coherentFiniteProjection β„“ n) = coherentFiniteProjection β„“ m := by
  ext a
  exact a.property m n h

/-- The integral coefficient determined by a compatible residue tower. -/
def coherentFiniteLift : coherentFiniteCoefficients β„“ β†’+* β„€_[β„“] :=
  PadicInt.lift (coherentFiniteProjection_compatible β„“)

theorem coherentFiniteLift_spec (a : coherentFiniteCoefficients β„“) (n : β„•) :
    PadicInt.toZModPow n (coherentFiniteLift β„“ a) = a.val n :=
  congrArg (fun f => f a) (PadicInt.lift_spec (coherentFiniteProjection_compatible β„“) n)

/-- All residues of an integral coefficient, as a compatible tower. -/
def padicIntToCoherentFinite : β„€_[β„“] β†’+* coherentFiniteCoefficients β„“ where
  toFun a := ⟨fun n => PadicInt.toZModPow n a, fun m n h =>
    congrArg (fun f => f a) (PadicInt.zmod_cast_comp_toZModPow m n h)⟩
  map_zero' := by ext n; exact map_zero _
  map_one' := by ext n; exact map_one _
  map_add' a b := by ext n; exact map_add _ _ _
  map_mul' a b := by ext n; exact map_mul _ _ _

/-- Integral coefficients and coherent finite coefficients are isomorphic as rings. -/
def padicIntCoherentFiniteEquiv : β„€_[β„“] ≃+* coherentFiniteCoefficients β„“ where
  __ := padicIntToCoherentFinite β„“
  invFun := coherentFiniteLift β„“
  left_inv a := PadicInt.ext_of_toZModPow.mp fun n => coherentFiniteLift_spec β„“ _ n
  right_inv a := by
    apply Subtype.ext
    funext n
    exact coherentFiniteLift_spec β„“ a n

theorem continuous_padicIntToCoherentFinite : Continuous (padicIntToCoherentFinite β„“) :=
  (continuous_pi (fun n => Finite.CoefficientTopology.Construction.continuous_padicInt_toZModPow β„“ n)).subtype_mk _

/-- The inverse-limit ring isomorphism respects the actual β„“-adic topology. -/
def padicIntCoherentFiniteHomeomorph : β„€_[β„“] β‰ƒβ‚œ coherentFiniteCoefficients β„“ :=
  (padicIntCoherentFiniteEquiv β„“).toEquiv.toHomeomorphOfContinuousClosed
    (continuous_padicIntToCoherentFinite β„“) (continuous_padicIntToCoherentFinite β„“).isClosedMap

/-- Compatible continuous finite-coefficient functions reconstruct uniquely. -/
theorem continuousMap_existsUnique_of_coherentFinite {T : Type*} [TopologicalSpace T]
    (f : βˆ€ n : β„•, C(T, ZMod (β„“ ^ n)))
    (hf : βˆ€ m n (h : m ≀ n) t,
      ZMod.castHom (pow_dvd_pow β„“ h) (ZMod (β„“ ^ m)) (f n t) = f m t) :
    βˆƒ! g : C(T, β„€_[β„“]), βˆ€ n t, PadicInt.toZModPow n (g t) = f n t := by
  let a : C(T, coherentFiniteCoefficients β„“) :=
    ⟨fun t => ⟨fun n => f n t, fun m n h => hf m n h t⟩,
      (continuous_pi (fun n => (f n).continuous)).subtype_mk _⟩
  let g : C(T, β„€_[β„“]) := ⟨fun t => coherentFiniteLift β„“ (a t),
    (padicIntCoherentFiniteHomeomorph β„“).symm.continuous.comp a.continuous⟩
  refine ⟨g, fun n t => coherentFiniteLift_spec β„“ (a t) n, ?_⟩
  intro g' hg'
  apply ContinuousMap.ext
  intro t
  apply PadicInt.ext_of_toZModPow.mp
  intro n
  exact (hg' n t).trans (coherentFiniteLift_spec β„“ (a t) n).symm

end

end OAI.AlgebraicGeometry.FormalGeometry.Completion.CoefficientLimit.Construction