Module

ModuleFlatFinitePresentation.lean

Nyll.SchemeTheory.RingTheory.Flat.ModuleFlatFinitePresentation
17 declarations indexed from sourceView source ↗

Algebra, divisors, and base change

Fibre localization comparisons reduce finite-presentation flatness to flatness of residue-field tensor fibres.

Imports9
Imported by3

Declarations

AlgebraicCurves.Foundations.Algebra.Proofs.Module_Flat_of_finitePresentation_of_forall_flat_residueField_tensorProduct.FibreFlatSol.flat_of_ringEquiv
Source context 6 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Foundations.Algebra.Proofs
namespace Module_Flat_of_finitePresentation_of_forall_flat_residueField_tensorProduct
open TensorProduct
namespace FibreFlatSol
theorem flat_of_ringEquiv {R R' S S' : Type*} [CommRing R] [CommRing R'] [CommRing S]
    [CommRing S'] [Algebra R S] [Algebra R' S'] (eR : R ≃+* R') (eS : S ≃+* S')
    (h : ∀ r, eS (algebraMap R S r) = algebraMap R' S' (eR r)) [Module.Flat R S] :
    Module.Flat R' S'
AlgebraicCurves.Foundations.Algebra.Proofs.Module_Flat_of_finitePresentation_of_forall_flat_residueField_tensorProduct.FibreFlatSol.flat_localization_of_ringEquiv
Source context 6 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Foundations.Algebra.Proofs
namespace Module_Flat_of_finitePresentation_of_forall_flat_residueField_tensorProduct
open TensorProduct
namespace FibreFlatSol
theorem flat_localization_of_ringEquiv {R R' B B' : Type*} [CommRing R] [CommRing R']
    [CommRing B] [CommRing B'] [Algebra R B] [Algebra R' B'] (eR : R ≃+* R') (e : B ≃+* B')
    (h : ∀ r, e (algebraMap R B r) = algebraMap R' B' (eR r)) (P : Ideal B) [P.IsPrime]
    (P' : Ideal B') [P'.IsPrime] (hP : P = P'.comap e.toRingHom)
    [Module.Flat R (Localization.AtPrime P)] :
    Module.Flat R' (Localization.AtPrime P')
AlgebraicCurves.Foundations.Algebra.Proofs.Module_Flat_of_finitePresentation_of_forall_flat_residueField_tensorProduct.FibreFlatSol.flat_of_flat_of_isLocalization
Source context 6 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Foundations.Algebra.Proofs
namespace Module_Flat_of_finitePresentation_of_forall_flat_residueField_tensorProduct
open TensorProduct
namespace FibreFlatSol
theorem flat_of_flat_of_isLocalization {C D : Type*} (C' D' : Type*) [CommRing C] [CommRing D]
    [CommRing C'] [CommRing D'] [Algebra C C'] [Algebra D D'] [Algebra C' D']
    (M : Submonoid C) [IsLocalization M C'] (N : Submonoid D) [IsLocalization N D']
    (f : C →+* D) (hf : f.Flat)
    (hcomm : (algebraMap D D').comp f = (algebraMap C' D').comp (algebraMap C C')) :
    Module.Flat C' D'
AlgebraicCurves.Foundations.Algebra.Proofs.Module_Flat_of_finitePresentation_of_forall_flat_residueField_tensorProduct.FibreFlatSol.isScalarTower_quot_fibre
Source context 14 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Foundations.Algebra.Proofs
namespace Module_Flat_of_finitePresentation_of_forall_flat_residueField_tensorProduct
open TensorProduct
namespace FibreFlatSol
section FibreLoc
variable {R₁ A₁ : Type*} [CommRing R₁] [CommRing A₁] [Algebra R₁ A₁]
  (p : Ideal R₁) [p.IsPrime] (P : Ideal A₁) [P.IsPrime]
local notation "R_[" p "]" => Localization.AtPrime p
local notation "κ_[" p "]" =>
  Localization.AtPrime p ⧸ IsLocalRing.maximalIdeal (Localization.AtPrime p)
local notation "T_[" p ", " P "]" =>
  Localization.AtPrime P ⧸ Ideal.map (algebraMap (Localization.AtPrime p) (Localization.AtPrime P))
    (IsLocalRing.maximalIdeal (Localization.AtPrime p))
attribute [local instance] Algebra.TensorProduct.rightAlgebra
variable [P.LiesOver p] [Algebra R_[p] R_[P]] [IsScalarTower R₁ R_[p] R_[P]]
omit [P.LiesOver p] in
theorem isScalarTower_quot_fibre : IsScalarTower R₁ κ_[p] T_[p, P]
AlgebraicCurves.Foundations.Algebra.Proofs.Module_Flat_of_finitePresentation_of_forall_flat_residueField_tensorProduct.FibreFlatSol.fibToQuot

The algebra map from the residue-field tensor fibre to the localized quotient.

Source context 14 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Foundations.Algebra.Proofs
namespace Module_Flat_of_finitePresentation_of_forall_flat_residueField_tensorProduct
open TensorProduct
namespace FibreFlatSol
section FibreLoc
variable {R₁ A₁ : Type*} [CommRing R₁] [CommRing A₁] [Algebra R₁ A₁]
  (p : Ideal R₁) [p.IsPrime] (P : Ideal A₁) [P.IsPrime]
local notation "R_[" p "]" => Localization.AtPrime p
local notation "κ_[" p "]" =>
  Localization.AtPrime p ⧸ IsLocalRing.maximalIdeal (Localization.AtPrime p)
local notation "T_[" p ", " P "]" =>
  Localization.AtPrime P ⧸ Ideal.map (algebraMap (Localization.AtPrime p) (Localization.AtPrime P))
    (IsLocalRing.maximalIdeal (Localization.AtPrime p))
attribute [local instance] Algebra.TensorProduct.rightAlgebra
variable [P.LiesOver p] [Algebra R_[p] R_[P]] [IsScalarTower R₁ R_[p] R_[P]]
attribute [local instance] isScalarTower_quot_fibre
def fibToQuot : κ_[p] ⊗[R₁] A₁ →ₐ[R₁] T_[p, P]
AlgebraicCurves.Foundations.Algebra.Proofs.Module_Flat_of_finitePresentation_of_forall_flat_residueField_tensorProduct.FibreFlatSol.fibToQuot_tmul
Source context 15 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Foundations.Algebra.Proofs
namespace Module_Flat_of_finitePresentation_of_forall_flat_residueField_tensorProduct
open TensorProduct
namespace FibreFlatSol
section FibreLoc
variable {R₁ A₁ : Type*} [CommRing R₁] [CommRing A₁] [Algebra R₁ A₁]
  (p : Ideal R₁) [p.IsPrime] (P : Ideal A₁) [P.IsPrime]
local notation "R_[" p "]" => Localization.AtPrime p
local notation "κ_[" p "]" =>
  Localization.AtPrime p ⧸ IsLocalRing.maximalIdeal (Localization.AtPrime p)
local notation "T_[" p ", " P "]" =>
  Localization.AtPrime P ⧸ Ideal.map (algebraMap (Localization.AtPrime p) (Localization.AtPrime P))
    (IsLocalRing.maximalIdeal (Localization.AtPrime p))
attribute [local instance] Algebra.TensorProduct.rightAlgebra
variable [P.LiesOver p] [Algebra R_[p] R_[P]] [IsScalarTower R₁ R_[p] R_[P]]
attribute [local instance] isScalarTower_quot_fibre
omit [P.LiesOver p] in
lemma fibToQuot_tmul (x : κ_[p]) (a : A₁) :
    fibToQuot p P (x ⊗ₜ a) = algebraMap _ _ x * algebraMap A₁ _ a
AlgebraicCurves.Foundations.Algebra.Proofs.Module_Flat_of_finitePresentation_of_forall_flat_residueField_tensorProduct.FibreFlatSol.fibToQuotAlgebra

The tensor-fibre algebra structure on the localized quotient induced by the fibre map.

Source context 14 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Foundations.Algebra.Proofs
namespace Module_Flat_of_finitePresentation_of_forall_flat_residueField_tensorProduct
open TensorProduct
namespace FibreFlatSol
section FibreLoc
variable {R₁ A₁ : Type*} [CommRing R₁] [CommRing A₁] [Algebra R₁ A₁]
  (p : Ideal R₁) [p.IsPrime] (P : Ideal A₁) [P.IsPrime]
local notation "R_[" p "]" => Localization.AtPrime p
local notation "κ_[" p "]" =>
  Localization.AtPrime p ⧸ IsLocalRing.maximalIdeal (Localization.AtPrime p)
local notation "T_[" p ", " P "]" =>
  Localization.AtPrime P ⧸ Ideal.map (algebraMap (Localization.AtPrime p) (Localization.AtPrime P))
    (IsLocalRing.maximalIdeal (Localization.AtPrime p))
attribute [local instance] Algebra.TensorProduct.rightAlgebra
variable [P.LiesOver p] [Algebra R_[p] R_[P]] [IsScalarTower R₁ R_[p] R_[P]]
attribute [local instance] isScalarTower_quot_fibre
abbrev fibToQuotAlgebra : Algebra (κ_[p] ⊗[R₁] A₁) T_[p, P]
AlgebraicCurves.Foundations.Algebra.Proofs.Module_Flat_of_finitePresentation_of_forall_flat_residueField_tensorProduct.FibreFlatSol.isPushout_localization_self
Source context 14 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Foundations.Algebra.Proofs
namespace Module_Flat_of_finitePresentation_of_forall_flat_residueField_tensorProduct
open TensorProduct
namespace FibreFlatSol
section FibreLoc
variable {R₁ A₁ : Type*} [CommRing R₁] [CommRing A₁] [Algebra R₁ A₁]
  (p : Ideal R₁) [p.IsPrime] (P : Ideal A₁) [P.IsPrime]
local notation "R_[" p "]" => Localization.AtPrime p
local notation "κ_[" p "]" =>
  Localization.AtPrime p ⧸ IsLocalRing.maximalIdeal (Localization.AtPrime p)
local notation "T_[" p ", " P "]" =>
  Localization.AtPrime P ⧸ Ideal.map (algebraMap (Localization.AtPrime p) (Localization.AtPrime P))
    (IsLocalRing.maximalIdeal (Localization.AtPrime p))
attribute [local instance] Algebra.TensorProduct.rightAlgebra
variable [P.LiesOver p] [Algebra R_[p] R_[P]] [IsScalarTower R₁ R_[p] R_[P]]
attribute [local instance] isScalarTower_quot_fibre
lemma isPushout_localization_self : Algebra.IsPushout R₁ R_[p] R_[P] R_[P]
AlgebraicCurves.Foundations.Algebra.Proofs.Module_Flat_of_finitePresentation_of_forall_flat_residueField_tensorProduct.FibreFlatSol.isPushout_quot_fibre
Source context 15 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Foundations.Algebra.Proofs
namespace Module_Flat_of_finitePresentation_of_forall_flat_residueField_tensorProduct
open TensorProduct
namespace FibreFlatSol
section FibreLoc
variable {R₁ A₁ : Type*} [CommRing R₁] [CommRing A₁] [Algebra R₁ A₁]
  (p : Ideal R₁) [p.IsPrime] (P : Ideal A₁) [P.IsPrime]
local notation "R_[" p "]" => Localization.AtPrime p
local notation "κ_[" p "]" =>
  Localization.AtPrime p ⧸ IsLocalRing.maximalIdeal (Localization.AtPrime p)
local notation "T_[" p ", " P "]" =>
  Localization.AtPrime P ⧸ Ideal.map (algebraMap (Localization.AtPrime p) (Localization.AtPrime P))
    (IsLocalRing.maximalIdeal (Localization.AtPrime p))
attribute [local instance] Algebra.TensorProduct.rightAlgebra
variable [P.LiesOver p] [Algebra R_[p] R_[P]] [IsScalarTower R₁ R_[p] R_[P]]
attribute [local instance] isScalarTower_quot_fibre
omit [Algebra R₁ A₁] [P.LiesOver p] [IsScalarTower R₁ R_[p] R_[P]] in
lemma isPushout_quot_fibre : Algebra.IsPushout R_[p] κ_[p] R_[P] T_[p, P]
AlgebraicCurves.Foundations.Algebra.Proofs.Module_Flat_of_finitePresentation_of_forall_flat_residueField_tensorProduct.FibreFlatSol.isLocalization_fibToQuot
Source context 14 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Foundations.Algebra.Proofs
namespace Module_Flat_of_finitePresentation_of_forall_flat_residueField_tensorProduct
open TensorProduct
namespace FibreFlatSol
section FibreLoc
variable {R₁ A₁ : Type*} [CommRing R₁] [CommRing A₁] [Algebra R₁ A₁]
  (p : Ideal R₁) [p.IsPrime] (P : Ideal A₁) [P.IsPrime]
local notation "R_[" p "]" => Localization.AtPrime p
local notation "κ_[" p "]" =>
  Localization.AtPrime p ⧸ IsLocalRing.maximalIdeal (Localization.AtPrime p)
local notation "T_[" p ", " P "]" =>
  Localization.AtPrime P ⧸ Ideal.map (algebraMap (Localization.AtPrime p) (Localization.AtPrime P))
    (IsLocalRing.maximalIdeal (Localization.AtPrime p))
attribute [local instance] Algebra.TensorProduct.rightAlgebra
variable [P.LiesOver p] [Algebra R_[p] R_[P]] [IsScalarTower R₁ R_[p] R_[P]]
attribute [local instance] isScalarTower_quot_fibre
lemma isLocalization_fibToQuot :
    letI := fibToQuotAlgebra p P
    @IsLocalization (κ_[p] ⊗[R₁] A₁) _ (Algebra.algebraMapSubmonoid (κ_[p] ⊗[R₁] A₁) P.primeCompl)
      T_[p, P] _ _ := by
  let := fibToQuotAlgebra p P
  have : IsScalarTower A₁ (κ_[p] ⊗[R₁] A₁) T_[p, P] :=
    IsScalarTower.of_algebraMap_eq (R := A₁) (S := κ_[p] ⊗[R₁] A₁) (A := T_[p, P]) fun a => by
      change _ = fibToQuot p P ((1 : κ_[p]) ⊗ₜ a)
      rw [fibToQuot_tmul, map_one, one_mul]
  have : IsScalarTower κ_[p] (κ_[p] ⊗[R₁] A₁) T_[p, P] :=
    IsScalarTower.of_algebraMap_eq (R := κ_[p]) (S := κ_[p] ⊗[R₁] A₁) (A := T_[p, P]) fun x => by
      change _ = fibToQuot p P (x ⊗ₜ (1 : A₁))
      rw [fibToQuot_tmul, map_one, mul_one]
  have : IsScalarTower R₁ (κ_[p] ⊗[R₁] A₁) T_[p, P] :=
    IsScalarTower.of_algebraMap_eq (R := R₁) (S := κ_[p] ⊗[R₁] A₁) (A := T_[p, P])
      fun r => ((fibToQuot p P).commutes r).symm
  rw [Algebra.isLocalization_iff_isPushout P.primeCompl R_[P],
    Algebra.IsPushout.comm, ← Algebra.IsPushout.comp_iff R₁ A₁ κ_[p] (κ_[p] ⊗[R₁] A₁),
    Algebra.IsPushout.comm]
  have := isPushout_localization_self p P
  rw [Algebra.IsPushout.comp_iff R₁ R_[p] R_[P] R_[P]]
  exact isPushout_quot_fibre p P
AlgebraicCurves.Foundations.Algebra.Proofs.Module_Flat_of_finitePresentation_of_forall_flat_residueField_tensorProduct.FibreFlatSol.flat_localization_of_flat_fibre_of_isNoetherianRing
Source context 8 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Foundations.Algebra.Proofs
namespace Module_Flat_of_finitePresentation_of_forall_flat_residueField_tensorProduct
open TensorProduct
namespace FibreFlatSol
section LayerI
attribute [local instance] Algebra.TensorProduct.rightAlgebra isScalarTower_quot_fibre
theorem flat_localization_of_flat_fibre_of_isNoetherianRing
    {R₁ A₁ B₁ : Type} [CommRing R₁] [CommRing A₁] [CommRing B₁] [Algebra R₁ A₁] [Algebra R₁ B₁]
    [Algebra A₁ B₁] [IsScalarTower R₁ A₁ B₁] [IsNoetherianRing R₁] [Algebra.FiniteType R₁ A₁]
    [Algebra.FiniteType R₁ B₁] (Q : Ideal B₁) [Q.IsPrime]
    [Module.Flat R₁ (Localization.AtPrime Q)] (p : Ideal R₁) [p.IsPrime] (hp : p = Q.under R₁)
    (hfib : (Algebra.TensorProduct.map (AlgHom.id p.ResidueField p.ResidueField)
        (IsScalarTower.toAlgHom R₁ A₁ B₁)).toRingHom.Flat) :
    Module.Flat A₁ (Localization.AtPrime Q)
AlgebraicCurves.Foundations.Algebra.Proofs.Module_Flat_of_finitePresentation_of_forall_flat_residueField_tensorProduct.FibreFlatSol.isScalarTower_rightAlgebra_of_tower
Source context 7 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Foundations.Algebra.Proofs
namespace Module_Flat_of_finitePresentation_of_forall_flat_residueField_tensorProduct
open TensorProduct
namespace FibreFlatSol
attribute [local instance] Algebra.TensorProduct.rightAlgebra
theorem isScalarTower_rightAlgebra_of_tower {R₀ R K A : Type*} [CommRing R₀] [CommRing R]
    [CommRing K] [CommRing A] [Algebra R K] [Algebra R A] [Algebra R₀ R] [Algebra R₀ K]
    [Algebra R₀ A] [IsScalarTower R₀ R K] [IsScalarTower R₀ R A] :
    IsScalarTower R₀ A (K ⊗[R] A)
AlgebraicCurves.Foundations.Algebra.Proofs.Module_Flat_of_finitePresentation_of_forall_flat_residueField_tensorProduct.FibreFlatSol.flat_fibre_descent
Source context 15 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Foundations.Algebra.Proofs
namespace Module_Flat_of_finitePresentation_of_forall_flat_residueField_tensorProduct
open TensorProduct
namespace FibreFlatSol
attribute [local instance] Algebra.TensorProduct.rightAlgebra
section Descent
variable {R₁ R : Type*} [CommRing R₁] [CommRing R] [Algebra R₁ R] (p : Ideal R)
  {A₁ A B₁ B : Type*} [CommRing A₁] [CommRing A] [CommRing B₁] [CommRing B]
  [Algebra R₁ A₁] [Algebra R₁ B₁] [Algebra A₁ B₁] [IsScalarTower R₁ A₁ B₁]
  [Algebra R A] [Algebra R B] [Algebra A B] [IsScalarTower R A B]
  [Algebra R₁ A] [Algebra R₁ B] [IsScalarTower R₁ R A] [IsScalarTower R₁ R B]
  [Algebra A₁ A] [Algebra B₁ B] [IsScalarTower R₁ A₁ A] [IsScalarTower R₁ B₁ B]
  [Algebra A₁ B] [IsScalarTower A₁ A B] [IsScalarTower A₁ B₁ B]
  [Algebra.IsPushout R₁ R A₁ A] [Algebra.IsPushout R₁ R B₁ B] [p.IsPrime]
local notation "κ" => Ideal.ResidueField p
local notation "κ₁" => Ideal.ResidueField (Ideal.under R₁ p)
local notation "F₁" => Ideal.ResidueField (Ideal.under R₁ p) ⊗[R₁] A₁
local notation "F₁'" => Ideal.ResidueField (Ideal.under R₁ p) ⊗[R₁] B₁
local notation "F" => Ideal.ResidueField p ⊗[R] A
local notation "F'" => Ideal.ResidueField p ⊗[R] B
theorem flat_fibre_descent
    (hfib : (Algebra.TensorProduct.map (AlgHom.id p.ResidueField p.ResidueField)
      (IsScalarTower.toAlgHom R A B)).toRingHom.Flat) :
    (Algebra.TensorProduct.map
      (AlgHom.id (p.under R₁).ResidueField (p.under R₁).ResidueField)
        (IsScalarTower.toAlgHom R₁ A₁ B₁)).toRingHom.Flat
AlgebraicCurves.Foundations.Algebra.Proofs.Module_Flat_of_finitePresentation_of_forall_flat_residueField_tensorProduct.FibreFlatSol.flat_localization_ascent
Source context 7 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Foundations.Algebra.Proofs
namespace Module_Flat_of_finitePresentation_of_forall_flat_residueField_tensorProduct
open TensorProduct
namespace FibreFlatSol
attribute [local instance] Algebra.TensorProduct.rightAlgebra
theorem flat_localization_ascent {R₁ R A₁ A B₁ B : Type*} [CommRing R₁] [CommRing R]
    [CommRing A₁] [CommRing A] [CommRing B₁] [CommRing B] [Algebra R₁ R]
    [Algebra R₁ A₁] [Algebra R₁ B₁] [Algebra A₁ B₁] [IsScalarTower R₁ A₁ B₁]
    [Algebra R A] [Algebra R B] [Algebra A B] [IsScalarTower R A B]
    [Algebra R₁ A] [Algebra R₁ B] [IsScalarTower R₁ R A] [IsScalarTower R₁ R B]
    [Algebra A₁ A] [Algebra B₁ B] [IsScalarTower R₁ A₁ A] [IsScalarTower R₁ B₁ B]
    [Algebra A₁ B] [IsScalarTower A₁ A B] [IsScalarTower A₁ B₁ B]
    [Algebra.IsPushout R₁ R A₁ A] [Algebra.IsPushout R₁ R B₁ B]
    (Q : Ideal B) [Q.IsPrime] (Q₁ : Ideal B₁) [Q₁.IsPrime] (hQ₁ : Q₁ = Q.under B₁)
    [Module.Flat A₁ (Localization.AtPrime Q₁)] :
    Module.Flat A (Localization.AtPrime Q)
AlgebraicCurves.Foundations.Algebra.Proofs.Module_Flat_of_finitePresentation_of_forall_flat_residueField_tensorProduct.FibreFlatSol.flat_localization_of_model
Source context 7 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Foundations.Algebra.Proofs
namespace Module_Flat_of_finitePresentation_of_forall_flat_residueField_tensorProduct
open TensorProduct
namespace FibreFlatSol
attribute [local instance] Algebra.TensorProduct.rightAlgebra
theorem flat_localization_of_model {R₁ A₁ B₁ : Type} {R A B : Type*} [CommRing R₁]
    [CommRing R] [CommRing A₁] [CommRing A] [CommRing B₁] [CommRing B] [Algebra R₁ R]
    [Algebra R₁ A₁] [Algebra R₁ B₁] [Algebra A₁ B₁] [IsScalarTower R₁ A₁ B₁]
    [Algebra R A] [Algebra R B] [Algebra A B] [IsScalarTower R A B]
    [Algebra R₁ A] [Algebra R₁ B] [IsScalarTower R₁ R A] [IsScalarTower R₁ R B]
    [Algebra A₁ A] [Algebra B₁ B] [IsScalarTower R₁ A₁ A] [IsScalarTower R₁ B₁ B]
    [Algebra A₁ B] [IsScalarTower A₁ A B] [IsScalarTower A₁ B₁ B]
    [Algebra.IsPushout R₁ R A₁ A] [Algebra.IsPushout R₁ R B₁ B]
    [IsNoetherianRing R₁] [Algebra.FiniteType R₁ A₁] [Algebra.FiniteType R₁ B₁]
    (Q : Ideal B) [Q.IsPrime] (Q₁ : Ideal B₁) [Q₁.IsPrime] (hQ₁ : Q₁ = Q.under B₁)
    [Module.Flat R₁ (Localization.AtPrime Q₁)]
    (hfib : (Algebra.TensorProduct.map
      (AlgHom.id (Q.under R).ResidueField (Q.under R).ResidueField)
        (IsScalarTower.toAlgHom R A B)).toRingHom.Flat) :
    Module.Flat A (Localization.AtPrime Q)
AlgebraicCurves.Foundations.Algebra.Proofs.Module_Flat_of_finitePresentation_of_forall_flat_residueField_tensorProduct.FibreFlatSol.flat_localization_of_model₀
Source context 7 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Foundations.Algebra.Proofs
namespace Module_Flat_of_finitePresentation_of_forall_flat_residueField_tensorProduct
open TensorProduct
namespace FibreFlatSol
attribute [local instance] Algebra.TensorProduct.rightAlgebra
theorem flat_localization_of_model₀ {R₀ A₀ B₀ : Type} {R A B : Type*} [CommRing R₀]
    [CommRing R] [CommRing A₀] [CommRing A] [CommRing B₀] [CommRing B] [Algebra R₀ R]
    [Algebra R₀ A₀] [Algebra R₀ B₀] [Algebra A₀ B₀] [IsScalarTower R₀ A₀ B₀]
    [Algebra R A] [Algebra R B] [Algebra A B] [IsScalarTower R A B]
    [Algebra R₀ A] [Algebra R₀ B] [IsScalarTower R₀ R A] [IsScalarTower R₀ R B]
    [Algebra A₀ A] [Algebra B₀ B] [IsScalarTower R₀ A₀ A] [IsScalarTower R₀ B₀ B]
    [Algebra A₀ B] [IsScalarTower A₀ A B] [IsScalarTower A₀ B₀ B]
    [Algebra.IsPushout R₀ R A₀ A] [Algebra.IsPushout R₀ R B₀ B]
    [IsNoetherianRing R₀] [Algebra.FiniteType R₀ A₀] [Algebra.FiniteType R₀ B₀]
    [Module.Flat R B] (Q : Ideal B) [Q.IsPrime]
    (hfib : (Algebra.TensorProduct.map
      (AlgHom.id (Q.under R).ResidueField (Q.under R).ResidueField)
        (IsScalarTower.toAlgHom R A B)).toRingHom.Flat) :
    Module.Flat A (Localization.AtPrime Q)
Module.Flat.of_finitePresentation_of_forall_flat_residueField_tensorProduct
Source context 7 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Foundations.Algebra.Proofs
namespace Module_Flat_of_finitePresentation_of_forall_flat_residueField_tensorProduct
open TensorProduct
attribute [local instance] Algebra.TensorProduct.rightAlgebra in
open FibreFlatSol in
theorem _root_.Module.Flat.of_finitePresentation_of_forall_flat_residueField_tensorProduct
    {R A B : Type*} [CommRing R] [CommRing A] [CommRing B]
    [Algebra R A] [Algebra R B] [Algebra A B] [IsScalarTower R A B]
    [Algebra.FinitePresentation R A] [Algebra.FinitePresentation R B] [Module.Flat R B]
    (hfib : ∀ (p : Ideal R) [p.IsPrime],
      (Algebra.TensorProduct.map (AlgHom.id p.ResidueField p.ResidueField)
        (IsScalarTower.toAlgHom R A B)).toRingHom.Flat) :
    Module.Flat A B