Module

ComapCurveChangeOfPointCompEqIsoPullbackModuleComparison.lean

Nyll.AlgebraicCurves.RelativeDivisors.BaseChange.ComapCurveChangeOfPointCompEqIsoPullbackModuleComparison
3 declarations indexed from sourceView source ↗

Rel Eff Cartier Div comap curve Change of Point comp eq and is Iso pullback Module

Comparison of is Iso morphism Restrict

Declarations

AlgebraicCurves.RelativeDivisors.Proofs.CartierPointBaseChangeIso.AlgebraicGeometry.RelEffCartierDiv.coe_support_ofPoint_I
Source context 12 commands

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

section ProofImplementation
open _root_.AlgebraicCurves.RelativeDivisors.Proofs
namespace AlgebraicCurves.RelativeDivisors.Proofs.CartierPointBaseChangeIso
attribute [-instance] AlgebraicGeometry.RelEffCartierDiv.isClosedImmersion_subschemeι_resProdMap
  AlgebraicGeometry.RelEffCartierDiv.isOpenImmersion_resProdMap
attribute [-simp] AlgebraicGeometry.RelEffCartierDiv.restrictAlong_extendAlong
  AlgebraicGeometry.RelEffCartierDiv.extendAlong_I
  AlgebraicGeometry.RelEffCartierDiv.resProdMap_snd
  AlgebraicGeometry.RelEffCartierDiv.restrictAlong_I
  AlgebraicGeometry.RelEffCartierDiv.extendAlong_restrictAlong
  AlgebraicGeometry.RelEffCartierDiv.resProdMap_fst_assoc
  AlgebraicGeometry.RelEffCartierDiv.resProdMap_snd_assoc
  AlgebraicGeometry.RelEffCartierDiv.resProdMap_fst
universe u
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.CategoryTheory.MonoidalCategory
open _root_.AlgebraicGeometry
open scoped _root_.AlgebraicGeometry in
open scoped _root_.AlgebraicGeometry.RelEffCartierDiv in
theorem AlgebraicGeometry.RelEffCartierDiv.coe_support_ofPoint_I
    {𝒞 S : Scheme.{u}} (f : 𝒞 ⟶ S) [IsSeparated f] {T : Scheme.{u}} {g : T ⟶ S}
    (a : T ⟶ 𝒞) (ha : a ≫ f = g) :
    ((RelEffCartierDiv.ofPoint f a ha).I.support : Set ↥(pullback f g)) = Set.range (graphOver f a
      ha)
AlgebraicCurves.RelativeDivisors.Proofs.CartierPointBaseChangeIso.AlgebraicGeometry.RelEffCartierDiv.supportedIn_ofPoint_of_range_subset
Source context 12 commands

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

section ProofImplementation
open _root_.AlgebraicCurves.RelativeDivisors.Proofs
namespace AlgebraicCurves.RelativeDivisors.Proofs.CartierPointBaseChangeIso
attribute [-instance] AlgebraicGeometry.RelEffCartierDiv.isClosedImmersion_subschemeι_resProdMap
  AlgebraicGeometry.RelEffCartierDiv.isOpenImmersion_resProdMap
attribute [-simp] AlgebraicGeometry.RelEffCartierDiv.restrictAlong_extendAlong
  AlgebraicGeometry.RelEffCartierDiv.extendAlong_I
  AlgebraicGeometry.RelEffCartierDiv.resProdMap_snd
  AlgebraicGeometry.RelEffCartierDiv.restrictAlong_I
  AlgebraicGeometry.RelEffCartierDiv.extendAlong_restrictAlong
  AlgebraicGeometry.RelEffCartierDiv.resProdMap_fst_assoc
  AlgebraicGeometry.RelEffCartierDiv.resProdMap_snd_assoc
  AlgebraicGeometry.RelEffCartierDiv.resProdMap_fst
universe u
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.CategoryTheory.MonoidalCategory
open _root_.AlgebraicGeometry
open scoped _root_.AlgebraicGeometry in
open scoped _root_.AlgebraicGeometry.RelEffCartierDiv in
theorem AlgebraicGeometry.RelEffCartierDiv.supportedIn_ofPoint_of_range_subset
    {𝒞 S : Scheme.{u}} (f : 𝒞 ⟶ S) [IsSeparated f] {T : Scheme.{u}} {g : T ⟶ S}
    (a : T ⟶ 𝒞) (ha : a ≫ f = g) (U : 𝒞.Opens) (haU : Set.range a ⊆ (U : Set 𝒞)) :
    (RelEffCartierDiv.ofPoint f a ha).SupportedIn U
AlgebraicGeometry.RelEffCartierDiv.comap_curveChange_ofPoint_comp_eq_and_isIso_pullbackModuleComparison_of_isIso_morphismRestrict
Source context 10 commands

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

section ProofImplementation
open _root_.AlgebraicCurves.RelativeDivisors.Proofs
open CartierPointBaseChangeIso.AlgebraicGeometry.RelEffCartierDiv (
  supportedIn_ofPoint_of_range_subset)
