Module

ClosedPointDivisorGenericUnitOriginalSource.lean

Nyll.EtaleCohomology.Classical.ClosedPointDivisorGenericUnitOriginalSource
16 declarations indexed from sourceView source ↗

Chart comparison on a common original source

The coordinate calculation is transported back to an arbitrary integral affine object of the original small étale site. Its coordinate spectrum and its map to the original scheme are independent of the chosen target chart.

Declarations

EtaleCohomology.DivisorGenericUnitGlobal.affineCoordinateSourceIso

The coordinate spectrum of an affine object, identified with that same object in the original small étale site.

Source context 6 commands

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

@[expose] public section
noncomputable section
universe u
open AlgebraicGeometry CategoryTheory CategoryTheory.Limits Opposite TopologicalSpace
open EtaleFundamentalGroups.StrictHenselian
namespace EtaleCohomology.DivisorGenericUnitGlobal
def affineCoordinateSourceIso
    {X : Scheme.{u}} (V : X.Etale) [IsAffine V.left] :
    Scheme.Etale.mk ((Scheme.isoSpec V.left).inv ≫ V.hom) ≅ V
EtaleCohomology.DivisorGenericUnitGlobal.map_op_comp_eq_apply
Source context 6 commands

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

@[expose] public section
noncomputable section
universe u
open AlgebraicGeometry CategoryTheory CategoryTheory.Limits Opposite TopologicalSpace
open EtaleFundamentalGroups.StrictHenselian
namespace EtaleCohomology.DivisorGenericUnitGlobal
theorem map_op_comp_eq_apply {Cat : Type*} [Category Cat]
    (F : Catᵒᵖ ⥤ AddCommGrpCat.{u}) {A B C D : Cat}
    (f : A ⟶ B) (g : B ⟶ D) (p : A ⟶ C) (q : C ⟶ D)
    (h : f ≫ g = p ≫ q) (s : F.obj (op D)) :
    F.map f.op (F.map g.op s) = F.map p.op (F.map q.op s)
EtaleCohomology.DivisorGenericUnitGlobal.hom_eq_comp_apply
Source context 6 commands

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

@[expose] public section
noncomputable section
universe u
open AlgebraicGeometry CategoryTheory CategoryTheory.Limits Opposite TopologicalSpace
open EtaleFundamentalGroups.StrictHenselian
namespace EtaleCohomology.DivisorGenericUnitGlobal
theorem hom_eq_comp_apply {A B C D : AddCommGrpCat.{u}}
    {l : A ⟶ D} (f : A ⟶ B) (g : B ⟶ C) (h : C ⟶ D)
    (hl : l = f ≫ g ≫ h) (s : A) : l s = h (g (f s))
EtaleCohomology.DivisorGenericUnitGlobal.map_op_iso_cancel_apply
Source context 6 commands

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

@[expose] public section
noncomputable section
universe u
open AlgebraicGeometry CategoryTheory CategoryTheory.Limits Opposite TopologicalSpace
open EtaleFundamentalGroups.StrictHenselian
namespace EtaleCohomology.DivisorGenericUnitGlobal
theorem map_op_iso_cancel_apply {Cat : Type*} [Category Cat]
    (F : Catᵒᵖ ⥤ AddCommGrpCat.{u}) {A B : Cat} (e : A ≅ B)
    (s : F.obj (op B)) : F.map e.inv.op (F.map e.hom.op s) = s
EtaleCohomology.DivisorGenericUnitGlobal.slice_section_transport
Source context 6 commands

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

