Module

NormSectionsMulMapEqNorm.lean

Nyll.AlgebraicCurves.Geometry.Schemes.Sections.NormSectionsMulMapEqNorm
29 declarations indexed from sourceView source ↗

Scheme exists norm Sections mul map eq norm of is Finite of is Integrally Closed

Imports9
Imported by2

Declarations

AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms.AlgebraicGeometry.NormSections.genericPoint_mem
Source context 12 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms
open _root_.CategoryTheory
open _root_.AlgebraicGeometry
open _root_.TopologicalSpace
open _root_.Opposite
universe u
namespace AlgebraicGeometry
namespace NormSections
open _root_.AlgebraicGeometry
variable {X Y : Scheme.{u}}
theorem genericPoint_mem (Z : Scheme.{u}) [IsIntegral Z] (U : Z.Opens) [h : Nonempty U] :
  genericPoint Z ∈ U
AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms.AlgebraicGeometry.NormSections.base_genericPoint_eq_of_surjective
Source context 14 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms
open _root_.CategoryTheory
open _root_.AlgebraicGeometry
open _root_.TopologicalSpace
open _root_.Opposite
universe u
namespace AlgebraicGeometry
namespace NormSections
open _root_.AlgebraicGeometry
variable {X Y : Scheme.{u}}
section gen
variable (π : X ⟶ Y) [IsIntegral X] [IsIntegral Y]
theorem base_genericPoint_eq_of_surjective [Surjective π] : π.base (genericPoint X) = genericPoint
  Y
AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms.AlgebraicGeometry.NormSections.base_genericPoint_eq_of_flat
Source context 14 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms
open _root_.CategoryTheory
open _root_.AlgebraicGeometry
open _root_.TopologicalSpace
open _root_.Opposite
universe u
namespace AlgebraicGeometry
namespace NormSections
open _root_.AlgebraicGeometry
variable {X Y : Scheme.{u}}
section gen
variable (π : X ⟶ Y) [IsIntegral X] [IsIntegral Y]
theorem base_genericPoint_eq_of_flat [Flat π] : π.base (genericPoint X) = genericPoint Y
AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms.AlgebraicGeometry.NormSections.nonempty_preimage
Source context 15 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms
open _root_.CategoryTheory
open _root_.AlgebraicGeometry
open _root_.TopologicalSpace
open _root_.Opposite
universe u
namespace AlgebraicGeometry
namespace NormSections
open _root_.AlgebraicGeometry
variable {X Y : Scheme.{u}}
section gen
variable (π : X ⟶ Y) [IsIntegral X] [IsIntegral Y]
variable {π}
theorem nonempty_preimage (hgen : π.base (genericPoint X) = genericPoint Y) (V : Y.Opens)
  [Nonempty V] :
    Nonempty (π ⁻¹ᵁ V)
AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms.AlgebraicGeometry.NormSections.fieldMap

The function-field homomorphism induced by the morphism on generic-point stalks.

Source context 16 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms
open _root_.CategoryTheory
open _root_.AlgebraicGeometry
open _root_.TopologicalSpace
open _root_.Opposite
universe u
namespace AlgebraicGeometry
namespace NormSections
open _root_.AlgebraicGeometry
variable {X Y : Scheme.{u}}
section gen
variable (π : X ⟶ Y) [IsIntegral X] [IsIntegral Y]
variable {π}
variable (π) in
def fieldMap (hgen : π.base (genericPoint X) = genericPoint Y) : Y.functionField →+*
  X.functionField
AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms.AlgebraicGeometry.NormSections.germ_app
Source context 16 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms
open _root_.CategoryTheory
open _root_.AlgebraicGeometry
open _root_.TopologicalSpace
open _root_.Opposite
universe u
namespace AlgebraicGeometry
namespace NormSections
open _root_.AlgebraicGeometry
variable {X Y : Scheme.{u}}
section gen
variable (π : X ⟶ Y) [IsIntegral X] [IsIntegral Y]
variable {π}
variable (π) in
theorem germ_app (hgen : π.base (genericPoint X) = genericPoint Y) (V : Y.Opens) [Nonempty V] (a :
  Γ(Y, V)) :
    @Scheme.germToFunctionField X _ (π ⁻¹ᵁ V) (nonempty_preimage hgen V) (π.app V a) =
      fieldMap π hgen (Y.germToFunctionField V a)
AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms.AlgebraicGeometry.NormSections.germ_res
Source context 12 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms
open _root_.CategoryTheory
open _root_.AlgebraicGeometry
open _root_.TopologicalSpace
open _root_.Opposite
universe u
namespace AlgebraicGeometry
namespace NormSections
open _root_.AlgebraicGeometry
variable {X Y : Scheme.{u}}
theorem germ_res {Z : Scheme.{u}} [IsIntegral Z] {V V' : Z.Opens} (h : V' ≤ V) [Nonempty V]
  [Nonempty V']
    (s : Γ(Z, V)) : Z.germToFunctionField V' (Z.presheaf.map (homOfLE h).op s) =
      Z.germToFunctionField V s
AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms.AlgebraicGeometry.NormSections.subsingleton_of_eq_bot
Source context 12 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms
open _root_.CategoryTheory
open _root_.AlgebraicGeometry
open _root_.TopologicalSpace
open _root_.Opposite
universe u
namespace AlgebraicGeometry
namespace NormSections
open _root_.AlgebraicGeometry
variable {X Y : Scheme.{u}}
theorem subsingleton_of_eq_bot {Z : Scheme.{u}} {V : Z.Opens} (hV : V = ⊥) (s t : Γ(Z, V)) : s = t
AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms.AlgebraicGeometry.NormSections.eq_bot_or_nonempty
Source context 12 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms
open _root_.CategoryTheory
open _root_.AlgebraicGeometry
open _root_.TopologicalSpace
open _root_.Opposite
universe u
namespace AlgebraicGeometry
namespace NormSections
open _root_.AlgebraicGeometry
variable {X Y : Scheme.{u}}
theorem eq_bot_or_nonempty {Z : Scheme.{u}} (V : Z.Opens) : V = ⊥ ∨ Nonempty V
AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms.AlgebraicGeometry.NormSections.S4.preimage_le
Source context 15 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms
open _root_.CategoryTheory
open _root_.AlgebraicGeometry
open _root_.TopologicalSpace
open _root_.Opposite
universe u
namespace AlgebraicGeometry
namespace NormSections
namespace S4
open _root_.AlgebraicGeometry
open CategoryTheory.Limits
variable {X Y X' Y' : Scheme.{u}} (π : X ⟶ Y) (g : Y' ⟶ Y) (π' : X' ⟶ Y') (g' : X' ⟶ X)
  (sq : IsPullback g' π' π g)
include sq in
theorem preimage_le (V : Y.Opens) (V' : Y'.Opens) (hV' : V' ≤ g ⁻¹ᵁ V) : π' ⁻¹ᵁ V' ≤ g' ⁻¹ᵁ (π ⁻¹ᵁ
  V)
AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms.AlgebraicGeometry.NormSections.S4.isPullback_resLE
Source context 15 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms
open _root_.CategoryTheory
open _root_.AlgebraicGeometry
open _root_.TopologicalSpace
open _root_.Opposite
universe u
namespace AlgebraicGeometry
namespace NormSections
namespace S4
open _root_.AlgebraicGeometry
open CategoryTheory.Limits
variable {X Y X' Y' : Scheme.{u}} (π : X ⟶ Y) (g : Y' ⟶ Y) (π' : X' ⟶ Y') (g' : X' ⟶ X)
  (sq : IsPullback g' π' π g)
