Module

DoubleComplexHTotEquivMkEqMkSingle.lean

Nyll.SchemeTheory.HomologicalAlgebra.DoubleComplexHTotEquivMkEqMkSingle
12 declarations indexed from sourceView source ↗

Double Complex exists HTot equiv mk eq mk single of rows exact of augmentation

Imports11
  • Mathlib.Algebra.Group.Hom.Basic
  • Mathlib.Algebra.Module.Submodule.Equiv
  • Mathlib.Algebra.Module.Submodule.Ker
  • Mathlib.Algebra.Module.Submodule.LinearMap
  • Mathlib.Algebra.Module.Submodule.Map
  • Mathlib.Algebra.Module.Submodule.Range
  • Mathlib.Algebra.Notation.Pi.Basic
  • Mathlib.LinearAlgebra.Pi
  • Mathlib.LinearAlgebra.Quotient.Basic
  • Mathlib.LinearAlgebra.Quotient.Defs
  • Nyll.SchemeTheory.Cohomology.Sheaves.DoubleComplex
Imported by2

Declarations

AlgebraicCurves.Foundations.HomologicalAlgebra.Proofs.DoubleComplex_exists_HTot_equiv_mk_eq_mk_single_of_rows_exact_of_augmentation.P1SOL.dTot_single_apply_succ
Source context 10 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Foundations.HomologicalAlgebra.Proofs
namespace DoubleComplex_exists_HTot_equiv_mk_eq_mk_single_of_rows_exact_of_augmentation
universe u
noncomputable section
namespace P1SOL
open DoubleComplex
section Generic
variable {R : Type u} [CommRing R] {D : DoubleComplex.Bounded R}
theorem dTot_single_apply_succ {n pp q : ℕ} (h : pp + 1 + q = n + 1)
    (j : DoubleComplex.Diag n) (x : D.C j.1.1 j.1.2) (hne : pp + 1 ≠ j.1.1) :
    DoubleComplex.dTot D n
        (Pi.single (M := fun i : DoubleComplex.Diag n => D.C i.1.1 i.1.2) j x)
        ⟨(pp + 1, q), h⟩
      = D.dH pp q (Pi.single (M := fun i : DoubleComplex.Diag n => D.C i.1.1 i.1.2)
          j x ⟨(pp, q), by omega⟩) := by
  match q, h with
  | 0, h => exact DoubleComplex.dTot_apply_succ_zero h _
  | q' + 1, h =>
    rw [DoubleComplex.dTot_apply_succ_succ]
    refine add_eq_left.mpr ?_
    rw [Pi.single_eq_of_ne (fun heq => hne (congrArg (fun i => i.1.1) heq)), map_zero, smul_zero]
AlgebraicCurves.Foundations.HomologicalAlgebra.Proofs.DoubleComplex_exists_HTot_equiv_mk_eq_mk_single_of_rows_exact_of_augmentation.P1SOL.dH_aug
Source context 12 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Foundations.HomologicalAlgebra.Proofs
namespace DoubleComplex_exists_HTot_equiv_mk_eq_mk_single_of_rows_exact_of_augmentation
universe u
noncomputable section
namespace P1SOL
open DoubleComplex
section Main
variable {R : Type u} [CommRing R] {D : DoubleComplex.Bounded R}
variable {A : ℕ → Type u} [∀ m, AddCommGroup (A m)] [∀ m, Module R (A m)]
variable {dA : ∀ m, A m →ₗ[R] A (m + 1)} (ε : ∀ m, A m →ₗ[R] D.C 0 m)
theorem dH_aug (hker : ∀ m, LinearMap.ker (D.dH 0 m) = LinearMap.range (ε m)) (b : ℕ) (y : A b) :
    D.dH 0 b (ε b y) = 0
AlgebraicCurves.Foundations.HomologicalAlgebra.Proofs.DoubleComplex_exists_HTot_equiv_mk_eq_mk_single_of_rows_exact_of_augmentation.P1SOL.exists_aug_eq
Source context 12 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Foundations.HomologicalAlgebra.Proofs
namespace DoubleComplex_exists_HTot_equiv_mk_eq_mk_single_of_rows_exact_of_augmentation
universe u
noncomputable section
namespace P1SOL
open DoubleComplex
section Main
variable {R : Type u} [CommRing R] {D : DoubleComplex.Bounded R}
variable {A : ℕ → Type u} [∀ m, AddCommGroup (A m)] [∀ m, Module R (A m)]
variable {dA : ∀ m, A m →ₗ[R] A (m + 1)} (ε : ∀ m, A m →ₗ[R] D.C 0 m)
theorem exists_aug_eq (hker : ∀ m, LinearMap.ker (D.dH 0 m) = LinearMap.range (ε m)) (b : ℕ) (x :
  D.C 0 b) (hx : D.dH 0 b x = 0) :
    ∃ y, ε b y = x