@[expose] public section
noncomputable section
universe u
open AlgebraicGeometry CategoryTheory CategoryTheory.Limits Opposite TopologicalSpace
open EtaleFundamentalGroups.StrictHenselian
namespace EtaleCohomology.DivisorGenericUnitGlobal
theorem slice_section_transport
    {X U : Scheme.{u}}
    {F G : Sheaf X.smallEtaleTopology AddCommGrpCat.{u}}
    (j : U ⟶ X) [Etale j]
    (f : (etaleRestriction j AddCommGrpCat.{u}).obj F ⟶
      (etaleRestriction j AddCommGrpCat.{u}).obj G)
    (l : (Over.forget (Scheme.Etale.mk j)).op ⋙ F.obj ⟶
      (Over.forget (Scheme.Etale.mk j)).op ⋙ G.obj)
    (hl : Functor.whiskerLeft (etaleSliceEquiv (Scheme.Etale.mk j)).inverse.op l = f.hom)
    (T : Over (Scheme.Etale.mk j)) (B : U.Etale)
    (c : T ≅ (etaleSliceEquiv (Scheme.Etale.mk j)).inverse.obj B)
    {V W : X.Etale} (p : V ⟶ T.left)
    (r : W ⟶ (etalePostcompose j).obj B)
    (cS : W ≅ V)
    (h : cS.inv ≫ r = p ≫ c.hom.left)
    (s : F.obj.obj (op T.left)) :
    G.obj.map p.op (l.app (op T) s) =
      G.obj.map cS.inv.op
        (G.obj.map r.op
          (f.hom.app (op B) (F.obj.map c.inv.left.op s)))
EtaleCohomology.DivisorGenericUnitGlobal.integralAffineChartSource

Regard the original integral affine source as an integral affine object over the chosen chart, retaining its underlying scheme.

Source context 7 commands

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

@[expose] public section
noncomputable section
universe u
open AlgebraicGeometry CategoryTheory CategoryTheory.Limits Opposite TopologicalSpace
open EtaleFundamentalGroups.StrictHenselian
namespace EtaleCohomology.DivisorGenericUnitGlobal
variable (R : Type u) [CommRing R] [IsDedekindDomain R]
  {X : Scheme.{u}} [IsIntegral X] [JacobsonSpace X]
  (U : X.Opens) (e : Spec (CommRingCat.of R) ≅ (U : Scheme))
  (V : X.Etale) [IsAffine V.left] [IsIntegral V.left]
  (m : V ⟶ Scheme.Etale.mk (e.hom ≫ U.ι))
def integralAffineChartSource :
    (integralAffineEtaleObjectProperty
      (X := Spec (CommRingCat.of R))).FullSubcategory
EtaleCohomology.DivisorGenericUnitGlobal.integralAffineChartSource_coordinate_comp

The original coordinate map to the scheme is the composite of its coordinate map to the chart and the chart inclusion.

Source context 8 commands

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

@[expose] public section
noncomputable section
universe u
open AlgebraicGeometry CategoryTheory CategoryTheory.Limits Opposite TopologicalSpace
open EtaleFundamentalGroups.StrictHenselian
namespace EtaleCohomology.DivisorGenericUnitGlobal
variable (R : Type u) [CommRing R] [IsDedekindDomain R]
  {X : Scheme.{u}} [IsIntegral X] [JacobsonSpace X]
  (U : X.Opens) (e : Spec (CommRingCat.of R) ≅ (U : Scheme))
  (V : X.Etale) [IsAffine V.left] [IsIntegral V.left]
  (m : V ⟶ Scheme.Etale.mk (e.hom ≫ U.ι))
omit [IsDedekindDomain R] [IsIntegral X] [JacobsonSpace X] in
theorem integralAffineChartSource_coordinate_comp :
    Spec.map (integralAffineCoordinateBaseMap R
        (integralAffineChartSource R U e V m)) ≫ (e.hom ≫ U.ι) =
      (Scheme.isoSpec V.left).inv ≫ V.hom
EtaleCohomology.DivisorGenericUnitGlobal.integralAffineChartCoordinateAlgebra

The coordinate algebra on the original affine source, with its literal ring of global sections as target.

Source context 7 commands

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

@[expose] public section
noncomputable section
universe u
open AlgebraicGeometry CategoryTheory CategoryTheory.Limits Opposite TopologicalSpace
open EtaleFundamentalGroups.StrictHenselian
namespace EtaleCohomology.DivisorGenericUnitGlobal
variable (R : Type u) [CommRing R] [IsDedekindDomain R]
  {X : Scheme.{u}} [IsIntegral X] [JacobsonSpace X]
  (U : X.Opens) (e : Spec (CommRingCat.of R) ≅ (U : Scheme))
  (V : X.Etale) [IsAffine V.left] [IsIntegral V.left]
  (m : V ⟶ Scheme.Etale.mk (e.hom ≫ U.ι))
def integralAffineChartCoordinateAlgebra : Algebra R Γ(V.left, ⊤)
EtaleCohomology.DivisorGenericUnitGlobal.integralAffineChartCoordinateAlgebra_algebraMap

