Module

GradedModulePresentationHZeroShiftEqSecMk.lean

Nyll.AlgebraicCurves.Cohomology.Cech.ProjectiveSpace.GradedModulePresentationHZeroShiftEqSecMk
6 declarations indexed from sourceView source ↗

Proj Space Cech Graded Module Presentation forall H zero shift eq sec mk of subsingleton H

one

Declarations

AlgebraicCurves.Cohomology.Cech.Proofs.GradedPresentationH0Sections.SESBody.secMap_mk
Source context 7 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Cohomology.Cech.Proofs.GradedPresentationH0Sections
universe u
namespace SESBody
open ProjSpaceCech ProjSpaceCech.GradedModule
variable {R : Type u} [CommRing R] {n : ℕ}
theorem secMap_mk {D₁ D₂ : GradedModule R n} (φ : GradedModule.Hom D₁ D₂) (I : Finset (Fin (n +
  1))) (x : GradedModule.Frac D₁ I) :
    GradedModule.Hom.secMap φ I (GradedModule.sec.mk D₁ I x) =
      GradedModule.sec.mk D₂ I ⟨x.denExp, x.hden, φ.toLinearMap x.num, φ.mem_grade _ _ x.hnum⟩
AlgebraicCurves.Cohomology.Cech.Proofs.GradedPresentationH0Sections.SESBody.cochainMap_apply
Source context 7 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Cohomology.Cech.Proofs.GradedPresentationH0Sections
universe u
namespace SESBody
open ProjSpaceCech ProjSpaceCech.GradedModule
variable {R : Type u} [CommRing R] {n : ℕ}
theorem cochainMap_apply {D₁ D₂ : GradedModule R n} (φ : GradedModule.Hom D₁ D₂) (i : ℕ) (f :
  GradedModule.cochain D₁ i) (s : Idx n i) :
    GradedModule.Hom.cochainMap φ i f s = GradedModule.Hom.secMap φ (Idx.img n s) (f s)
AlgebraicCurves.Cohomology.Cech.Proofs.GradedPresentationH0Sections.SESBody.secMap_shift_surjective
Source context 8 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Cohomology.Cech.Proofs.GradedPresentationH0Sections
universe u
namespace SESBody
open ProjSpaceCech ProjSpaceCech.GradedModule
variable {R : Type u} [CommRing R] {n : ℕ}
variable {D : GradedModule R n} (σ : GradedModule.Presentation D) (d : ℤ)
theorem secMap_shift_surjective (I : Finset (Fin (n + 1)))
    (x : GradedModule.sec (GradedModule.shift D d) I) :
    ∃ y : GradedModule.sec (GradedModule.shift σ.F d) I, GradedModule.Hom.secMap (σ.hom.shift d)
      I y = x
AlgebraicCurves.Cohomology.Cech.Proofs.GradedPresentationH0Sections.SESBody.exists_secMap_kerIncl_eq_of_secMap_eq_zero
Source context 8 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Cohomology.Cech.Proofs.GradedPresentationH0Sections
universe u
namespace SESBody
open ProjSpaceCech ProjSpaceCech.GradedModule
variable {R : Type u} [CommRing R] {n : ℕ}
variable {D : GradedModule R n} (σ : GradedModule.Presentation D) (d : ℤ)
theorem exists_secMap_kerIncl_eq_of_secMap_eq_zero (I : Finset (Fin (n + 1)))
    (y : GradedModule.sec (GradedModule.shift σ.F d) I) (hy : GradedModule.Hom.secMap
      (σ.hom.shift d) I y = 0) :
    ∃ z : GradedModule.sec (GradedModule.shift σ.ker d) I, GradedModule.Hom.secMap
      (σ.kerIncl.shift d) I z = y
AlgebraicCurves.Cohomology.Cech.Proofs.GradedPresentationH0Sections.SESBody.secMap_secMap_kerIncl
Source context 8 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Cohomology.Cech.Proofs.GradedPresentationH0Sections
universe u
namespace SESBody
open ProjSpaceCech ProjSpaceCech.GradedModule
variable {R : Type u} [CommRing R] {n : ℕ}
variable {D : GradedModule R n} (σ : GradedModule.Presentation D) (d : ℤ)
theorem secMap_secMap_kerIncl (I : Finset (Fin (n + 1))) (z : GradedModule.sec
  (GradedModule.shift σ.ker d) I) :
    GradedModule.Hom.secMap (σ.hom.shift d) I (GradedModule.Hom.secMap (σ.kerIncl.shift d) I z)
      = 0
