Module

SmoothnessCriteria.lean

Nyll.SchemeTheory.Morphisms.SmoothnessCriteria
19 declarations indexed from sourceView source ↗

Smoothness and relative dimension

Descent of smoothness and its relative dimension, subtraction of relative dimensions, and spreading a fixed smooth relative dimension from the generic fiber of a DVR.

Imports15
Imported by3

Declarations

SchemeTheory.Smoothness.LocalRelativeDimension.exists_relativeDimension
Source context 5 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AlgebraicGeometry_Smooth_exists_mem_and_smoothOfRelativeDimension_opensInclusion_comp.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.Smoothness.LocalRelativeDimension
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry
universe u
theorem exists_relativeDimension
    {R S : Type u} [CommRing R] [CommRing S] {φ : R →+* S} (h : φ.IsStandardSmooth) :
    ∃ n : ℕ, φ.IsStandardSmoothOfRelativeDimension n
AlgebraicGeometry.Smooth.exists_mem_and_smoothOfRelativeDimension_opensInclusion_comp
Source context 6 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AlgebraicGeometry_Smooth_exists_mem_and_smoothOfRelativeDimension_opensInclusion_comp.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AlgebraicGeometry
universe u
open CategoryTheory CategoryTheory.Limits NeronModelInfra
open SchemeTheory.Smoothness.LocalRelativeDimension
theorem Smooth.exists_mem_and_smoothOfRelativeDimension_opensInclusion_comp
    {X Y : Scheme.{u}} (f : X ⟶ Y) [Smooth f] (x : X) :
    ∃ (V : X.Opens) (d : ℕ), x ∈ V ∧ SmoothOfRelativeDimension d (V.ι ≫ f)
SchemeTheory.Smoothness.RelativeDimensionDescent.RelDimDescent.rank_baseChange_eq
Source context 6 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AlgebraicGeometry_SmoothOfRelativeDimension_of_isPullback_of_flat_of_surjective.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.Smoothness.RelativeDimensionDescent
universe u
open TensorProduct
namespace RelDimDescent
theorem rank_baseChange_eq {A : Type u} (B : Type u) [CommRing A] [CommRing B] [Algebra A B]
    [Nontrivial B] (N : Type u) [AddCommGroup N] [Module A N] [Module.Free A N] :
    Module.rank B (B ⊗[A] N) = Module.rank A N
SchemeTheory.Smoothness.RelativeDimensionDescent.RelDimDescent.rank_eq_of_equiv
Source context 6 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AlgebraicGeometry_SmoothOfRelativeDimension_of_isPullback_of_flat_of_surjective.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.Smoothness.RelativeDimensionDescent
universe u
open TensorProduct
namespace RelDimDescent
theorem rank_eq_of_equiv {A : Type u} [CommRing A] {M N : Type u} [AddCommGroup M] [Module A M]
    [AddCommGroup N] [Module A N] (e : M ≃ₗ[A] N) : Module.rank A M = Module.rank A N
SchemeTheory.Smoothness.RelativeDimensionDescent.RelDimDescent.omegaLocEquiv

Localization of Kähler differentials, with the existing localization algebra.