The shared coordinate algebra retains the original structural ring map.

Source context 8 commands

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

@[expose] public section
noncomputable section
universe u
open AlgebraicGeometry CategoryTheory CategoryTheory.Limits Opposite TopologicalSpace
open EtaleFundamentalGroups.StrictHenselian
namespace EtaleCohomology.DivisorGenericUnitGlobal
variable (R : Type u) [CommRing R] [IsDedekindDomain R]
  {X : Scheme.{u}} [IsIntegral X] [JacobsonSpace X]
  (U : X.Opens) (e : Spec (CommRingCat.of R) ≅ (U : Scheme))
  (V : X.Etale) [IsAffine V.left] [IsIntegral V.left]
  (m : V ⟶ Scheme.Etale.mk (e.hom ≫ U.ι))
omit [IsDedekindDomain R] [IsIntegral X] [JacobsonSpace X] in
theorem integralAffineChartCoordinateAlgebra_algebraMap :
    let _ : Algebra R Γ(V.left, ⊤) := integralAffineChartCoordinateAlgebra R U e V m
    algebraMap R Γ(V.left, ⊤) =
      (integralAffineCoordinateBaseMap R (integralAffineChartSource R U e V m)).hom := by
  intro algRS
  rfl
EtaleCohomology.DivisorGenericUnitGlobal.integralAffineChartCoordinateAlgebra_etale

The original coordinate map gives the shared algebra its étale structure.

Source context 8 commands

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

@[expose] public section
noncomputable section
universe u
open AlgebraicGeometry CategoryTheory CategoryTheory.Limits Opposite TopologicalSpace
open EtaleFundamentalGroups.StrictHenselian
namespace EtaleCohomology.DivisorGenericUnitGlobal
variable (R : Type u) [CommRing R] [IsDedekindDomain R]
  {X : Scheme.{u}} [IsIntegral X] [JacobsonSpace X]
  (U : X.Opens) (e : Spec (CommRingCat.of R) ≅ (U : Scheme))
  (V : X.Etale) [IsAffine V.left] [IsIntegral V.left]
  (m : V ⟶ Scheme.Etale.mk (e.hom ≫ U.ι))
omit [IsDedekindDomain R] [IsIntegral X] [JacobsonSpace X] in
theorem integralAffineChartCoordinateAlgebra_etale :
    let _ : Algebra R Γ(V.left, ⊤) := integralAffineChartCoordinateAlgebra R U e V m
    Algebra.Etale R Γ(V.left, ⊤) := by
  intro algRS
  exact RingHom.etale_algebraMap.mp
    (integralAffineCoordinateBaseMap_etale R (integralAffineChartSource R U e V m))
EtaleCohomology.DivisorGenericUnitGlobal.integralAffineChartCoordinateAmbientAlgebra

The original structural map followed by the coordinate fraction-ring map.

Source context 7 commands

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

@[expose] public section
noncomputable section
universe u
open AlgebraicGeometry CategoryTheory CategoryTheory.Limits Opposite TopologicalSpace
open EtaleFundamentalGroups.StrictHenselian
namespace EtaleCohomology.DivisorGenericUnitGlobal
variable (R : Type u) [CommRing R] [IsDedekindDomain R]
  {X : Scheme.{u}} [IsIntegral X] [JacobsonSpace X]
  (U : X.Opens) (e : Spec (CommRingCat.of R) ≅ (U : Scheme))
  (V : X.Etale) [IsAffine V.left] [IsIntegral V.left]
  (m : V ⟶ Scheme.Etale.mk (e.hom ≫ U.ι))
def integralAffineChartCoordinateAmbientAlgebra :
    Algebra R (FractionRing Γ(V.left, ⊤))
EtaleCohomology.DivisorGenericUnitGlobal.integralAffineChartCoordinateAmbientAlgebra_isScalarTower

The shared ambient algebra extends the shared coordinate algebra.

Source context 8 commands

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