ProjSpaceCech.GradedModule.Presentation.forall_H_zero_shift_eq_sec_mk_of_subsingleton_H_one
Source context 5 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Cohomology.Cech.Proofs.GradedPresentationH0Sections
universe u
open SESBody ProjSpaceCech ProjSpaceCech.GradedModule in
theorem
  _root_.ProjSpaceCech.GradedModule.Presentation.forall_H_zero_shift_eq_sec_mk_of_subsingleton_H_one
    {R : Type u} [CommRing R] {n : ℕ} {D : ProjSpaceCech.GradedModule R n}
    (σ : ProjSpaceCech.GradedModule.Presentation D) (d : ℤ)
    (hK : Subsingleton (ProjSpaceCech.GradedModule.H (ProjSpaceCech.GradedModule.shift σ.ker d) 1))
    (hF : ∀ c : ProjSpaceCech.GradedModule.H (ProjSpaceCech.GradedModule.shift σ.F d) 0,
      ∃ f : σ.F.M, f ∈ σ.F.grade d ∧
        ∃ hf : f ∈ (ProjSpaceCech.GradedModule.shift σ.F d).grade (∑ j : Fin (n + 1), (((0 : Fin
          (n + 1) → ℕ) j : ℕ) : ℤ)),
          ∀ s : ProjSpaceCech.Idx n 0,
            (show ↥(LinearMap.ker (ProjSpaceCech.GradedModule.d
              (ProjSpaceCech.GradedModule.shift σ.F d) 0)) from c).1 s =
              ProjSpaceCech.GradedModule.sec.mk (ProjSpaceCech.GradedModule.shift σ.F d)
                (ProjSpaceCech.Idx.img n s)
                ⟨0, fun _ _ => rfl, f, hf⟩) :
    ∀ c : ProjSpaceCech.GradedModule.H (ProjSpaceCech.GradedModule.shift D d) 0,
      ∃ m : D.M, m ∈ D.grade d ∧
        ∃ hm : m ∈ (ProjSpaceCech.GradedModule.shift D d).grade (∑ j : Fin (n + 1), (((0 : Fin
          (n + 1) → ℕ) j : ℕ) : ℤ)),
          ∀ s : ProjSpaceCech.Idx n 0,
            (show ↥(LinearMap.ker (ProjSpaceCech.GradedModule.d
              (ProjSpaceCech.GradedModule.shift D d) 0)) from c).1 s =
              ProjSpaceCech.GradedModule.sec.mk (ProjSpaceCech.GradedModule.shift D d)
                (ProjSpaceCech.Idx.img n s)
                ⟨0, fun _ _ => rfl, m, hm⟩ := by
  classical
  intro c
  have hc0 : GradedModule.d (GradedModule.shift D d) 0 (show ↥(LinearMap.ker (GradedModule.d
    (GradedModule.shift D d) 0)) from c).1 = 0 := (show ↥(LinearMap.ker (GradedModule.d
    (GradedModule.shift D d) 0)) from c).2
  choose fl hfl using fun s : Idx n 0 => secMap_shift_surjective σ d (Idx.img n s) ((show
    ↥(LinearMap.ker (GradedModule.d (GradedModule.shift D d) 0)) from c).1 s)
  let f : GradedModule.cochain (GradedModule.shift σ.F d) 0 := fl
  have hf : GradedModule.Hom.cochainMap (σ.hom.shift d) 0 f = (show ↥(LinearMap.ker
    (GradedModule.d (GradedModule.shift D d) 0)) from c).1 := funext fun s => hfl s
  have hgπ : GradedModule.Hom.cochainMap (σ.hom.shift d) 1 (GradedModule.d (GradedModule.shift
    σ.F d) 0 f) = 0 := by
    rw [← LinearMap.comp_apply, ← GradedModule.Hom.cochainMap_comm, LinearMap.comp_apply, hf, hc0]
  choose hl hhl using fun t : Idx n 1 =>
    exists_secMap_kerIncl_eq_of_secMap_eq_zero σ d (Idx.img n t) (GradedModule.d
      (GradedModule.shift σ.F d) 0 f t) (congrFun hgπ t)
  let h : GradedModule.cochain (GradedModule.shift σ.ker d) 1 := hl
  have hh : GradedModule.Hom.cochainMap (σ.kerIncl.shift d) 1 h = GradedModule.d
    (GradedModule.shift σ.F d) 0 f := funext fun t => hhl t
  have hinjι : Function.Injective (σ.kerIncl.shift d).toLinearMap := fun x y hxy => hxy
  have hker : GradedModule.d (GradedModule.shift σ.ker d) 1 h = 0 := by
    have hinj2 : Function.Injective (GradedModule.Hom.cochainMap (σ.kerIncl.shift d) 2) := by
      intro x y hxy
      funext s
      exact GradedModule.Hom.secMap_injective (σ.kerIncl.shift d) hinjι (Idx.img n s) (congrFun
        hxy s)
    apply hinj2
    rw [map_zero, ← LinearMap.comp_apply, ← GradedModule.Hom.cochainMap_comm,
      LinearMap.comp_apply, hh,
      ← LinearMap.comp_apply, GradedModule.d_sq, LinearMap.zero_apply]
  have htop : (LinearMap.range (GradedModule.d (GradedModule.shift σ.ker d) 0)).comap
    (LinearMap.ker (GradedModule.d (GradedModule.shift σ.ker d) 1)).subtype = ⊤ :=
    Submodule.Quotient.subsingleton_iff.1 hK
  have hrange : h ∈ LinearMap.range (GradedModule.d (GradedModule.shift σ.ker d) 0) := by
    have : (⟨h, LinearMap.mem_ker.2 hker⟩ : ↥(LinearMap.ker (GradedModule.d (GradedModule.shift
      σ.ker d) 1))) ∈
        (LinearMap.range (GradedModule.d (GradedModule.shift σ.ker d) 0)).comap (LinearMap.ker
          (GradedModule.d (GradedModule.shift σ.ker d) 1)).subtype := by
      rw [htop]; exact Submodule.mem_top
    exact this
  obtain ⟨h₀, hh₀⟩ := hrange
  have hf'0 : GradedModule.d (GradedModule.shift σ.F d) 0 (f - GradedModule.Hom.cochainMap
    (σ.kerIncl.shift d) 0 h₀) = 0 := by
    rw [map_sub, ← LinearMap.comp_apply (f := GradedModule.d (GradedModule.shift σ.F d) 0),
      GradedModule.Hom.cochainMap_comm,
      LinearMap.comp_apply, hh₀, hh, sub_self]
  obtain ⟨f₀, hf₀d, hf₀, hf'eq⟩ := hF ⟨f - GradedModule.Hom.cochainMap (σ.kerIncl.shift d) 0 h₀,
    LinearMap.mem_ker.2 hf'0⟩
  refine ⟨σ.hom.toLinearMap f₀, σ.hom.mem_grade d f₀ hf₀d, (σ.hom.shift d).mem_grade _ _ hf₀,
    fun s => ?_⟩
  have hfs : f s = (f - GradedModule.Hom.cochainMap (σ.kerIncl.shift d) 0 h₀) s +
      GradedModule.Hom.cochainMap (σ.kerIncl.shift d) 0 h₀ s := by
    rw [Pi.sub_apply, sub_add_cancel]
  have hf'eqs : (f - GradedModule.Hom.cochainMap (σ.kerIncl.shift d) 0 h₀) s =
      GradedModule.sec.mk (GradedModule.shift σ.F d) (Idx.img n s) ⟨0, fun _ _ => rfl, f₀, hf₀⟩
        := hf'eq s
  rw [← hf, cochainMap_apply, hfs, map_add, cochainMap_apply, secMap_secMap_kerIncl σ d,
    add_zero, hf'eqs, secMap_mk]
  rfl