ModuleAppStripEqSum.lean
Nyll.AlgebraicCurves.Cohomology.Sheaves.Complexes.AppStripEqSum
6 declarations indexed from sourceView source ↗ Module documentation
OModule Presheaf exists app strip eq sum of box zigzag of d comap slice eq
Imports19
- Mathlib.Algebra.BigOperators.Fin
- Mathlib.Algebra.BigOperators.Group.Finset.Defs
- Mathlib.Algebra.Category.Ring.Basic
- Mathlib.Algebra.Field.Defs
- Mathlib.Algebra.Group.Action.Defs
- Mathlib.Algebra.Group.Hom.Defs
- Mathlib.Algebra.Group.Monoid
- Mathlib.Algebra.Module.Defs
- Mathlib.AlgebraicGeometry.Morphisms.ClosedImmersion
- Mathlib.AlgebraicGeometry.Scheme
- Mathlib.CategoryTheory.Category.Preorder
- Mathlib.CategoryTheory.Functor.Basic
- Mathlib.CategoryTheory.Opposites
- Mathlib.Combinatorics.Quiver.Basic
- Mathlib.Order.Lattice
- Mathlib.Tactic.LinearCombination
- Mathlib.Topology.Category.TopCat.Opens
- Nyll.SchemeTheory.Cohomology.Cech.OrderedAffineCoverCech
- Nyll.AlgebraicCurves.Geometry.Schemes.Covers.OrderedAffineCoverComap
Imported by2
Declarations
AlgebraicCurves.Cohomology.Sheaves.Proofs.OModulePresheaf_exists_app_strip_eq_sum_of_box_zigzag_of_d_comap_slice_eq.G3Body.res_res
Source context 8 commands
Surrounding namespaces, section variables, and local commands at this declaration.
@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Cohomology.Sheaves.Proofs
namespace OModulePresheaf_exists_app_strip_eq_sum_of_box_zigzag_of_d_comap_slice_eq
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry TopologicalSpace Opposite
universe u
namespace G3Body
variable {Y P : Scheme.{u}}
AlgebraicCurves.Cohomology.Sheaves.Proofs.OModulePresheaf_exists_app_strip_eq_sum_of_box_zigzag_of_d_comap_slice_eq.G3Body.res_appLE
Source context 8 commands
Surrounding namespaces, section variables, and local commands at this declaration.
@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Cohomology.Sheaves.Proofs
namespace OModulePresheaf_exists_app_strip_eq_sum_of_box_zigzag_of_d_comap_slice_eq
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry TopologicalSpace Opposite
universe u
namespace G3Body
variable {Y P : Scheme.{u}}
AlgebraicCurves.Cohomology.Sheaves.Proofs.OModulePresheaf_exists_app_strip_eq_sum_of_box_zigzag_of_d_comap_slice_eq.G3Body.appLE_res
Source context 8 commands
Surrounding namespaces, section variables, and local commands at this declaration.
@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Cohomology.Sheaves.Proofs
namespace OModulePresheaf_exists_app_strip_eq_sum_of_box_zigzag_of_d_comap_slice_eq
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry TopologicalSpace Opposite
universe u
namespace G3Body
variable {Y P : Scheme.{u}}
AlgebraicCurves.Cohomology.Sheaves.Proofs.OModulePresheaf_exists_app_strip_eq_sum_of_box_zigzag_of_d_comap_slice_eq.G3Body.app_eq_appLE'
Source context 8 commands
Surrounding namespaces, section variables, and local commands at this declaration.
@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Cohomology.Sheaves.Proofs
namespace OModulePresheaf_exists_app_strip_eq_sum_of_box_zigzag_of_d_comap_slice_eq
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry TopologicalSpace Opposite
universe u
namespace G3Body
variable {Y P : Scheme.{u}}
AlgebraicCurves.Cohomology.Sheaves.Proofs.OModulePresheaf_exists_app_strip_eq_sum_of_box_zigzag_of_d_comap_slice_eq.G3Body.res_app_eq_appLE
Source context 8 commands
Surrounding namespaces, section variables, and local commands at this declaration.
@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Cohomology.Sheaves.Proofs
namespace OModulePresheaf_exists_app_strip_eq_sum_of_box_zigzag_of_d_comap_slice_eq
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry TopologicalSpace Opposite
universe u
namespace G3Body
variable {Y P : Scheme.{u}}
AlgebraicGeometry.OModulePresheaf.exists_app_strip_eq_sum_of_box_zigzag_of_d_comap_slice_eq
Source context 7 commands
Surrounding namespaces, section variables, and local commands at this declaration.
@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Cohomology.Sheaves.Proofs
namespace OModulePresheaf_exists_app_strip_eq_sum_of_box_zigzag_of_d_comap_slice_eq
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry TopologicalSpace Opposite
universe u
open G3Body in
Lean source · full declarationtheorem
_root_.AlgebraicGeometry.OModulePresheaf.exists_app_strip_eq_sum_of_box_zigzag_of_d_comap_slice_eq
{k : Type u} [Field k] {X Y P : Scheme.{u}}
(fX : X ⟶ Spec (CommRingCat.of k)) (fY : Y ⟶ Spec (CommRingCat.of k))
(x₀ : Spec (CommRingCat.of k) ⟶ X)
(p₁ : P ⟶ X) (p₂ : P ⟶ Y)
(iY : Y ⟶ P) [IsClosedImmersion iY] (hiY₁ : iY ≫ p₁ = fY ≫ x₀) (hiY₂ : iY ≫ p₂ = 𝟙 Y)
(𝒲 : P.OrderedAffineCover)
(c : (OModulePresheaf.unit (p₁ ≫ fX)).cochain 𝒲 1)
(hcY : ∃ b : (OModulePresheaf.unit fY).cochain (𝒲.comap iY) 0,
(OModulePresheaf.unit fY).d (𝒲.comap iY) 0 b = fun s =>
(Y.presheaf.map (homOfLE (𝒲.comap_inter_le iY s)).op).hom ((iY.app (𝒲.inter s)).hom (c s)))
(U : X.Opens) (hU₀ : x₀ ⁻¹ᵁ U = ⊤)
(γ : ∀ (σ : (𝒲.comap iY).Idx 0) (t : 𝒲.Idx 0), Γ(P, 𝒲.inter t ⊓ p₁ ⁻¹ᵁ U ⊓ p₂ ⁻¹ᵁ (𝒲.comap
iY).inter σ))
(e : ∀ σ : (𝒲.comap iY).Idx 1, Γ(P, p₁ ⁻¹ᵁ U ⊓ p₂ ⁻¹ᵁ (𝒲.comap iY).inter σ))
(hV : ∀ (σ : (𝒲.comap iY).Idx 0) (t : 𝒲.Idx (0 + 1)),
(P.presheaf.map (homOfLE (inf_le_left.trans inf_le_left :
𝒲.inter t ⊓ p₁ ⁻¹ᵁ U ⊓ p₂ ⁻¹ᵁ (𝒲.comap iY).inter σ ≤ 𝒲.inter t)).op).hom (c t)
= ∑ j : Fin (0 + 2), ((-1 : ℤ) ^ (j : ℕ)) •
(P.presheaf.map (homOfLE (inf_le_inf_right (p₂ ⁻¹ᵁ (𝒲.comap iY).inter σ)
(inf_le_inf_right (p₁ ⁻¹ᵁ U) (𝒲.inter_le_inter_face t j)))).op).hom (γ σ (𝒲.face t
j)))
(hH : ∀ (σ : (𝒲.comap iY).Idx (0 + 1)) (t : 𝒲.Idx 0),
(P.presheaf.map (homOfLE (inf_le_inf_right (p₂ ⁻¹ᵁ (𝒲.comap iY).inter σ) inf_le_right :
𝒲.inter t ⊓ p₁ ⁻¹ᵁ U ⊓ p₂ ⁻¹ᵁ (𝒲.comap iY).inter σ ≤ p₁ ⁻¹ᵁ U ⊓ p₂ ⁻¹ᵁ (𝒲.comap iY).inter
σ)).op).hom (e σ)
= ∑ j : Fin (0 + 2), ((-1 : ℤ) ^ (j : ℕ)) •
(P.presheaf.map (homOfLE (inf_le_inf_left (𝒲.inter t ⊓ p₁ ⁻¹ᵁ U)
((TopologicalSpace.Opens.map p₂.base).monotone ((𝒲.comap iY).inter_le_inter_face σ
j)))).op).hom (γ ((𝒲.comap iY).face σ j) t)) :
∃ g : ∀ i : (𝒲.comap iY).Idx 0, Γ(Y, iY ⁻¹ᵁ (p₁ ⁻¹ᵁ U ⊓ p₂ ⁻¹ᵁ (𝒲.comap iY).inter i)),
∀ σ : (𝒲.comap iY).Idx (0 + 1), (iY.app (p₁ ⁻¹ᵁ U ⊓ p₂ ⁻¹ᵁ (𝒲.comap iY).inter σ)).hom (e σ)
= ∑ j : Fin (0 + 2), ((-1 : ℤ) ^ (j : ℕ)) •
(Y.presheaf.map (homOfLE ((TopologicalSpace.Opens.map iY.base).monotone
(inf_le_inf_left (p₁ ⁻¹ᵁ U)
((TopologicalSpace.Opens.map p₂.base).monotone ((𝒲.comap iY).inter_le_inter_face σ
j))))).op).hom (g ((𝒲.comap iY).face σ j)) := by
classical
obtain ⟨b, hb⟩ := hcY
change (∀ s : 𝒲.Idx 1, Γ(P, 𝒲.inter s)) at c
change (∀ s : (𝒲.comap iY).Idx 0, Γ(Y, (𝒲.comap iY).inter s)) at b
have hpre2 : ∀ W : Y.Opens, iY ⁻¹ᵁ (p₂ ⁻¹ᵁ W) = W := fun W => by
rw [← Scheme.Hom.comp_preimage, hiY₂]; rfl
have hpre1 : iY ⁻¹ᵁ (p₁ ⁻¹ᵁ U) = ⊤ := by
rw [← Scheme.Hom.comp_preimage, hiY₁, Scheme.Hom.comp_preimage, hU₀]; rfl
have L1 : ∀ {n : ℕ} (s : 𝒲.Idx n),
iY ⁻¹ᵁ (p₁ ⁻¹ᵁ U ⊓ p₂ ⁻¹ᵁ (𝒲.comap iY).inter s) ≤ (𝒲.comap iY).inter s := fun s =>
(iY.preimage_mono inf_le_right).trans (hpre2 _).le
have LV : ∀ {n : ℕ} (s : 𝒲.Idx n), (𝒲.comap iY).inter s ≤ iY ⁻¹ᵁ 𝒲.inter s := fun s =>
𝒲.comap_inter_le iY s
have L2 : ∀ {n n' m : ℕ} (s : 𝒲.Idx n) (s' : 𝒲.Idx n') (t : 𝒲.Idx m),
(𝒲.comap iY).inter s ≤ (𝒲.comap iY).inter s' →
(𝒲.comap iY).inter s ≤ (𝒲.comap iY).inter t →
iY ⁻¹ᵁ (p₁ ⁻¹ᵁ U ⊓ p₂ ⁻¹ᵁ (𝒲.comap iY).inter s)
≤ iY ⁻¹ᵁ (𝒲.inter t ⊓ p₁ ⁻¹ᵁ U ⊓ p₂ ⁻¹ᵁ (𝒲.comap iY).inter s') :=
fun s s' t h1 h2 => by
change iY ⁻¹ᵁ (p₁ ⁻¹ᵁ U) ⊓ iY ⁻¹ᵁ (p₂ ⁻¹ᵁ (𝒲.comap iY).inter s)
≤ iY ⁻¹ᵁ 𝒲.inter t ⊓ iY ⁻¹ᵁ (p₁ ⁻¹ᵁ U) ⊓ iY ⁻¹ᵁ (p₂ ⁻¹ᵁ (𝒲.comap iY).inter s')
exact le_inf (le_inf ((L1 s).trans (h2.trans (LV t))) inf_le_left)
(inf_le_right.trans (iY.preimage_mono (p₂.preimage_mono h1)))
refine ⟨fun i => (iY.appLE _ _ (L2 i i i le_rfl le_rfl)).hom (γ i i)
- (Y.presheaf.map (homOfLE (L1 i)).op).hom (b i), fun σ => ?_⟩
change 𝒲.Idx (0 + 1) at σ
have hσ₀ : (𝒲.comap iY).inter σ ≤ (𝒲.comap iY).inter (𝒲.face σ 0) :=
(𝒲.comap iY).inter_le_inter_face σ 0
have hσ₁ : (𝒲.comap iY).inter σ ≤ (𝒲.comap iY).inter (𝒲.face σ 1) :=
(𝒲.comap iY).inter_le_inter_face σ 1
have hE := congrArg
(fun x => (iY.appLE _ (iY ⁻¹ᵁ (p₁ ⁻¹ᵁ U ⊓ p₂ ⁻¹ᵁ (𝒲.comap iY).inter σ))
(L2 σ σ (𝒲.face σ 1) le_rfl hσ₁)).hom x) (hH σ (𝒲.face σ 1))
simp only [map_sum, map_zsmul, appLE_res] at hE
rw [Fin.sum_univ_two] at hE
simp only [Fin.val_zero, Fin.val_one, pow_zero, pow_one, one_smul, neg_smul] at hE
have hC := congrArg
(fun x => (iY.appLE _ (iY ⁻¹ᵁ (p₁ ⁻¹ᵁ U ⊓ p₂ ⁻¹ᵁ (𝒲.comap iY).inter σ))
(L2 σ (𝒲.face σ 0) σ hσ₀ le_rfl)).hom x) (hV (𝒲.face σ 0) σ)
simp only [map_sum, map_zsmul, appLE_res] at hC
rw [Fin.sum_univ_two] at hC
simp only [Fin.val_zero, Fin.val_one, pow_zero, pow_one, one_smul, neg_smul] at hC
have hD0 : ∑ j : Fin (0 + 2), ((-1 : ℤ) ^ (j : ℕ)) •
(Y.presheaf.map (homOfLE ((𝒲.comap iY).inter_le_inter_face σ j)).op).hom
(b ((𝒲.comap iY).face σ j))
= (Y.presheaf.map (homOfLE (𝒲.comap_inter_le iY σ)).op).hom ((iY.app (𝒲.inter σ)).hom (c σ))
:= by
exact (OModulePresheaf.d_apply (OModulePresheaf.unit fY) (𝒲.comap iY) 0 b σ).symm.trans
(congrFun hb σ)
have hD := congrArg (fun x => (Y.presheaf.map (homOfLE (L1 σ)).op).hom x) hD0
simp only [map_sum, map_zsmul, res_res, res_app_eq_appLE, res_appLE] at hD
rw [Fin.sum_univ_two] at hD
simp only [Fin.val_zero, Fin.val_one, pow_zero, pow_one, one_smul, neg_smul] at hD
rw [Fin.sum_univ_two]
simp only [Fin.val_zero, Fin.val_one, pow_zero, pow_one, one_smul, neg_smul, map_sub,
res_appLE, res_res, app_eq_appLE']
simp only [Scheme.OrderedAffineCover.comap_face] at hE hC hD ⊢
linear_combination hE + hC + hD