Module

TwoAffineCoverIsoPullbackBaseChangeSnd.lean

Nyll.AlgebraicCurves.Geometry.Schemes.Cohomology.TwoAffineCoverIsoPullbackBaseChangeSnd
9 declarations indexed from sourceView source ↗

Descending a line-bundle comparison across quotient charts

Compatible quotient-ring and section comparisons on a two-affine-open cover identify the pullback of a lifted invertible module with the original module after base change.

Declarations

AlgebraicCurves.Geometry.Schemes.Proofs.TwoAffineQuotientSectionsComparison.quotMapEquiv'

Identify the quotient of the new base with the tensor product of the old quotient.

Source context 12 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs
namespace TwoAffineQuotientSectionsComparison
attribute [-instance]
  AlgebraicGeometry.SmoothOfRelativeDimension.fiberToSpecResidueField
  AlgebraicGeometry.SmoothOfRelativeDimension.pullback_snd
  AlgebraicGeometry.SmoothOfRelativeDimension.pullback_fst
  AlgebraicGeometry.SmoothOfRelativeDimension.smooth_one
  AlgebraicGeometry.SmoothProperCurve.isIntegral_pullback_Spec_field
  AlgebraicGeometry.IsProper.fiberToSpecResidueField
attribute [-simp]
  AlgebraicGeometry.tilde.functorCompPullbackSpecIso_app
  AlgebraicGeometry.RelPicard.BaseChange.relSubPicPresheafRestrictIso_hom_app_coe
  AlgebraicGeometry.RelPicard.BaseChange.relSubPicPresheafRestrictIso_inv_app_coe
  AlgebraicGeometry.RelPicard.BaseChange.restrict_P
  AlgebraicGeometry.RelPicard.SubPicCondition.onClasses_mk
  AlgebraicGeometry.RelPicard.relSubPicPresheaf_map_coe
  AlgebraicGeometry.SmoothProperCurve.sectionBaseChange_coe_snd
  AlgebraicGeometry.SmoothProperCurve.sectionBaseChange_coe_fst
universe u
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry AlgebraicGeometry.RelPicard
    NeronModelInfra TensorProduct
noncomputable section
section Helpers
open TensorProduct
variable {B : Type u} [CommRing B] (I : Ideal B)
  {A : Type u} [CommRing A] [Algebra B A] {J : Ideal A}
  {AI : Type u} [CommRing AI] (φ : A ⧸ J ≃+* AI)
  {ML : Type u} [AddCommGroup ML] [Module A ML] [Module B ML] [IsScalarTower B A ML]
  {V : Type u} [AddCommGroup V] [Module AI V] [Module (B ⧸ I) V]
  {P : Type u} [AddCommGroup P] [Module AI P]
