File size: 3,529 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
import OAI.AlgebraicGeometry.FormalGeometry.Completion.Finite.ProjectiveTensorDual
import Mathlib.LinearAlgebra.Quotient.Basic
import Mathlib.LinearAlgebra.SymmetricAlgebra.Basic

/-! # Projective Kernel Algebra -/

namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.Finite.ProjectiveKernelAlgebra.Construction

noncomputable section

/-! The kernel of a map between finite projective modules, after every
base extension, is represented by the symmetric algebra of the dual cokernel. -/

open scoped TensorProduct

universe u v w t
variable (R : Type u) [CommRing R]
  (P : Type v) [AddCommGroup P] [Module R P] [Module.Finite R P] [Module.Projective R P]
  {Q : Type t} [AddCommGroup Q] [Module R Q] [Module.Finite R Q] [Module.Projective R Q]
  (d : P β†’β‚—[R] Q)

abbrev finiteProjectiveKernelDualModule := Module.Dual R P β§Έ LinearMap.range d.dualMap

variable (M : Type w) [AddCommGroup M] [Module R M]

def finiteProjectiveKernelToHom (x : LinearMap.ker (d.lTensor M)) :
    finiteProjectiveKernelDualModule R P d β†’β‚—[R] M :=
  (LinearMap.range d.dualMap).liftQ (ProjectiveTensorDual.Construction.finiteProjectiveTensorDualEquiv R P M x) (by
    rintro Ο† ⟨ψ, rfl⟩
    exact (ProjectiveTensorDual.Construction.finiteProjectiveTensor_kernel_iff R P M d x).mp x.property ψ)

def finiteProjectiveHomToKernel (F : finiteProjectiveKernelDualModule R P d β†’β‚—[R] M) :
    LinearMap.ker (d.lTensor M) :=
  ⟨(ProjectiveTensorDual.Construction.finiteProjectiveTensorDualEquiv R P M).symm (F.comp (LinearMap.range d.dualMap).mkQ), by
    apply (ProjectiveTensorDual.Construction.finiteProjectiveTensor_kernel_iff R P M d _).mpr
    intro ψ
    rw [LinearEquiv.apply_symm_apply]
    change F ((LinearMap.range d.dualMap).mkQ (d.dualMap ψ)) = 0
    have hz : (LinearMap.range d.dualMap).mkQ (d.dualMap ψ) = 0 := by
      exact (Submodule.Quotient.mk_eq_zero (LinearMap.range d.dualMap)).mpr (LinearMap.mem_range_self _ _)
    rw [hz, map_zero]⟩

def finiteProjectiveKernelHomEquiv : LinearMap.ker (d.lTensor M) ≃
    (finiteProjectiveKernelDualModule R P d β†’β‚—[R] M) where
  toFun := finiteProjectiveKernelToHom R P d M
  invFun := finiteProjectiveHomToKernel R P d M
  left_inv x := by
    apply Subtype.ext
    apply (ProjectiveTensorDual.Construction.finiteProjectiveTensorDualEquiv R P M).injective
    change ProjectiveTensorDual.Construction.finiteProjectiveTensorDualEquiv R P M
      ((ProjectiveTensorDual.Construction.finiteProjectiveTensorDualEquiv R P M).symm
        ((finiteProjectiveKernelToHom R P d M x).comp (LinearMap.range d.dualMap).mkQ)) = _
    rw [LinearEquiv.apply_symm_apply]
    apply LinearMap.ext
    intro Ο†
    rfl
  right_inv F := by
    apply LinearMap.ext
    intro x
    induction x using Submodule.Quotient.induction_on with
    | H Ο† =>
      change ProjectiveTensorDual.Construction.finiteProjectiveTensorDualEquiv R P M
        ((ProjectiveTensorDual.Construction.finiteProjectiveTensorDualEquiv R P M).symm (F.comp (LinearMap.range d.dualMap).mkQ)) Ο† = _
      rw [LinearEquiv.apply_symm_apply]
      rfl

abbrev finiteProjectiveKernelAlgebra := SymmetricAlgebra R (finiteProjectiveKernelDualModule R P d)

variable (A : Type w) [CommRing A] [Algebra R A]

def finiteProjectiveKernelAlgebraEquiv :
    LinearMap.ker (d.lTensor A) ≃ (finiteProjectiveKernelAlgebra R P d →ₐ[R] A) :=
  (finiteProjectiveKernelHomEquiv R P d A).trans SymmetricAlgebra.lift

end

end OAI.AlgebraicGeometry.FormalGeometry.Completion.Finite.ProjectiveKernelAlgebra.Construction