@[expose] public section
noncomputable section
universe u
open AlgebraicGeometry CategoryTheory CategoryTheory.Limits Opposite TopologicalSpace
open EtaleFundamentalGroups.StrictHenselian
namespace EtaleCohomology.DivisorGenericUnitGlobal
variable (R : Type u) [CommRing R] [IsDedekindDomain R]
  {X : Scheme.{u}} [IsIntegral X] [JacobsonSpace X]
  (U : X.Opens) (e : Spec (CommRingCat.of R) ≅ (U : Scheme))
  (V : X.Etale) [IsAffine V.left] [IsIntegral V.left]
  (m : V ⟶ Scheme.Etale.mk (e.hom ≫ U.ι))
omit [IsDedekindDomain R] [IsIntegral X] [JacobsonSpace X] in
theorem integralAffineChartCoordinateAmbientAlgebra_isScalarTower :
    let algRS : Algebra R Γ(V.left, ⊤) := integralAffineChartCoordinateAlgebra R U e V m
    let algRE : Algebra R (FractionRing Γ(V.left, ⊤)) :=
      integralAffineChartCoordinateAmbientAlgebra R U e V m
    @IsScalarTower R Γ(V.left, ⊤) (FractionRing Γ(V.left, ⊤)) algRS.toSMul
      (inferInstance : Algebra Γ(V.left, ⊤) (FractionRing Γ(V.left, ⊤))).toSMul
      algRE.toSMul := by
  intro algRS algRE
  exact IsScalarTower.of_algebraMap_eq (fun _ => rfl)
EtaleCohomology.DivisorGenericUnitGlobal.integralAffineChartCoordinateFractionFieldAlgebra

The existing coordinate fraction-field lift, with the original source's literal coordinate ring as target.

Source context 7 commands

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

@[expose] public section
noncomputable section
universe u
open AlgebraicGeometry CategoryTheory CategoryTheory.Limits Opposite TopologicalSpace
open EtaleFundamentalGroups.StrictHenselian
namespace EtaleCohomology.DivisorGenericUnitGlobal
variable (R : Type u) [CommRing R] [IsDedekindDomain R]
  {X : Scheme.{u}} [IsIntegral X] [JacobsonSpace X]
  (U : X.Opens) (e : Spec (CommRingCat.of R) ≅ (U : Scheme))
  (V : X.Etale) [IsAffine V.left] [IsIntegral V.left]
  (m : V ⟶ Scheme.Etale.mk (e.hom ≫ U.ι))
def integralAffineChartCoordinateFractionFieldAlgebra :
    Algebra (FractionRing R) (FractionRing Γ(V.left, ⊤))
EtaleCohomology.DivisorGenericUnitGlobal.integralAffineChartCoordinateFractionFieldAlgebra_isScalarTower

The shared fraction-field lift extends the shared ambient algebra.

Source context 8 commands

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

@[expose] public section
noncomputable section
universe u
open AlgebraicGeometry CategoryTheory CategoryTheory.Limits Opposite TopologicalSpace
open EtaleFundamentalGroups.StrictHenselian
namespace EtaleCohomology.DivisorGenericUnitGlobal
variable (R : Type u) [CommRing R] [IsDedekindDomain R]
  {X : Scheme.{u}} [IsIntegral X] [JacobsonSpace X]
  (U : X.Opens) (e : Spec (CommRingCat.of R) ≅ (U : Scheme))
  (V : X.Etale) [IsAffine V.left] [IsIntegral V.left]
  (m : V ⟶ Scheme.Etale.mk (e.hom ≫ U.ι))
omit [IsIntegral X] [JacobsonSpace X] in
theorem integralAffineChartCoordinateFractionFieldAlgebra_isScalarTower :
    let _ : Algebra R Γ(V.left, ⊤) := integralAffineChartCoordinateAlgebra R U e V m
    let algRE : Algebra R (FractionRing Γ(V.left, ⊤)) :=
      integralAffineChartCoordinateAmbientAlgebra R U e V m
    let algKE : Algebra (FractionRing R) (FractionRing Γ(V.left, ⊤)) :=
      integralAffineChartCoordinateFractionFieldAlgebra R U e V m
    @IsScalarTower R (FractionRing R) (FractionRing Γ(V.left, ⊤))
      (inferInstance : Algebra R (FractionRing R)).toSMul algKE.toSMul algRE.toSMul := by
  intro algRS algRE algKE
  exact integralAffineCoordinateFractionFieldAlgebra_isScalarTower R
    (integralAffineChartSource R U e V m)
EtaleCohomology.DivisorGenericUnitGlobal.integralAffineChartCoordinate_comp