AlgebraicCurves.Foundations.HomologicalAlgebra.Proofs.DoubleComplex_exists_HTot_equiv_mk_eq_mk_single_of_rows_exact_of_augmentation.P1SOL.exists_dH_eq
Source context 12 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Foundations.HomologicalAlgebra.Proofs
namespace DoubleComplex_exists_HTot_equiv_mk_eq_mk_single_of_rows_exact_of_augmentation
universe u
noncomputable section
namespace P1SOL
open DoubleComplex
section Main
variable {R : Type u} [CommRing R] {D : DoubleComplex.Bounded R}
variable {A : ℕ → Type u} [∀ m, AddCommGroup (A m)] [∀ m, Module R (A m)]
variable {dA : ∀ m, A m →ₗ[R] A (m + 1)} (ε : ∀ m, A m →ₗ[R] D.C 0 m)
theorem exists_dH_eq (hrows : ∀ p m, LinearMap.ker (D.dH (p + 1) m) ≤ LinearMap.range (D.dH p m))
  (P Q : ℕ)
    (x : D.C (P + 1) Q) (hx : D.dH (P + 1) Q x = 0) : ∃ b : D.C P Q, D.dH P Q b = x
AlgebraicCurves.Foundations.HomologicalAlgebra.Proofs.DoubleComplex_exists_HTot_equiv_mk_eq_mk_single_of_rows_exact_of_augmentation.P1SOL.edge

The edge map from the augmentation complex into the total complex of the double complex.

Source context 12 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Foundations.HomologicalAlgebra.Proofs
namespace DoubleComplex_exists_HTot_equiv_mk_eq_mk_single_of_rows_exact_of_augmentation
universe u
noncomputable section
namespace P1SOL
open DoubleComplex
section Main
variable {R : Type u} [CommRing R] {D : DoubleComplex.Bounded R}
variable {A : ℕ → Type u} [∀ m, AddCommGroup (A m)] [∀ m, Module R (A m)]
variable {dA : ∀ m, A m →ₗ[R] A (m + 1)} (ε : ∀ m, A m →ₗ[R] D.C 0 m)
def edge (m : ℕ) : A m →ₗ[R] DoubleComplex.Tot D m
AlgebraicCurves.Foundations.HomologicalAlgebra.Proofs.DoubleComplex_exists_HTot_equiv_mk_eq_mk_single_of_rows_exact_of_augmentation.P1SOL.edge_apply_zero
Source context 12 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Foundations.HomologicalAlgebra.Proofs
namespace DoubleComplex_exists_HTot_equiv_mk_eq_mk_single_of_rows_exact_of_augmentation
universe u
noncomputable section
namespace P1SOL
open DoubleComplex
section Main
variable {R : Type u} [CommRing R] {D : DoubleComplex.Bounded R}
variable {A : ℕ → Type u} [∀ m, AddCommGroup (A m)] [∀ m, Module R (A m)]
variable {dA : ∀ m, A m →ₗ[R] A (m + 1)} (ε : ∀ m, A m →ₗ[R] D.C 0 m)
theorem edge_apply_zero {m : ℕ} (h : 0 + m = m) (y : A m) :
    edge ε m y ⟨(0, m), h⟩ = ε m y