def quotMapEquiv' {A' : Type u} [CommRing A'] [Algebra B A'] :
    (A' ⧸ (I.map (algebraMap B A'))) ≃+* ((B ⧸ I) ⊗[B] A')
AlgebraicCurves.Geometry.Schemes.Proofs.TwoAffineQuotientSectionsComparison.quotMapEquiv'_mk
Source context 12 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs
namespace TwoAffineQuotientSectionsComparison
attribute [-instance]
  AlgebraicGeometry.SmoothOfRelativeDimension.fiberToSpecResidueField
  AlgebraicGeometry.SmoothOfRelativeDimension.pullback_snd
  AlgebraicGeometry.SmoothOfRelativeDimension.pullback_fst
  AlgebraicGeometry.SmoothOfRelativeDimension.smooth_one
  AlgebraicGeometry.SmoothProperCurve.isIntegral_pullback_Spec_field
  AlgebraicGeometry.IsProper.fiberToSpecResidueField
attribute [-simp]
  AlgebraicGeometry.tilde.functorCompPullbackSpecIso_app
  AlgebraicGeometry.RelPicard.BaseChange.relSubPicPresheafRestrictIso_hom_app_coe
  AlgebraicGeometry.RelPicard.BaseChange.relSubPicPresheafRestrictIso_inv_app_coe
  AlgebraicGeometry.RelPicard.BaseChange.restrict_P
  AlgebraicGeometry.RelPicard.SubPicCondition.onClasses_mk
  AlgebraicGeometry.RelPicard.relSubPicPresheaf_map_coe
  AlgebraicGeometry.SmoothProperCurve.sectionBaseChange_coe_snd
  AlgebraicGeometry.SmoothProperCurve.sectionBaseChange_coe_fst
universe u
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry AlgebraicGeometry.RelPicard
    NeronModelInfra TensorProduct
noncomputable section
section Helpers
open TensorProduct
variable {B : Type u} [CommRing B] (I : Ideal B)
  {A : Type u} [CommRing A] [Algebra B A] {J : Ideal A}
  {AI : Type u} [CommRing AI] (φ : A ⧸ J ≃+* AI)
  {ML : Type u} [AddCommGroup ML] [Module A ML] [Module B ML] [IsScalarTower B A ML]
  {V : Type u} [AddCommGroup V] [Module AI V] [Module (B ⧸ I) V]
  {P : Type u} [AddCommGroup P] [Module AI P]
theorem quotMapEquiv'_mk {A' : Type u} [CommRing A'] [Algebra B A'] (a : A') :
    quotMapEquiv' I (Ideal.Quotient.mk _ a) = (1 : B ⧸ I) ⊗ₜ[B] a
AlgebraicCurves.Geometry.Schemes.Proofs.TwoAffineQuotientSectionsComparison.ofCompHomEquiv

View a linear equivalence over the quotient ring as one over the identified ring.

Source context 12 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs
namespace TwoAffineQuotientSectionsComparison
attribute [-instance]
  AlgebraicGeometry.SmoothOfRelativeDimension.fiberToSpecResidueField
  AlgebraicGeometry.SmoothOfRelativeDimension.pullback_snd
  AlgebraicGeometry.SmoothOfRelativeDimension.pullback_fst
  AlgebraicGeometry.SmoothOfRelativeDimension.smooth_one
  AlgebraicGeometry.SmoothProperCurve.isIntegral_pullback_Spec_field
  AlgebraicGeometry.IsProper.fiberToSpecResidueField
attribute [-simp]
  AlgebraicGeometry.tilde.functorCompPullbackSpecIso_app
  AlgebraicGeometry.RelPicard.BaseChange.relSubPicPresheafRestrictIso_hom_app_coe
  AlgebraicGeometry.RelPicard.BaseChange.relSubPicPresheafRestrictIso_inv_app_coe
  AlgebraicGeometry.RelPicard.BaseChange.restrict_P
  AlgebraicGeometry.RelPicard.SubPicCondition.onClasses_mk
  AlgebraicGeometry.RelPicard.relSubPicPresheaf_map_coe
  AlgebraicGeometry.SmoothProperCurve.sectionBaseChange_coe_snd
  AlgebraicGeometry.SmoothProperCurve.sectionBaseChange_coe_fst
universe u
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry AlgebraicGeometry.RelPicard
    NeronModelInfra TensorProduct
noncomputable section
section Helpers
open TensorProduct
variable {B : Type u} [CommRing B] (I : Ideal B)
  {A : Type u} [CommRing A] [Algebra B A] {J : Ideal A}
  {AI : Type u} [CommRing AI] (φ : A ⧸ J ≃+* AI)
  {ML : Type u} [AddCommGroup ML] [Module A ML] [Module B ML] [IsScalarTower B A ML]
  {V : Type u} [AddCommGroup V] [Module AI V] [Module (B ⧸ I) V]
  {P : Type u} [AddCommGroup P] [Module AI P]
def ofCompHomEquiv
    (e : letI := Module.compHom V φ.toRingHom; letI := Module.compHom P φ.toRingHom
         V ≃ₗ[A ⧸ J] P) :
    V ≃ₗ[AI] P :=
  let := Module.compHom V φ.toRingHom; let := Module.compHom P φ.toRingHom
  { toFun := e, invFun := e.symm,
    left_inv := e.left_inv, right_inv := e.right_inv,
    map_add' := e.map_add,
    map_smul' := fun c v => by
      obtain ⟨d, hd⟩ := φ.surjective c
      change e (c • v) = c • e v
      rw [← hd]; exact e.map_smul d v }
AlgebraicCurves.Geometry.Schemes.Proofs.TwoAffineQuotientSectionsComparison.ofCompHomEquiv_apply
Source context 12 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs
namespace TwoAffineQuotientSectionsComparison
attribute [-instance]
  AlgebraicGeometry.SmoothOfRelativeDimension.fiberToSpecResidueField
  AlgebraicGeometry.SmoothOfRelativeDimension.pullback_snd
  AlgebraicGeometry.SmoothOfRelativeDimension.pullback_fst
  AlgebraicGeometry.SmoothOfRelativeDimension.smooth_one
  AlgebraicGeometry.SmoothProperCurve.isIntegral_pullback_Spec_field
  AlgebraicGeometry.IsProper.fiberToSpecResidueField
attribute [-simp]
  AlgebraicGeometry.tilde.functorCompPullbackSpecIso_app
  AlgebraicGeometry.RelPicard.BaseChange.relSubPicPresheafRestrictIso_hom_app_coe
  AlgebraicGeometry.RelPicard.BaseChange.relSubPicPresheafRestrictIso_inv_app_coe
  AlgebraicGeometry.RelPicard.BaseChange.restrict_P
  AlgebraicGeometry.RelPicard.SubPicCondition.onClasses_mk
  AlgebraicGeometry.RelPicard.relSubPicPresheaf_map_coe
  AlgebraicGeometry.SmoothProperCurve.sectionBaseChange_coe_snd
  AlgebraicGeometry.SmoothProperCurve.sectionBaseChange_coe_fst
universe u
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry AlgebraicGeometry.RelPicard
    NeronModelInfra TensorProduct
noncomputable section
section Helpers
open TensorProduct
variable {B : Type u} [CommRing B] (I : Ideal B)
  {A : Type u} [CommRing A] [Algebra B A] {J : Ideal A}
  {AI : Type u} [CommRing AI] (φ : A ⧸ J ≃+* AI)
  {ML : Type u} [AddCommGroup ML] [Module A ML] [Module B ML] [IsScalarTower B A ML]
  {V : Type u} [AddCommGroup V] [Module AI V] [Module (B ⧸ I) V]
  {P : Type u} [AddCommGroup P] [Module AI P]
theorem ofCompHomEquiv_apply
    (e : letI := Module.compHom V φ.toRingHom; letI := Module.compHom P φ.toRingHom
         V ≃ₗ[A ⧸ J] P) (v : V) :
    letI := Module.compHom V φ.toRingHom; letI := Module.compHom P φ.toRingHom
    ofCompHomEquiv φ e v = e v := rfl
AlgebraicCurves.Geometry.Schemes.Proofs.TwoAffineQuotientSectionsComparison.chartQuotEquiv_exists
Source context 12 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs
namespace TwoAffineQuotientSectionsComparison
attribute [-instance]
  AlgebraicGeometry.SmoothOfRelativeDimension.fiberToSpecResidueField
  AlgebraicGeometry.SmoothOfRelativeDimension.pullback_snd
  AlgebraicGeometry.SmoothOfRelativeDimension.pullback_fst
  AlgebraicGeometry.SmoothOfRelativeDimension.smooth_one
  AlgebraicGeometry.SmoothProperCurve.isIntegral_pullback_Spec_field
  AlgebraicGeometry.IsProper.fiberToSpecResidueField
attribute [-simp]
  AlgebraicGeometry.tilde.functorCompPullbackSpecIso_app
  AlgebraicGeometry.RelPicard.BaseChange.relSubPicPresheafRestrictIso_hom_app_coe
  AlgebraicGeometry.RelPicard.BaseChange.relSubPicPresheafRestrictIso_inv_app_coe
  AlgebraicGeometry.RelPicard.BaseChange.restrict_P
  AlgebraicGeometry.RelPicard.SubPicCondition.onClasses_mk
  AlgebraicGeometry.RelPicard.relSubPicPresheaf_map_coe
  AlgebraicGeometry.SmoothProperCurve.sectionBaseChange_coe_snd
  AlgebraicGeometry.SmoothProperCurve.sectionBaseChange_coe_fst
universe u
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry AlgebraicGeometry.RelPicard
    NeronModelInfra TensorProduct
noncomputable section
section Helpers
open TensorProduct
variable {B : Type u} [CommRing B] (I : Ideal B)
  {A : Type u} [CommRing A] [Algebra B A] {J : Ideal A}
  {AI : Type u} [CommRing AI] (φ : A ⧸ J ≃+* AI)
  {ML : Type u} [AddCommGroup ML] [Module A ML] [Module B ML] [IsScalarTower B A ML]
  {V : Type u} [AddCommGroup V] [Module AI V] [Module (B ⧸ I) V]
  {P : Type u} [AddCommGroup P] [Module AI P]
theorem chartQuotEquiv_exists (hJI : J = I.map (algebraMap B A))
    (eS : (B ⧸ I) ⊗[B] ML ≃ₗ[B ⧸ I] V)
    (heSs : ∀ (s : A) (m : ML), eS ((1 : B ⧸ I) ⊗ₜ[B] (s • m)) = φ (Ideal.Quotient.mk J s) • eS
        ((1 : B ⧸ I) ⊗ₜ[B] m)) :
    let := Module.compHom V φ.toRingHom
    ∃ cq : (A ⧸ J) ⊗[A] ML ≃ₗ[A ⧸ J] V, ∀ m : ML, cq ((1 : A ⧸ J) ⊗ₜ[A] m) = eS ((1 : B ⧸ I)
        ⊗ₜ[B] m) := by
  intro sharedOwner1
  let instAV : Module A V := Module.compHom V (φ.toRingHom.comp (Ideal.Quotient.mk J : A →+* A ⧸ J))
  have : IsScalarTower A (A ⧸ J) V := IsScalarTower.of_algebraMap_smul (fun _ _ => rfl)
  let u : ML →ₗ[A] V :=
    { toFun := fun m => eS ((1 : B ⧸ I) ⊗ₜ[B] m),
      map_add' := fun m n => by simp only [TensorProduct.tmul_add, map_add],
      map_smul' := fun a m => heSs a m }
  have husurj : Function.Surjective u := by
    intro v
    obtain ⟨x, hx⟩ := eS.surjective v
    obtain ⟨m, hm⟩ := (quotTensorEquivQuotSMul ML I).symm.surjective x
    obtain ⟨m', hm'⟩ := Submodule.Quotient.mk_surjective _ m
    exact ⟨m', by
      change eS ((1 : B ⧸ I) ⊗ₜ[B] m') = v
      rw [← hx, ← hm, ← hm', quotTensorEquivQuotSMul_symm_mk]⟩
  have hJker : (J • ⊤ : Submodule A ML) ≤ LinearMap.ker u := by
    rw [Submodule.smul_le]
    intro j hj m _
    change eS ((1 : B ⧸ I) ⊗ₜ[B] (j • m)) = 0
    rw [heSs j m, Ideal.Quotient.eq_zero_iff_mem.mpr hj, map_zero, zero_smul]
  let ū : (A ⧸ J) ⊗[A] ML →ₗ[A] V :=
    ((J • ⊤ : Submodule A ML).liftQ u hJker).comp (quotTensorEquivQuotSMul ML J).toLinearMap
  have hū_one_tmul : ∀ m, ū ((1 : A ⧸ J) ⊗ₜ[A] m) = eS ((1 : B ⧸ I) ⊗ₜ[B] m) := fun m => by
    simp only [ū, LinearMap.comp_apply, LinearEquiv.coe_toLinearMap]
    rw [show (1 : A ⧸ J) ⊗ₜ[A] m = (quotTensorEquivQuotSMul ML J).symm (Submodule.Quotient.mk m)
        from
          (quotTensorEquivQuotSMul_symm_mk J m).symm,
        LinearEquiv.apply_symm_apply, Submodule.liftQ_apply]
    rfl
  have hūsurj : Function.Surjective ū := fun v => by
    obtain ⟨m, hm⟩ := husurj v; exact ⟨1 ⊗ₜ m, (hū_one_tmul m).trans hm⟩
  have hūinj : Function.Injective ū := by
    rw [injective_iff_map_eq_zero]
    intro x hx
    obtain ⟨q, hq⟩ := (quotTensorEquivQuotSMul ML J).symm.surjective x
    obtain ⟨m, hm⟩ := Submodule.Quotient.mk_surjective _ q
    rw [← hq, ← hm, quotTensorEquivQuotSMul_symm_mk] at hx ⊢
    rw [hū_one_tmul] at hx
    have h1 : (1 : B ⧸ I) ⊗ₜ[B] m = (0 : (B ⧸ I)⊗[B]ML) :=
      eS.injective (hx.trans (map_zero eS).symm)
    have h2 : m ∈ (I • ⊤ : Submodule B ML) := by
      rwa [show (1 : B ⧸ I) ⊗ₜ[B] m = (quotTensorEquivQuotSMul ML I).symm (Submodule.Quotient.mk
          m) from
        (quotTensorEquivQuotSMul_symm_mk I m).symm,
        EmbeddingLike.map_eq_zero_iff, Submodule.Quotient.mk_eq_zero] at h1
    have h3 : m ∈ (J • ⊤ : Submodule A ML) := by
      refine Submodule.smul_induction_on h2 (fun i hi n _ => ?_) (fun x y hx hy => add_mem hx hy)
      rw [hJI, show (i • n : ML) = (algebraMap B A i) • n from (algebraMap_smul A i n).symm]
      exact Submodule.smul_mem_smul (Ideal.mem_map_of_mem _ hi) trivial
    rw [show (1 : A ⧸ J) ⊗ₜ[A] m = (quotTensorEquivQuotSMul ML J).symm (Submodule.Quotient.mk m)
        from
      (quotTensorEquivQuotSMul_symm_mk J m).symm,
      EmbeddingLike.map_eq_zero_iff, Submodule.Quotient.mk_eq_zero]
    exact h3
  have hmapsmul : ∀ (c : A ⧸ J) (x : (A ⧸ J)⊗[A]ML), ū (c • x) = (RingHom.id (A ⧸ J)) c • ū x := by
    intro c x
    simp only [RingHom.id_apply]
    obtain ⟨a, ha⟩ := Ideal.Quotient.mk_surjective c
    subst ha
    exact ū.map_smul a x
  exact ⟨⟨⟨⟨ū, ū.map_add⟩, hmapsmul⟩, Function.surjInv hūsurj,
          Function.leftInverse_surjInv ⟨hūinj, hūsurj⟩,
          Function.rightInverse_surjInv hūsurj⟩, hū_one_tmul⟩
AlgebraicCurves.Geometry.Schemes.Proofs.TwoAffineQuotientSectionsComparison.chartQuotEquiv

Choose the quotient-tensor linear equivalence compatible with the given chart comparison.

Source context 12 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs
namespace TwoAffineQuotientSectionsComparison
attribute [-instance]
  AlgebraicGeometry.SmoothOfRelativeDimension.fiberToSpecResidueField
  AlgebraicGeometry.SmoothOfRelativeDimension.pullback_snd
  AlgebraicGeometry.SmoothOfRelativeDimension.pullback_fst
  AlgebraicGeometry.SmoothOfRelativeDimension.smooth_one
  AlgebraicGeometry.SmoothProperCurve.isIntegral_pullback_Spec_field
  AlgebraicGeometry.IsProper.fiberToSpecResidueField
attribute [-simp]
  AlgebraicGeometry.tilde.functorCompPullbackSpecIso_app
  AlgebraicGeometry.RelPicard.BaseChange.relSubPicPresheafRestrictIso_hom_app_coe
  AlgebraicGeometry.RelPicard.BaseChange.relSubPicPresheafRestrictIso_inv_app_coe
  AlgebraicGeometry.RelPicard.BaseChange.restrict_P
  AlgebraicGeometry.RelPicard.SubPicCondition.onClasses_mk
  AlgebraicGeometry.RelPicard.relSubPicPresheaf_map_coe
  AlgebraicGeometry.SmoothProperCurve.sectionBaseChange_coe_snd
  AlgebraicGeometry.SmoothProperCurve.sectionBaseChange_coe_fst
universe u
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry AlgebraicGeometry.RelPicard
    NeronModelInfra TensorProduct
noncomputable section
section Helpers
open TensorProduct
variable {B : Type u} [CommRing B] (I : Ideal B)
  {A : Type u} [CommRing A] [Algebra B A] {J : Ideal A}
  {AI : Type u} [CommRing AI] (φ : A ⧸ J ≃+* AI)
  {ML : Type u} [AddCommGroup ML] [Module A ML] [Module B ML] [IsScalarTower B A ML]
  {V : Type u} [AddCommGroup V] [Module AI V] [Module (B ⧸ I) V]
  {P : Type u} [AddCommGroup P] [Module AI P]
def chartQuotEquiv (hJI : J = I.map (algebraMap B A))
    (eS : (B ⧸ I) ⊗[B] ML ≃ₗ[B ⧸ I] V)
    (heSs : ∀ (s : A) (m : ML), eS ((1 : B ⧸ I) ⊗ₜ[B] (s • m)) = φ (Ideal.Quotient.mk J s) • eS
        ((1 : B ⧸ I) ⊗ₜ[B] m)) :
    letI := Module.compHom V φ.toRingHom
    (A ⧸ J) ⊗[A] ML ≃ₗ[A ⧸ J] V :=
  let := Module.compHom V φ.toRingHom
  (chartQuotEquiv_exists I φ hJI eS heSs).choose
AlgebraicCurves.Geometry.Schemes.Proofs.TwoAffineQuotientSectionsComparison.chartQuotEquiv_one_tmul
Source context 12 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs
namespace TwoAffineQuotientSectionsComparison
attribute [-instance]
  AlgebraicGeometry.SmoothOfRelativeDimension.fiberToSpecResidueField
  AlgebraicGeometry.SmoothOfRelativeDimension.pullback_snd
  AlgebraicGeometry.SmoothOfRelativeDimension.pullback_fst
  AlgebraicGeometry.SmoothOfRelativeDimension.smooth_one
  AlgebraicGeometry.SmoothProperCurve.isIntegral_pullback_Spec_field
  AlgebraicGeometry.IsProper.fiberToSpecResidueField
attribute [-simp]
  AlgebraicGeometry.tilde.functorCompPullbackSpecIso_app
  AlgebraicGeometry.RelPicard.BaseChange.relSubPicPresheafRestrictIso_hom_app_coe
  AlgebraicGeometry.RelPicard.BaseChange.relSubPicPresheafRestrictIso_inv_app_coe
  AlgebraicGeometry.RelPicard.BaseChange.restrict_P
  AlgebraicGeometry.RelPicard.SubPicCondition.onClasses_mk
  AlgebraicGeometry.RelPicard.relSubPicPresheaf_map_coe
  AlgebraicGeometry.SmoothProperCurve.sectionBaseChange_coe_snd
  AlgebraicGeometry.SmoothProperCurve.sectionBaseChange_coe_fst
universe u
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry AlgebraicGeometry.RelPicard
    NeronModelInfra TensorProduct
noncomputable section
section Helpers
open TensorProduct
variable {B : Type u} [CommRing B] (I : Ideal B)
  {A : Type u} [CommRing A] [Algebra B A] {J : Ideal A}
  {AI : Type u} [CommRing AI] (φ : A ⧸ J ≃+* AI)
  {ML : Type u} [AddCommGroup ML] [Module A ML] [Module B ML] [IsScalarTower B A ML]
  {V : Type u} [AddCommGroup V] [Module AI V] [Module (B ⧸ I) V]
  {P : Type u} [AddCommGroup P] [Module AI P]
theorem chartQuotEquiv_one_tmul (hJI : J = I.map (algebraMap B A))
    (eS : (B ⧸ I) ⊗[B] ML ≃ₗ[B ⧸ I] V)
    (heSs : ∀ (s : A) (m : ML), eS ((1 : B ⧸ I) ⊗ₜ[B] (s • m)) = φ (Ideal.Quotient.mk J s) • eS
        ((1 : B ⧸ I) ⊗ₜ[B] m))
    (m : ML) :
    letI := Module.compHom V φ.toRingHom
    chartQuotEquiv I φ hJI eS heSs ((1 : A ⧸ J) ⊗ₜ[A] m) = eS ((1 : B ⧸ I) ⊗ₜ[B] m) :=
  let := Module.compHom V φ.toRingHom
  (chartQuotEquiv_exists I φ hJI eS heSs).choose_spec m
AlgebraicCurves.Geometry.Schemes.Proofs.TwoAffineQuotientSectionsComparison.chartQuotEquiv_surjective_eS_one_tmul
Source context 12 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs
namespace TwoAffineQuotientSectionsComparison
attribute [-instance]
  AlgebraicGeometry.SmoothOfRelativeDimension.fiberToSpecResidueField
  AlgebraicGeometry.SmoothOfRelativeDimension.pullback_snd
  AlgebraicGeometry.SmoothOfRelativeDimension.pullback_fst
  AlgebraicGeometry.SmoothOfRelativeDimension.smooth_one
  AlgebraicGeometry.SmoothProperCurve.isIntegral_pullback_Spec_field
  AlgebraicGeometry.IsProper.fiberToSpecResidueField
attribute [-simp]
  AlgebraicGeometry.tilde.functorCompPullbackSpecIso_app
  AlgebraicGeometry.RelPicard.BaseChange.relSubPicPresheafRestrictIso_hom_app_coe
  AlgebraicGeometry.RelPicard.BaseChange.relSubPicPresheafRestrictIso_inv_app_coe
  AlgebraicGeometry.RelPicard.BaseChange.restrict_P
  AlgebraicGeometry.RelPicard.SubPicCondition.onClasses_mk
  AlgebraicGeometry.RelPicard.relSubPicPresheaf_map_coe
  AlgebraicGeometry.SmoothProperCurve.sectionBaseChange_coe_snd
  AlgebraicGeometry.SmoothProperCurve.sectionBaseChange_coe_fst
universe u
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry AlgebraicGeometry.RelPicard
    NeronModelInfra TensorProduct
noncomputable section
section Helpers
open TensorProduct
variable {B : Type u} [CommRing B] (I : Ideal B)
  {A : Type u} [CommRing A] [Algebra B A] {J : Ideal A}
  {AI : Type u} [CommRing AI] (φ : A ⧸ J ≃+* AI)
  {ML : Type u} [AddCommGroup ML] [Module A ML] [Module B ML] [IsScalarTower B A ML]
  {V : Type u} [AddCommGroup V] [Module AI V] [Module (B ⧸ I) V]
  {P : Type u} [AddCommGroup P] [Module AI P]
theorem chartQuotEquiv_surjective_eS_one_tmul (hJI : J = I.map (algebraMap B A))
    (eS : (B ⧸ I) ⊗[B] ML ≃ₗ[B ⧸ I] V)
    (heSs : ∀ (s : A) (m : ML), eS ((1 : B ⧸ I) ⊗ₜ[B] (s • m)) = φ (Ideal.Quotient.mk J s) • eS
        ((1 : B ⧸ I) ⊗ₜ[B] m)) :
    Function.Surjective (fun m : ML => eS ((1 : B ⧸ I) ⊗ₜ[B] m)) := fun v => by
  let := Module.compHom V φ.toRingHom
  obtain ⟨x, hx⟩ := (chartQuotEquiv I φ hJI eS heSs).surjective v
  obtain ⟨q, hq⟩ := (quotTensorEquivQuotSMul ML J).symm.surjective x
  obtain ⟨m, hm⟩ := Submodule.Quotient.mk_surjective _ q
  exact ⟨m, by rw [← hx, ← hq, ← hm, quotTensorEquivQuotSMul_symm_mk, chartQuotEquiv_one_tmul]⟩
AlgebraicGeometry.Scheme.TwoAffineOpenCover.nonempty_iso_pullback_baseChangeSnd_of_sectionsOf_lift_appLE_of_overlap_iso
Source context 12 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs
namespace TwoAffineQuotientSectionsComparison
attribute [-instance]
  AlgebraicGeometry.SmoothOfRelativeDimension.fiberToSpecResidueField
  AlgebraicGeometry.SmoothOfRelativeDimension.pullback_snd
  AlgebraicGeometry.SmoothOfRelativeDimension.pullback_fst
  AlgebraicGeometry.SmoothOfRelativeDimension.smooth_one
  AlgebraicGeometry.SmoothProperCurve.isIntegral_pullback_Spec_field
  AlgebraicGeometry.IsProper.fiberToSpecResidueField
attribute [-simp]
  AlgebraicGeometry.tilde.functorCompPullbackSpecIso_app
  AlgebraicGeometry.RelPicard.BaseChange.relSubPicPresheafRestrictIso_hom_app_coe
  AlgebraicGeometry.RelPicard.BaseChange.relSubPicPresheafRestrictIso_inv_app_coe
  AlgebraicGeometry.RelPicard.BaseChange.restrict_P
  AlgebraicGeometry.RelPicard.SubPicCondition.onClasses_mk
  AlgebraicGeometry.RelPicard.relSubPicPresheaf_map_coe
  AlgebraicGeometry.SmoothProperCurve.sectionBaseChange_coe_snd
  AlgebraicGeometry.SmoothProperCurve.sectionBaseChange_coe_fst
universe u
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry AlgebraicGeometry.RelPicard
    NeronModelInfra TensorProduct
noncomputable section
with_weak_namespace _root_.AlgebraicCurves.Geometry.Schemes.Proofs
open TwoAffineQuotientSectionsComparison in
with_weak_namespace _root_.AlgebraicGeometry.Scheme.TwoAffineOpenCover
theorem nonempty_iso_pullback_baseChangeSnd_of_sectionsOf_lift_appLE_of_overlap_iso
    {R : Type u} [CommRing R] {C : Scheme.{u}} (c : C ⟶ Spec (CommRingCat.of R))
    (𝒱 : C.TwoAffineOpenCover)
    {B : Type u} [CommRing B] [Algebra R B] (I : Ideal B)
    (ι : SchemeHomOver
      (Spec.map (CommRingCat.ofHom (algebraMap R (B ⧸ I))))
      (Spec.map (CommRingCat.ofHom (algebraMap R B))))
    (hι : ι.1 = Spec.map (CommRingCat.ofHom (Ideal.Quotient.mk I)))
    (M : (Limits.pullback c (Scheme.TwoAffineOpenCover.specMap R (B ⧸ I))).Modules)
    (hM : Scheme.Modules.IsInvertible M)
    (J0 : Ideal ((𝒱.pullback c B).cover (Limits.pullback.snd c
        (Scheme.TwoAffineOpenCover.specMap R B))).A0)
    (J1 : Ideal ((𝒱.pullback c B).cover (Limits.pullback.snd c
        (Scheme.TwoAffineOpenCover.specMap R B))).A1)
    (J01 : Ideal ((𝒱.pullback c B).cover (Limits.pullback.snd c
        (Scheme.TwoAffineOpenCover.specMap R B))).A01) :
    let 𝒱B := 𝒱.pullback c B
    let cB := Limits.pullback.snd c (Scheme.TwoAffineOpenCover.specMap R B)
    let 𝒱BI := 𝒱.pullback c (B ⧸ I)
    let cBI := Limits.pullback.snd c (Scheme.TwoAffineOpenCover.specMap R (B ⧸ I))
    let σst := RelPicard.baseChangeSnd c
      (RelPicard.LFP.stageHom R (IsScalarTower.toAlgHom R B (B ⧸ I)))
    let A0B := (𝒱B.cover cB).A0
    let A1B := (𝒱B.cover cB).A1
    let A01B := (𝒱B.cover cB).A01
    let P0 := (𝒱BI.sectionsOf cBI M).M0
    let P1 := (𝒱BI.sectionsOf cBI M).M1
    ∀ (φ0 : A0B ⧸ J0 ≃+* (𝒱BI.cover cBI).A0)
      (φ1 : A1B ⧸ J1 ≃+* (𝒱BI.cover cBI).A1)
      (φ01 : A01B ⧸ J01 ≃+* (𝒱BI.cover cBI).A01)
      (_ : ∀ a, φ01 (Ideal.Quotient.mk J01 ((𝒱B.cover cB).ρ0 a)) =
                (𝒱BI.cover cBI).ρ0 (φ0 (Ideal.Quotient.mk J0 a)))
      (_ : ∀ a, φ01 (Ideal.Quotient.mk J01 ((𝒱B.cover cB).ρ1 a)) =
                (𝒱BI.cover cBI).ρ1 (φ1 (Ideal.Quotient.mk J1 a)))
      (_ : ∀ a, φ0 (Ideal.Quotient.mk J0 a) =
          (σst.appLE 𝒱B.U0 𝒱BI.U0
            (Scheme.TwoAffineOpenCover.baseChangeSnd_preimage_U0 𝒱 c
              (RelPicard.LFP.stageHom R (IsScalarTower.toAlgHom R B (B ⧸ I)))).ge).hom a)
      (_ : ∀ a, φ1 (Ideal.Quotient.mk J1 a) =
          (σst.appLE 𝒱B.U1 𝒱BI.U1
            (Scheme.TwoAffineOpenCover.baseChangeSnd_preimage_U1 𝒱 c
              (RelPicard.LFP.stageHom R (IsScalarTower.toAlgHom R B (B ⧸ I)))).ge).hom a)
      (_ : ∀ a, φ01 (Ideal.Quotient.mk J01 a) =
          (σst.appLE (𝒱B.U0 ⊓ 𝒱B.U1) (𝒱BI.U0 ⊓ 𝒱BI.U1)
            (Scheme.TwoAffineOpenCover.baseChangeSnd_preimage_inf 𝒱 c
              (RelPicard.LFP.stageHom R (IsScalarTower.toAlgHom R B (B ⧸ I)))).ge).hom a)
      (P0' : Type u) [AddCommGroup P0'] [Module A0B P0']
      (P1' : Type u) [AddCommGroup P1'] [Module A1B P1'],
      let : Module (A0B ⧸ J0) P0 := Module.compHom P0 φ0.toRingHom
      let : Module (A1B ⧸ J1) P1 := Module.compHom P1 φ1.toRingHom
      ∀ (iso0 : (A0B ⧸ J0) ⊗[A0B] P0' ≃ₗ[A0B ⧸ J0] P0)
        (iso1 : (A1B ⧸ J1) ⊗[A1B] P1' ≃ₗ[A1B ⧸ J1] P1),
      let : Algebra A0B A01B := (𝒱B.cover cB).ρ0.toRingHom.toAlgebra
      let : Algebra A1B A01B := (𝒱B.cover cB).ρ1.toRingHom.toAlgebra
      let : Module (A01B ⧸ J01) (𝒱BI.sectionsOf cBI M).M01 := Module.compHom _ φ01.toRingHom
      ∀ (σ' : A01B ⊗[A0B] P0' ≃ₗ[A01B] A01B ⊗[A1B] P1')
        (iso01 : (A01B ⧸ J01) ⊗[A01B] (A01B ⊗[A0B] P0') ≃ₗ[A01B ⧸ J01] (𝒱BI.sectionsOf cBI M).M01)
        (_ : ∀ (p : P0'), iso01 ((1 : A01B ⧸ J01) ⊗ₜ[A01B] ((1 : A01B) ⊗ₜ[A0B] p)) =
              (𝒱BI.sectionsOf cBI M).r0 (iso0 ((1 : A0B ⧸ J0) ⊗ₜ[A0B] p)))
        (_ : ∀ (p : P1'), iso01 ((1 : A01B ⧸ J01) ⊗ₜ[A01B] (σ'.symm ((1 : A01B) ⊗ₜ[A1B] p))) =
              (𝒱BI.sectionsOf cBI M).r1 (iso1 ((1 : A1B ⧸ J1) ⊗ₜ[A1B] p)))
        (L' : (Limits.pullback c (Scheme.TwoAffineOpenCover.specMap R B)).Modules)
        (_ : Scheme.Modules.IsInvertible L')
        (e0' : (𝒱B.sectionsOf cB L').M0 ≃ₗ[A0B] P0')
        (e1' : (𝒱B.sectionsOf cB L').M1 ≃ₗ[A1B] P1')
        (e01' : (𝒱B.sectionsOf cB L').M01 ≃ₗ[A01B] A01B ⊗[A0B] P0')
        (_ : ∀ m, e01' ((𝒱B.sectionsOf cB L').r0 m) = (1 : A01B) ⊗ₜ[A0B] e0' m)
        (_ : ∀ m, σ' (e01' ((𝒱B.sectionsOf cB L').r1 m)) = (1 : A01B) ⊗ₜ[A1B] e1' m),
        Nonempty ((Scheme.Modules.pullback (baseChangeSnd c ι)).obj L' ≅ M) := by
  intro 𝒱B cB 𝒱BI cBI σst A0B A1B A01B P0 P1 φ0 φ1 φ01 hφρ0 hφρ1 hψ0 hψ1 hψ01
    P0' _ _ P1' _ _ quotientModule0 quotientModule1 iso0 iso1 overlapAlgebra0
    overlapAlgebra1 quotientModule01 σ' iso01 hiso01_r0 hiso01_r1 L' hL' e0' e1' e01' he0' hσ'
  have hιeq : ι = RelPicard.LFP.stageHom R (IsScalarTower.toAlgHom R B (B ⧸ I)) :=
    Subtype.ext (hι.trans (by rfl))
  rw [hιeq]
  set σbc := RelPicard.baseChangeSnd c (RelPicard.LFP.stageHom R (IsScalarTower.toAlgHom R B (B
      ⧸ I)))
  have hL'pb : Scheme.Modules.IsInvertible ((Scheme.Modules.pullback σbc).obj L') :=
      hL'.pullback σbc
  obtain ⟨eS0, eS1, eS01, heSr0, heSr1, _, _, _, heSs0, heSs1, heSs01⟩ :=
    open _root_.AlgebraicGeometry.Scheme.TwoAffineOpenCover in
      exists_stage_sectionsOf_baseChange_equiv_of_locallyTrivial
        𝒱 c B (B ⧸ I) L' hL'.exists_trivialization
  obtain ⟨eR0, eR1, eR01, heR0, heR1, heR01⟩ :=
    AlgebraicGeometry.Scheme.TwoAffineOpenCover.exists_stage_baseChangeIsos_structureSheaf
      𝒱 c B (B ⧸ I)
  have hφeR0 : ∀ a, φ0 (Ideal.Quotient.mk J0 a) = eR0 ((1 : B ⧸ I) ⊗ₜ[B] a) :=
    fun a => (hψ0 a).trans (heR0 a).symm
  have hφeR1 : ∀ a, φ1 (Ideal.Quotient.mk J1 a) = eR1 ((1 : B ⧸ I) ⊗ₜ[B] a) :=
    fun a => (hψ1 a).trans (heR1 a).symm
  have hφeR01 : ∀ a, φ01 (Ideal.Quotient.mk J01 a) = eR01 ((1 : B ⧸ I) ⊗ₜ[B] a) :=
    fun a => (hψ01 a).trans (heR01 a).symm
  have hJI_of : ∀ {A' : Type u} [CommRing A'] [Algebra B A'] {J' : Ideal A'} {AI' : Type u}
      [CommRing AI'] [Algebra (B ⧸ I) AI'] (φ' : A' ⧸ J' ≃+* AI') (eR' : (B ⧸ I) ⊗[B] A' ≃ₐ[B ⧸
          I] AI'),
      (∀ a, φ' (Ideal.Quotient.mk J' a) = eR' ((1 : B ⧸ I) ⊗ₜ[B] a)) →
      J' = I.map (algebraMap B A') := by
    intro A' _ _ J' AI' _ _ φ' eR' hφeR'
    ext a
    rw [show (a ∈ J') ↔ ((1 : B ⧸ I) ⊗ₜ[B] a = (0 : (B ⧸ I) ⊗[B] A')) from by
          rw [← Ideal.Quotient.eq_zero_iff_mem, ← (EmbeddingLike.map_eq_zero_iff (f := φ')), hφeR']
          exact EmbeddingLike.map_eq_zero_iff (f := eR'),
        ← quotMapEquiv'_mk I a, EmbeddingLike.map_eq_zero_iff, Ideal.Quotient.eq_zero_iff_mem]
  have hJ0I : J0 = I.map (algebraMap B A0B) := hJI_of φ0 eR0 hφeR0
  have hJ1I : J1 = I.map (algebraMap B A1B) := hJI_of φ1 eR1 hφeR1
  have hJ01I : J01 = I.map (algebraMap B A01B) := hJI_of φ01 eR01 hφeR01
  have heSs0' : ∀ (s : A0B) (m : _), eS0 ((1 : B ⧸ I) ⊗ₜ[B] (s • m)) =
      φ0 (Ideal.Quotient.mk J0 s) • eS0 ((1 : B ⧸ I) ⊗ₜ[B] m) :=
    fun s m => (heSs0 s m).trans (by rw [hψ0])
  have heSs1' : ∀ (s : A1B) (m : _), eS1 ((1 : B ⧸ I) ⊗ₜ[B] (s • m)) =
      φ1 (Ideal.Quotient.mk J1 s) • eS1 ((1 : B ⧸ I) ⊗ₜ[B] m) :=
    fun s m => (heSs1 s m).trans (by rw [hψ1])
  have heSs01' : ∀ (s : A01B) (m : _), eS01 ((1 : B ⧸ I) ⊗ₜ[B] (s • m)) =
      φ01 (Ideal.Quotient.mk J01 s) • eS01 ((1 : B ⧸ I) ⊗ₜ[B] m) :=
    fun s m => (heSs01 s m).trans (by rw [hψ01])
  let : Module (A0B ⧸ J0) (𝒱BI.sectionsOf cBI ((Scheme.Modules.pullback σbc).obj L')).M0 :=
    Module.compHom _ φ0.toRingHom
  let : Module (A1B ⧸ J1) (𝒱BI.sectionsOf cBI ((Scheme.Modules.pullback σbc).obj L')).M1 :=
    Module.compHom _ φ1.toRingHom
  let : Module (A01B ⧸ J01) (𝒱BI.sectionsOf cBI ((Scheme.Modules.pullback σbc).obj L')).M01 :=
    Module.compHom _ φ01.toRingHom
  let cq0 := chartQuotEquiv I φ0 hJ0I eS0 heSs0'
  let cq1 := chartQuotEquiv I φ1 hJ1I eS1 heSs1'
  let cq01 := chartQuotEquiv I φ01 hJ01I eS01 heSs01'
  let e0 : (𝒱BI.sectionsOf cBI ((Scheme.Modules.pullback σbc).obj L')).M0 ≃ₗ[(𝒱BI.cover cBI).A0]
           (𝒱BI.sectionsOf cBI M).M0 :=
    ofCompHomEquiv φ0 (cq0.symm.trans ((LinearEquiv.baseChange A0B (A0B⧸J0) _ _ e0').trans iso0))
  let e1 : (𝒱BI.sectionsOf cBI ((Scheme.Modules.pullback σbc).obj L')).M1 ≃ₗ[(𝒱BI.cover cBI).A1]
           (𝒱BI.sectionsOf cBI M).M1 :=
    ofCompHomEquiv φ1 (cq1.symm.trans ((LinearEquiv.baseChange A1B (A1B⧸J1) _ _ e1').trans iso1))
  let e01 : (𝒱BI.sectionsOf cBI ((Scheme.Modules.pullback σbc).obj L')).M01 ≃ₗ[(𝒱BI.cover cBI).A01]
            (𝒱BI.sectionsOf cBI M).M01 :=
    ofCompHomEquiv φ01 (cq01.symm.trans ((LinearEquiv.baseChange A01B (A01B⧸J01) _ _ e01').trans
        iso01))
  have he0_gen : ∀ m, e0 (eS0 ((1 : B ⧸ I) ⊗ₜ[B] m)) = iso0 ((1:A0B⧸J0) ⊗ₜ[A0B] e0' m) := fun m
      => by
    change iso0 (LinearEquiv.baseChange _ _ _ _ e0' (cq0.symm (eS0 (1 ⊗ₜ m)))) = _
    rw [show cq0.symm (eS0 (1 ⊗ₜ m)) = (1:A0B⧸J0) ⊗ₜ[A0B] m from
          cq0.injective (by rw [LinearEquiv.apply_symm_apply, chartQuotEquiv_one_tmul]),
        LinearEquiv.baseChange_tmul]
  have he1_gen : ∀ m, e1 (eS1 ((1 : B ⧸ I) ⊗ₜ[B] m)) = iso1 ((1:A1B⧸J1) ⊗ₜ[A1B] e1' m) := fun m
      => by
    change iso1 (LinearEquiv.baseChange _ _ _ _ e1' (cq1.symm (eS1 (1 ⊗ₜ m)))) = _
    rw [show cq1.symm (eS1 (1 ⊗ₜ m)) = (1:A1B⧸J1) ⊗ₜ[A1B] m from
          cq1.injective (by rw [LinearEquiv.apply_symm_apply, chartQuotEquiv_one_tmul]),
        LinearEquiv.baseChange_tmul]
  have he01_gen : ∀ m, e01 (eS01 ((1 : B ⧸ I) ⊗ₜ[B] m)) = iso01 ((1:A01B⧸J01) ⊗ₜ[A01B] e01' m)
      := fun m => by
    change iso01 (LinearEquiv.baseChange _ _ _ _ e01' (cq01.symm (eS01 (1 ⊗ₜ m)))) = _
    rw [show cq01.symm (eS01 (1 ⊗ₜ m)) = (1:A01B⧸J01) ⊗ₜ[A01B] m from
          cq01.injective (by rw [LinearEquiv.apply_symm_apply, chartQuotEquiv_one_tmul]),
        LinearEquiv.baseChange_tmul]
  refine Scheme.TwoAffineOpenCover.nonempty_iso_of_sectionsOf_linearEquiv_of_isInvertible
    𝒱BI cBI ((Scheme.Modules.pullback σbc).obj L') M hL'pb hM e0 e1 e01 ?_ ?_
  · intro v
    obtain ⟨m, rfl⟩ := chartQuotEquiv_surjective_eS_one_tmul I φ0 hJ0I eS0 heSs0' v
    rw [show (𝒱BI.sectionsOf cBI ((Scheme.Modules.pullback σbc).obj L')).r0 (eS0 ((1 : B ⧸ I)
        ⊗ₜ[B] m))
          = eS01 ((1 : B ⧸ I) ⊗ₜ[B] (𝒱B.sectionsOf cB L').r0 m) from by
        have := heSr0 ((1 : B ⧸ I) ⊗ₜ[B] m); rw [LinearMap.baseChange_tmul] at this; exact
            this.symm,
      he01_gen, he0', hiso01_r0, he0_gen]
  · intro v
    obtain ⟨m, rfl⟩ := chartQuotEquiv_surjective_eS_one_tmul I φ1 hJ1I eS1 heSs1' v
    rw [show (𝒱BI.sectionsOf cBI ((Scheme.Modules.pullback σbc).obj L')).r1 (eS1 ((1 : B ⧸ I)
        ⊗ₜ[B] m))
          = eS01 ((1 : B ⧸ I) ⊗ₜ[B] (𝒱B.sectionsOf cB L').r1 m) from by
        have := heSr1 ((1 : B ⧸ I) ⊗ₜ[B] m); rw [LinearMap.baseChange_tmul] at this; exact
            this.symm,
      he01_gen,
      show e01' ((𝒱B.sectionsOf cB L').r1 m) = σ'.symm ((1:A01B) ⊗ₜ[A1B] e1' m) from
        σ'.injective (by rw [LinearEquiv.apply_symm_apply, hσ']),
      hiso01_r1, he1_gen]