The shared coordinate algebra gives the same map to the original scheme.

Source context 8 commands

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

@[expose] public section
noncomputable section
universe u
open AlgebraicGeometry CategoryTheory CategoryTheory.Limits Opposite TopologicalSpace
open EtaleFundamentalGroups.StrictHenselian
namespace EtaleCohomology.DivisorGenericUnitGlobal
variable (R : Type u) [CommRing R] [IsDedekindDomain R]
  {X : Scheme.{u}} [IsIntegral X] [JacobsonSpace X]
  (U : X.Opens) (e : Spec (CommRingCat.of R) ≅ (U : Scheme))
  (V : X.Etale) [IsAffine V.left] [IsIntegral V.left]
  (m : V ⟶ Scheme.Etale.mk (e.hom ≫ U.ι))
omit [IsDedekindDomain R] [IsIntegral X] [JacobsonSpace X] in
theorem integralAffineChartCoordinate_comp :
    let _ : Algebra R Γ(V.left, ⊤) := integralAffineChartCoordinateAlgebra R U e V m
    Spec.map (CommRingCat.ofHom (algebraMap R Γ(V.left, ⊤))) ≫ (e.hom ≫ U.ι) =
      (Scheme.isoSpec V.left).inv ≫ V.hom := by
  intro algRS
  exact (congrArg
    (fun φ : R →+* Γ(V.left, ⊤) => Spec.map (CommRingCat.ofHom φ) ≫ (e.hom ≫ U.ι))
    (integralAffineChartCoordinateAlgebra_algebraMap R U e V m)).trans
      (integralAffineChartSource_coordinate_comp R U e V m)
EtaleCohomology.DivisorGenericUnitGlobal.affineChartDivisorGenericUnitIso_originalSource

After normalization on the fixed coordinate spectrum of the original source, the actual slice component reads the source's original divisor. Only the chart factorization is used to construct the normalization.

Source context 7 commands

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

@[expose] public section
noncomputable section
universe u
open AlgebraicGeometry CategoryTheory CategoryTheory.Limits Opposite TopologicalSpace
open EtaleFundamentalGroups.StrictHenselian
namespace EtaleCohomology.DivisorGenericUnitGlobal
variable (R : Type u) [CommRing R] [IsDedekindDomain R]
  {X : Scheme.{u}} [IsIntegral X] [JacobsonSpace X]
  (U : X.Opens) (e : Spec (CommRingCat.of R) ≅ (U : Scheme))
  (V : X.Etale) [IsAffine V.left] [IsIntegral V.left]
  (m : V ⟶ Scheme.Etale.mk (e.hom ≫ U.ι))