namespace AlgebraicGeometry.RelEffCartierDiv
open _root_.AlgebraicCurves.RelativeDivisors.Proofs.CartierPointBaseChangeIso
universe u
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.CategoryTheory.MonoidalCategory
open _root_.AlgebraicGeometry
theorem
 comap_curveChange_ofPoint_comp_eq_and_isIso_pullbackModuleComparison_of_isIso_morphismRestrict
    {R : Type u} [CommRing R] {C C' : Scheme.{u}}
    (c : C ⟶ Spec (CommRingCat.of R)) (c' : C' ⟶ Spec (CommRingCat.of R)) [IsSeparated c]
      [IsSeparated c']
    (i : C' ⟶ C) (hi : i ≫ c = c') [IsClosedImmersion i]
    {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of R)) (P : T ⟶ C') (hP : P ≫ c' = t)
    (U : C.Opens) (hPU : Set.range (P ≫ i).base ⊆ (U : Set C)) [IsIso (i ∣_ U)]
    [SmoothOfRelativeDimension 1 (U.ι ≫ c)] :
    (RelEffCartierDiv.ofPoint c (P ≫ i)
      (by rw [Category.assoc, hi, hP])).I.comap (RelPicard.curveChange i hi t) =
        (RelEffCartierDiv.ofPoint c' P hP).I ∧
      IsIso ((RelEffCartierDiv.ofPoint c (P ≫ i)
        (by rw [Category.assoc, hi, hP])).I.pullbackModuleComparison
        (RelPicard.curveChange i hi t)) := by
  set f' := RelPicard.curveChange i hi t with hf'
  have hPi : (P ≫ i) ≫ c = t := by rw [Category.assoc, hi, hP]
  have hA : (RelEffCartierDiv.ofPoint c (P ≫ i) hPi).I.comap f' = (RelEffCartierDiv.ofPoint c' P
    hP).I := by
    have hfac : graphOver c' P hP ≫ f' = graphOver c (P ≫ i) hPi := by
      apply pullback.hom_ext
      · simp only [graphOver_eq_lift, RelPicard.curveChange, hf', pullback.map, Category.assoc,
          pullback.lift_fst,
          pullback.lift_fst_assoc]
      · simp only [graphOver_eq_lift, RelPicard.curveChange, hf', pullback.map, Category.assoc,
          pullback.lift_snd,
          Category.comp_id]
    have : Mono f' := ⟨fun a b h => by
      apply pullback.hom_ext
      · have h1 := congrArg (· ≫ pullback.fst c t) h
        simp only [hf', RelPicard.curveChange, pullback.map, Category.assoc, pullback.lift_fst]
          at h1
        rw [← Category.assoc, ← Category.assoc] at h1
        exact (cancel_mono i).mp h1
      · have h2 := congrArg (· ≫ pullback.snd c t) h
        simpa only [hf', RelPicard.curveChange, pullback.map, Category.assoc, pullback.lift_snd,
          Category.comp_id] using h2⟩
    have hfst : pullback.fst f' (graphOver c (P ≫ i) hPi) =
        pullback.snd f' (graphOver c (P ≫ i) hPi) ≫ graphOver c' P hP := by
      rw [← cancel_mono f', Category.assoc, hfac, pullback.condition]
    have : IsIso (pullback.snd f' (graphOver c (P ≫ i) hPi)) := by
      refine ⟨⟨pullback.lift (graphOver c' P hP) (𝟙 T)
        (by rw [Category.id_comp, hfac]), ?_, by rw [pullback.lift_snd]⟩⟩
      apply pullback.hom_ext
      · rw [Category.assoc, pullback.lift_fst, Category.id_comp, hfst]
      · rw [Category.assoc, pullback.lift_snd, Category.comp_id, Category.id_comp]
    rw [RelEffCartierDiv.ofPoint_I, RelEffCartierDiv.ofPoint_I, ←
      Scheme.IdealSheafData.ker_fst_of_isClosedImmersion, hfst,
      Scheme.Hom.ker_comp_of_isIso]
  refine ⟨hA, ?_⟩
  have hI : (RelEffCartierDiv.ofPoint c (P ≫ i) hPi).I.IsInvertible :=
    RelEffCartierDiv.isInvertible_I_of_supportedIn U _
      (supportedIn_ofPoint_of_range_subset c (P ≫ i) hPi U hPU)
  have : SmoothOfRelativeDimension 1 ((i ⁻¹ᵁ U).ι ≫ c') := by
    have heq : (i ⁻¹ᵁ U).ι ≫ c' = (i ∣_ U) ≫ (U.ι ≫ c) := by
      rw [← hi, ← Category.assoc (i ∣_ U), morphismRestrict_ι, Category.assoc]
    rw [heq]
    exact AlgebraicGeometry.smoothOfRelativeDimension_comp (n := 0) (m := 1) (f := i ∣_ U) (g :=
      U.ι ≫ c)
  have hPU' : Set.range P.base ⊆ ((i ⁻¹ᵁ U : C'.Opens) : Set C') := by
    rintro _ ⟨y, rfl⟩
    change i.base (P.base y) ∈ U
    exact hPU ⟨y, by simp [Scheme.Hom.comp_base]⟩
  have hI' : ((RelEffCartierDiv.ofPoint c (P ≫ i) hPi).I.comap f').IsInvertible := by
    rw [hA]
    exact RelEffCartierDiv.isInvertible_I_of_supportedIn (i ⁻¹ᵁ U) _
      (supportedIn_ofPoint_of_range_subset c' P hP (i ⁻¹ᵁ U) hPU')
  exact Scheme.IdealSheafData.IsInvertible.isIso_pullbackModuleComparison f' hI hI'