AlgebraicCurves.Foundations.HomologicalAlgebra.Proofs.DoubleComplex_exists_HTot_equiv_mk_eq_mk_single_of_rows_exact_of_augmentation.P1SOL.edge_apply_pos
Source context 12 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Foundations.HomologicalAlgebra.Proofs
namespace DoubleComplex_exists_HTot_equiv_mk_eq_mk_single_of_rows_exact_of_augmentation
universe u
noncomputable section
namespace P1SOL
open DoubleComplex
section Main
variable {R : Type u} [CommRing R] {D : DoubleComplex.Bounded R}
variable {A : ℕ → Type u} [∀ m, AddCommGroup (A m)] [∀ m, Module R (A m)]
variable {dA : ∀ m, A m →ₗ[R] A (m + 1)} (ε : ∀ m, A m →ₗ[R] D.C 0 m)
theorem edge_apply_pos {m p' q : ℕ} (h : p' + 1 + q = m) (y : A m) :
    edge ε m y ⟨(p' + 1, q), h⟩ = 0
AlgebraicCurves.Foundations.HomologicalAlgebra.Proofs.DoubleComplex_exists_HTot_equiv_mk_eq_mk_single_of_rows_exact_of_augmentation.P1SOL.edge_chain
Source context 12 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Foundations.HomologicalAlgebra.Proofs
namespace DoubleComplex_exists_HTot_equiv_mk_eq_mk_single_of_rows_exact_of_augmentation
universe u
noncomputable section
namespace P1SOL
open DoubleComplex
section Main
variable {R : Type u} [CommRing R] {D : DoubleComplex.Bounded R}
variable {A : ℕ → Type u} [∀ m, AddCommGroup (A m)] [∀ m, Module R (A m)]
variable {dA : ∀ m, A m →ₗ[R] A (m + 1)} (ε : ∀ m, A m →ₗ[R] D.C 0 m)
theorem edge_chain (hεd : ∀ m, D.dV 0 m ∘ₗ ε m = ε (m + 1) ∘ₗ dA m)
    (hker : ∀ m, LinearMap.ker (D.dH 0 m) = LinearMap.range (ε m)) (n : ℕ) :
    DoubleComplex.dTot D n ∘ₗ edge ε n
      = edge ε (n + 1) ∘ₗ dA n
AlgebraicCurves.Foundations.HomologicalAlgebra.Proofs.DoubleComplex_exists_HTot_equiv_mk_eq_mk_single_of_rows_exact_of_augmentation.P1SOL.stair_surj
Source context 12 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Foundations.HomologicalAlgebra.Proofs
namespace DoubleComplex_exists_HTot_equiv_mk_eq_mk_single_of_rows_exact_of_augmentation
universe u
noncomputable section
namespace P1SOL
open DoubleComplex
section Main
variable {R : Type u} [CommRing R] {D : DoubleComplex.Bounded R}
variable {A : ℕ → Type u} [∀ m, AddCommGroup (A m)] [∀ m, Module R (A m)]
variable {dA : ∀ m, A m →ₗ[R] A (m + 1)} (ε : ∀ m, A m →ₗ[R] D.C 0 m)
theorem stair_surj (hε : ∀ m, Function.Injective (ε m))
    (hεd : ∀ m, D.dV 0 m ∘ₗ ε m = ε (m + 1) ∘ₗ dA m)
    (hker : ∀ m, LinearMap.ker (D.dH 0 m) = LinearMap.range (ε m))
    (hrows : ∀ p m, LinearMap.ker (D.dH (p + 1) m) ≤ LinearMap.range (D.dH p m)) (n : ℕ)
    (c : DoubleComplex.Tot D (n + 1)) (hc : DoubleComplex.dTot D (n + 1) c = 0) :
    ∃ (y : A (n + 1)) (bb : DoubleComplex.Tot D n),
      dA (n + 1) y = 0 ∧
      c = edge ε (n + 1) y + DoubleComplex.dTot D n bb
AlgebraicCurves.Foundations.HomologicalAlgebra.Proofs.DoubleComplex_exists_HTot_equiv_mk_eq_mk_single_of_rows_exact_of_augmentation.P1SOL.stair_inj
Source context 12 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Foundations.HomologicalAlgebra.Proofs
namespace DoubleComplex_exists_HTot_equiv_mk_eq_mk_single_of_rows_exact_of_augmentation
universe u
noncomputable section
namespace P1SOL
open DoubleComplex
section Main
variable {R : Type u} [CommRing R] {D : DoubleComplex.Bounded R}
variable {A : ℕ → Type u} [∀ m, AddCommGroup (A m)] [∀ m, Module R (A m)]
variable {dA : ∀ m, A m →ₗ[R] A (m + 1)} (ε : ∀ m, A m →ₗ[R] D.C 0 m)
theorem stair_inj (hε : ∀ m, Function.Injective (ε m))
    (hεd : ∀ m, D.dV 0 m ∘ₗ ε m = ε (m + 1) ∘ₗ dA m)
    (hker : ∀ m, LinearMap.ker (D.dH 0 m) = LinearMap.range (ε m))
    (hrows : ∀ p m, LinearMap.ker (D.dH (p + 1) m) ≤ LinearMap.range (D.dH p m)) (n : ℕ) (y : A (n
      + 1))
    (bb : DoubleComplex.Tot D n)
    (hb : edge ε (n + 1) y = DoubleComplex.dTot D n bb) :
    ∃ y', y = dA n y'
AlgebraicCurves.Foundations.HomologicalAlgebra.Proofs.DoubleComplex_exists_HTot_equiv_mk_eq_mk_single_of_rows_exact_of_augmentation.P1SOL.Hedge

The map on cohomology induced by the edge map from the augmentation complex.

Source context 12 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Foundations.HomologicalAlgebra.Proofs
namespace DoubleComplex_exists_HTot_equiv_mk_eq_mk_single_of_rows_exact_of_augmentation
universe u
noncomputable section
namespace P1SOL
open DoubleComplex
section Main
variable {R : Type u} [CommRing R] {D : DoubleComplex.Bounded R}
variable {A : ℕ → Type u} [∀ m, AddCommGroup (A m)] [∀ m, Module R (A m)]
variable {dA : ∀ m, A m →ₗ[R] A (m + 1)} (ε : ∀ m, A m →ₗ[R] D.C 0 m)
def Hedge (hεd : ∀ m, D.dV 0 m ∘ₗ ε m = ε (m + 1) ∘ₗ dA m)
    (hker : ∀ m, LinearMap.ker (D.dH 0 m) = LinearMap.range (ε m)) (n : ℕ) :
    (LinearMap.ker (dA (n + 1)) ⧸ (LinearMap.range (dA n)).comap (LinearMap.ker (dA (n +
      1))).subtype) →ₗ[R] DoubleComplex.HTot D (n + 1)
DoubleComplex.exists_HTot_equiv_mk_eq_mk_single_of_rows_exact_of_augmentation
Source context 6 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Foundations.HomologicalAlgebra.Proofs
namespace DoubleComplex_exists_HTot_equiv_mk_eq_mk_single_of_rows_exact_of_augmentation
universe u
open DoubleComplex P1SOL
theorem _root_.DoubleComplex.exists_HTot_equiv_mk_eq_mk_single_of_rows_exact_of_augmentation
    {R : Type u} [CommRing R] (D : DoubleComplex.Bounded R)
    (A : ℕ → Type u) [∀ m, AddCommGroup (A m)] [∀ m, Module R (A m)]
    (dA : ∀ m, A m →ₗ[R] A (m + 1)) (ε : ∀ m, A m →ₗ[R] D.C 0 m)
    (hε : ∀ m, Function.Injective (ε m))
    (hεd : ∀ m, D.dV 0 m ∘ₗ ε m = ε (m + 1) ∘ₗ dA m)
    (hker : ∀ m, LinearMap.ker (D.dH 0 m) = LinearMap.range (ε m))
    (hrows : ∀ p m, LinearMap.ker (D.dH (p + 1) m) ≤ LinearMap.range (D.dH p m)) :
    (∃ e : LinearMap.ker (dA 0) ≃ₗ[R] DoubleComplex.HTot D 0,
        ∀ (a : A 0) (ha : a ∈ LinearMap.ker (dA 0)),
          ∃ hE : Pi.single (M := fun i : DoubleComplex.Diag 0 => D.C i.1.1 i.1.2) ⟨(0, 0), rfl⟩ (ε
            0 a)
              ∈ LinearMap.ker (DoubleComplex.dTot D 0),
            e ⟨a, ha⟩ = Submodule.Quotient.mk ⟨_, hE⟩) ∧
      ∀ n : ℕ, ∃ e : (LinearMap.ker (dA (n + 1)) ⧸
            (LinearMap.range (dA n)).comap (LinearMap.ker (dA (n + 1))).subtype) ≃ₗ[R]
              DoubleComplex.HTot D (n + 1),
        ∀ (a : A (n + 1)) (ha : a ∈ LinearMap.ker (dA (n + 1))),
          ∃ hE : Pi.single (M := fun i : DoubleComplex.Diag (n + 1) => D.C i.1.1 i.1.2) ⟨(0, n +
            1), by omega⟩ (ε (n + 1) a)
              ∈ LinearMap.ker (DoubleComplex.dTot D (n + 1)),
            e (Submodule.Quotient.mk ⟨a, ha⟩) = Submodule.Quotient.mk ⟨_, hE⟩ := by
  classical
  refine ⟨?_, fun n => ?_⟩
  · let f : LinearMap.ker (dA 0) →ₗ[R] LinearMap.ker (DoubleComplex.dTot D 0) :=
      ((edge ε 0).comp (LinearMap.ker (dA 0)).subtype).codRestrict
        (LinearMap.ker (DoubleComplex.dTot D 0))
        fun y => LinearMap.mem_ker.mpr <| by
          have hch := LinearMap.congr_fun (edge_chain ε hεd hker 0) y.1
          rw [LinearMap.comp_apply, LinearMap.comp_apply] at hch
          exact hch.trans ((congrArg _ (LinearMap.mem_ker.mp y.2)).trans (map_zero _))
    have hf : Function.Bijective f := by
      refine ⟨fun y₁ y₂ hy => Subtype.ext (hε 0
          ((edge_apply_zero ε (Nat.zero_add 0) y₁.1).symm.trans
            ((congrFun (Subtype.ext_iff.mp hy) ⟨(0,0), Nat.zero_add 0⟩).trans
              (edge_apply_zero ε (Nat.zero_add 0) y₂.1)))),
       fun ⟨c, hc⟩ => ?_⟩
      have hdH : D.dH 0 0 (c ⟨(0,0), Nat.zero_add 0⟩) = 0 := by
        have h1 := congrFun (LinearMap.mem_ker.mp hc) ⟨(1, 0), rfl⟩
        rwa [Pi.zero_apply, DoubleComplex.dTot_apply_succ_zero] at h1
      obtain ⟨y, hy⟩ := exists_aug_eq ε hker 0 _ hdH
      have hdy : dA 0 y = 0 := by
        have hcomm : D.dV 0 0 (ε 0 y) = ε 1 (dA 0 y) := LinearMap.congr_fun (hεd 0) y
        refine hε 1 ?_
        rw [map_zero, ← hcomm, hy]
        have h0 := congrFun (LinearMap.mem_ker.mp hc) ⟨(0, 1), rfl⟩
        rwa [Pi.zero_apply, DoubleComplex.dTot_apply_zero_succ] at h0
      refine ⟨⟨y, LinearMap.mem_ker.mpr hdy⟩, Subtype.ext (funext fun ⟨⟨pp, q⟩, hpq⟩ => ?_)⟩
      obtain ⟨rfl, rfl⟩ : pp = 0 ∧ q = 0 := by omega
      exact (edge_apply_zero ε (Nat.zero_add 0) y).trans hy
    refine ⟨(LinearEquiv.ofBijective f hf).trans
        (Submodule.quotEquivOfEqBot (DoubleComplex.HTotB D 0) rfl).symm, fun a ha => ?_⟩
    exact ⟨(f ⟨a, ha⟩).2, rfl⟩
  · refine ⟨LinearEquiv.ofBijective (Hedge ε hεd hker n)
      ⟨by
        rw [injective_iff_map_eq_zero]
        intro x hmap
        obtain ⟨⟨y, hy⟩, rfl⟩ := Submodule.Quotient.mk_surjective _ x
        simp only [Hedge, Submodule.mapQ_apply, Submodule.Quotient.mk_eq_zero] at hmap
        obtain ⟨bb, hbb⟩ := hmap
        obtain ⟨y', hy'⟩ := stair_inj ε hε hεd hker hrows n y bb hbb.symm
        exact (Submodule.Quotient.mk_eq_zero _).mpr ⟨y', hy'.symm⟩,
       fun x => by
        obtain ⟨⟨c, hc⟩, rfl⟩ := Submodule.Quotient.mk_surjective _ x
        obtain ⟨y, bb, hdy, hceq⟩ := stair_surj ε hε hεd hker hrows n c (LinearMap.mem_ker.mp hc)
        refine ⟨Submodule.Quotient.mk ⟨y, LinearMap.mem_ker.mpr hdy⟩, ?_⟩
        simp only [Hedge, Submodule.mapQ_apply, Submodule.Quotient.eq]
        exact ⟨-bb, by
          change DoubleComplex.dTot D n (-bb) = edge ε (n + 1) y - c
          rw [map_neg, hceq, sub_add_eq_sub_sub, sub_self, zero_sub]⟩⟩, fun a ha => ?_⟩
    have hE : edge ε (n + 1) a ∈ LinearMap.ker (DoubleComplex.dTot D (n + 1)) := by
      rw [LinearMap.mem_ker]
      have hch := LinearMap.congr_fun (edge_chain ε hεd hker (n + 1)) a
      rw [LinearMap.comp_apply, LinearMap.comp_apply, LinearMap.mem_ker.mp ha, map_zero] at hch
      exact hch
    exact ⟨hE, rfl⟩