File size: 3,426 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
import OAI.AlgebraicGeometry.FormalGeometry.Completion.CompatibleReducedKernels
import OAI.AlgebraicGeometry.Quotients.FiniteDescent.ModuleTensor
import OAI.AlgebraicGeometry.Quotients.FiniteDescent.CochainZero
import Mathlib.LinearAlgebra.TensorProduct.Quotient
import Mathlib.Algebra.Homology.QuasiIso

/-! # Adic Reduction -/

namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.AdicReduction.Construction

noncomputable section

/-! Actual reduction of module cochain complexes, identified with tensoring by the quotient ring. -/

open _root_.CategoryTheory
open scoped TensorProduct

universe u

variable {R : Type u} [CommRing R] (I : Ideal R)

/-- Reduction modulo the ideal, retaining the original base scalar structure. -/
def adicReductionFunctor : ModuleCat.{u} R ⥤ ModuleCat.{u} R where
  obj M := ModuleCat.of R (M ⧸ (I • ⊤ : Submodule R M))
  map f := ModuleCat.ofHom ((f.hom.reduceModIdeal I).restrictScalars R)
  map_id M := by
    ext x
    rfl
  map_comp f g := by
    ext x
    rfl

instance : (adicReductionFunctor (R := R) I).Additive where
  map_add := by
    intros M N f g
    ext x
    induction x using Submodule.Quotient.induction_on with
    | _ x => rfl

/-- The actual tensor-to-quotient identification is natural in the module. -/
def adicReductionTensorIso :
    Quotients.FiniteDescent.ModuleTensor.Construction.ModuleTensorFunctor.tensor (R ⧸ I) ≅ adicReductionFunctor I :=
  NatIso.ofComponents (fun M => (TensorProduct.quotTensorEquivQuotSMul M I).toModuleIso) (by
    intro M N f
    apply ModuleCat.hom_ext
    apply TensorProduct.ext'
    intro a x
    obtain ⟨r, rfl⟩ := Ideal.Quotient.mk_surjective a
    change TensorProduct.quotTensorEquivQuotSMul N I
      (Ideal.Quotient.mk I r ⊗ₜ[R] f x) =
      f.hom.reduceModIdeal I
        (TensorProduct.quotTensorEquivQuotSMul M I (Ideal.Quotient.mk I r ⊗ₜ[R] x))
    simp)

abbrev adicReductionComplex (C : CochainComplex (ModuleCat.{u} R) ℕ) :
    CochainComplex (ModuleCat.{u} R) ℕ :=
  ((adicReductionFunctor I).mapHomologicalComplex (ComplexShape.up ℕ)).obj C

abbrev adicReductionMap {C D : CochainComplex (ModuleCat.{u} R) ℕ} (φ : C ⟶ D) :
    adicReductionComplex I C ⟶ adicReductionComplex I D :=
  ((adicReductionFunctor I).mapHomologicalComplex (ComplexShape.up ℕ)).map φ

/-- Reduction of the actual cochain complex agrees with its quotient-ring tensor complex. -/
def adicReductionComplexIso (C : CochainComplex (ModuleCat.{u} R) ℕ) :
    Quotients.FiniteDescent.ModuleTensor.Construction.ModuleTensorFunctor.complex (R ⧸ I) C ≅ adicReductionComplex I C :=
  HomologicalComplex.Hom.isoOfComponents
    (fun n => (adicReductionTensorIso I).app (C.X n))
    (fun _ _ _ => ((adicReductionTensorIso I).hom.naturality _).symm)

theorem adicReductionMap_quasiIso {C D : CochainComplex (ModuleCat.{u} R) ℕ} (φ : C ⟶ D)
    [QuasiIso (Quotients.FiniteDescent.ModuleTensor.Construction.ModuleTensorFunctor.map (R ⧸ I) φ)] :
    QuasiIso (adicReductionMap I φ) := by
  apply quasiIso_of_arrow_mk_iso
    (Quotients.FiniteDescent.ModuleTensor.Construction.ModuleTensorFunctor.map (R ⧸ I) φ) _
  refine Arrow.isoMk (adicReductionComplexIso I C) (adicReductionComplexIso I D) ?_
  apply HomologicalComplex.Hom.ext
  funext n
  exact ((adicReductionTensorIso I).hom.naturality (φ.f n)).symm

end

end OAI.AlgebraicGeometry.FormalGeometry.Completion.AdicReduction.Construction