theorem affineChartDivisorGenericUnitIso_originalSource (hR : ¬ IsField R) :
    let _ : HasColimitsOfShape (Discrete (closedPoints (Spec (CommRingCat.of R))))
        (Sheaf (Spec (CommRingCat.of R)).smallEtaleTopology AddCommGrpCat.{u}) :=
      closedPointDivisorSheafHasColimitsOfShape (Spec (CommRingCat.of R))
    let A := integralAffineChartSource R U e V m
    let S : CommRingCat.{u} := Γ(V.left, ⊤)
    let _ : IsDedekindDomain S := integralAffineCoordinate_isDedekindDomain R A
    let algRS : Algebra R S := integralAffineChartCoordinateAlgebra R U e V m
    let _ : Algebra.Etale R S := integralAffineChartCoordinateAlgebra_etale R U e V m
    let algRE : Algebra R (FractionRing S) :=
      integralAffineChartCoordinateAmbientAlgebra R U e V m
    let _ : @IsScalarTower R S (FractionRing S) algRS.toSMul
        (inferInstance : Algebra S (FractionRing S)).toSMul algRE.toSMul :=
      integralAffineChartCoordinateAmbientAlgebra_isScalarTower R U e V m
    let algKE : Algebra (FractionRing R) (FractionRing S) :=
      integralAffineChartCoordinateFractionFieldAlgebra R U e V m
    let _ : @IsScalarTower R (FractionRing R) (FractionRing S)
        (inferInstance : Algebra R (FractionRing R)).toSMul algKE.toSMul algRE.toSMul :=
      integralAffineChartCoordinateFractionFieldAlgebra_isScalarTower R U e V m
    let q : Spec S ⟶ X := (Scheme.isoSpec V.left).inv ≫ V.hom
    let hq : Spec.map (CommRingCat.ofHom (algebraMap R S)) ≫ (e.hom ≫ U.ι) = q :=
      integralAffineChartCoordinate_comp R U e V m
    let p : Scheme.Etale.mk q ⟶ V :=
      (affineCoordinateSourceIso V).hom
    let DX := closedPointDivisorSheaf X
    let a : (etaleRestriction (e.hom ≫ U.ι) AddCommGrpCat.{u}).obj DX ≅
        (etaleRestriction (e.hom ≫ U.ι) AddCommGrpCat.{u}).obj (etaleGenericUnitQuotient X) :=
      affineChartDivisorGenericUnitIso R U e hR
    let k : (etaleRestriction q AddCommGrpCat.{u}).obj (etaleGenericUnitQuotient X) ≅
        affineEtaleFractionRingUnitQuotient S :=
      affineChartGenericUnitSourceIso R (e.hom ≫ U.ι) S q hq
    let l : (Over.forget (Scheme.Etale.mk (e.hom ≫ U.ι))).op ⋙ DX.obj ⟶
        (Over.forget (Scheme.Etale.mk (e.hom ≫ U.ι))).op ⋙ (etaleGenericUnitQuotient X).obj :=
      etaleRestrictionHomToSlice (F := DX) (G := (etaleGenericUnitQuotient X))
        (Scheme.Etale.mk (e.hom ≫ U.ι)) a.hom
    ∀ (s : DX.obj.obj (op V)),
      k.hom.hom.app (op ((zariskiToEtale (Spec S)).obj ⊤))
        ((etaleRestrictionTopObjectSectionIso q (etaleGenericUnitQuotient X)).inv
          ((etaleGenericUnitQuotient X).obj.map p.op (l.app (op (Over.mk m)) s))) =
      divisorGenericUnitQuotientGlobalSectionEquiv S
        (affineEtaleClosedPointDivisorSectionFinsupp (R := R) (S := S) hR
          (affineChartDivisorSourceSection R U e S q hq
            (DX.obj.map p.op s))) := by
  intro hShape A S hS algRS hE algRE hRS algKE hKS q hq p DX a k l s
  let c : Over.mk m ≅
      (etaleSliceEquiv (Scheme.Etale.mk (e.hom ≫ U.ι))).inverse.obj A.obj :=
    (etaleSliceEquiv (Scheme.Etale.mk (e.hom ≫ U.ι))).unitIso.app (Over.mk m)
  let E : A.obj ≅ affineEtaleSpecObject (R := R) (S := S) :=
    integralAffineCoordinateEtaleObjIso R A
  let j := Spec.map (CommRingCat.ofHom (algebraMap R S))
  let r := (etalePostcompose (e.hom ≫ U.ι)).map E.inv
  let tS : DX.obj.obj (op ((etalePostcompose (e.hom ≫ U.ι)).obj
      (affineEtaleSpecObject (R := R) (S := S)))) := DX.obj.map r.op (DX.obj.map c.inv.left.op s)
  have hEinv : E.inv.left = (Scheme.isoSpec V.left).inv := by
    rfl
  have hleft : r ≫ c.inv.left = (affineChartDivisorSourceObjectIso R U e S q hq).hom ≫ p := by
    apply MorphismProperty.Over.Hom.ext
    have hc : c.inv.left.left = 𝟙 V.left := by rfl
    exact (congrArg₂
      (fun (f : Spec S ⟶ V.left) (g : V.left ⟶ V.left) => f ≫ g)
      hEinv hc).trans
        ((Category.comp_id (Scheme.isoSpec V.left).inv).trans
          (Category.id_comp (Scheme.isoSpec V.left).inv).symm)
  have hright : (affineChartDivisorSourceObjectIso R U e S q hq).inv ≫ r = p ≫ c.hom.left := by
    apply MorphismProperty.Over.Hom.ext
    have hc : c.hom.left.left = 𝟙 V.left := by rfl
    exact (congrArg (fun f : Spec S ⟶ V.left =>
      𝟙 (Spec S) ≫ f) hEinv).trans
        ((Category.id_comp (Scheme.isoSpec V.left).inv).trans
          (((Category.comp_id (Scheme.isoSpec V.left).inv).symm).trans
            (congrArg (fun g : V.left ⟶ V.left =>
              (Scheme.isoSpec V.left).inv ≫ g) hc.symm)))
  have hD : tS =
      DX.obj.map (affineChartDivisorSourceObjectIso R U e S q hq).hom.op (DX.obj.map p.op s) := by
    exact map_op_comp_eq_apply DX.obj r c.inv.left
      (affineChartDivisorSourceObjectIso R U e S q hq).hom p hleft s
  have hl : l =
      etaleRestrictionHomToSlice (F := DX) (G := (etaleGenericUnitQuotient X))
        (Scheme.Etale.mk (e.hom ≫ U.ι)) a.hom := rfl
  have hwhisker :
      Functor.whiskerLeft (etaleSliceEquiv (Scheme.Etale.mk (e.hom ≫ U.ι))).inverse.op l =
      a.hom.hom :=
    (congrArg (Functor.whiskerLeft (etaleSliceEquiv (Scheme.Etale.mk (e.hom ≫ U.ι))).inverse.op)
      hl).trans (etaleRestrictionHomToSlice_whisker (F := DX) (G := (etaleGenericUnitQuotient X))
        (Scheme.Etale.mk (e.hom ≫ U.ι)) a.hom)
  have hQ := slice_section_transport (X := X) (F := DX) (G := (etaleGenericUnitQuotient X))
    (e.hom ≫ U.ι) a.hom l hwhisker (Over.mk m) A.obj c
    (V := Scheme.Etale.mk q)
    (W := (etalePostcompose (e.hom ≫ U.ι)).obj (affineEtaleSpecObject (R := R) (S := S)))
    p r (affineChartDivisorSourceObjectIso R U e S q hq) hright s
  have hs := affineChartDivisorGenericUnitIso_coordinate R U e hR A (DX.obj.map c.inv.left.op s)
  have ht := affineChartGenericUnitSourceIso_transport R U e S q hq
    ((etaleGenericUnitQuotient X).obj.map r.op
      (a.hom.hom.app (op A.obj) (DX.obj.map c.inv.left.op s)))
  have hd : affineChartDivisorSourceSection R U e S (j ≫ (e.hom ≫ U.ι)) rfl tS =
      affineChartDivisorSourceSection R U e S q hq (DX.obj.map p.op s) := by
    have hDback : DX.obj.map (affineChartDivisorSourceObjectIso R U e S q hq).inv.op tS =
        DX.obj.map p.op s :=
      (congrArg (fun z =>
        DX.obj.map (affineChartDivisorSourceObjectIso R U e S q hq).inv.op z) hD).trans
          (map_op_iso_cancel_apply DX.obj (affineChartDivisorSourceObjectIso R U e S q hq)
            (DX.obj.map p.op s))
    exact (affineChartDivisorSourceSection_transport R U e S q hq tS).symm.trans
      (congrArg (affineChartDivisorSourceSection R U e S q hq) hDback)
  have hk : k = affineChartGenericUnitSourceIso R (e.hom ≫ U.ι) S q hq := rfl
  have ha : a = affineChartDivisorGenericUnitIso R U e hR := rfl
  have hr : r = (etalePostcompose (e.hom ≫ U.ι)).map
      (integralAffineCoordinateEtaleObjIso R A).inv := rfl
  have hsection := congrArg₂
    (fun (rr : (etalePostcompose (e.hom ≫ U.ι)).obj
        (affineEtaleSpecObject (R := R) (S := S)) ⟶
          (etalePostcompose (e.hom ≫ U.ι)).obj A.obj)
      (aa : (etaleRestriction (e.hom ≫ U.ι) AddCommGrpCat.{u}).obj DX ≅
        (etaleRestriction (e.hom ≫ U.ι) AddCommGrpCat.{u}).obj (etaleGenericUnitQuotient X)) =>
      (etaleGenericUnitQuotient X).obj.map rr.op
        (aa.hom.hom.app (op A.obj) (DX.obj.map c.inv.left.op s))) hr ha
  have hA := congrArg
    (fun z : (etaleGenericUnitQuotient X).obj.obj (op ((etalePostcompose (e.hom ≫ U.ι)).obj
        (affineEtaleSpecObject (R := R) (S := S)))) =>
      (affineChartGenericUnitSourceIso R (e.hom ≫ U.ι) S
        (Spec.map (CommRingCat.ofHom (algebraMap R S)) ≫ (e.hom ≫ U.ι))
        rfl).hom.hom.app (op ((zariskiToEtale (Spec S)).obj ⊤))
          ((etaleRestrictionTopObjectSectionIso
            (Spec.map (CommRingCat.ofHom (algebraMap R S)) ≫ (e.hom ≫ U.ι))
            (etaleGenericUnitQuotient X)).inv z)) hsection
  have hk0 :
      affineChartGenericUnitSourceIso R (e.hom ≫ U.ι) S
          (Spec.map (CommRingCat.ofHom (algebraMap R S)) ≫ (e.hom ≫ U.ι)) rfl =
        (let S' : Type u := Γ(A.obj.left, ⊤)
         let _ : CommRing S' := inferInstance
         let _ : IsDedekindDomain S' := integralAffineCoordinate_isDedekindDomain R A
         let algRS' : Algebra R S' := (integralAffineCoordinateBaseMap R A).hom.toAlgebra
         let _ : Algebra.Etale R S' :=
           RingHom.etale_algebraMap.mp (integralAffineCoordinateBaseMap_etale R A)
         let algRE' : Algebra R (FractionRing S') :=
           ((algebraMap S' (FractionRing S')).comp (algebraMap R S')).toAlgebra
         let _ : @IsScalarTower R S' (FractionRing S') algRS'.toSMul
             (inferInstance : Algebra S' (FractionRing S')).toSMul algRE'.toSMul :=
           IsScalarTower.of_algebraMap_eq (fun _ => rfl)
         let algKE' : Algebra (FractionRing R) (FractionRing S') :=
           integralAffineCoordinateFractionFieldAlgebra R A
         let _ : @IsScalarTower R (FractionRing R) (FractionRing S')
             (inferInstance : Algebra R (FractionRing R)).toSMul algKE'.toSMul
             algRE'.toSMul := integralAffineCoordinateFractionFieldAlgebra_isScalarTower R A
         affineChartGenericUnitSourceIso R (e.hom ≫ U.ι) S'
           (Spec.map (CommRingCat.ofHom (algebraMap R S')) ≫ (e.hom ≫ U.ι)) rfl) := rfl
  have hK0 := congrArg
    (fun b : (etaleRestriction
          (Spec.map (CommRingCat.ofHom (algebraMap R S)) ≫ (e.hom ≫ U.ι))
          AddCommGrpCat.{u}).obj (etaleGenericUnitQuotient X) ≅
        affineEtaleFractionRingUnitQuotient S =>
      b.hom.hom.app (op ((zariskiToEtale (Spec S)).obj ⊤))
        ((etaleRestrictionTopObjectSectionIso
          (Spec.map (CommRingCat.ofHom (algebraMap R S)) ≫ (e.hom ≫ U.ι))
          (etaleGenericUnitQuotient X)).inv
          ((etaleGenericUnitQuotient X).obj.map
            ((etalePostcompose (e.hom ≫ U.ι)).map
              (integralAffineCoordinateEtaleObjIso R A).inv).op
            ((affineChartDivisorGenericUnitIso R U e hR).hom.hom.app
              (op A.obj) (DX.obj.map c.inv.left.op s))))) hk0
  have h1 := congrArg₂
    (fun (b : (etaleRestriction q AddCommGrpCat.{u}).obj (etaleGenericUnitQuotient X) ≅
        affineEtaleFractionRingUnitQuotient S)
      (z : (etaleGenericUnitQuotient X).obj.obj (op (Scheme.Etale.mk q))) =>
      b.hom.hom.app (op ((zariskiToEtale (Spec S)).obj ⊤))
        ((etaleRestrictionTopObjectSectionIso q (etaleGenericUnitQuotient X)).inv z)) hk hQ
  have h2 := h1.trans ht
  have h3 := h2.trans hA
  have h4 := h3.trans hK0
  have h5 := h4.trans hs
  have h6 := h5.trans (congrArg
    (fun z => divisorGenericUnitQuotientGlobalSectionEquiv S
      (affineEtaleClosedPointDivisorSectionFinsupp (R := R) (S := S) hR z)) hd)
  exact h6