Module

DenseOpens.lean

Nyll.AbelianVarieties.NeronModels.DenseOpens
20 declarations indexed from sourceView source ↗

Dense fiberwise extension loci near maximal points of the special fiber

Imports15
Imported by3

Declarations

NeronModelInfra.DenseSliceLocus.exists_maximal_specializes
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_NeronModelInfra_exists_mem_opens_forall_dense_preimage_fst_of_forall_maximal_mem.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 NeronModelInfra
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry Topology TensorProduct
universe u
namespace DenseSliceLocus
section MaxGen
theorem exists_maximal_specializes {α : Type*} [TopologicalSpace α] [QuasiSober α] [T0Space α]
  (q : α) :
    ∃ θ : α, θ ⤳ q ∧ ∀ y : α, y ⤳ θ → y = θ
NeronModelInfra.DenseSliceLocus.exists_fibre_maximal
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_NeronModelInfra_exists_mem_opens_forall_dense_preimage_fst_of_forall_maximal_mem.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 NeronModelInfra
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry Topology TensorProduct
universe u
namespace DenseSliceLocus
section MaxGen
theorem exists_fibre_maximal {P Y : Scheme.{u}} (g : P ⟶ Y) (q : P) :
    ∃ θ : P, g.base θ = g.base q ∧ θ ⤳ q ∧ ∀ y : P, g.base y = g.base q → y ⤳ θ → y = θ
NeronModelInfra.DenseSliceLocus.chart

The tensor-product affine chart in the self-fiber product.