include sq in
theorem isPullback_resLE (V : Y.Opens) (V' : Y'.Opens) (hV' : V' ≤ g ⁻¹ᵁ V) :
    IsPullback (g'.resLE (π ⁻¹ᵁ V) (π' ⁻¹ᵁ V') (preimage_le π g π' g' sq V V' hV'))
      (π'.resLE V' (π' ⁻¹ᵁ V') le_rfl) (π.resLE V (π ⁻¹ᵁ V) le_rfl) (g.resLE V V' hV')
AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms.AlgebraicGeometry.NormSections.S4.isPushout_appTop
Source context 14 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms
open _root_.CategoryTheory
open _root_.AlgebraicGeometry
open _root_.TopologicalSpace
open _root_.Opposite
universe u
namespace AlgebraicGeometry
namespace NormSections
namespace S4
open _root_.AlgebraicGeometry
open CategoryTheory.Limits
variable {X Y X' Y' : Scheme.{u}} (π : X ⟶ Y) (g : Y' ⟶ Y) (π' : X' ⟶ Y') (g' : X' ⟶ X)
  (sq : IsPullback g' π' π g)
theorem isPushout_appTop {P Q R S : Scheme.{u}} [IsAffine P] [IsAffine Q] [IsAffine R] [IsAffine S]
    {fst : P ⟶ Q} {snd : P ⟶ R} {f : Q ⟶ S} {k : R ⟶ S} (h : IsPullback fst snd f k) :
    IsPushout f.appTop k.appTop fst.appTop snd.appTop
AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms.AlgebraicGeometry.NormSections.S4.isPushout_app
Source context 15 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms
open _root_.CategoryTheory
open _root_.AlgebraicGeometry
open _root_.TopologicalSpace
open _root_.Opposite
universe u
namespace AlgebraicGeometry
namespace NormSections
namespace S4
open _root_.AlgebraicGeometry
open CategoryTheory.Limits
variable {X Y X' Y' : Scheme.{u}} (π : X ⟶ Y) (g : Y' ⟶ Y) (π' : X' ⟶ Y') (g' : X' ⟶ X)
  (sq : IsPullback g' π' π g)
include sq in
theorem isPushout_app (V : Y.Opens) (hV : IsAffineOpen V) (V' : Y'.Opens) (hV'a : IsAffineOpen V')
    (hV' : V' ≤ g ⁻¹ᵁ V) [IsAffineHom π] [IsAffineHom π'] :
    IsPushout (π.app V) (g.appLE V V' hV')
      (g'.appLE (π ⁻¹ᵁ V) (π' ⁻¹ᵁ V') (preimage_le π g π' g' sq V V' hV')) (π'.app V')
AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms.AlgebraicGeometry.NormSections.germ_map
Source context 11 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms
open _root_.CategoryTheory
open _root_.AlgebraicGeometry
open _root_.TopologicalSpace
open _root_.Opposite
universe u
namespace AlgebraicGeometry
namespace NormSections
open _root_.AlgebraicGeometry
theorem germ_map {Z : Scheme.{u}} [IsIntegral Z] {V V' : Z.Opens} (i : V' ⟶ V) [Nonempty V]
  [Nonempty V']
    (s : Γ(Z, V)) : Z.germToFunctionField V' (Z.presheaf.map i.op s) = Z.germToFunctionField V s
AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms.AlgebraicGeometry.NormSections.exists_isAffineOpen_le
Source context 11 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms
open _root_.CategoryTheory
open _root_.AlgebraicGeometry
open _root_.TopologicalSpace
open _root_.Opposite
universe u
namespace AlgebraicGeometry
namespace NormSections
open _root_.AlgebraicGeometry
theorem exists_isAffineOpen_le {Z : Scheme.{u}} (W : Z.Opens) [hW : Nonempty W] :
    ∃ V : Z.Opens, IsAffineOpen V ∧ V ≤ W ∧ Nonempty V
AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms.AlgebraicGeometry.NormSections.app_injective
Source context 11 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms
open _root_.CategoryTheory
open _root_.AlgebraicGeometry
open _root_.TopologicalSpace
open _root_.Opposite
universe u
namespace AlgebraicGeometry
namespace NormSections
open _root_.AlgebraicGeometry
theorem app_injective {X Y : Scheme.{u}} (π : X ⟶ Y) [IsIntegral X] [IsIntegral Y]
    (hgen : π.base (genericPoint X) = genericPoint Y) (V : Y.Opens) [Nonempty V] :
    Function.Injective (π.app V)
AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms.AlgebraicGeometry.NormSections.germ_app_eq_norm_of_isPullback
Source context 11 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms
open _root_.CategoryTheory
open _root_.AlgebraicGeometry
open _root_.TopologicalSpace
open _root_.Opposite
universe u
namespace AlgebraicGeometry
namespace NormSections
open _root_.AlgebraicGeometry
theorem germ_app_eq_norm_of_isPullback
    {X Y X' Y' : Scheme.{u}} (π : X ⟶ Y) (g : Y' ⟶ Y) (π' : X' ⟶ Y') (g' : X' ⟶ X) (sq :
      IsPullback g' π' π g)
    [IsFinite π] [Surjective π] [IsIntegral X] [IsIntegral Y] [Flat g] [IsIntegral X'] [IsIntegral
      Y']
    [IsFinite π'] [Surjective π']
    (W : Y.Opens) [Nonempty W] [Nonempty (g ⁻¹ᵁ W)] [Nonempty (π ⁻¹ᵁ W)] [Nonempty (π' ⁻¹ᵁ (g ⁻¹ᵁ
      W))]
    (a : Γ(X, π ⁻¹ᵁ W)) (t : Γ(Y, W))
    (ht : letI := (fieldMap π (base_genericPoint_eq_of_surjective π)).toAlgebra
      Y.germToFunctionField W t = Algebra.norm Y.functionField (X.germToFunctionField (π ⁻¹ᵁ W)
        a)) :
    letI := (fieldMap π' (base_genericPoint_eq_of_surjective π')).toAlgebra
    Y'.germToFunctionField (g ⁻¹ᵁ W) (g.app W t) =
      Algebra.norm Y'.functionField (X'.germToFunctionField (π' ⁻¹ᵁ (g ⁻¹ᵁ W))
        (X'.presheaf.map (eqToHom (show π' ⁻¹ᵁ (g ⁻¹ᵁ W) = g' ⁻¹ᵁ (π ⁻¹ᵁ W) by
          rw [← Scheme.Hom.comp_preimage, ← Scheme.Hom.comp_preimage, sq.w])).op ((g'.app (π ⁻¹ᵁ
            W)).hom a))) := by
  have hπ := base_genericPoint_eq_of_surjective π
  have hπ' := base_genericPoint_eq_of_surjective π'
  have hg := base_genericPoint_eq_of_flat g
  have : Flat g' := MorphismProperty.of_isPullback (P := @Flat) sq.flip inferInstance
  have hg' := base_genericPoint_eq_of_flat g'
  let algKL : Algebra Y.functionField X.functionField := (fieldMap π hπ).toAlgebra
  let algK'L' : Algebra Y'.functionField X'.functionField := (fieldMap π' hπ').toAlgebra
  have : Nonempty (g' ⁻¹ᵁ (π ⁻¹ᵁ W)) := nonempty_preimage hg' _
  rw [germ_app hg W t, ht, germ_map, germ_app hg' (π ⁻¹ᵁ W) a]
  change fieldMap g hg (Algebra.norm Y.functionField (X.germToFunctionField (π ⁻¹ᵁ W) a)) =
    Algebra.norm Y'.functionField (fieldMap g' hg' (X.germToFunctionField (π ⁻¹ᵁ W) a))
  obtain ⟨V, hVaff, hVW, hVne⟩ := exists_isAffineOpen_le W
  have := hVne
  have : Nonempty (g ⁻¹ᵁ V) := nonempty_preimage hg V
  obtain ⟨V', hV'aff, hV'le, hV'ne⟩ := exists_isAffineOpen_le (g ⁻¹ᵁ V)
  have := hV'ne
  have : Nonempty (π ⁻¹ᵁ V) := nonempty_preimage hπ V
  have : Nonempty (π' ⁻¹ᵁ V') := nonempty_preimage hπ' V'
  have : Nonempty (g' ⁻¹ᵁ (π ⁻¹ᵁ V)) := nonempty_preimage hg' _
  rw [← germ_res (π.preimage_mono hVW) a]
  set b := X.presheaf.map (homOfLE (π.preimage_mono hVW)).op a with hb
  have hle := S4.preimage_le π g π' g' sq V V' hV'le
  let iAB : Algebra Γ(Y, V) Γ(X, π ⁻¹ᵁ V) := (π.app V).hom.toAlgebra
  let iAA' : Algebra Γ(Y, V) Γ(Y', V') := (g.appLE V V' hV'le).hom.toAlgebra
  let iA'B' : Algebra Γ(Y', V') Γ(X', π' ⁻¹ᵁ V') := (π'.app V').hom.toAlgebra
  let iBB' : Algebra Γ(X, π ⁻¹ᵁ V) Γ(X', π' ⁻¹ᵁ V') := (g'.appLE (π ⁻¹ᵁ V) (π' ⁻¹ᵁ V')
    hle).hom.toAlgebra
  let iAB' : Algebra Γ(Y, V) Γ(X', π' ⁻¹ᵁ V') := ((π'.app V').hom.comp (g.appLE V V'
    hV'le).hom).toAlgebra
  have : IsScalarTower Γ(Y, V) Γ(Y', V') Γ(X', π' ⁻¹ᵁ V') := IsScalarTower.of_algebraMap_eq (fun _
    => rfl)
  have hP := S4.isPushout_app π g π' g' sq V hVaff V' hV'aff hV'le
  have : IsScalarTower Γ(Y, V) Γ(X, π ⁻¹ᵁ V) Γ(X', π' ⁻¹ᵁ V') := by
    refine IsScalarTower.of_algebraMap_eq (fun x => ?_)
    have h := CategoryTheory.ConcreteCategory.congr_hom hP.w x
    rw [CategoryTheory.ConcreteCategory.comp_apply, CategoryTheory.ConcreteCategory.comp_apply] at h
    exact h.symm
  have : Algebra.IsPushout Γ(Y, V) Γ(X, π ⁻¹ᵁ V) Γ(Y', V') Γ(X', π' ⁻¹ᵁ V') :=
    CommRingCat.isPushout_iff_isPushout.mp hP
  have : Module.Finite Γ(Y, V) Γ(X, π ⁻¹ᵁ V) := RingHom.finite_algebraMap.mp (IsFinite.finite_app
    π V hVaff)
  have hAB : Function.Injective (algebraMap Γ(Y, V) Γ(X, π ⁻¹ᵁ V)) := app_injective π hπ V
  have hA'B' : Function.Injective (algebraMap Γ(Y', V') Γ(X', π' ⁻¹ᵁ V')) := app_injective π' hπ' V'
  let algAL : Algebra Γ(Y, V) X.functionField :=
    ((X.germToFunctionField (π ⁻¹ᵁ V)).hom.comp (π.app V).hom).toAlgebra
  have : IsScalarTower Γ(Y, V) Γ(X, π ⁻¹ᵁ V) X.functionField := IsScalarTower.of_algebraMap_eq
    (fun _ => rfl)
  have : IsScalarTower Γ(Y, V) Y.functionField X.functionField := by
    refine IsScalarTower.of_algebraMap_eq (fun x => ?_)
    change (X.germToFunctionField (π ⁻¹ᵁ V)) (π.app V x) = fieldMap π hπ (Y.germToFunctionField V x)
    exact germ_app hπ V x
  let algA'L' : Algebra Γ(Y', V') X'.functionField :=
    ((X'.germToFunctionField (π' ⁻¹ᵁ V')).hom.comp (π'.app V').hom).toAlgebra
  have : IsScalarTower Γ(Y', V') Γ(X', π' ⁻¹ᵁ V') X'.functionField :=
    IsScalarTower.of_algebraMap_eq (fun _ => rfl)
  have : IsScalarTower Γ(Y', V') Y'.functionField X'.functionField := by
    refine IsScalarTower.of_algebraMap_eq (fun x => ?_)
    change (X'.germToFunctionField (π' ⁻¹ᵁ V')) (π'.app V' x) = fieldMap π' hπ'
      (Y'.germToFunctionField V' x)
    exact germ_app hπ' V' x
  have : IsFractionRing Γ(Y, V) Y.functionField := functionField_isFractionRing_of_isAffineOpen Y
    V hVaff
  have : IsFractionRing Γ(X, π ⁻¹ᵁ V) X.functionField :=
    functionField_isFractionRing_of_isAffineOpen X _ (hVaff.preimage π)
  have : IsFractionRing Γ(Y', V') Y'.functionField := functionField_isFractionRing_of_isAffineOpen
    Y' V' hV'aff
  have : IsFractionRing Γ(X', π' ⁻¹ᵁ V') X'.functionField :=
    functionField_isFractionRing_of_isAffineOpen X' _ (hV'aff.preimage π')
  have hφ : (fieldMap g hg).comp (algebraMap Γ(Y, V) Y.functionField) =
      (algebraMap Γ(Y', V') Y'.functionField).comp (algebraMap Γ(Y, V) Γ(Y', V')) := by
    ext x
    change fieldMap g hg (Y.germToFunctionField V x) =
      Y'.germToFunctionField V' (Y'.presheaf.map (homOfLE hV'le).op (g.app V x))
    rw [← germ_app hg V x, germ_res]
  have hd := Algebra.norm_algebraMap_eq_of_isPushout_of_isFractionRing
    (A := Γ(Y, V)) (B := Γ(X, π ⁻¹ᵁ V)) (A' := Γ(Y', V')) (B' := Γ(X', π' ⁻¹ᵁ V')) hAB hA'B'
    Y.functionField X.functionField Y'.functionField X'.functionField (fieldMap g hg) hφ b
  have eB : algebraMap Γ(X', π' ⁻¹ᵁ V') X'.functionField (algebraMap Γ(X, π ⁻¹ᵁ V) Γ(X', π' ⁻¹ᵁ
    V') b) =
      fieldMap g' hg' (X.germToFunctionField (π ⁻¹ᵁ V) b) := by
    change X'.germToFunctionField (π' ⁻¹ᵁ V')
      (X'.presheaf.map (homOfLE hle).op (g'.app (π ⁻¹ᵁ V) b)) = _
    rw [germ_res, germ_app hg']
  rw [eB] at hd
  exact hd
AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms.AlgebraicGeometry.NormSections.normGerm

The field norm of the generic-point germ of a section.

Source context 14 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms
open _root_.CategoryTheory
open _root_.AlgebraicGeometry
open _root_.TopologicalSpace
open _root_.Opposite
universe u
namespace AlgebraicGeometry
namespace NormSections
open _root_.AlgebraicGeometry
variable {X Y : Scheme.{u}}
section normGerm
variable (π : X ⟶ Y) [IsIntegral X] [IsIntegral Y]
def normGerm (hgen : π.base (genericPoint X) = genericPoint Y) (W : Y.Opens)
  [Nonempty W]
    (a : Γ(X, π ⁻¹ᵁ W)) : Y.functionField
AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms.AlgebraicGeometry.NormSections.normGerm_def
Source context 15 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms
open _root_.CategoryTheory
open _root_.AlgebraicGeometry
open _root_.TopologicalSpace
open _root_.Opposite
universe u
namespace AlgebraicGeometry
namespace NormSections
open _root_.AlgebraicGeometry
variable {X Y : Scheme.{u}}
section normGerm
variable (π : X ⟶ Y) [IsIntegral X] [IsIntegral Y]
variable {π}
theorem normGerm_def (hgen : π.base (genericPoint X) = genericPoint Y) (W : Y.Opens) [Nonempty W]
    [Nonempty (π ⁻¹ᵁ W)] (a : Γ(X, π ⁻¹ᵁ W)) :
    normGerm π hgen W a =
      letI := (fieldMap π hgen).toAlgebra
      Algebra.norm Y.functionField (X.germToFunctionField (π ⁻¹ᵁ W) a) := rfl
AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms.AlgebraicGeometry.NormSections.normGerm_one
Source context 15 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms
open _root_.CategoryTheory
open _root_.AlgebraicGeometry
open _root_.TopologicalSpace
open _root_.Opposite
universe u
namespace AlgebraicGeometry
namespace NormSections
open _root_.AlgebraicGeometry
variable {X Y : Scheme.{u}}
section normGerm
variable (π : X ⟶ Y) [IsIntegral X] [IsIntegral Y]
variable {π}
theorem normGerm_one (hgen : π.base (genericPoint X) = genericPoint Y) (W : Y.Opens) [Nonempty W] :
    normGerm π hgen W 1 = 1
AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms.AlgebraicGeometry.NormSections.normGerm_mul
Source context 15 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms
open _root_.CategoryTheory
open _root_.AlgebraicGeometry
open _root_.TopologicalSpace
open _root_.Opposite
universe u
namespace AlgebraicGeometry
namespace NormSections
open _root_.AlgebraicGeometry
variable {X Y : Scheme.{u}}
section normGerm
variable (π : X ⟶ Y) [IsIntegral X] [IsIntegral Y]
variable {π}
theorem normGerm_mul (hgen : π.base (genericPoint X) = genericPoint Y) (W : Y.Opens) [Nonempty W]
    (a b : Γ(X, π ⁻¹ᵁ W)) : normGerm π hgen W (a * b) = normGerm π hgen W a * normGerm π hgen W b
AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms.AlgebraicGeometry.NormSections.normGerm_res
Source context 15 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms
open _root_.CategoryTheory
open _root_.AlgebraicGeometry
open _root_.TopologicalSpace
open _root_.Opposite
universe u
namespace AlgebraicGeometry
namespace NormSections
open _root_.AlgebraicGeometry
variable {X Y : Scheme.{u}}
section normGerm
variable (π : X ⟶ Y) [IsIntegral X] [IsIntegral Y]
variable {π}
theorem normGerm_res (hgen : π.base (genericPoint X) = genericPoint Y) {W W' : Y.Opens} (h : W' ≤
  W) [Nonempty W]
    [Nonempty W'] (a : Γ(X, π ⁻¹ᵁ W)) :
    normGerm π hgen W' (X.presheaf.map (homOfLE (π.preimage_mono h)).op a) = normGerm π hgen W a
AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms.AlgebraicGeometry.NormSections.Nf

A section with the prescribed norm germ when one exists, and the unit section otherwise.

Source context 13 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms
open _root_.CategoryTheory
open _root_.AlgebraicGeometry
open _root_.TopologicalSpace
open _root_.Opposite
universe u
namespace AlgebraicGeometry
namespace NormSections
open _root_.AlgebraicGeometry
variable {X Y : Scheme.{u}}
open Classical in
def Nf ⦃X Y : Scheme.{u}⦄ (π : X ⟶ Y) (W : Y.Opens) (a : Γ(X, π ⁻¹ᵁ W)) : Γ(Y, W)
AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms.AlgebraicGeometry.NormSections.germ_Nf
Source context 12 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms
open _root_.CategoryTheory
open _root_.AlgebraicGeometry
open _root_.TopologicalSpace
open _root_.Opposite
universe u
namespace AlgebraicGeometry
namespace NormSections
open _root_.AlgebraicGeometry
variable {X Y : Scheme.{u}}
theorem germ_Nf {π : X ⟶ Y} [IsIntegral X] [IsIntegral Y] (hgen : π.base (genericPoint X) =
  genericPoint Y)
    (W : Y.Opens) [Nonempty W] (a : Γ(X, π ⁻¹ᵁ W)) (hex : ∃ s : Γ(Y, W), Y.germToFunctionField W s
      = normGerm π hgen W a) :
    Y.germToFunctionField W (Nf π W a) = normGerm π hgen W a
AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms.AlgebraicGeometry.NormSections.exists_germ_eq_normGerm_of_isAffineOpen
Source context 14 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms
open _root_.CategoryTheory
open _root_.AlgebraicGeometry
open _root_.TopologicalSpace
open _root_.Opposite
universe u
namespace AlgebraicGeometry
namespace NormSections
open _root_.AlgebraicGeometry
variable {X Y : Scheme.{u}}
section Existence
variable (π : X ⟶ Y) [IsIntegral X] [IsIntegral Y] [IsFinite π] [Surjective π]
theorem exists_germ_eq_normGerm_of_isAffineOpen (V : Y.Opens) (hV : IsAffineOpen V) [Nonempty V]
    (hic : IsIntegrallyClosed Γ(Y, V)) (b : Γ(X, π ⁻¹ᵁ V)) :
    ∃ s : Γ(Y, V), Y.germToFunctionField V s = normGerm π (base_genericPoint_eq_of_surjective π) V
      b
AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms.AlgebraicGeometry.NormSections.exists_germ_eq_normGerm
Source context 14 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms
open _root_.CategoryTheory
open _root_.AlgebraicGeometry
open _root_.TopologicalSpace
open _root_.Opposite
universe u
namespace AlgebraicGeometry
namespace NormSections
open _root_.AlgebraicGeometry
variable {X Y : Scheme.{u}}
section Existence
variable (π : X ⟶ Y) [IsIntegral X] [IsIntegral Y] [IsFinite π] [Surjective π]
theorem exists_germ_eq_normGerm (hic : ∀ U : Y.Opens, IsAffineOpen U → IsIntegrallyClosed Γ(Y, U))
    (W : Y.Opens) [Nonempty W] (a : Γ(X, π ⁻¹ᵁ W)) :
    ∃ s : Γ(Y, W), Y.germToFunctionField W s = normGerm π (base_genericPoint_eq_of_surjective π) W
      a
AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms.AlgebraicGeometry.NormSections.isLocalization_functionField
Source context 15 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms
open _root_.CategoryTheory
open _root_.AlgebraicGeometry
open _root_.TopologicalSpace
open _root_.Opposite
universe u
namespace AlgebraicGeometry
namespace NormSections
open _root_.AlgebraicGeometry
variable {X Y : Scheme.{u}}
section Affine
variable (π : X ⟶ Y) [IsIntegral X] [IsIntegral Y] [IsFinite π] [Surjective π]
omit [Surjective π] in
theorem isLocalization_functionField (W : Y.Opens) (hW : IsAffineOpen W) [Nonempty W] [Nonempty (π
  ⁻¹ᵁ W)]
    (hinj : Function.Injective (π.app W)) :
    let := (π.app W).hom.toAlgebra
    IsLocalization (Algebra.algebraMapSubmonoid Γ(X, π ⁻¹ᵁ W) (nonZeroDivisors Γ(Y, W)))
      X.functionField := by
  let algAB : Algebra Γ(Y, W) Γ(X, π ⁻¹ᵁ W) := (π.app W).hom.toAlgebra
  replace hinj : Function.Injective (algebraMap Γ(Y, W) Γ(X, π ⁻¹ᵁ W)) := hinj
  have hW' : IsAffineOpen (π ⁻¹ᵁ W) := hW.preimage π
  have : IsFractionRing Γ(X, π ⁻¹ᵁ W) X.functionField :=
    functionField_isFractionRing_of_isAffineOpen X _ hW'
  have : Module.Finite Γ(Y, W) Γ(X, π ⁻¹ᵁ W) :=
    RingHom.finite_algebraMap.mp (IsFinite.finite_app π W hW)
  have : Algebra.IsIntegral Γ(Y, W) Γ(X, π ⁻¹ᵁ W) := Algebra.IsIntegral.of_finite _ _
  have : Algebra.IsAlgebraic Γ(Y, W) Γ(X, π ⁻¹ᵁ W) := Algebra.IsIntegral.isAlgebraic
  refine (IsLocalization.iff_of_le_of_exists_dvd
    (Algebra.algebraMapSubmonoid Γ(X, π ⁻¹ᵁ W) (nonZeroDivisors Γ(Y, W))) (nonZeroDivisors Γ(X, π
      ⁻¹ᵁ W))
    ?_ ?_).mpr inferInstance
  · rintro _ ⟨r, hr, rfl⟩
    apply mem_nonZeroDivisors_of_ne_zero
    rw [map_ne_zero_iff _ hinj]
    exact nonZeroDivisors.ne_zero hr
  · intro n hn
    obtain ⟨r, hr, hdvd⟩ := (Algebra.IsAlgebraic.isAlgebraic (R := Γ(Y, W)) n).exists_ne_zero_dvd hn
    exact ⟨algebraMap _ _ r, ⟨r, mem_nonZeroDivisors_of_ne_zero hr, rfl⟩, hdvd⟩
AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms.AlgebraicGeometry.NormSections.germ_norm_eq_normGerm
Source context 14 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms
open _root_.CategoryTheory
open _root_.AlgebraicGeometry
open _root_.TopologicalSpace
open _root_.Opposite
universe u
namespace AlgebraicGeometry
namespace NormSections
open _root_.AlgebraicGeometry
variable {X Y : Scheme.{u}}
section Affine
variable (π : X ⟶ Y) [IsIntegral X] [IsIntegral Y] [IsFinite π] [Surjective π]
theorem germ_norm_eq_normGerm (W : Y.Opens) (hW : IsAffineOpen W) [Nonempty W]
    (hfree : letI := (π.app W).hom.toAlgebra; Module.Free Γ(Y, W) Γ(X, π ⁻¹ᵁ W))
    (hfin : letI := (π.app W).hom.toAlgebra; Module.Finite Γ(Y, W) Γ(X, π ⁻¹ᵁ W)) (a : Γ(X, π ⁻¹ᵁ
      W)) :
    letI := (π.app W).hom.toAlgebra
    Y.germToFunctionField W (Algebra.norm Γ(Y, W) a) = normGerm π
      (base_genericPoint_eq_of_surjective π) W a := by
  have hgen := base_genericPoint_eq_of_surjective π
  have : Nonempty (π ⁻¹ᵁ W) := nonempty_preimage hgen W
  let algAB : Algebra Γ(Y, W) Γ(X, π ⁻¹ᵁ W) := (π.app W).hom.toAlgebra
  have := hfree
  have := hfin
  have hinj : Function.Injective (π.app W) := FaithfulSMul.algebraMap_injective Γ(Y, W) Γ(X, π ⁻¹ᵁ
    W)
  let : Algebra Y.functionField X.functionField := (fieldMap π hgen).toAlgebra
  let algAL : Algebra Γ(Y, W) X.functionField :=
    ((X.germToFunctionField (π ⁻¹ᵁ W)).hom.comp (π.app W).hom).toAlgebra
  have : IsScalarTower Γ(Y, W) Γ(X, π ⁻¹ᵁ W) X.functionField :=
    IsScalarTower.of_algebraMap_eq (fun _ => rfl)
  have : IsScalarTower Γ(Y, W) Y.functionField X.functionField := by
    refine IsScalarTower.of_algebraMap_eq (fun a => ?_)
    change (X.germToFunctionField (π ⁻¹ᵁ W)) (π.app W a) = fieldMap π hgen (Y.germToFunctionField
      W a)
    exact germ_app hgen W a
  have : IsFractionRing Γ(Y, W) Y.functionField := functionField_isFractionRing_of_isAffineOpen Y
    W hW
  have := isLocalization_functionField π W hW hinj
  rw [normGerm_def]
  exact (Algebra.norm_localization Γ(Y, W) (nonZeroDivisors Γ(Y, W)) (Rₘ := Y.functionField)
    (Sₘ := X.functionField) a).symm
AlgebraicGeometry.Scheme.exists_normSections_mul_map_eq_norm_of_isFinite_of_isIntegrallyClosed
Source context 11 commands

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

@[expose] public section
section ProofImplementation
section
universe u
open _root_.CategoryTheory
open _root_.AlgebraicGeometry
open _root_.TopologicalSpace
open _root_.Opposite
open _root_.AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms
open _root_.AlgebraicCurves.Geometry.Schemes.Proofs.NormGerms.AlgebraicGeometry.NormSections
namespace AlgebraicGeometry
theorem Scheme.exists_normSections_mul_map_eq_norm_of_isFinite_of_isIntegrallyClosed :
    ∃ Nf : ∀ ⦃X Y : Scheme.{u}⦄ (π : X ⟶ Y) (W : Y.Opens), Γ(X, π ⁻¹ᵁ W) → Γ(Y, W),
      ∀ ⦃X Y : Scheme.{u}⦄ (π : X ⟶ Y) [IsFinite π] [Surjective π] [IsIntegral X] [IsIntegral Y],
        (∀ U : Y.Opens, IsAffineOpen U → IsIntegrallyClosed Γ(Y, U)) →
        (∀ W : Y.Opens, Nf π W 1 = 1 ∧ ∀ a b : Γ(X, π ⁻¹ᵁ W), Nf π W (a * b) = Nf π W a * Nf π W
          b) ∧
        (∀ (W W' : Y.Opens) (h : W' ≤ W) (a : Γ(X, π ⁻¹ᵁ W)),
          Nf π W' (X.presheaf.map (homOfLE (Scheme.Hom.preimage_mono π h)).op a) =
            Y.presheaf.map (homOfLE h).op (Nf π W a)) ∧
        (∀ (W : Y.Opens), IsAffineOpen W →
          letI : Algebra Γ(Y, W) Γ(X, π ⁻¹ᵁ W) := (π.app W).hom.toAlgebra
          ∀ [Module.Free Γ(Y, W) Γ(X, π ⁻¹ᵁ W)] [Module.Finite Γ(Y, W) Γ(X, π ⁻¹ᵁ W)],
          ∀ a : Γ(X, π ⁻¹ᵁ W), Nf π W a = Algebra.norm Γ(Y, W) a) ∧
        (∀ ⦃X' Y' : Scheme.{u}⦄ (g : Y' ⟶ Y) (π' : X' ⟶ Y') (g' : X' ⟶ X) (sq : IsPullback g' π' π
          g),
          ∀ [Flat g] [IsIntegral X'] [IsIntegral Y'],
          (∀ U : Y'.Opens, IsAffineOpen U → IsIntegrallyClosed Γ(Y', U)) →
          ∀ (W : Y.Opens) (a : Γ(X, π ⁻¹ᵁ W)),
            Nf π' (g ⁻¹ᵁ W) (X'.presheaf.map (eqToHom (show π' ⁻¹ᵁ (g ⁻¹ᵁ W) = g' ⁻¹ᵁ (π ⁻¹ᵁ W) by
                rw [← Scheme.Hom.comp_preimage, ← Scheme.Hom.comp_preimage, sq.w])).op
              ((g'.app (π ⁻¹ᵁ W)).hom a)) =
            (g.app W).hom (Nf π W a)) := by
  refine ⟨Nf, ?_⟩
  intro X Y π _ _ _ _ hic
  have hgen := base_genericPoint_eq_of_surjective π
  have key : ∀ (W : Y.Opens) [Nonempty W] (a : Γ(X, π ⁻¹ᵁ W)),
      Y.germToFunctionField W (Nf π W a) = normGerm π hgen W a :=
    fun W _ a => germ_Nf hgen W a (exists_germ_eq_normGerm π hic W a)
  have inj : ∀ (W : Y.Opens) [Nonempty W], Function.Injective (Y.germToFunctionField W) :=
    fun W _ => Scheme.germToFunctionField_injective Y W
  refine ⟨?_, ?_, ?_, ?_⟩
  · intro W
    rcases eq_bot_or_nonempty W with hW | hW
    · exact ⟨subsingleton_of_eq_bot hW _ _, fun a b => subsingleton_of_eq_bot hW _ _⟩
    · have := hW
      refine ⟨inj W ?_, fun a b => inj W ?_⟩
      · rw [key, normGerm_one, map_one]
      · rw [key, map_mul, key, key, normGerm_mul]
  · intro W W' h a
    rcases eq_bot_or_nonempty W' with hW' | hW'
    · exact subsingleton_of_eq_bot hW' _ _
    · have := hW'
      have : Nonempty W := by obtain ⟨⟨y, hy⟩⟩ := hW'; exact ⟨⟨y, h hy⟩⟩
      apply inj W'
      rw [key, normGerm_res hgen h, germ_res, key]
  · intro W hW _ _ a
    rcases eq_bot_or_nonempty W with hW0 | hW0
    · exact subsingleton_of_eq_bot hW0 _ _
    · have := hW0
      apply inj W
      rw [key, germ_norm_eq_normGerm π W hW inferInstance inferInstance a]
  · intro X' Y' g π' g' sq _ _ _ hic' W a
    rcases eq_bot_or_nonempty (g ⁻¹ᵁ W) with hW0 | hW0
    · exact subsingleton_of_eq_bot hW0 _ _
    · have := hW0
      have : Nonempty W := by obtain ⟨⟨y, hy⟩⟩ := hW0; exact ⟨⟨g.base y, hy⟩⟩
      have : IsFinite π' := MorphismProperty.of_isPullback (P := @IsFinite) sq inferInstance
      have : Surjective π' := MorphismProperty.of_isPullback (P := @Surjective) sq inferInstance
      have hgen' := base_genericPoint_eq_of_surjective π'
      have : Nonempty (π ⁻¹ᵁ W) := nonempty_preimage hgen W
      have : Nonempty (π' ⁻¹ᵁ (g ⁻¹ᵁ W)) := nonempty_preimage hgen' (g ⁻¹ᵁ W)
      have hseam := germ_app_eq_norm_of_isPullback π g π' g' sq W a (Nf π W a) (key W a)
      have hex : ∃ s : Γ(Y', g ⁻¹ᵁ W), Y'.germToFunctionField (g ⁻¹ᵁ W) s = normGerm π' hgen' (g
        ⁻¹ᵁ W)
          (X'.presheaf.map (eqToHom (show π' ⁻¹ᵁ (g ⁻¹ᵁ W) = g' ⁻¹ᵁ (π ⁻¹ᵁ W) by
            rw [← Scheme.Hom.comp_preimage, ← Scheme.Hom.comp_preimage, sq.w])).op ((g'.app (π ⁻¹ᵁ
              W)).hom a)) :=
        ⟨(g.app W).hom (Nf π W a), by rw [normGerm_def]; exact hseam⟩
      apply Scheme.germToFunctionField_injective Y' (g ⁻¹ᵁ W)
      rw [germ_Nf hgen' (g ⁻¹ᵁ W) _ hex, normGerm_def]
      exact hseam.symm