Source context 8 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AlgebraicGeometry_SmoothOfRelativeDimension_of_isPullback_of_flat_of_surjective.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.Smoothness.RelativeDimensionDescent
universe u
open TensorProduct
namespace RelDimDescent
section Key
variable {R S T : Type u} [CommRing R] [CommRing S] [CommRing T] [Algebra R S] [Algebra R T]
def omegaLocEquiv (T' : Type u) [CommRing T']
    [Algebra T T'] [Algebra R T'] [IsScalarTower R T T']
    (M : Submonoid T) [IsLocalization M T'] :
    Ω[T'⁄R] ≃ₗ[T'] T' ⊗[T] Ω[T⁄R]
SchemeTheory.Smoothness.RelativeDimensionDescent.RelDimDescent.isStandardSmoothOfRelativeDimension_of_faithfullyFlat
Source context 6 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AlgebraicGeometry_SmoothOfRelativeDimension_of_isPullback_of_flat_of_surjective.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.Smoothness.RelativeDimensionDescent
universe u
open TensorProduct
namespace RelDimDescent
theorem isStandardSmoothOfRelativeDimension_of_faithfullyFlat
    {R S T : Type u} [CommRing R] [CommRing S] [CommRing T] [Algebra R S] [Algebra R T]
    [Module.FaithfullyFlat R S] (n : ℕ)
    (hloc : RingHom.Locally (RingHom.IsStandardSmoothOfRelativeDimension n)
      (algebraMap S (S ⊗[R] T)))
    (Tt : Type u) [CommRing Tt] [Algebra T Tt] [Algebra R Tt] [IsScalarTower R T Tt] (t : T)
    [IsLocalization.Away t Tt] [Nontrivial Tt] [Algebra.IsStandardSmooth R Tt] :
    Algebra.IsStandardSmoothOfRelativeDimension n R Tt
SchemeTheory.Smoothness.RelativeDimensionDescent.RelDimDescent.nontrivial_localization_away
Source context 6 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AlgebraicGeometry_SmoothOfRelativeDimension_of_isPullback_of_flat_of_surjective.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.Smoothness.RelativeDimensionDescent
universe u
open TensorProduct
namespace RelDimDescent
theorem nontrivial_localization_away {T : Type u} [CommRing T] {t : T} (ht : ¬ IsNilpotent t) :
    Nontrivial (Localization.Away t)
SchemeTheory.Smoothness.RelativeDimensionDescent.RelDimDescent.span_not_isNilpotent_eq_top
Source context 6 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AlgebraicGeometry_SmoothOfRelativeDimension_of_isPullback_of_flat_of_surjective.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.Smoothness.RelativeDimensionDescent
universe u
open TensorProduct
namespace RelDimDescent
theorem span_not_isNilpotent_eq_top {T : Type u} [CommRing T] {s : Set T} (hs : Ideal.span s = ⊤) :
    Ideal.span {t ∈ s | ¬ IsNilpotent t} = ⊤
SchemeTheory.Smoothness.RelativeDimensionDescent.RelDimDescent.codescendsAlong
Source context 6 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AlgebraicGeometry_SmoothOfRelativeDimension_of_isPullback_of_flat_of_surjective.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.Smoothness.RelativeDimensionDescent
universe u
open TensorProduct
namespace RelDimDescent
theorem codescendsAlong (n : ℕ) :
    RingHom.CodescendsAlong (fun {R S : Type u} [CommRing R] [CommRing S] (f : R →+* S) =>
        RingHom.Locally (RingHom.IsStandardSmoothOfRelativeDimension n) f)
      (fun {R S : Type u} [CommRing R] [CommRing S] (f : R →+* S) => RingHom.FaithfullyFlat f) := by
  refine RingHom.CodescendsAlong.mk _
    (RingHom.locally_respectsIso RingHom.isStandardSmoothOfRelativeDimension_respectsIso) ?_
  intro R S T _ _ _ _ _ h h'
  have : Module.FaithfullyFlat R S := (RingHom.faithfullyFlat_algebraMap_iff).mp h
  have hsm : Algebra.Smooth R T := by
    have hST : (algebraMap S (S ⊗[R] T)).Smooth := by
      rw [RingHom.smooth_iff_locally_isStandardSmooth]
      exact RingHom.locally_of_locally
        (fun {R' S' : Type u} [CommRing R'] [CommRing S'] (f : R' →+* S')
          (hf : RingHom.IsStandardSmoothOfRelativeDimension n f) =>
          RingHom.IsStandardSmoothOfRelativeDimension.isStandardSmooth n f hf) h'
    rw [RingHom.smooth_algebraMap] at hST
    exact Algebra.Smooth.of_smooth_tensorProduct_of_faithfullyFlat S
  have hls : RingHom.Locally RingHom.IsStandardSmooth (algebraMap R T) := by
    rw [← RingHom.smooth_iff_locally_isStandardSmooth, RingHom.smooth_algebraMap]; exact hsm
  obtain ⟨s, hs, hstd⟩ := hls
  refine ⟨{t ∈ s | ¬ IsNilpotent t}, span_not_isNilpotent_eq_top hs, ?_⟩
  intro t ht
  have : Nontrivial (Localization.Away t) := nontrivial_localization_away ht.2
  have h1 := hstd t ht.1
  rw [← IsScalarTower.algebraMap_eq (R := R) (S := T) (A := Localization.Away t)] at h1 ⊢
  rw [RingHom.isStandardSmoothOfRelativeDimension_algebraMap]
  have : Algebra.IsStandardSmooth R (Localization.Away t) :=
    (RingHom.isStandardSmooth_algebraMap).mp h1
  exact isStandardSmoothOfRelativeDimension_of_faithfullyFlat n h' (Localization.Away t) t
AlgebraicGeometry.SmoothOfRelativeDimension.of_isPullback_of_flat_of_surjective
Source context 6 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AlgebraicGeometry_SmoothOfRelativeDimension_of_isPullback_of_flat_of_surjective.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AlgebraicGeometry
universe u
open CategoryTheory CategoryTheory.Limits NeronModelInfra
open SchemeTheory.Smoothness.RelativeDimensionDescent
theorem SmoothOfRelativeDimension.of_isPullback_of_flat_of_surjective (n : ℕ)
    {P X Y Z : Scheme.{u}} {fst : P ⟶ X} {snd : P ⟶ Y} {f : X ⟶ Z} {g : Y ⟶ Z}
    (H : IsPullback fst snd f g) [Flat f] [Surjective f] [QuasiCompact f]
    [SmoothOfRelativeDimension n fst] : SmoothOfRelativeDimension n g
SchemeTheory.Smoothness.RelativeDimensionComposition.RelDimSub.exists_kaehler_equiv_prod
Source context 7 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AlgebraicGeometry_SmoothOfRelativeDimension_of_comp_of_smoothOfRelativeDimension_of_surjective.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.Smoothness.RelativeDimensionComposition
universe u
open TensorProduct
namespace RelDimSub
open SchemeTheory.Smoothness.RelativeDimensionDescent.RelDimDescent
  (rank_baseChange_eq omegaLocEquiv)
theorem exists_kaehler_equiv_prod (R S C : Type u)
    [CommRing R] [CommRing S] [CommRing C] [Algebra R S]
    [Algebra S C] [Algebra R C] [IsScalarTower R S C] [Algebra.FormallySmooth S C]
    [Module.Projective C Ω[C⁄S]] :
    Nonempty (Ω[C⁄R] ≃ₗ[C] (C ⊗[S] Ω[S⁄R]) × Ω[C⁄S])
SchemeTheory.Smoothness.RelativeDimensionComposition.RelDimSub.rank_kaehler_eq_sub
Source context 7 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AlgebraicGeometry_SmoothOfRelativeDimension_of_comp_of_smoothOfRelativeDimension_of_surjective.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.Smoothness.RelativeDimensionComposition
universe u
open TensorProduct
namespace RelDimSub
open SchemeTheory.Smoothness.RelativeDimensionDescent.RelDimDescent
  (rank_baseChange_eq omegaLocEquiv)
theorem rank_kaehler_eq_sub {R S T : Type u} [CommRing R] [CommRing S] [CommRing T] [Algebra R S]
    [Algebra S T] [Algebra R T] [IsScalarTower R S T] [Algebra.IsStandardSmooth R S] [Nontrivial T]
    (a b : ℕ)
    (hb : RingHom.Locally (RingHom.IsStandardSmoothOfRelativeDimension b) (algebraMap S T))
    (ha : RingHom.Locally (RingHom.IsStandardSmoothOfRelativeDimension a) (algebraMap R T)) :
    Module.rank S Ω[S⁄R] = ((a - b : ℕ) : Cardinal) ∧ b ≤ a
AlgebraicGeometry.SmoothOfRelativeDimension.of_comp_of_smoothOfRelativeDimension_of_surjective
Source context 6 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AlgebraicGeometry_SmoothOfRelativeDimension_of_comp_of_smoothOfRelativeDimension_of_surjective.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AlgebraicGeometry
universe u
open CategoryTheory CategoryTheory.Limits NeronModelInfra
open SchemeTheory.Smoothness.RelativeDimensionComposition
theorem SmoothOfRelativeDimension.of_comp_of_smoothOfRelativeDimension_of_surjective
    {X Y Z : Scheme.{u}} [Nonempty X] (f : X ⟶ Y) (g : Y ⟶ Z) (a b : ℕ)
    [SmoothOfRelativeDimension a (f ≫ g)] [SmoothOfRelativeDimension b f]
    [Surjective f] [Smooth g] :
    SmoothOfRelativeDimension (a - b) g ∧ b ≤ a
SchemeTheory.Smoothness.GenericRelativeDimension.GenericSpread.appLE_basicOpen_of_appLE
Source context 7 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AlgebraicGeometry_smoothOfRelativeDimension_of_smooth_of_genericFibre.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.Smoothness.GenericRelativeDimension
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
universe u
namespace GenericSpread
open RingHom in
theorem appLE_basicOpen_of_appLE
    {P : ∀ {R S : Type u} [CommRing R] [CommRing S], (R →+* S) → Prop}
    (hPa : StableUnderCompositionWithLocalizationAwayTarget P) (hPl : LocalizationAwayPreserves P)
    {X Y : Scheme.{u}} (f : X ⟶ Y) (U : Y.affineOpens) (V : X.affineOpens) (e : V.1 ≤ f ⁻¹ᵁ U.1)
    (h : P (f.appLE U V e).hom) (r : Γ(Y, U)) (s : Γ(X, V))
    (e' : X.basicOpen s ≤ f ⁻¹ᵁ Y.basicOpen r) :
    P (f.appLE (Y.basicOpen r) (X.basicOpen s) e').hom
SchemeTheory.Smoothness.GenericRelativeDimension.GenericSpread.bot_mem_of_isOpen
Source context 6 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AlgebraicGeometry_smoothOfRelativeDimension_of_smooth_of_genericFibre.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.Smoothness.GenericRelativeDimension
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
universe u
namespace GenericSpread
theorem bot_mem_of_isOpen {R : Type u} [CommRing R] [IsDomain R] {O : Set (PrimeSpectrum R)}
    (hO : IsOpen O) {p : PrimeSpectrum R} (hp : p ∈ O) :
    (⟨⊥, Ideal.isPrime_bot⟩ : PrimeSpectrum R) ∈ O
AlgebraicGeometry.smoothOfRelativeDimension_of_smooth_of_genericFibre
Source context 7 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AlgebraicGeometry_smoothOfRelativeDimension_of_smooth_of_genericFibre.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AlgebraicGeometry
universe u
open CategoryTheory CategoryTheory.Limits NeronModelInfra
open SchemeTheory.Smoothness.GenericRelativeDimension
open SchemeTheory.Smoothness.GenericRelativeDimension.GenericSpread
theorem smoothOfRelativeDimension_of_smooth_of_genericFibre
    {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
    (K : Type u) [Field K] [Algebra R K] [IsFractionRing R K]
    {Y : Scheme.{u}} (f : Y ⟶ Spec (CommRingCat.of R)) [Smooth f] (d : ℕ)
    [SmoothOfRelativeDimension d (pullback.snd f (specGenericFibreInclusion R K))] :
    SmoothOfRelativeDimension d f
AlgebraicGeometry.Smooth.of_comp_of_smooth_of_surjective_of_locallyOfFinitePresentation
Source context 6 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AlgebraicGeometry_Smooth_of_comp_of_smooth_of_surjective_of_locallyOfFinitePresentation.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AlgebraicGeometry
universe u
open CategoryTheory CategoryTheory.Limits NeronModelInfra
open SchemeTheory.Smoothness.SmoothDescent
theorem Smooth.of_comp_of_smooth_of_surjective_of_locallyOfFinitePresentation
    {X Y Z : Scheme.{u}} (f : X ⟶ Y) (g : Y ⟶ Z) [Smooth f] [Surjective f] [QuasiCompact f]
    [Smooth (f ≫ g)] [LocallyOfFinitePresentation g] : Smooth g
AlgebraicGeometry.Smooth.of_comp_of_smooth_of_surjective
Source context 6 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AlgebraicGeometry_Smooth_of_comp_of_smooth_of_surjective.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AlgebraicGeometry
universe u
open CategoryTheory CategoryTheory.Limits NeronModelInfra
open SchemeTheory.Smoothness.SmoothComposition
theorem Smooth.of_comp_of_smooth_of_surjective
    {X Y Z : Scheme.{u}} (f : X ⟶ Y) (g : Y ⟶ Z) [Smooth f] [Surjective f] [QuasiCompact f]
    [Smooth (f ≫ g)] : Smooth g
AlgebraicGeometry.SmoothOfRelativeDimension.of_comp_of_surjective_of_field
Source context 6 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AlgebraicGeometry_SmoothOfRelativeDimension_of_comp_of_surjective_of_field.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AlgebraicGeometry
universe u
open CategoryTheory CategoryTheory.Limits NeronModelInfra
open SchemeTheory.Smoothness.RelativeDimensionOverField
theorem SmoothOfRelativeDimension.of_comp_of_surjective_of_field
    {k : Type u} [Field k] {G Q : Scheme.{u}} [Nonempty G]
    (fQ : Q ⟶ Spec (CommRingCat.of k)) (q : G ⟶ Q)
    (g h : ℕ) [SmoothOfRelativeDimension g (q ≫ fQ)] [SmoothOfRelativeDimension h q] [Surjective q]
    [QuasiCompact q] : SmoothOfRelativeDimension (g - h) fQ ∧ h ≤ g