Source context 15 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_NeronModelInfra_exists_mem_opens_forall_dense_preimage_fst_of_forall_maximal_mem.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 NeronModelInfra
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry Topology TensorProduct
universe u
namespace DenseSliceLocus
section Chart
variable {R : Type u} [CommRing R]
variable {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R))
variable (A A' : Type u) [CommRing A] [CommRing A'] [Algebra R A] [Algebra R A']
variable (u : Spec (CommRingCat.of A) ⟶ X) (u' : Spec (CommRingCat.of A') ⟶ X)
variable [IsOpenImmersion u] [IsOpenImmersion u']
variable (hu : u ≫ f = Spec.map (CommRingCat.ofHom (algebraMap R A)))
variable (hu' : u' ≫ f = Spec.map (CommRingCat.ofHom (algebraMap R A')))
def chart : Spec (CommRingCat.of (A ⊗[R] A')) ⟶ pullback f f
NeronModelInfra.DenseSliceLocus.isOpenImmersion_chart
Source context 16 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_NeronModelInfra_exists_mem_opens_forall_dense_preimage_fst_of_forall_maximal_mem.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 NeronModelInfra
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry Topology TensorProduct
universe u
namespace DenseSliceLocus
section Chart
variable {R : Type u} [CommRing R]
variable {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R))
variable (A A' : Type u) [CommRing A] [CommRing A'] [Algebra R A] [Algebra R A']
variable (u : Spec (CommRingCat.of A) ⟶ X) (u' : Spec (CommRingCat.of A') ⟶ X)
variable [IsOpenImmersion u] [IsOpenImmersion u']
variable (hu : u ≫ f = Spec.map (CommRingCat.ofHom (algebraMap R A)))
variable (hu' : u' ≫ f = Spec.map (CommRingCat.ofHom (algebraMap R A')))
include hu hu' in
theorem isOpenImmersion_chart : IsOpenImmersion (chart f A A' u u' hu hu')
NeronModelInfra.DenseSliceLocus.chart_fst
Source context 16 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_NeronModelInfra_exists_mem_opens_forall_dense_preimage_fst_of_forall_maximal_mem.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 NeronModelInfra
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry Topology TensorProduct
universe u
namespace DenseSliceLocus
section Chart
variable {R : Type u} [CommRing R]
variable {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R))
variable (A A' : Type u) [CommRing A] [CommRing A'] [Algebra R A] [Algebra R A']
variable (u : Spec (CommRingCat.of A) ⟶ X) (u' : Spec (CommRingCat.of A') ⟶ X)
variable [IsOpenImmersion u] [IsOpenImmersion u']
variable (hu : u ≫ f = Spec.map (CommRingCat.ofHom (algebraMap R A)))
variable (hu' : u' ≫ f = Spec.map (CommRingCat.ofHom (algebraMap R A')))
omit [IsOpenImmersion u] [IsOpenImmersion u'] in
theorem chart_fst : chart f A A' u u' hu hu' ≫ pullback.fst f f =
    Spec.map (CommRingCat.ofHom (algebraMap A (A ⊗[R] A'))) ≫ u
NeronModelInfra.DenseSliceLocus.chart_snd
Source context 16 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_NeronModelInfra_exists_mem_opens_forall_dense_preimage_fst_of_forall_maximal_mem.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 NeronModelInfra
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry Topology TensorProduct
universe u
namespace DenseSliceLocus
section Chart
variable {R : Type u} [CommRing R]
variable {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R))
variable (A A' : Type u) [CommRing A] [CommRing A'] [Algebra R A] [Algebra R A']
variable (u : Spec (CommRingCat.of A) ⟶ X) (u' : Spec (CommRingCat.of A') ⟶ X)
variable [IsOpenImmersion u] [IsOpenImmersion u']
variable (hu : u ≫ f = Spec.map (CommRingCat.ofHom (algebraMap R A)))
variable (hu' : u' ≫ f = Spec.map (CommRingCat.ofHom (algebraMap R A')))
omit [IsOpenImmersion u] [IsOpenImmersion u'] in
theorem chart_snd : chart f A A' u u' hu hu' ≫ pullback.snd f f =
    Spec.map (CommRingCat.ofHom (Algebra.TensorProduct.includeRight (R := R) (A := A) (B :=
      A')).toRingHom) ≫ u'
NeronModelInfra.DenseSliceLocus.chart_fst_apply
Source context 16 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_NeronModelInfra_exists_mem_opens_forall_dense_preimage_fst_of_forall_maximal_mem.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 NeronModelInfra
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry Topology TensorProduct
universe u
namespace DenseSliceLocus
section Chart
variable {R : Type u} [CommRing R]
variable {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R))
variable (A A' : Type u) [CommRing A] [CommRing A'] [Algebra R A] [Algebra R A']
variable (u : Spec (CommRingCat.of A) ⟶ X) (u' : Spec (CommRingCat.of A') ⟶ X)
variable [IsOpenImmersion u] [IsOpenImmersion u']
variable (hu : u ≫ f = Spec.map (CommRingCat.ofHom (algebraMap R A)))
variable (hu' : u' ≫ f = Spec.map (CommRingCat.ofHom (algebraMap R A')))
omit [IsOpenImmersion u] [IsOpenImmersion u'] in
theorem chart_fst_apply (𝔓 : ↑(Spec (CommRingCat.of (A ⊗[R] A')))) :
    (pullback.fst f f).base ((chart f A A' u u' hu hu').base 𝔓) = u.base ⟨𝔓.asIdeal.under A,
      𝔓.isPrime.comap (algebraMap A (A ⊗[R] A'))⟩
NeronModelInfra.DenseSliceLocus.chart_snd_apply
Source context 16 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_NeronModelInfra_exists_mem_opens_forall_dense_preimage_fst_of_forall_maximal_mem.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 NeronModelInfra
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry Topology TensorProduct
universe u
namespace DenseSliceLocus
section Chart
variable {R : Type u} [CommRing R]
variable {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R))
variable (A A' : Type u) [CommRing A] [CommRing A'] [Algebra R A] [Algebra R A']
variable (u : Spec (CommRingCat.of A) ⟶ X) (u' : Spec (CommRingCat.of A') ⟶ X)
variable [IsOpenImmersion u] [IsOpenImmersion u']
variable (hu : u ≫ f = Spec.map (CommRingCat.ofHom (algebraMap R A)))
variable (hu' : u' ≫ f = Spec.map (CommRingCat.ofHom (algebraMap R A')))
omit [IsOpenImmersion u] [IsOpenImmersion u'] in
theorem chart_snd_apply (𝔓 : ↑(Spec (CommRingCat.of (A ⊗[R] A')))) :
    (pullback.snd f f).base ((chart f A A' u u' hu hu').base 𝔓) =
      u'.base ⟨𝔓.asIdeal.comap (Algebra.TensorProduct.includeRight (R := R) (A := A) (B :=
        A')).toRingHom,
        𝔓.isPrime.comap _⟩
NeronModelInfra.DenseSliceLocus.range_chart
Source context 16 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_NeronModelInfra_exists_mem_opens_forall_dense_preimage_fst_of_forall_maximal_mem.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 NeronModelInfra
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry Topology TensorProduct
universe u
namespace DenseSliceLocus
section Chart
variable {R : Type u} [CommRing R]
variable {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R))
variable (A A' : Type u) [CommRing A] [CommRing A'] [Algebra R A] [Algebra R A']
variable (u : Spec (CommRingCat.of A) ⟶ X) (u' : Spec (CommRingCat.of A') ⟶ X)
variable [IsOpenImmersion u] [IsOpenImmersion u']
variable (hu : u ≫ f = Spec.map (CommRingCat.ofHom (algebraMap R A)))
variable (hu' : u' ≫ f = Spec.map (CommRingCat.ofHom (algebraMap R A')))
omit [IsOpenImmersion u] [IsOpenImmersion u'] in
theorem range_chart : Set.range (chart f A A' u u' hu hu').base =
    {q | (pullback.fst f f).base q ∈ Set.range u.base ∧ (pullback.snd f f).base q ∈ Set.range
      u'.base}
NeronModelInfra.DenseSliceLocus.f_u_apply
Source context 17 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_NeronModelInfra_exists_mem_opens_forall_dense_preimage_fst_of_forall_maximal_mem.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 NeronModelInfra
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry Topology TensorProduct
universe u
namespace DenseSliceLocus
section Chart
variable {R : Type u} [CommRing R]
variable {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R))
variable (A A' : Type u) [CommRing A] [CommRing A'] [Algebra R A] [Algebra R A']
variable (u : Spec (CommRingCat.of A) ⟶ X) (u' : Spec (CommRingCat.of A') ⟶ X)
variable [IsOpenImmersion u] [IsOpenImmersion u']
variable (hu : u ≫ f = Spec.map (CommRingCat.ofHom (algebraMap R A)))
variable (hu' : u' ≫ f = Spec.map (CommRingCat.ofHom (algebraMap R A')))
include hu in
omit [IsOpenImmersion u] [IsOpenImmersion u'] in
theorem f_u_apply (p : ↑(Spec (CommRingCat.of A))) :
    f.base (u.base p) = ⟨p.asIdeal.under R, p.isPrime.comap _⟩
NeronModelInfra.DenseSliceLocus.f_u'_apply
Source context 17 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_NeronModelInfra_exists_mem_opens_forall_dense_preimage_fst_of_forall_maximal_mem.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 NeronModelInfra
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry Topology TensorProduct
universe u
namespace DenseSliceLocus
section Chart
variable {R : Type u} [CommRing R]
variable {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R))
variable (A A' : Type u) [CommRing A] [CommRing A'] [Algebra R A] [Algebra R A']
variable (u : Spec (CommRingCat.of A) ⟶ X) (u' : Spec (CommRingCat.of A') ⟶ X)
variable [IsOpenImmersion u] [IsOpenImmersion u']
variable (hu : u ≫ f = Spec.map (CommRingCat.ofHom (algebraMap R A)))
variable (hu' : u' ≫ f = Spec.map (CommRingCat.ofHom (algebraMap R A')))
include hu' in
omit [IsOpenImmersion u] [IsOpenImmersion u'] in
theorem f_u'_apply (p : ↑(Spec (CommRingCat.of A'))) :
    f.base (u'.base p) = ⟨p.asIdeal.under R, p.isPrime.comap _⟩
NeronModelInfra.DenseSliceLocus.chart_specializes_iff
Source context 15 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_NeronModelInfra_exists_mem_opens_forall_dense_preimage_fst_of_forall_maximal_mem.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 NeronModelInfra
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry Topology TensorProduct
universe u
namespace DenseSliceLocus
section Chart
variable {R : Type u} [CommRing R]
variable {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R))
variable (A A' : Type u) [CommRing A] [CommRing A'] [Algebra R A] [Algebra R A']
variable (u : Spec (CommRingCat.of A) ⟶ X) (u' : Spec (CommRingCat.of A') ⟶ X)
variable [IsOpenImmersion u] [IsOpenImmersion u']
variable (hu : u ≫ f = Spec.map (CommRingCat.ofHom (algebraMap R A)))
variable (hu' : u' ≫ f = Spec.map (CommRingCat.ofHom (algebraMap R A')))
theorem chart_specializes_iff (𝔓 𝔔 : ↑(Spec (CommRingCat.of (A ⊗[R] A')))) :
    (chart f A A' u u' hu hu').base 𝔓 ⤳ (chart f A A' u u' hu hu').base 𝔔 ↔ 𝔓.asIdeal ≤
      𝔔.asIdeal
NeronModelInfra.DenseSliceLocus.mem_range_chart_of_specializes
Source context 15 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_NeronModelInfra_exists_mem_opens_forall_dense_preimage_fst_of_forall_maximal_mem.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 NeronModelInfra
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry Topology TensorProduct
universe u
namespace DenseSliceLocus
section Chart
variable {R : Type u} [CommRing R]
variable {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R))
variable (A A' : Type u) [CommRing A] [CommRing A'] [Algebra R A] [Algebra R A']
variable (u : Spec (CommRingCat.of A) ⟶ X) (u' : Spec (CommRingCat.of A') ⟶ X)
variable [IsOpenImmersion u] [IsOpenImmersion u']
variable (hu : u ≫ f = Spec.map (CommRingCat.ofHom (algebraMap R A)))
variable (hu' : u' ≫ f = Spec.map (CommRingCat.ofHom (algebraMap R A')))
theorem mem_range_chart_of_specializes {y : ↑(pullback f f)} {𝔓 : ↑(Spec (CommRingCat.of (A ⊗[R]
  A')))}
    (h : y ⤳ (chart f A A' u u' hu hu').base 𝔓) : y ∈ Set.range (chart f A A' u u' hu hu').base
NeronModelInfra.DenseSliceLocus.fibreMax_iff
Source context 15 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_NeronModelInfra_exists_mem_opens_forall_dense_preimage_fst_of_forall_maximal_mem.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 NeronModelInfra
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry Topology TensorProduct
universe u
namespace DenseSliceLocus
section Chart
variable {R : Type u} [CommRing R]
variable {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R))
variable (A A' : Type u) [CommRing A] [CommRing A'] [Algebra R A] [Algebra R A']
variable (u : Spec (CommRingCat.of A) ⟶ X) (u' : Spec (CommRingCat.of A') ⟶ X)
variable [IsOpenImmersion u] [IsOpenImmersion u']
variable (hu : u ≫ f = Spec.map (CommRingCat.ofHom (algebraMap R A)))
variable (hu' : u' ≫ f = Spec.map (CommRingCat.ofHom (algebraMap R A')))
theorem fibreMax_iff (𝔓 : ↑(Spec (CommRingCat.of (A ⊗[R] A')))) :
    (∀ y : ↑(pullback f f), (pullback.fst f f).base y = (pullback.fst f f).base ((chart f A A' u
      u' hu hu').base 𝔓) →
      y ⤳ (chart f A A' u u' hu hu').base 𝔓 → y = (chart f A A' u u' hu hu').base 𝔓) ↔
    𝔓.asIdeal ∈ ((𝔓.asIdeal.under A).map (algebraMap A (A ⊗[R] A'))).minimalPrimes
NeronModelInfra.DenseSliceLocus.mem_minimalPrimes_of_spMax
Source context 17 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_NeronModelInfra_exists_mem_opens_forall_dense_preimage_fst_of_forall_maximal_mem.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 NeronModelInfra
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry Topology TensorProduct
universe u
namespace DenseSliceLocus
section Chart
variable {R : Type u} [CommRing R]
variable {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R))
variable (A A' : Type u) [CommRing A] [CommRing A'] [Algebra R A] [Algebra R A']
variable (u : Spec (CommRingCat.of A) ⟶ X) (u' : Spec (CommRingCat.of A') ⟶ X)
variable [IsOpenImmersion u] [IsOpenImmersion u']
variable (hu : u ≫ f = Spec.map (CommRingCat.ofHom (algebraMap R A)))
variable (hu' : u' ≫ f = Spec.map (CommRingCat.ofHom (algebraMap R A')))
variable [IsLocalRing R]
include hu' in
theorem mem_minimalPrimes_of_spMax (p : ↑(Spec (CommRingCat.of A')))
    (hp : f.base (u'.base p) = IsLocalRing.closedPoint R)
    (hmax : ∀ y : X, y ⤳ u'.base p → f.base y = IsLocalRing.closedPoint R → y = u'.base p) :
    p.asIdeal ∈ ((IsLocalRing.maximalIdeal R).map (algebraMap R A')).minimalPrimes
NeronModelInfra.DenseSliceLocus.trdeg_congr_ideal
Source context 17 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_NeronModelInfra_exists_mem_opens_forall_dense_preimage_fst_of_forall_maximal_mem.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 NeronModelInfra
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry Topology TensorProduct
universe u
namespace DenseSliceLocus
section Chart
variable {R : Type u} [CommRing R]
variable {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R))
variable (A A' : Type u) [CommRing A] [CommRing A'] [Algebra R A] [Algebra R A']
variable (u : Spec (CommRingCat.of A) ⟶ X) (u' : Spec (CommRingCat.of A') ⟶ X)
variable [IsOpenImmersion u] [IsOpenImmersion u']
variable (hu : u ≫ f = Spec.map (CommRingCat.ofHom (algebraMap R A)))
variable (hu' : u' ≫ f = Spec.map (CommRingCat.ofHom (algebraMap R A')))
variable [IsLocalRing R]
omit [IsLocalRing R] in
theorem trdeg_congr_ideal {I J : Ideal A'} [I.IsPrime] [J.IsPrime] (h : I = J) :
    Algebra.trdeg (R ⧸ I.under R) (A' ⧸ I) = Algebra.trdeg (R ⧸ J.under R) (A' ⧸ J)
NeronModelInfra.DenseSliceLocus.chart_lemma
Source context 16 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_NeronModelInfra_exists_mem_opens_forall_dense_preimage_fst_of_forall_maximal_mem.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 NeronModelInfra
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry Topology TensorProduct
universe u
namespace DenseSliceLocus
section Chart
variable {R : Type u} [CommRing R]
variable {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R))
variable (A A' : Type u) [CommRing A] [CommRing A'] [Algebra R A] [Algebra R A']
variable (u : Spec (CommRingCat.of A) ⟶ X) (u' : Spec (CommRingCat.of A') ⟶ X)
variable [IsOpenImmersion u] [IsOpenImmersion u']
variable (hu : u ≫ f = Spec.map (CommRingCat.ofHom (algebraMap R A)))
variable (hu' : u' ≫ f = Spec.map (CommRingCat.ofHom (algebraMap R A')))
variable [IsLocalRing R]
theorem chart_lemma [Algebra.FiniteType R A] [Algebra.FiniteType R A']
    (c : ↑(pullback f f)) (hc : c ∈ Set.range (chart f A A' u u' hu hu').base)
    (hcs : f.base ((pullback.fst f f).base c) = IsLocalRing.closedPoint R) :
    ∃ T : X.Opens, (pullback.fst f f).base c ∈ T ∧
      ∀ θ : ↑(pullback f f), θ ∈ Set.range (chart f A A' u u' hu hu').base → c ⤳ θ →
        (pullback.fst f f).base θ ∈ T →
        (∀ y : ↑(pullback f f), (pullback.fst f f).base y = (pullback.fst f f).base θ → y ⤳ θ →
          y = θ) →
        f.base ((pullback.snd f f).base θ) = IsLocalRing.closedPoint R →
        (∀ y : X, y ⤳ (pullback.snd f f).base θ → f.base y = IsLocalRing.closedPoint R →
          y = (pullback.snd f f).base θ) →
        ∀ y : ↑(pullback f f), (pullback.fst f f).base y = (pullback.fst f f).base c → y ⤳ c → y
          = c
NeronModelInfra.DenseSliceLocus.SpMax

A point maximal for specialization within the special fiber.

Source context 9 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_NeronModelInfra_exists_mem_opens_forall_dense_preimage_fst_of_forall_maximal_mem.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 NeronModelInfra
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry Topology TensorProduct
universe u
namespace DenseSliceLocus
section Main
variable {R : Type u} [CommRing R] [IsLocalRing R] [IsNoetherianRing R]
def SpMax {P : Scheme.{u}} (p : P ⟶ Spec (CommRingCat.of R)) (x : P) : Prop
NeronModelInfra.DenseSliceLocus.main
Source context 9 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_NeronModelInfra_exists_mem_opens_forall_dense_preimage_fst_of_forall_maximal_mem.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 NeronModelInfra
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry Topology TensorProduct
universe u
namespace DenseSliceLocus
section Main
variable {R : Type u} [CommRing R] [IsLocalRing R] [IsNoetherianRing R]
theorem main {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R)) [LocallyOfFiniteType f]
  [QuasiCompact f]
    (Z : (pullback f f).Opens)
    (hZ : ∀ p : ↑(pullback f f), (pullback.fst f f ≫ f).base p = IsLocalRing.closedPoint R →
      (∀ y : ↑(pullback f f), y ⤳ p → (pullback.fst f f ≫ f).base y = IsLocalRing.closedPoint R
        → y = p) →
      p ∈ Z)
    (ξ : X) (_hξ : f.base ξ = IsLocalRing.closedPoint R)
    (hξmax : ∀ y : X, y ⤳ ξ → f.base y = IsLocalRing.closedPoint R → y = ξ) :
    ∃ N : X.Opens, ξ ∈ N ∧ ∀ a : X, a ∈ N → f.base a = IsLocalRing.closedPoint R →
      Dense ((Subtype.val : {q : ↑(pullback f f) // (pullback.fst f f).base q = a} → ↑(pullback
        f f)) ⁻¹'
        (Z : Set ↑(pullback f f)))
NeronModelInfra.exists_mem_opens_forall_dense_preimage_fst_of_forall_maximal_mem
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_NeronModelInfra_exists_mem_opens_forall_dense_preimage_fst_of_forall_maximal_mem.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 NeronModelInfra
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry Topology TensorProduct
universe u
theorem exists_mem_opens_forall_dense_preimage_fst_of_forall_maximal_mem
    {R : Type u} [CommRing R] [IsLocalRing R] [IsNoetherianRing R]
    {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R)) [LocallyOfFiniteType f] [QuasiCompact f]
    (Z : (pullback f f).Opens)
    (hZ : ∀ p : ↑(pullback f f), (pullback.fst f f ≫ f).base p = IsLocalRing.closedPoint R →
      (∀ y : ↑(pullback f f), y ⤳ p → (pullback.fst f f ≫ f).base y = IsLocalRing.closedPoint R
        → y = p) →
      p ∈ Z)
    (ξ : X) (hξ : f.base ξ = IsLocalRing.closedPoint R)
    (hξmax : ∀ y : X, y ⤳ ξ → f.base y = IsLocalRing.closedPoint R → y = ξ) :
    ∃ N : X.Opens, ξ ∈ N ∧ ∀ a : X, a ∈ N → f.base a = IsLocalRing.closedPoint R →
      Dense ((Subtype.val : {q : ↑(pullback f f) // (pullback.fst f f).base q = a} → ↑(pullback
        f f)) ⁻¹'
        (Z : Set ↑(pullback f f)))