AlgebraicCurves.Geometry.Sheaves.Proofs.Scheme_IdealSheafData_IsInvertible_exists_divisor_range_module_eq_lSpaceOn.AlgebraicGeometry.Scheme.IdealSheafData.IsInvertible.exists_divisor_range_module_eq_lSpaceOn'
Source context 21 commands
Surrounding namespaces, section variables, and local commands at this declaration.
@[expose] public section
open _root_.AlgebraicGeometry.Scheme.Modules.LocalTrivialization (rM rO rM_rM rO_rO rM_self rO_self
rM_smul hat_eq le_hat hat_le eApp eInv eInv_eApp eApp_eInv eApp_zero eApp_injective
restrict_smul_eq eApp_smul eApp_res ψ ψinv rM_roundtrip rM_roundtrip' rO_roundtrip rO_roundtrip'
ψ_ψinv ψinv_ψ ψ_injective ψ_zero ψ_smul ψ_res)
section ProofImplementation
open _root_.AlgebraicGeometry.Scheme.Modules.LocalTrivialization
(frame ψ_frame ψ_rM_frame eq_smul_frame IsGeneratorAt isGeneratorAt_frame isGeneratorAt_rM)
namespace AlgebraicCurves.Geometry.Sheaves.Proofs
namespace Scheme_IdealSheafData_IsInvertible_exists_divisor_range_module_eq_lSpaceOn
attribute [-instance]
AlgebraicCurve.Place.instIsRankOneDiscreteWithZeroMultiplicativeIntAdicValuation
AlgebraicCurve.Place.instIsTrivialOnWithZeroMultiplicativeIntAdicValuation
attribute [-simp]
AlgebraicCurve.Place.congrEquiv_symm_apply
AlgebraicCurve.RationalFunctionField.heightOneSpectrumOfIrreducible_asIdeal
AlgebraicCurve.Place.congrRingEquiv_toValuationSubring
AlgebraicCurve.Place.congrEquiv_apply
AlgebraicCurve.Place.coe_comapSymmRingEquiv_apply
AlgebraicCurve.RationalFunctionField.deg_placeOfPoint
universe u
open _root_.CategoryTheory
open _root_.AlgebraicGeometry
open _root_.Opposite
open _root_.TopologicalSpace
open scoped _root_.AlgebraicGeometry _root_.AlgebraicGeometry.Scheme
_root_.AlgebraicGeometry.Scheme.IdealSheafData
_root_.AlgebraicGeometry.Scheme.IdealSheafData.IsInvertible in
with_weak_namespace _root_.AlgebraicCurves.Geometry.Sheaves.Proofs
with_weak_namespace Scheme_IdealSheafData_IsInvertible_exists_divisor_range_module_eq_lSpaceOn
with_weak_namespace AlgebraicGeometry.Scheme
open _root_.AlgebraicGeometry.Scheme.Modules in
open Modules Modules.RatSec IdealSheafData.PresMod AlgebraicCurve in
with_weak_namespace _root_.AlgebraicCurves.Geometry.Sheaves.Proofs
with_weak_namespace Scheme_IdealSheafData_IsInvertible_exists_divisor_range_module_eq_lSpaceOn
Lean source · full declarationtheorem
AlgebraicGeometry.Scheme.IdealSheafData.IsInvertible.exists_divisor_range_module_eq_lSpaceOn'
{K : Type u} [Field K] {X : Scheme.{u}} (x : X ⟶ Spec (CommRingCat.of K))
[IsIntegral X] [IsSeparated x] [QuasiCompact x] [SmoothOfRelativeDimension 1 x]
{I : X.IdealSheafData} (hI : I.IsInvertible) :
let := (AlgebraicCurve.baseToFunctionField x).toAlgebra
∃ (D : AlgebraicCurve.Divisor K X.functionField)
(φ : ∀ U : X.Opens, Γ(I.module, U) →+ (X.functionField : Type u)),
((∀ (U V : X.Opens) (h : V ≤ U), Nonempty V →
∀ m : Γ(I.module, U), φ V (I.module.presheaf.map (homOfLE h).op m) = φ U m) ∧
(∀ (U : X.Opens) [Nonempty U] (a : Γ(X, U)) (m : Γ(I.module, U)),
φ U (a • m) = algebraMap Γ(X, U) X.functionField a * φ U m) ∧
(∀ U : X.Opens, Nonempty U → Function.Injective (φ U)) ∧
(∀ U : X.Opens, IsAffineOpen U → Nonempty U →
Set.range (φ U) = (AlgebraicCurve.lSpaceOn (AlgebraicCurve.placesOf x U) D : Set
X.functionField)) ∧
(∀ (U : X.Opens) (s : Γ(I.module, U)) (y : X), y ∈ U → IsClosed ({y} : Set X) →
(∀ (W : X.Opens) (h : W ≤ U), y ∈ W → ∀ m : Γ(I.module, W), ∃ a : Γ(X, W), m = a •
I.module.presheaf.map (homOfLE h).op s) →
∀ v : AlgebraicCurve.Place K X.functionField,
(algebraMap (X.presheaf.stalk y) X.functionField).range = v.toValuationSubring.toSubring
→
WithZero.exp (D v) = v.adicValuation (φ U s))) ∧
∃ c : X.functionField, c ≠ 0 ∧
(∀ (U : X.Opens) [Nonempty U] (m : Γ(I.module, U)),
φ U m = c * algebraMap Γ(X, U) X.functionField (Scheme.Modules.ofUnitSection U
(I.moduleι.app U m))) ∧
(∀ (U : X.Opens) (hU : IsAffineOpen U) (g : Γ(X, U)) (y : X) (hyU : y ∈ U), IsClosed ({y} :
Set X) →
I.ideal ⟨U, hU⟩ = Ideal.span {g} →
∀ v : AlgebraicCurve.Place K X.functionField,
(algebraMap (X.presheaf.stalk y) X.functionField).range =
v.toValuationSubring.toSubring →
haveI : Nonempty U := ⟨⟨y, hyU⟩⟩
D v + v.ord c + v.ord (algebraMap Γ(X, U) X.functionField g) = 0) := by
intro sharedOwner1
classical
have hM : Scheme.Modules.IsInvertible I.module := hI.isInvertible_module
obtain ⟨D, φ, h1, h2, h3, h4, h5⟩ :=
Scheme.Modules.IsInvertible.exists_divisor_range_eq_lSpaceOn x I.module hM
have htriv : ∀ z : X, ∃ (V : X.Opens) (_ : I.module.restrict V.ι ≅ SheafOfModules.unit
V.toScheme.ringCatSheaf),
z ∈ V := by
intro z
obtain ⟨V, hzV, ⟨e⟩⟩ := hM.1 z
exact ⟨V, (Scheme.Modules.restrictFunctorIsoPullback V.ι).app I.module ≪≫ e, hzV⟩
let φ₀ : ∀ U : X.Opens, Γ(I.module, U) →+ (X.functionField : Type u) := fun U =>
if hU : Nonempty U then
{ toFun := fun m => alg U (fn I U m)
map_zero' := by rw [fn_zero, alg_zero]
map_add' := fun m m' => by rw [fn_add, alg_add] }
else 0
have hφ₀ : ∀ (U : X.Opens) [hU : Nonempty U] (m : Γ(I.module, U)), φ₀ U m = alg U (fn I U m) := by
intro U hU m
simp only [φ₀, dite_eq_left hU]
rfl
have n1 : ∀ (U V : X.Opens) (h : V ≤ U), Nonempty V →
∀ m : Γ(I.module, U), φ₀ V (I.module.presheaf.map (homOfLE h).op m) = φ₀ U m := by
intro U V h hV m
have := hV
have : Nonempty U := let ⟨⟨z, hz⟩⟩ := hV; ⟨⟨z, h hz⟩⟩
rw [hφ₀, hφ₀]
change alg V (fn I V (rM I.module h m)) = _
rw [fn_rM, alg_rO]
have n2 : ∀ (U : X.Opens) [Nonempty U] (a : Γ(X, U)) (m : Γ(I.module, U)),
φ₀ U (a • m) = algebraMap Γ(X, U) X.functionField a * φ₀ U m := by
intro U hU a m
rw [hφ₀, hφ₀, fn_smul, alg_mul]
rfl
have n3 : ∀ U : X.Opens, Nonempty U → Function.Injective (φ₀ U) := by
intro U hU m m' h
rw [hφ₀, hφ₀] at h
exact fn_injective I U (alg_injective U h)
obtain ⟨V₀, e₀, hηV₀⟩ := htriv (genericPoint X)
have : Nonempty V₀ := ⟨⟨genericPoint X, hηV₀⟩⟩
have hsec : ∃ (U : X.Opens) (m : Γ(I.module, U)), m ≠ 0 := ⟨V₀, frame I.module V₀ e₀,
frame_ne_zero I V₀ e₀⟩
obtain ⟨c, hc0, hc⟩ := Scheme.Modules.exists_forall_eq_mul_of_presentations I.module φ₀ φ n1 h1 n2
h2 n3 h3 hsec
refine ⟨D, φ, ⟨h1, h2, h3, h4, h5⟩, c, hc0, ?_, ?_⟩
· intro U hU m
rw [hc U m, hφ₀]
rfl
· intro U hU g y hyU hy hg v hv
have : Nonempty U := ⟨⟨y, hyU⟩⟩
obtain ⟨V, e, hyV⟩ := htriv y
obtain ⟨W, hWaff, hyW, hWle⟩ :=
(Opens.isBasis_iff_nbhd.mp X.isBasis_affineOpens) (show y ∈ U ⊓ V from ⟨hyU, hyV⟩)
have hWU : W ≤ U := hWle.trans inf_le_left
have hWV : W ≤ V := hWle.trans inf_le_right
have : Nonempty W := ⟨⟨y, hyW⟩⟩
let s : Γ(I.module, W) := rM I.module hWV (frame I.module V e)
have hs : IsGeneratorAt I.module W s y := isGeneratorAt_rM I.module hWV _ y (isGeneratorAt_frame
I.module V e y)
let g' : Γ(X, W) := fn I W s
have hIW : I.ideal ⟨W, hWaff⟩ = Ideal.span {rO hWU g} := by
rw [← I.map_ideal (U := ⟨W, hWaff⟩) (V := ⟨U, hU⟩) hWU, hg, Ideal.map_span,
Set.image_singleton]
rfl
have hspan : Ideal.span {g'} = Ideal.span {rO hWU g} := by
rw [← hIW]
apply le_antisymm
· rw [Ideal.span_singleton_le_iff_mem]
have : g' ∈ Set.range (fn I W) := ⟨s, rfl⟩
rw [range_fn_affine I W hWaff] at this
exact this
· intro f hf
have hf' : f ∈ Set.range (fn I W) := by rw [range_fn_affine I W hWaff]; exact hf
obtain ⟨m, rfl⟩ := hf'
obtain ⟨a, ha⟩ := hs W le_rfl hyW m
rw [ha, rM_self, fn_smul]
exact Ideal.mul_mem_left _ a (Ideal.mem_span_singleton_self _)
have key := h5 W s y hyW hy (fun W' h hyW' m => hs W' h hyW' m) v hv
rw [hc W s, hφ₀, Valuation.map_mul] at key
change WithZero.exp (D v) = v.adicValuation c * v.adicValuation (alg W g') at key
rw [adicValuation_alg_eq_of_span_eq x W y hyW hy v hv g' (rO hWU g) hspan, alg_rO] at key
have hc' : v.adicValuation c ≠ 0 := (Valuation.ne_zero_iff _).mpr hc0
have hg' : v.adicValuation (alg U g) ≠ 0 := by
intro h0
rw [h0, mul_zero] at key
exact WithZero.exp_ne_zero key
have := congrArg WithZero.log key
rw [WithZero.log_exp, WithZero.log_mul hc' hg'] at this
simp only [Place.ord]
change D v + -WithZero.log (v.adicValuation c) + -WithZero.log (v.adicValuation (alg U g)) = 0
omega