Module

PropernessCriteria.lean

Nyll.SchemeTheory.Morphisms.PropernessCriteria
115 declarations indexed from sourceView source ↗

Properness over local bases

Valuative bounds on sections, lifting clopen components over complete local rings, and properness detected by a geometrically connected closed fiber with a section.

Imports20
Imported by3

Declarations

SchemeTheory.Properness.ValuativeBounds.AlgebraicGeometry.ProperBounded.evalHom

Evaluate a section along a point whose image lies in the chosen open.

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_AlgebraicGeometry_exists_ne_zero_forall_exists_mul_appLE_mem_range_algebraMap_of_isProper.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.Properness.ValuativeBounds
noncomputable section
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.Filter
universe u v
namespace AlgebraicGeometry
open _root_.AlgebraicGeometry
namespace ProperBounded
open _root_.AlgebraicGeometry
section Eval
variable {X : Scheme.{u}}
def evalHom {L : Type u} [CommRing L] (a : Spec (CommRingCat.of L) ⟶ X) (V : X.Opens) (h : ⊤ ≤ a ⁻¹ᵁ
    V) :
    Γ(X, V) →+* L
SchemeTheory.Properness.ValuativeBounds.AlgebraicGeometry.ProperBounded.ofHom_evalHom
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_AlgebraicGeometry_exists_ne_zero_forall_exists_mul_appLE_mem_range_algebraMap_of_isProper.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.Properness.ValuativeBounds
noncomputable section
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.Filter
universe u v
namespace AlgebraicGeometry
open _root_.AlgebraicGeometry
namespace ProperBounded
open _root_.AlgebraicGeometry
section Eval
variable {X : Scheme.{u}}
theorem ofHom_evalHom {L : Type u} [CommRing L] (a : Spec (CommRingCat.of L) ⟶ X) (V : X.Opens)
    (h : ⊤ ≤ a ⁻¹ᵁ V) :
    CommRingCat.ofHom (evalHom a V h) = a.appLE V ⊤ h ≫ (Scheme.ΓSpecIso (CommRingCat.of L)).hom
SchemeTheory.Properness.ValuativeBounds.AlgebraicGeometry.ProperBounded.evalHom_apply
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_AlgebraicGeometry_exists_ne_zero_forall_exists_mul_appLE_mem_range_algebraMap_of_isProper.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.Properness.ValuativeBounds
noncomputable section
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.Filter
universe u v
namespace AlgebraicGeometry
open _root_.AlgebraicGeometry
namespace ProperBounded
open _root_.AlgebraicGeometry
section Eval
variable {X : Scheme.{u}}
theorem evalHom_apply {L : Type u} [CommRing L] (a : Spec (CommRingCat.of L) ⟶ X) (V : X.Opens)
    (h : ⊤ ≤ a ⁻¹ᵁ V) (g : Γ(X, V)) :
    evalHom a V h g = (Scheme.ΓSpecIso (CommRingCat.of L)).hom (a.appLE V ⊤ h g)
SchemeTheory.Properness.ValuativeBounds.AlgebraicGeometry.ProperBounded.evalHom_map
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_AlgebraicGeometry_exists_ne_zero_forall_exists_mul_appLE_mem_range_algebraMap_of_isProper.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.Properness.ValuativeBounds
noncomputable section
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.Filter
universe u v
namespace AlgebraicGeometry
open _root_.AlgebraicGeometry
namespace ProperBounded
open _root_.AlgebraicGeometry
section Eval
variable {X : Scheme.{u}}
theorem evalHom_map {L : Type u} [CommRing L] (a : Spec (CommRingCat.of L) ⟶ X) {V V' : X.Opens}
    (h : ⊤ ≤ a ⁻¹ᵁ V) (h' : ⊤ ≤ a ⁻¹ᵁ V') (i : V' ≤ V) (g : Γ(X, V)) :
    evalHom a V' h' (X.presheaf.map (homOfLE i).op g) = evalHom a V h g
SchemeTheory.Properness.ValuativeBounds.AlgebraicGeometry.ProperBounded.evalHom_specMap_comp
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_AlgebraicGeometry_exists_ne_zero_forall_exists_mul_appLE_mem_range_algebraMap_of_isProper.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.Properness.ValuativeBounds
noncomputable section
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.Filter
universe u v
namespace AlgebraicGeometry
open _root_.AlgebraicGeometry
namespace ProperBounded
open _root_.AlgebraicGeometry
section Eval
variable {X : Scheme.{u}}
theorem evalHom_specMap_comp {L L' : Type u} [CommRing L] [CommRing L'] (φ : L →+* L')
    (b : Spec (CommRingCat.of L) ⟶ X) (V : X.Opens) (hb : ⊤ ≤ b ⁻¹ᵁ V)
    (h : ⊤ ≤ (Spec.map (CommRingCat.ofHom φ) ≫ b) ⁻¹ᵁ V) :
    evalHom (Spec.map (CommRingCat.ofHom φ) ≫ b) V h = φ.comp (evalHom b V hb)
SchemeTheory.Properness.ValuativeBounds.AlgebraicGeometry.ProperBounded.top_le_preimage_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_AlgebraicGeometry_exists_ne_zero_forall_exists_mul_appLE_mem_range_algebraMap_of_isProper.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.Properness.ValuativeBounds
noncomputable section
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.Filter
universe u v
namespace AlgebraicGeometry
open _root_.AlgebraicGeometry
namespace ProperBounded
open _root_.AlgebraicGeometry
section Eval
variable {X : Scheme.{u}}
theorem top_le_preimage_iff {L : Type u} [Field L] (a : Spec (CommRingCat.of L) ⟶ X) (V : X.Opens) :
    ⊤ ≤ a ⁻¹ᵁ V ↔ a.base default ∈ V
SchemeTheory.Properness.ValuativeBounds.AlgebraicGeometry.ProperBounded.primeSpectrum_basicOpen_eq_top_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_AlgebraicGeometry_exists_ne_zero_forall_exists_mul_appLE_mem_range_algebraMap_of_isProper.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.Properness.ValuativeBounds
noncomputable section
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.Filter
universe u v
namespace AlgebraicGeometry
open _root_.AlgebraicGeometry
namespace ProperBounded
open _root_.AlgebraicGeometry
section Eval
variable {X : Scheme.{u}}
theorem primeSpectrum_basicOpen_eq_top_iff {L : Type u} [Field L] (r : L) :
    PrimeSpectrum.basicOpen r = ⊤ ↔ r ≠ 0
SchemeTheory.Properness.ValuativeBounds.AlgebraicGeometry.ProperBounded.top_le_preimage_basicOpen_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_AlgebraicGeometry_exists_ne_zero_forall_exists_mul_appLE_mem_range_algebraMap_of_isProper.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.Properness.ValuativeBounds
noncomputable section
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.Filter
universe u v
namespace AlgebraicGeometry
open _root_.AlgebraicGeometry
namespace ProperBounded
open _root_.AlgebraicGeometry
section Eval
variable {X : Scheme.{u}}
theorem top_le_preimage_basicOpen_iff {L : Type u} [Field L] (a : Spec (CommRingCat.of L) ⟶ X) {V :
    X.Opens}
    (h : ⊤ ≤ a ⁻¹ᵁ V) (e : Γ(X, V)) :
    ⊤ ≤ a ⁻¹ᵁ X.basicOpen e ↔ evalHom a V h e ≠ 0
SchemeTheory.Properness.ValuativeBounds.AlgebraicGeometry.ProperBounded.exists_eval_mul_pow_eq
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_AlgebraicGeometry_exists_ne_zero_forall_exists_mul_appLE_mem_range_algebraMap_of_isProper.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.Properness.ValuativeBounds
noncomputable section
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.Filter
universe u v
namespace AlgebraicGeometry
open _root_.AlgebraicGeometry
namespace ProperBounded
open _root_.AlgebraicGeometry
section Eval
variable {X : Scheme.{u}}
theorem exists_eval_mul_pow_eq {V V' : X.Opens} (hV : IsAffineOpen V) (e : Γ(X, V)) (he :
    X.basicOpen e ≤ V')
    (g : Γ(X, V')) :
    ∃ (p : Γ(X, V)) (n : ℕ), ∀ {L : Type u} [Field L] (a : Spec (CommRingCat.of L) ⟶ X)
      (h : ⊤ ≤ a ⁻¹ᵁ V), evalHom a V h e ≠ 0 →
      ∃ h' : ⊤ ≤ a ⁻¹ᵁ V', evalHom a V' h' g * (evalHom a V h e) ^ n = evalHom a V h p
SchemeTheory.Properness.ValuativeBounds.AlgebraicGeometry.ProperBounded.evalHom_congr
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_AlgebraicGeometry_exists_ne_zero_forall_exists_mul_appLE_mem_range_algebraMap_of_isProper.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.Properness.ValuativeBounds
noncomputable section
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.Filter
universe u v
namespace AlgebraicGeometry
open _root_.AlgebraicGeometry
namespace ProperBounded
open _root_.AlgebraicGeometry
section Eval
variable {X : Scheme.{u}}
theorem evalHom_congr {L : Type u} [CommRing L] {a b : Spec (CommRingCat.of L) ⟶ X} (hab : a = b) (V
    : X.Opens)
    (ha : ⊤ ≤ a ⁻¹ᵁ V) (hb : ⊤ ≤ b ⁻¹ᵁ V) : evalHom a V ha = evalHom b V hb
SchemeTheory.Properness.ValuativeBounds.AlgebraicGeometry.ProperBounded.eq_specMap_evalHom_comp_fromSpec
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_AlgebraicGeometry_exists_ne_zero_forall_exists_mul_appLE_mem_range_algebraMap_of_isProper.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.Properness.ValuativeBounds
noncomputable section
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.Filter
universe u v
namespace AlgebraicGeometry
open _root_.AlgebraicGeometry
namespace ProperBounded
open _root_.AlgebraicGeometry
section Eval
variable {X : Scheme.{u}}
theorem eq_specMap_evalHom_comp_fromSpec {L : Type u} [CommRing L] (a : Spec (CommRingCat.of L) ⟶ X)
    {V : X.Opens} (hV : IsAffineOpen V) (h : ⊤ ≤ a ⁻¹ᵁ V) :
    a = Spec.map (CommRingCat.ofHom (evalHom a V h)) ≫ hV.fromSpec
SchemeTheory.Properness.ValuativeBounds.AlgebraicGeometry.ProperBounded.evalHom_specMap_comp_fromSpec
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_AlgebraicGeometry_exists_ne_zero_forall_exists_mul_appLE_mem_range_algebraMap_of_isProper.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.Properness.ValuativeBounds
noncomputable section
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.Filter
universe u v
namespace AlgebraicGeometry
open _root_.AlgebraicGeometry
namespace ProperBounded
open _root_.AlgebraicGeometry
section Eval
variable {X : Scheme.{u}}
theorem evalHom_specMap_comp_fromSpec {L : Type u} [CommRing L] {V : X.Opens} (hV : IsAffineOpen V)
    (Φ : Γ(X, V) →+* L) (h : ⊤ ≤ (Spec.map (CommRingCat.ofHom Φ) ≫ hV.fromSpec) ⁻¹ᵁ V) :
    evalHom (Spec.map (CommRingCat.ofHom Φ) ≫ hV.fromSpec) V h = Φ
SchemeTheory.Properness.ValuativeBounds.AlgebraicGeometry.ProperBounded.top_le_preimage_of_mem
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_AlgebraicGeometry_exists_ne_zero_forall_exists_mul_appLE_mem_range_algebraMap_of_isProper.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.Properness.ValuativeBounds
noncomputable section
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.Filter
universe u v
namespace AlgebraicGeometry
open _root_.AlgebraicGeometry
namespace ProperBounded
open _root_.AlgebraicGeometry
section Eval
variable {X : Scheme.{u}}
theorem top_le_preimage_of_mem {L : Type u} [CommRing L] [IsLocalRing L] (a : Spec (CommRingCat.of
    L) ⟶ X)
    {V : X.Opens} (h : a.base (IsLocalRing.closedPoint L) ∈ V) : ⊤ ≤ a ⁻¹ᵁ V
SchemeTheory.Properness.ValuativeBounds.AlgebraicGeometry.ProperBounded.algK

The base-field coefficient map on sections of the given open.

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_AlgebraicGeometry_exists_ne_zero_forall_exists_mul_appLE_mem_range_algebraMap_of_isProper.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.Properness.ValuativeBounds
noncomputable section
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.Filter
universe u v
namespace AlgebraicGeometry
open _root_.AlgebraicGeometry
namespace ProperBounded
open _root_.AlgebraicGeometry
section Eval
variable {X : Scheme.{u}}
variable {K : Type u} [Field K] (f : X ⟶ Spec (CommRingCat.of K))
def algK (V : X.Opens) : K →+* Γ(X, V)
SchemeTheory.Properness.ValuativeBounds.AlgebraicGeometry.ProperBounded.ofHom_algK
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_AlgebraicGeometry_exists_ne_zero_forall_exists_mul_appLE_mem_range_algebraMap_of_isProper.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.Properness.ValuativeBounds
noncomputable section
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.Filter
universe u v
namespace AlgebraicGeometry
open _root_.AlgebraicGeometry
namespace ProperBounded
open _root_.AlgebraicGeometry
section Eval
variable {X : Scheme.{u}}
variable {K : Type u} [Field K] (f : X ⟶ Spec (CommRingCat.of K))
theorem ofHom_algK (V : X.Opens) :
    CommRingCat.ofHom (algK f V) =
      (Scheme.ΓSpecIso (CommRingCat.of K)).inv ≫ f.appLE ⊤ V (fun _ _ => trivial) :=
  rfl
SchemeTheory.Properness.ValuativeBounds.AlgebraicGeometry.ProperBounded.fromSpec_comp_eq
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_AlgebraicGeometry_exists_ne_zero_forall_exists_mul_appLE_mem_range_algebraMap_of_isProper.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.Properness.ValuativeBounds
noncomputable section
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.Filter
universe u v
namespace AlgebraicGeometry
open _root_.AlgebraicGeometry
namespace ProperBounded
open _root_.AlgebraicGeometry
section Eval
variable {X : Scheme.{u}}
variable {K : Type u} [Field K] (f : X ⟶ Spec (CommRingCat.of K))
theorem fromSpec_comp_eq {V : X.Opens} (hV : IsAffineOpen V) :
    hV.fromSpec ≫ f = Spec.map (CommRingCat.ofHom (algK f V))
SchemeTheory.Properness.ValuativeBounds.AlgebraicGeometry.ProperBounded.evalHom_comp_algK
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_AlgebraicGeometry_exists_ne_zero_forall_exists_mul_appLE_mem_range_algebraMap_of_isProper.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.Properness.ValuativeBounds
noncomputable section
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.Filter
universe u v
namespace AlgebraicGeometry
open _root_.AlgebraicGeometry
namespace ProperBounded
open _root_.AlgebraicGeometry
section Eval
variable {X : Scheme.{u}}
variable {K : Type u} [Field K] (f : X ⟶ Spec (CommRingCat.of K))
theorem evalHom_comp_algK {L : Type u} [CommRing L] (φ : K →+* L) (a : Spec (CommRingCat.of L) ⟶ X)
    (ha : a ≫ f = Spec.map (CommRingCat.ofHom φ)) (V : X.Opens) (h : ⊤ ≤ a ⁻¹ᵁ V) :
    (evalHom a V h).comp (algK f V) = φ
SchemeTheory.Properness.ValuativeBounds.AlgebraicGeometry.ProperBounded.nullIdeal

Functions vanishing on an ultrafilter-large set.

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_AlgebraicGeometry_exists_ne_zero_forall_exists_mul_appLE_mem_range_algebraMap_of_isProper.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.Properness.ValuativeBounds
noncomputable section
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.Filter
universe u v
namespace AlgebraicGeometry
open _root_.AlgebraicGeometry
namespace ProperBounded
open _root_.AlgebraicGeometry
section Ultra
variable {J : Type u} (L : J → Type u) [∀ j, Field (L j)] (𝔘 : Ultrafilter J)
def nullIdeal : Ideal (Π j, L j) where
  carrier := {x | ∀ᶠ j in 𝔘, x j = 0}
  add_mem' {x y} hx hy := by
    filter_upwards [hx, hy] with j hxj hyj
    change x j + y j = 0
    rw [hxj, hyj, add_zero]
  zero_mem' := Filter.Eventually.of_forall (fun _ => rfl)
  smul_mem' r {x} hx := by
    filter_upwards [hx] with j hxj
    change r j * x j = 0
    rw [hxj, mul_zero]
SchemeTheory.Properness.ValuativeBounds.AlgebraicGeometry.ProperBounded.UProd

The quotient defining the ultraproduct of the given fields.

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_AlgebraicGeometry_exists_ne_zero_forall_exists_mul_appLE_mem_range_algebraMap_of_isProper.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.Properness.ValuativeBounds
noncomputable section
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.Filter
universe u v
namespace AlgebraicGeometry
open _root_.AlgebraicGeometry
namespace ProperBounded
open _root_.AlgebraicGeometry
section Ultra
variable {J : Type u} (L : J → Type u) [∀ j, Field (L j)] (𝔘 : Ultrafilter J)
def UProd : Type u
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_AlgebraicGeometry_exists_ne_zero_forall_exists_mul_appLE_mem_range_algebraMap_of_isProper.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.Properness.ValuativeBounds
noncomputable section
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.Filter
universe u v
namespace AlgebraicGeometry
open _root_.AlgebraicGeometry
namespace ProperBounded
open _root_.AlgebraicGeometry
section Ultra
variable {J : Type u} (L : J → Type u) [∀ j, Field (L j)] (𝔘 : Ultrafilter J)
instance : CommRing (UProd L 𝔘)
SchemeTheory.Properness.ValuativeBounds.AlgebraicGeometry.ProperBounded.cls

The canonical quotient map to the ultraproduct.

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_AlgebraicGeometry_exists_ne_zero_forall_exists_mul_appLE_mem_range_algebraMap_of_isProper.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.Properness.ValuativeBounds
noncomputable section
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.Filter
universe u v
namespace AlgebraicGeometry
open _root_.AlgebraicGeometry
namespace ProperBounded
open _root_.AlgebraicGeometry
section Ultra
variable {J : Type u} (L : J → Type u) [∀ j, Field (L j)] (𝔘 : Ultrafilter J)
def cls : (Π j, L j) →+* UProd L 𝔘
SchemeTheory.Properness.ValuativeBounds.AlgebraicGeometry.ProperBounded.cls_surjective
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_AlgebraicGeometry_exists_ne_zero_forall_exists_mul_appLE_mem_range_algebraMap_of_isProper.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.Properness.ValuativeBounds
noncomputable section
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.Filter
universe u v
namespace AlgebraicGeometry
open _root_.AlgebraicGeometry
namespace ProperBounded
open _root_.AlgebraicGeometry
section Ultra
variable {J : Type u} (L : J → Type u) [∀ j, Field (L j)] (𝔘 : Ultrafilter J)
variable {L 𝔘}
theorem cls_surjective : Function.Surjective (cls L 𝔘)
SchemeTheory.Properness.ValuativeBounds.AlgebraicGeometry.ProperBounded.cls_eq_cls_iff
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_AlgebraicGeometry_exists_ne_zero_forall_exists_mul_appLE_mem_range_algebraMap_of_isProper.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.Properness.ValuativeBounds
noncomputable section
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.Filter
universe u v
namespace AlgebraicGeometry
open _root_.AlgebraicGeometry
namespace ProperBounded
open _root_.AlgebraicGeometry
section Ultra
variable {J : Type u} (L : J → Type u) [∀ j, Field (L j)] (𝔘 : Ultrafilter J)
variable {L 𝔘}
theorem cls_eq_cls_iff {x y : Π j, L j} : cls L 𝔘 x = cls L 𝔘 y ↔ ∀ᶠ j in 𝔘, x j = y j
SchemeTheory.Properness.ValuativeBounds.AlgebraicGeometry.ProperBounded.cls_eq_zero_iff
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_AlgebraicGeometry_exists_ne_zero_forall_exists_mul_appLE_mem_range_algebraMap_of_isProper.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.Properness.ValuativeBounds
noncomputable section
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.Filter
universe u v
namespace AlgebraicGeometry
open _root_.AlgebraicGeometry
namespace ProperBounded
open _root_.AlgebraicGeometry
section Ultra
variable {J : Type u} (L : J → Type u) [∀ j, Field (L j)] (𝔘 : Ultrafilter J)
variable {L 𝔘}
theorem cls_eq_zero_iff {x : Π j, L j} : cls L 𝔘 x = 0 ↔ ∀ᶠ j in 𝔘, x j = 0
SchemeTheory.Properness.ValuativeBounds.AlgebraicGeometry.ProperBounded.cls_ne_zero_iff
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_AlgebraicGeometry_exists_ne_zero_forall_exists_mul_appLE_mem_range_algebraMap_of_isProper.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.Properness.ValuativeBounds
noncomputable section
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.Filter
universe u v
namespace AlgebraicGeometry
open _root_.AlgebraicGeometry
namespace ProperBounded
open _root_.AlgebraicGeometry
section Ultra
variable {J : Type u} (L : J → Type u) [∀ j, Field (L j)] (𝔘 : Ultrafilter J)
variable {L 𝔘}
theorem cls_ne_zero_iff {x : Π j, L j} : cls L 𝔘 x ≠ 0 ↔ ∀ᶠ j in 𝔘, x j ≠ 0
SchemeTheory.Properness.ValuativeBounds.AlgebraicGeometry.ProperBounded.isField_uProd
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_AlgebraicGeometry_exists_ne_zero_forall_exists_mul_appLE_mem_range_algebraMap_of_isProper.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.Properness.ValuativeBounds
noncomputable section
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.Filter
universe u v
namespace AlgebraicGeometry
open _root_.AlgebraicGeometry
namespace ProperBounded
open _root_.AlgebraicGeometry
section Ultra
variable {J : Type u} (L : J → Type u) [∀ j, Field (L j)] (𝔘 : Ultrafilter J)
variable {L 𝔘}
variable (L 𝔘) in
theorem isField_uProd : IsField (UProd L 𝔘) where
  exists_pair_ne := ⟨0, 1, fun h => by
    have h' : cls L 𝔘 0 = cls L 𝔘 1 := by simpa only [map_zero, map_one] using h
    rw [cls_eq_cls_iff] at h'
    obtain ⟨j, hj⟩ := h'.exists
    exact zero_ne_one hj⟩
  mul_comm := mul_comm
  mul_inv_cancel {x} hx := by
    obtain ⟨x, rfl⟩ := cls_surjective x
    refine ⟨cls L 𝔘 (fun j => (x j)⁻¹), ?_⟩
    rw [← map_mul, ← map_one (cls L 𝔘), cls_eq_cls_iff]
    filter_upwards [cls_ne_zero_iff.mp hx] with j hj
    exact mul_inv_cancel₀ hj
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_AlgebraicGeometry_exists_ne_zero_forall_exists_mul_appLE_mem_range_algebraMap_of_isProper.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.Properness.ValuativeBounds
noncomputable section
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.Filter
universe u v
namespace AlgebraicGeometry
open _root_.AlgebraicGeometry
namespace ProperBounded
open _root_.AlgebraicGeometry
section Ultra
variable {J : Type u} (L : J → Type u) [∀ j, Field (L j)] (𝔘 : Ultrafilter J)
variable {L 𝔘}
variable (L 𝔘) in
instance : Field (UProd L 𝔘)
SchemeTheory.Properness.ValuativeBounds.AlgebraicGeometry.ProperBounded.cls_inv
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_AlgebraicGeometry_exists_ne_zero_forall_exists_mul_appLE_mem_range_algebraMap_of_isProper.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.Properness.ValuativeBounds
noncomputable section
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.Filter
universe u v
namespace AlgebraicGeometry
open _root_.AlgebraicGeometry
namespace ProperBounded
open _root_.AlgebraicGeometry
section Ultra
variable {J : Type u} (L : J → Type u) [∀ j, Field (L j)] (𝔘 : Ultrafilter J)
variable {L 𝔘}
variable (L 𝔘) in
theorem cls_inv (x : Π j, L j) : cls L 𝔘 (fun j => (x j)⁻¹) = (cls L 𝔘 x)⁻¹ := by
  by_cases hx : cls L 𝔘 x = 0
  · rw [hx, inv_zero, cls_eq_zero_iff]
    filter_upwards [cls_eq_zero_iff.mp hx] with j hj
    rw [hj, inv_zero]
  · symm
    apply inv_eq_of_mul_eq_one_right
    rw [← map_mul, ← map_one (cls L 𝔘), cls_eq_cls_iff]
    filter_upwards [cls_ne_zero_iff.mp hx] with j hj
    exact mul_inv_cancel₀ hj
SchemeTheory.Properness.ValuativeBounds.AlgebraicGeometry.ProperBounded.uSubring

The subring of classes represented by almost-everywhere subring elements.

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_AlgebraicGeometry_exists_ne_zero_forall_exists_mul_appLE_mem_range_algebraMap_of_isProper.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.Properness.ValuativeBounds
noncomputable section
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.Filter
universe u v
namespace AlgebraicGeometry
open _root_.AlgebraicGeometry
namespace ProperBounded
open _root_.AlgebraicGeometry
section Ultra
variable {J : Type u} (L : J → Type u) [∀ j, Field (L j)] (𝔘 : Ultrafilter J)
variable {L 𝔘}
variable (L 𝔘) in
def uSubring (S : ∀ j, Subring (L j)) : Subring (UProd L 𝔘)
SchemeTheory.Properness.ValuativeBounds.AlgebraicGeometry.ProperBounded.cls_mem_uSubring_iff
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_AlgebraicGeometry_exists_ne_zero_forall_exists_mul_appLE_mem_range_algebraMap_of_isProper.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.Properness.ValuativeBounds
noncomputable section
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.Filter
universe u v
namespace AlgebraicGeometry
open _root_.AlgebraicGeometry
namespace ProperBounded
open _root_.AlgebraicGeometry
section Ultra
variable {J : Type u} (L : J → Type u) [∀ j, Field (L j)] (𝔘 : Ultrafilter J)
variable {L 𝔘}
variable (L 𝔘) in
theorem cls_mem_uSubring_iff {S : ∀ j, Subring (L j)} {x : Π j, L j} :
    cls L 𝔘 x ∈ uSubring S ↔ ∀ᶠ j in 𝔘, x j ∈ S j
SchemeTheory.Properness.ValuativeBounds.AlgebraicGeometry.ProperBounded.mem_uSubring_or_inv_mem
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_AlgebraicGeometry_exists_ne_zero_forall_exists_mul_appLE_mem_range_algebraMap_of_isProper.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.Properness.ValuativeBounds
noncomputable section
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.Filter
universe u v
namespace AlgebraicGeometry
open _root_.AlgebraicGeometry
namespace ProperBounded
open _root_.AlgebraicGeometry
section Ultra
variable {J : Type u} (L : J → Type u) [∀ j, Field (L j)] (𝔘 : Ultrafilter J)
variable {L 𝔘}
variable (L 𝔘) in
theorem mem_uSubring_or_inv_mem (S : ∀ j, ValuationSubring (L j)) (x : UProd L 𝔘) :
    x ∈ uSubring (fun j => (S j).toSubring) ∨ x⁻¹ ∈ uSubring (fun j => (S j).toSubring) := by
  obtain ⟨x, rfl⟩ := cls_surjective x
  rcases 𝔘.em (fun j => x j ∈ (S j).toSubring) with h | h
  · exact Or.inl (cls_mem_uSubring_iff.mpr h)
  · right
    rw [← cls_inv, cls_mem_uSubring_iff]
    filter_upwards [h] with j hj
    exact ((S j).mem_or_inv_mem (x j)).resolve_left hj
SchemeTheory.Properness.ValuativeBounds.AlgebraicGeometry.ProperBounded.saturation

Saturate a subring by the nonzero base-ring elements.

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_AlgebraicGeometry_exists_ne_zero_forall_exists_mul_appLE_mem_range_algebraMap_of_isProper.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.Properness.ValuativeBounds
noncomputable section
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.Filter
universe u v
namespace AlgebraicGeometry
open _root_.AlgebraicGeometry
namespace ProperBounded
open _root_.AlgebraicGeometry
section Ultra
variable {J : Type u} (L : J → Type u) [∀ j, Field (L j)] (𝔘 : Ultrafilter J)
variable {L 𝔘}
variable (L 𝔘) in
def saturation {R M : Type*} [CommRing R] [IsDomain R] [Field M] (φ : R →+* M) (V : Subring M)
    (hV : ∀ x : M, x ∈ V ∨ x⁻¹ ∈ V) (hR : ∀ r, φ r ∈ V) : ValuationSubring M where
  carrier := {x | ∃ r : R, r ≠ 0 ∧ φ r * x ∈ V}
  mul_mem' := by
    rintro x y ⟨r, hr, hx⟩ ⟨t, ht, hy⟩
    refine ⟨r * t, mul_ne_zero hr ht, ?_⟩
    have : φ (r * t) * (x * y) = (φ r * x) * (φ t * y) := by rw [map_mul]; ring
    rw [this]; exact mul_mem hx hy
  one_mem' := ⟨1, one_ne_zero, by simpa only [map_one, one_mul] using hR 1⟩
  add_mem' := by
    rintro x y ⟨r, hr, hx⟩ ⟨t, ht, hy⟩
    refine ⟨r * t, mul_ne_zero hr ht, ?_⟩
    have : φ (r * t) * (x + y) = φ t * (φ r * x) + φ r * (φ t * y) := by rw [map_mul]; ring
    rw [this]; exact add_mem (mul_mem (hR t) hx) (mul_mem (hR r) hy)
  zero_mem' := ⟨1, one_ne_zero, by rw [mul_zero]; exact V.zero_mem⟩
  neg_mem' := by
    rintro x ⟨r, hr, hx⟩
    exact ⟨r, hr, by rw [mul_neg]; exact neg_mem hx⟩
  mem_or_inv_mem' x := by
    rcases hV x with h | h
    · exact Or.inl ⟨1, one_ne_zero, by simpa only [map_one, one_mul] using h⟩
    · exact Or.inr ⟨1, one_ne_zero, by simpa only [map_one, one_mul] using h⟩
SchemeTheory.Properness.ValuativeBounds.AlgebraicGeometry.ProperBounded.BadDatum

A field-valued obstruction to a uniform valuative bound.

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_AlgebraicGeometry_exists_ne_zero_forall_exists_mul_appLE_mem_range_algebraMap_of_isProper.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.Properness.ValuativeBounds
noncomputable section
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.Filter
universe u v
namespace AlgebraicGeometry
open _root_.AlgebraicGeometry
namespace ProperBounded
open _root_.AlgebraicGeometry
section Main
variable {R : Type u} [CommRing R] [IsDomain R] (K : Type u) [Field K] [Algebra R K] [IsFractionRing
    R K]
variable {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of K))
variable {ι : Type v} (U : ι → X.Opens) (s : ∀ i, Finset Γ(X, U i))
structure BadDatum (c : R) where
  /-- The test field. -/
  L : Type u
  /-- The field structure. -/
  [fld : Field L]
  /-- The base-ring algebra structure. -/
  [algR : Algebra R L]
  /-- The fraction-field algebra structure. -/
  [algK : Algebra K L]
  /-- Compatibility of the two algebra structures. -/
  [tow : IsScalarTower R K L]
  /-- The test valuation subring. -/
  V : ValuationSubring L
  /-- The base ring maps into the valuation subring. -/
  hRV : ∀ r : R, algebraMap R L r ∈ V
  /-- The test point of the scheme. -/
  a : Spec (CommRingCat.of L) ⟶ X
  /-- The point lies over the chosen fraction-field map. -/
  ha : a ≫ f = Spec.map (CommRingCat.ofHom (algebraMap K L))
  /-- Some chosen section violates the proposed bound on every admissible open. -/
  bad : ∀ (i : ι) (h : ⊤ ≤ a ⁻¹ᵁ U i), ∃ g ∈ s i, algebraMap R L c * evalHom a (U i) h g ∉ V
SchemeTheory.Properness.ValuativeBounds.AlgebraicGeometry.ProperBounded.false_of_badDatum
Source context 19 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_exists_ne_zero_forall_exists_mul_appLE_mem_range_algebraMap_of_isProper.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.Properness.ValuativeBounds
noncomputable section
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.Filter
universe u v
namespace AlgebraicGeometry
open _root_.AlgebraicGeometry
namespace ProperBounded
open _root_.AlgebraicGeometry
section Main
variable {R : Type u} [CommRing R] [IsDomain R] (K : Type u) [Field K] [Algebra R K] [IsFractionRing
    R K]
variable {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of K))
variable {ι : Type v} (U : ι → X.Opens) (s : ∀ i, Finset Γ(X, U i))
attribute [local instance] BadDatum.fld BadDatum.algR BadDatum.algK BadDatum.tow
variable {K f U s}
theorem false_of_badDatum [IsProper f] (hcov : ⨆ i, U i = ⊤)
    (d : ∀ c : {c : R // c ≠ 0}, BadDatum K f U s c.1) : False
SchemeTheory.Properness.ValuativeBounds.AlgebraicGeometry.ProperBounded.valuationSubringOf

The valuation subring in the given field of fractions.

Source context 19 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_exists_ne_zero_forall_exists_mul_appLE_mem_range_algebraMap_of_isProper.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.Properness.ValuativeBounds
noncomputable section
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.Filter
universe u v
namespace AlgebraicGeometry
open _root_.AlgebraicGeometry
namespace ProperBounded
open _root_.AlgebraicGeometry
section Main
variable {R : Type u} [CommRing R] [IsDomain R] (K : Type u) [Field K] [Algebra R K] [IsFractionRing
    R K]
variable {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of K))
variable {ι : Type v} (U : ι → X.Opens) (s : ∀ i, Finset Γ(X, U i))
attribute [local instance] BadDatum.fld BadDatum.algR BadDatum.algK BadDatum.tow
variable {K f U s}
def valuationSubringOf (V L : Type u) [CommRing V] [IsDomain V] [ValuationRing V] [Field L] [Algebra
    V L]
    [IsFractionRing V L] : ValuationSubring L
SchemeTheory.Properness.ValuativeBounds.AlgebraicGeometry.ProperBounded.mem_valuationSubringOf_iff
Source context 19 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_exists_ne_zero_forall_exists_mul_appLE_mem_range_algebraMap_of_isProper.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.Properness.ValuativeBounds
noncomputable section
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.Filter
universe u v
namespace AlgebraicGeometry
open _root_.AlgebraicGeometry
namespace ProperBounded
open _root_.AlgebraicGeometry
section Main
variable {R : Type u} [CommRing R] [IsDomain R] (K : Type u) [Field K] [Algebra R K] [IsFractionRing
    R K]
variable {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of K))
variable {ι : Type v} (U : ι → X.Opens) (s : ∀ i, Finset Γ(X, U i))
attribute [local instance] BadDatum.fld BadDatum.algR BadDatum.algK BadDatum.tow
variable {K f U s}
theorem mem_valuationSubringOf_iff {V L : Type u} [CommRing V] [IsDomain V] [ValuationRing V] [Field
    L]
    [Algebra V L] [IsFractionRing V L] (x : L) :
    x ∈ valuationSubringOf V L ↔ x ∈ Set.range (algebraMap V L)
AlgebraicGeometry.exists_ne_zero_forall_exists_mul_appLE_mem_range_algebraMap_of_isProper
Source context 10 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_exists_ne_zero_forall_exists_mul_appLE_mem_range_algebraMap_of_isProper.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.Properness.ValuativeBounds
noncomputable section
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.Filter
universe u v
open AlgebraicGeometry.ProperBounded in
theorem
    _root_.AlgebraicGeometry.exists_ne_zero_forall_exists_mul_appLE_mem_range_algebraMap_of_isProper
    {R : Type u} [CommRing R] [IsDomain R] (K : Type u) [Field K] [Algebra R K] [IsFractionRing R K]
    {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of K)) [IsProper f]
    {ι : Type v} (U : ι → X.Opens) (hcov : ⨆ i, U i = ⊤) (s : ∀ i, Finset Γ(X, U i)) :
    ∃ c : R, c ≠ 0 ∧
      ∀ (V : Type u) [CommRing V] [IsDomain V] [ValuationRing V] [Algebra R V]
        (L : Type u) [Field L] [Algebra V L] [IsFractionRing V L] [Algebra R L] [IsScalarTower R V
          L]
        [Algebra K L] [IsScalarTower R K L]
        (a : Spec (CommRingCat.of L) ⟶ X), a ≫ f = Spec.map (CommRingCat.ofHom (algebraMap K L)) →
        ∃ (i : ι) (h : ⊤ ≤ a ⁻¹ᵁ U i), ∀ g ∈ s i,
          algebraMap R L c * (Scheme.ΓSpecIso (CommRingCat.of L)).hom (a.appLE (U i) ⊤ h g) ∈
            Set.range (algebraMap V L)
SchemeTheory.Properness.CompleteBaseComponents.SolPiAlg.mem_pow_smul_top_iff
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_exists_isClopen_preimage_eq_of_isProper_of_isAdicComplete.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.Properness.CompleteBaseComponents
universe u v
namespace SolPiAlg
section Lift
variable {A : Type u} {B : Type v} [CommRing A] [CommRing B] [Algebra A B] (I : Ideal A)
lemma mem_pow_smul_top_iff (n : ℕ) (x : B) :
    x ∈ (I ^ n • ⊤ : Submodule A B) ↔ x ∈ (I.map (algebraMap A B)) ^ n
SchemeTheory.Properness.CompleteBaseComponents.SolPiAlg.smodEq_iff
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_exists_isClopen_preimage_eq_of_isProper_of_isAdicComplete.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.Properness.CompleteBaseComponents
universe u v
namespace SolPiAlg
section Lift
variable {A : Type u} {B : Type v} [CommRing A] [CommRing B] [Algebra A B] (I : Ideal A)
lemma smodEq_iff (n : ℕ) (x y : B) :
    x ≡ y [SMOD (I ^ n • ⊤ : Submodule A B)] ↔ x - y ∈ (I.map (algebraMap A B)) ^ n
SchemeTheory.Properness.CompleteBaseComponents.SolPiAlg.newton

The cubic Newton step for lifting an idempotent.

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_exists_isClopen_preimage_eq_of_isProper_of_isAdicComplete.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.Properness.CompleteBaseComponents
universe u v
namespace SolPiAlg
section Lift
variable {A : Type u} {B : Type v} [CommRing A] [CommRing B] [Algebra A B] (I : Ideal A)
def newton (x : B) : B
SchemeTheory.Properness.CompleteBaseComponents.SolPiAlg.newton_sq_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_exists_isClopen_preimage_eq_of_isProper_of_isAdicComplete.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.Properness.CompleteBaseComponents
universe u v
namespace SolPiAlg
section Lift
variable {A : Type u} {B : Type v} [CommRing A] [CommRing B] [Algebra A B] (I : Ideal A)
lemma newton_sq_sub (x : B) :
    newton x ^ 2 - newton x = (x ^ 2 - x) ^ 2 * (4 * x ^ 2 - 4 * x - 3)
SchemeTheory.Properness.CompleteBaseComponents.SolPiAlg.newton_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_exists_isClopen_preimage_eq_of_isProper_of_isAdicComplete.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.Properness.CompleteBaseComponents
universe u v
namespace SolPiAlg
section Lift
variable {A : Type u} {B : Type v} [CommRing A] [CommRing B] [Algebra A B] (I : Ideal A)
lemma newton_sub (x : B) : newton x - x = (x ^ 2 - x) * (1 - 2 * x)
SchemeTheory.Properness.CompleteBaseComponents.SolPiAlg.nseq

Iterate the idempotent-lifting Newton step.

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_exists_isClopen_preimage_eq_of_isProper_of_isAdicComplete.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.Properness.CompleteBaseComponents
universe u v
namespace SolPiAlg
section Lift
variable {A : Type u} {B : Type v} [CommRing A] [CommRing B] [Algebra A B] (I : Ideal A)
def nseq (x₀ : B) (n : ℕ) : B
SchemeTheory.Properness.CompleteBaseComponents.SolPiAlg.nseq_zero
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_exists_isClopen_preimage_eq_of_isProper_of_isAdicComplete.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.Properness.CompleteBaseComponents
universe u v
namespace SolPiAlg
section Lift
variable {A : Type u} {B : Type v} [CommRing A] [CommRing B] [Algebra A B] (I : Ideal A)
lemma nseq_zero (x₀ : B) : nseq x₀ 0 = x₀
SchemeTheory.Properness.CompleteBaseComponents.SolPiAlg.nseq_succ
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_exists_isClopen_preimage_eq_of_isProper_of_isAdicComplete.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.Properness.CompleteBaseComponents
universe u v
namespace SolPiAlg
section Lift
variable {A : Type u} {B : Type v} [CommRing A] [CommRing B] [Algebra A B] (I : Ideal A)
lemma nseq_succ (x₀ : B) (n : ℕ) : nseq x₀ (n + 1) = newton (nseq x₀ n)
SchemeTheory.Properness.CompleteBaseComponents.SolPiAlg.nseq_sq_sub_mem
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_exists_isClopen_preimage_eq_of_isProper_of_isAdicComplete.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.Properness.CompleteBaseComponents
universe u v
namespace SolPiAlg
section Lift
variable {A : Type u} {B : Type v} [CommRing A] [CommRing B] [Algebra A B] (I : Ideal A)
variable {I}
lemma nseq_sq_sub_mem (x₀ : B) (h : x₀ ^ 2 - x₀ ∈ I.map (algebraMap A B)) (n : ℕ) :
    nseq x₀ n ^ 2 - nseq x₀ n ∈ (I.map (algebraMap A B)) ^ (n + 1)
SchemeTheory.Properness.CompleteBaseComponents.SolPiAlg.nseq_succ_sub_mem
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_exists_isClopen_preimage_eq_of_isProper_of_isAdicComplete.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.Properness.CompleteBaseComponents
universe u v
namespace SolPiAlg
section Lift
variable {A : Type u} {B : Type v} [CommRing A] [CommRing B] [Algebra A B] (I : Ideal A)
variable {I}
lemma nseq_succ_sub_mem (x₀ : B) (h : x₀ ^ 2 - x₀ ∈ I.map (algebraMap A B)) (n : ℕ) :
    nseq x₀ (n + 1) - nseq x₀ n ∈ (I.map (algebraMap A B)) ^ (n + 1)
SchemeTheory.Properness.CompleteBaseComponents.SolPiAlg.nseq_sub_mem
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_exists_isClopen_preimage_eq_of_isProper_of_isAdicComplete.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.Properness.CompleteBaseComponents
universe u v
namespace SolPiAlg
section Lift
variable {A : Type u} {B : Type v} [CommRing A] [CommRing B] [Algebra A B] (I : Ideal A)
variable {I}
lemma nseq_sub_mem (x₀ : B) (h : x₀ ^ 2 - x₀ ∈ I.map (algebraMap A B)) {m n : ℕ} (hmn : m ≤ n) :
    nseq x₀ n - nseq x₀ m ∈ (I.map (algebraMap A B)) ^ m
SchemeTheory.Properness.CompleteBaseComponents.SolPiAlg.exists_isIdempotentElem_lift
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_AlgebraicGeometry_exists_isClopen_preimage_eq_of_isProper_of_isAdicComplete.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.Properness.CompleteBaseComponents
universe u v
namespace SolPiAlg
section Lift
variable {A : Type u} {B : Type v} [CommRing A] [CommRing B] [Algebra A B] (I : Ideal A)
variable {I}
variable (I)
theorem exists_isIdempotentElem_lift [IsAdicComplete I B] (x₀ : B)
    (h : x₀ ^ 2 - x₀ ∈ I.map (algebraMap A B)) :
    ∃ e : B, IsIdempotentElem e ∧ e - x₀ ∈ I.map (algebraMap A B)
SchemeTheory.Properness.CompleteBaseComponents.SolPiAlg.isArtinianRing_quotient
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_exists_isClopen_preimage_eq_of_isProper_of_isAdicComplete.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.Properness.CompleteBaseComponents
universe u v
namespace SolPiAlg
section HenselLocal
open IsLocalRing
lemma isArtinianRing_quotient (A : Type u) [CommRing A] [IsLocalRing A]
    (B : Type u) [CommRing B] [Algebra A B] [Module.Finite A B] :
    IsArtinianRing (B ⧸ (maximalIdeal A).map (algebraMap A B))
SchemeTheory.Properness.CompleteBaseComponents.SolPiAlg.map_maximalIdeal_le_of_isMaximal
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_exists_isClopen_preimage_eq_of_isProper_of_isAdicComplete.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.Properness.CompleteBaseComponents
universe u v
namespace SolPiAlg
section HenselLocal
open IsLocalRing
lemma map_maximalIdeal_le_of_isMaximal (A : Type u) [CommRing A] [IsLocalRing A]
    {B : Type u} [CommRing B] [Algebra A B] [Module.Finite A B] (M : Ideal B) [hM : M.IsMaximal] :
    (maximalIdeal A).map (algebraMap A B) ≤ M
SchemeTheory.Properness.CompleteBaseComponents.SolPiAlg.isLocalRing_of_forall_isIdempotentElem
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_exists_isClopen_preimage_eq_of_isProper_of_isAdicComplete.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.Properness.CompleteBaseComponents
universe u v
namespace SolPiAlg
section HenselLocal
open IsLocalRing
theorem isLocalRing_of_forall_isIdempotentElem (A : Type u) [CommRing A] [IsNoetherianRing A]
    [IsLocalRing A] [IsAdicComplete (maximalIdeal A) A]
    (B : Type u) [CommRing B] [Algebra A B] [Module.Finite A B] [Nontrivial B]
    (h : ∀ e : B, IsIdempotentElem e → e = 0 ∨ e = 1) : IsLocalRing B
SchemeTheory.Properness.CompleteBaseComponents.SolPiAlg.comap_eq_maximalIdeal_iff
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_exists_isClopen_preimage_eq_of_isProper_of_isAdicComplete.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.Properness.CompleteBaseComponents
universe u v
namespace SolPiAlg
section HenselLocal
open IsLocalRing
theorem comap_eq_maximalIdeal_iff (A : Type u) [CommRing A] [IsLocalRing A]
    {B : Type u} [CommRing B] [Algebra A B] [Module.Finite A B] [IsLocalRing B]
    (p : Ideal B) [p.IsPrime] :
    p.comap (algebraMap A B) = maximalIdeal A ↔ p = maximalIdeal B
SchemeTheory.Properness.CompleteBaseComponents.SolPiGeo.isUnit_iff_not_isUnit_one_sub_of_isIdempotentElem
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_exists_isClopen_preimage_eq_of_isProper_of_isAdicComplete.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.Properness.CompleteBaseComponents
universe u v
namespace SolPiGeo
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing Topology TopologicalSpace
section Idem
lemma isUnit_iff_not_isUnit_one_sub_of_isIdempotentElem {R : Type*} [CommRing R] [IsLocalRing R]
    {a : R} (ha : IsIdempotentElem a) : IsUnit a ↔ ¬ IsUnit (1 - a)
SchemeTheory.Properness.CompleteBaseComponents.SolPiGeo.isIdempotentElem_eq_zero_or_one
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_exists_isClopen_preimage_eq_of_isProper_of_isAdicComplete.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.Properness.CompleteBaseComponents
universe u v
namespace SolPiGeo
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing Topology TopologicalSpace
section Idem
theorem isIdempotentElem_eq_zero_or_one {Q : Scheme.{u}} [CompactSpace Q] [PreconnectedSpace Q]
    (e : Γ(Q, ⊤)) (he : IsIdempotentElem e) : e = 0 ∨ e = 1
SchemeTheory.Properness.CompleteBaseComponents.SolPiGeo.apply_eq_comap_toSpecΓ
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_AlgebraicGeometry_exists_isClopen_preimage_eq_of_isProper_of_isAdicComplete.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.Properness.CompleteBaseComponents
universe u v
namespace SolPiGeo
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing Topology TopologicalSpace
section Conn
variable {A : Type u} [CommRing A] [IsNoetherianRing A] [IsLocalRing A]
  [IsAdicComplete (maximalIdeal A) A]
omit [IsNoetherianRing A] [IsLocalRing A] [IsAdicComplete (maximalIdeal A) A] in
lemma apply_eq_comap_toSpecΓ {Q : Scheme.{u}} (g : Q ⟶ Spec (CommRingCat.of A)) (y : Q) :
    g y = PrimeSpectrum.comap (g.appTop.hom.comp (Scheme.ΓSpecIso (CommRingCat.of A)).inv.hom)
      (Q.toSpecΓ y)
SchemeTheory.Properness.CompleteBaseComponents.SolPiGeo.isPreconnected_fibre_of_connectedSpace
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_exists_isClopen_preimage_eq_of_isProper_of_isAdicComplete.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.Properness.CompleteBaseComponents
universe u v
namespace SolPiGeo
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing Topology TopologicalSpace
section Conn
variable {A : Type u} [CommRing A] [IsNoetherianRing A] [IsLocalRing A]
  [IsAdicComplete (maximalIdeal A) A]
theorem isPreconnected_fibre_of_connectedSpace {Q : Scheme.{u}} (g : Q ⟶ Spec (CommRingCat.of A))
    [IsProper g] [ConnectedSpace Q] : _root_.IsPreconnected (g ⁻¹' {closedPoint A})
SchemeTheory.Properness.CompleteBaseComponents.SolPiGeo.isOpen_connectedComponent'
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_exists_isClopen_preimage_eq_of_isProper_of_isAdicComplete.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.Properness.CompleteBaseComponents
universe u v
namespace SolPiGeo
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing Topology TopologicalSpace
section Components
theorem isOpen_connectedComponent' {X : Type*} [TopologicalSpace X] [NoetherianSpace X] (x : X) :
    IsOpen (connectedComponent x)
SchemeTheory.Properness.CompleteBaseComponents.SolPiGeo.surjective_preimage
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_AlgebraicGeometry_exists_isClopen_preimage_eq_of_isProper_of_isAdicComplete.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.Properness.CompleteBaseComponents
universe u v
namespace SolPiGeo
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing Topology TopologicalSpace
section ClosedPointOfField
variable {R : Type u} [CommRing R] [IsLocalRing R] {K : Type u} [Field K]
  (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of R)) [IsClosedImmersion ι]
omit [IsLocalRing R] in
lemma surjective_preimage : Function.Surjective (Spec.preimage ι).hom
SchemeTheory.Properness.CompleteBaseComponents.SolPiGeo.apply_eq_closedPoint
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_exists_isClopen_preimage_eq_of_isProper_of_isAdicComplete.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.Properness.CompleteBaseComponents
universe u v
namespace SolPiGeo
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing Topology TopologicalSpace
section ClosedPointOfField
variable {R : Type u} [CommRing R] [IsLocalRing R] {K : Type u} [Field K]
  (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of R)) [IsClosedImmersion ι]
lemma apply_eq_closedPoint (z : Spec (CommRingCat.of K)) : ι z = closedPoint R
SchemeTheory.Properness.CompleteBaseComponents.SolPiGeo.range_eq
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_exists_isClopen_preimage_eq_of_isProper_of_isAdicComplete.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.Properness.CompleteBaseComponents
universe u v
namespace SolPiGeo
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing Topology TopologicalSpace
section ClosedPointOfField
variable {R : Type u} [CommRing R] [IsLocalRing R] {K : Type u} [Field K]
  (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of R)) [IsClosedImmersion ι]
lemma range_eq : Set.range ι = {closedPoint R}
SchemeTheory.Properness.CompleteBaseComponents.SolPiGeo.isPreconnected_preimage_connectedComponent
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_exists_isClopen_preimage_eq_of_isProper_of_isAdicComplete.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.Properness.CompleteBaseComponents
universe u v
namespace SolPiGeo
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing Topology TopologicalSpace
section Main
variable {A : Type u} [CommRing A] [IsNoetherianRing A] [IsLocalRing A]
  [IsAdicComplete (maximalIdeal A) A]
  {P : Scheme.{u}} (q : P ⟶ Spec (CommRingCat.of A)) [IsProper q]
  {K : Type u} [Field K] (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of A))
  [IsClosedImmersion ι]
lemma isPreconnected_preimage_connectedComponent (x : P) :
    _root_.IsPreconnected (pullback.fst q ι ⁻¹' connectedComponent x)
SchemeTheory.Properness.CompleteBaseComponents.SolPiGeo.main
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_exists_isClopen_preimage_eq_of_isProper_of_isAdicComplete.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.Properness.CompleteBaseComponents
universe u v
namespace SolPiGeo
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing Topology TopologicalSpace
section Main
variable {A : Type u} [CommRing A] [IsNoetherianRing A] [IsLocalRing A]
  [IsAdicComplete (maximalIdeal A) A]
  {P : Scheme.{u}} (q : P ⟶ Spec (CommRingCat.of A)) [IsProper q]
  {K : Type u} [Field K] (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of A))
  [IsClosedImmersion ι]
theorem main (V₀ : Set ↥(pullback q ι)) (hV₀ : IsClopen V₀) :
    ∃ V : Set P, IsClopen V ∧ pullback.fst q ι ⁻¹' V = V₀
AlgebraicGeometry.exists_isClopen_preimage_eq_of_isProper_of_isAdicComplete
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_exists_isClopen_preimage_eq_of_isProper_of_isAdicComplete.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.Properness.CompleteBaseComponents
universe u v
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry in
theorem _root_.AlgebraicGeometry.exists_isClopen_preimage_eq_of_isProper_of_isAdicComplete
    {A : Type u} [CommRing A] [IsNoetherianRing A] [IsLocalRing A]
    [IsAdicComplete (IsLocalRing.maximalIdeal A) A]
    {P : Scheme.{u}} (q : P ⟶ Spec (CommRingCat.of A)) [IsProper q]
    {K : Type u} [Field K] (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of A))
    [IsClosedImmersion ι]
    (V₀ : Set ↥(pullback q ι)) (hV₀ : IsClopen V₀) :
    ∃ V : Set P, IsClopen V ∧ pullback.fst q ι ⁻¹' V = V₀
SchemeTheory.Properness.ProperClopenNeighborhoods.ProperClopenNbhd.closedPoint_mem_range
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_AlgebraicGeometry_exists_opens_isClosed_isProper_of_isProper_pullback_snd_of_isAdicComplete.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.Properness.ProperClopenNeighborhoods
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace ProperClopenNbhd
section ClosedPointOfField
variable {R : Type u} [CommRing R] [IsLocalRing R] {K : Type u} [Field K]
  (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of R)) [IsClosedImmersion ι]
open SchemeTheory.Properness.CompleteBaseComponents.SolPiGeo (apply_eq_closedPoint)
lemma closedPoint_mem_range : closedPoint R ∈ Set.range ι
SchemeTheory.Properness.ProperClopenNeighborhoods.ProperClopenNbhd.exists_mem_of_isClosed
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_AlgebraicGeometry_exists_opens_isClosed_isProper_of_isProper_pullback_snd_of_isAdicComplete.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.Properness.ProperClopenNeighborhoods
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace ProperClopenNbhd
section ClosedPointOfField
variable {R : Type u} [CommRing R] [IsLocalRing R] {K : Type u} [Field K]
  (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of R)) [IsClosedImmersion ι]
open SchemeTheory.Properness.CompleteBaseComponents.SolPiGeo (apply_eq_closedPoint)
lemma exists_mem_of_isClosed {P : Scheme.{u}} (q : P ⟶ Spec (CommRingCat.of R))
    [UniversallyClosed q] {C : Set P} (hC : IsClosed C) {w : P} (hw : w ∈ C) :
    ∃ w' ∈ C, q w' ∈ Set.range ι
SchemeTheory.Properness.ProperClopenNeighborhoods.ProperClopenNbhd.pP

The projection from the closed fiber of the proper ambient scheme.

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_exists_opens_isClosed_isProper_of_isProper_pullback_snd_of_isAdicComplete.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.Properness.ProperClopenNeighborhoods
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace ProperClopenNbhd
section Main
variable {A : Type u} [CommRing A] [IsLocalRing A]
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of A))
  {K : Type u} [Field K] (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of A))
  [IsClosedImmersion ι]
  {X' P : Scheme.{u}} (π : X' ⟶ X) (j : X' ⟶ P) (q : P ⟶ Spec (CommRingCat.of A))
  [IsProper π] [Surjective π] [IsOpenImmersion j] [IsProper q] (hcomm : j ≫ q = π ≫ f)
abbrev pP
SchemeTheory.Properness.ProperClopenNeighborhoods.ProperClopenNbhd.j₀

The base change of the open immersion to the closed fiber.

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_exists_opens_isClosed_isProper_of_isProper_pullback_snd_of_isAdicComplete.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.Properness.ProperClopenNeighborhoods
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace ProperClopenNbhd
section Main
variable {A : Type u} [CommRing A] [IsLocalRing A]
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of A))
  {K : Type u} [Field K] (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of A))
  [IsClosedImmersion ι]
  {X' P : Scheme.{u}} (π : X' ⟶ X) (j : X' ⟶ P) (q : P ⟶ Spec (CommRingCat.of A))
  [IsProper π] [Surjective π] [IsOpenImmersion j] [IsProper q] (hcomm : j ≫ q = π ≫ f)
abbrev j₀
SchemeTheory.Properness.ProperClopenNeighborhoods.ProperClopenNbhd.isProper_j₀_comp
Source context 10 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_exists_opens_isClosed_isProper_of_isProper_pullback_snd_of_isAdicComplete.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.Properness.ProperClopenNeighborhoods
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace ProperClopenNbhd
section Main
variable {A : Type u} [CommRing A] [IsLocalRing A]
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of A))
  {K : Type u} [Field K] (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of A))
  [IsClosedImmersion ι]
  {X' P : Scheme.{u}} (π : X' ⟶ X) (j : X' ⟶ P) (q : P ⟶ Spec (CommRingCat.of A))
  [IsProper π] [Surjective π] [IsOpenImmersion j] [IsProper q] (hcomm : j ≫ q = π ≫ f)
omit [IsLocalRing A] [IsClosedImmersion ι] [Surjective π]
  [IsOpenImmersion j] [IsProper q] in
include hcomm in
lemma isProper_j₀_comp [IsProper (pullback.snd f ι)] : IsProper (j₀ ι j q ≫ pullback.snd q ι)
SchemeTheory.Properness.ProperClopenNeighborhoods.ProperClopenNbhd.isProper_j₀
Source context 10 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_exists_opens_isClosed_isProper_of_isProper_pullback_snd_of_isAdicComplete.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.Properness.ProperClopenNeighborhoods
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace ProperClopenNbhd
section Main
variable {A : Type u} [CommRing A] [IsLocalRing A]
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of A))
  {K : Type u} [Field K] (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of A))
  [IsClosedImmersion ι]
  {X' P : Scheme.{u}} (π : X' ⟶ X) (j : X' ⟶ P) (q : P ⟶ Spec (CommRingCat.of A))
  [IsProper π] [Surjective π] [IsOpenImmersion j] [IsProper q] (hcomm : j ≫ q = π ≫ f)
omit [IsLocalRing A] [IsClosedImmersion ι] [Surjective π] [IsOpenImmersion j] in
include hcomm in
lemma isProper_j₀ [IsProper (pullback.snd f ι)] : IsProper (j₀ ι j q)
SchemeTheory.Properness.ProperClopenNeighborhoods.ProperClopenNbhd.isClopen_range_j₀
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_AlgebraicGeometry_exists_opens_isClosed_isProper_of_isProper_pullback_snd_of_isAdicComplete.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.Properness.ProperClopenNeighborhoods
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace ProperClopenNbhd
section Main
variable {A : Type u} [CommRing A] [IsLocalRing A]
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of A))
  {K : Type u} [Field K] (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of A))
  [IsClosedImmersion ι]
  {X' P : Scheme.{u}} (π : X' ⟶ X) (j : X' ⟶ P) (q : P ⟶ Spec (CommRingCat.of A))
  [IsProper π] [Surjective π] [IsOpenImmersion j] [IsProper q] (hcomm : j ≫ q = π ≫ f)
omit [IsLocalRing A] [IsClosedImmersion ι] [IsProper q] in
lemma isClopen_range_j₀ (hp : IsProper (j₀ ι j q)) : IsClopen (Set.range (j₀ ι j q))
SchemeTheory.Properness.ProperClopenNeighborhoods.ProperClopenNbhd.subset_range_j
Source context 11 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_exists_opens_isClosed_isProper_of_isProper_pullback_snd_of_isAdicComplete.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.Properness.ProperClopenNeighborhoods
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace ProperClopenNbhd
section Main
variable {A : Type u} [CommRing A] [IsLocalRing A]
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of A))
  {K : Type u} [Field K] (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of A))
  [IsClosedImmersion ι]
  {X' P : Scheme.{u}} (π : X' ⟶ X) (j : X' ⟶ P) (q : P ⟶ Spec (CommRingCat.of A))
  [IsProper π] [Surjective π] [IsOpenImmersion j] [IsProper q] (hcomm : j ≫ q = π ≫ f)
variable (V : Set P) (hV : IsClopen V) (hVfib : pP ι q ⁻¹' V = Set.range (j₀ ι j q))
include ι q hV hVfib
omit [IsProper π] [Surjective π] in
lemma subset_range_j : V ⊆ Set.range j
SchemeTheory.Properness.ProperClopenNeighborhoods.ProperClopenNbhd.Zop

The inverse image of the lifted clopen subset.

Source context 10 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_exists_opens_isClosed_isProper_of_isProper_pullback_snd_of_isAdicComplete.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.Properness.ProperClopenNeighborhoods
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace ProperClopenNbhd
section Main
variable {A : Type u} [CommRing A] [IsLocalRing A]
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of A))
  {K : Type u} [Field K] (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of A))
  [IsClosedImmersion ι]
  {X' P : Scheme.{u}} (π : X' ⟶ X) (j : X' ⟶ P) (q : P ⟶ Spec (CommRingCat.of A))
  [IsProper π] [Surjective π] [IsOpenImmersion j] [IsProper q] (hcomm : j ≫ q = π ≫ f)
variable (V : Set P) (hV : IsClopen V) (hVfib : pP ι q ⁻¹' V = Set.range (j₀ ι j q))
include ι q hV hVfib
def Zop : X'.Opens
SchemeTheory.Properness.ProperClopenNeighborhoods.ProperClopenNbhd.isClosed_Zop
Source context 11 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_exists_opens_isClosed_isProper_of_isProper_pullback_snd_of_isAdicComplete.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.Properness.ProperClopenNeighborhoods
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace ProperClopenNbhd
section Main
variable {A : Type u} [CommRing A] [IsLocalRing A]
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of A))
  {K : Type u} [Field K] (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of A))
  [IsClosedImmersion ι]
  {X' P : Scheme.{u}} (π : X' ⟶ X) (j : X' ⟶ P) (q : P ⟶ Spec (CommRingCat.of A))
  [IsProper π] [Surjective π] [IsOpenImmersion j] [IsProper q] (hcomm : j ≫ q = π ≫ f)
variable (V : Set P) (hV : IsClopen V) (hVfib : pP ι q ⁻¹' V = Set.range (j₀ ι j q))
include ι q hV hVfib
omit ι q hVfib [IsOpenImmersion j] in
lemma isClosed_Zop : IsClosed (Zop j V hV : Set X')
SchemeTheory.Properness.ProperClopenNeighborhoods.ProperClopenNbhd.image_Zop
Source context 10 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_exists_opens_isClosed_isProper_of_isProper_pullback_snd_of_isAdicComplete.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.Properness.ProperClopenNeighborhoods
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace ProperClopenNbhd
section Main
variable {A : Type u} [CommRing A] [IsLocalRing A]
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of A))
  {K : Type u} [Field K] (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of A))
  [IsClosedImmersion ι]
  {X' P : Scheme.{u}} (π : X' ⟶ X) (j : X' ⟶ P) (q : P ⟶ Spec (CommRingCat.of A))
  [IsProper π] [Surjective π] [IsOpenImmersion j] [IsProper q] (hcomm : j ≫ q = π ≫ f)
variable (V : Set P) (hV : IsClopen V) (hVfib : pP ι q ⁻¹' V = Set.range (j₀ ι j q))
include ι q hV hVfib
lemma image_Zop : j '' (Zop j V hV : Set X') = V
SchemeTheory.Properness.ProperClopenNeighborhoods.ProperClopenNbhd.isProper_Zop
Source context 10 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_exists_opens_isClosed_isProper_of_isProper_pullback_snd_of_isAdicComplete.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.Properness.ProperClopenNeighborhoods
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace ProperClopenNbhd
section Main
variable {A : Type u} [CommRing A] [IsLocalRing A]
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of A))
  {K : Type u} [Field K] (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of A))
  [IsClosedImmersion ι]
  {X' P : Scheme.{u}} (π : X' ⟶ X) (j : X' ⟶ P) (q : P ⟶ Spec (CommRingCat.of A))
  [IsProper π] [Surjective π] [IsOpenImmersion j] [IsProper q] (hcomm : j ≫ q = π ≫ f)
variable (V : Set P) (hV : IsClopen V) (hVfib : pP ι q ⁻¹' V = Set.range (j₀ ι j q))
include ι q hV hVfib
lemma isProper_Zop : IsProper ((Zop j V hV).ι ≫ j ≫ q)
SchemeTheory.Properness.ProperClopenNeighborhoods.ProperClopenNbhd.mem_Zop_of
Source context 12 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_exists_opens_isClosed_isProper_of_isProper_pullback_snd_of_isAdicComplete.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.Properness.ProperClopenNeighborhoods
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace ProperClopenNbhd
section Main
variable {A : Type u} [CommRing A] [IsLocalRing A]
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of A))
  {K : Type u} [Field K] (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of A))
  [IsClosedImmersion ι]
  {X' P : Scheme.{u}} (π : X' ⟶ X) (j : X' ⟶ P) (q : P ⟶ Spec (CommRingCat.of A))
  [IsProper π] [Surjective π] [IsOpenImmersion j] [IsProper q] (hcomm : j ≫ q = π ≫ f)
variable (V : Set P) (hV : IsClopen V) (hVfib : pP ι q ⁻¹' V = Set.range (j₀ ι j q))
include ι q hV hVfib
omit [IsLocalRing A] [IsClosedImmersion ι]
  [IsProper π] [Surjective π] [IsOpenImmersion j] [IsProper q] in
include hcomm in
lemma mem_Zop_of {z : X'} (hz : (π ≫ f) z ∈ Set.range ι) : z ∈ (Zop j V hV : Set X')
SchemeTheory.Properness.ProperClopenNeighborhoods.ProperClopenNbhd.isClosed_image_j
Source context 10 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_exists_opens_isClosed_isProper_of_isProper_pullback_snd_of_isAdicComplete.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.Properness.ProperClopenNeighborhoods
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace ProperClopenNbhd
section Main
variable {A : Type u} [CommRing A] [IsLocalRing A]
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of A))
  {K : Type u} [Field K] (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of A))
  [IsClosedImmersion ι]
  {X' P : Scheme.{u}} (π : X' ⟶ X) (j : X' ⟶ P) (q : P ⟶ Spec (CommRingCat.of A))
  [IsProper π] [Surjective π] [IsOpenImmersion j] [IsProper q] (hcomm : j ≫ q = π ≫ f)
variable (V : Set P) (hV : IsClopen V) (hVfib : pP ι q ⁻¹' V = Set.range (j₀ ι j q))
include ι q hV hVfib
lemma isClosed_image_j {C : Set X'} (hC : IsClosed C) (hCZ : C ⊆ (Zop j V hV : Set X')) :
    IsClosed (j '' C)
SchemeTheory.Properness.ProperClopenNeighborhoods.ProperClopenNbhd.disjoint_images
Source context 12 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_exists_opens_isClosed_isProper_of_isProper_pullback_snd_of_isAdicComplete.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.Properness.ProperClopenNeighborhoods
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace ProperClopenNbhd
section Main
variable {A : Type u} [CommRing A] [IsLocalRing A]
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of A))
  {K : Type u} [Field K] (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of A))
  [IsClosedImmersion ι]
  {X' P : Scheme.{u}} (π : X' ⟶ X) (j : X' ⟶ P) (q : P ⟶ Spec (CommRingCat.of A))
  [IsProper π] [Surjective π] [IsOpenImmersion j] [IsProper q] (hcomm : j ≫ q = π ≫ f)
variable (V : Set P) (hV : IsClopen V) (hVfib : pP ι q ⁻¹' V = Set.range (j₀ ι j q))
include ι q hV hVfib
omit [Surjective π] in
include hcomm in
lemma disjoint_images :
    Disjoint (π '' (Zop j V hV : Set X')) (π '' (Zop j V hV : Set X')ᶜ)
SchemeTheory.Properness.ProperClopenNeighborhoods.ProperClopenNbhd.Uop

The descended open subset obtained from the proper modification.

Source context 10 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_exists_opens_isClosed_isProper_of_isProper_pullback_snd_of_isAdicComplete.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.Properness.ProperClopenNeighborhoods
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace ProperClopenNbhd
section Main
variable {A : Type u} [CommRing A] [IsLocalRing A]
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of A))
  {K : Type u} [Field K] (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of A))
  [IsClosedImmersion ι]
  {X' P : Scheme.{u}} (π : X' ⟶ X) (j : X' ⟶ P) (q : P ⟶ Spec (CommRingCat.of A))
  [IsProper π] [Surjective π] [IsOpenImmersion j] [IsProper q] (hcomm : j ≫ q = π ≫ f)
variable (V : Set P) (hV : IsClopen V) (hVfib : pP ι q ⁻¹' V = Set.range (j₀ ι j q))
include ι q hV hVfib
def Uop : X.Opens
SchemeTheory.Properness.ProperClopenNeighborhoods.ProperClopenNbhd.coe_Uop_eq
Source context 11 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_exists_opens_isClosed_isProper_of_isProper_pullback_snd_of_isAdicComplete.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.Properness.ProperClopenNeighborhoods
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace ProperClopenNbhd
section Main
variable {A : Type u} [CommRing A] [IsLocalRing A]
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of A))
  {K : Type u} [Field K] (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of A))
  [IsClosedImmersion ι]
  {X' P : Scheme.{u}} (π : X' ⟶ X) (j : X' ⟶ P) (q : P ⟶ Spec (CommRingCat.of A))
  [IsProper π] [Surjective π] [IsOpenImmersion j] [IsProper q] (hcomm : j ≫ q = π ≫ f)
variable (V : Set P) (hV : IsClopen V) (hVfib : pP ι q ⁻¹' V = Set.range (j₀ ι j q))
include ι q hV hVfib
include hcomm in
lemma coe_Uop_eq : (Uop π j V hV : Set X) = π '' (Zop j V hV : Set X')
SchemeTheory.Properness.ProperClopenNeighborhoods.ProperClopenNbhd.isClosed_Uop
Source context 11 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_exists_opens_isClosed_isProper_of_isProper_pullback_snd_of_isAdicComplete.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.Properness.ProperClopenNeighborhoods
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace ProperClopenNbhd
section Main
variable {A : Type u} [CommRing A] [IsLocalRing A]
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of A))
  {K : Type u} [Field K] (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of A))
  [IsClosedImmersion ι]
  {X' P : Scheme.{u}} (π : X' ⟶ X) (j : X' ⟶ P) (q : P ⟶ Spec (CommRingCat.of A))
  [IsProper π] [Surjective π] [IsOpenImmersion j] [IsProper q] (hcomm : j ≫ q = π ≫ f)
variable (V : Set P) (hV : IsClopen V) (hVfib : pP ι q ⁻¹' V = Set.range (j₀ ι j q))
include ι q hV hVfib
include hcomm in
lemma isClosed_Uop : IsClosed (Uop π j V hV : Set X)
SchemeTheory.Properness.ProperClopenNeighborhoods.ProperClopenNbhd.range_fst_subset_Uop
Source context 12 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_exists_opens_isClosed_isProper_of_isProper_pullback_snd_of_isAdicComplete.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.Properness.ProperClopenNeighborhoods
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace ProperClopenNbhd
section Main
variable {A : Type u} [CommRing A] [IsLocalRing A]
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of A))
  {K : Type u} [Field K] (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of A))
  [IsClosedImmersion ι]
  {X' P : Scheme.{u}} (π : X' ⟶ X) (j : X' ⟶ P) (q : P ⟶ Spec (CommRingCat.of A))
  [IsProper π] [Surjective π] [IsOpenImmersion j] [IsProper q] (hcomm : j ≫ q = π ≫ f)
variable (V : Set P) (hV : IsClopen V) (hVfib : pP ι q ⁻¹' V = Set.range (j₀ ι j q))
include ι q hV hVfib
omit [IsLocalRing A] [IsClosedImmersion ι]
  [Surjective π] [IsOpenImmersion j] [IsProper q] in
include hcomm in
lemma range_fst_subset_Uop : Set.range (pullback.fst f ι) ⊆ (Uop π j V hV : Set X)
SchemeTheory.Properness.ProperClopenNeighborhoods.ProperClopenNbhd.πU

The modification restricted to the descended open subset.

Source context 10 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_exists_opens_isClosed_isProper_of_isProper_pullback_snd_of_isAdicComplete.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.Properness.ProperClopenNeighborhoods
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace ProperClopenNbhd
section Main
variable {A : Type u} [CommRing A] [IsLocalRing A]
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of A))
  {K : Type u} [Field K] (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of A))
  [IsClosedImmersion ι]
  {X' P : Scheme.{u}} (π : X' ⟶ X) (j : X' ⟶ P) (q : P ⟶ Spec (CommRingCat.of A))
  [IsProper π] [Surjective π] [IsOpenImmersion j] [IsProper q] (hcomm : j ≫ q = π ≫ f)
variable (V : Set P) (hV : IsClopen V) (hVfib : pP ι q ⁻¹' V = Set.range (j₀ ι j q))
include ι q hV hVfib
def πU : (Zop j V hV).toScheme ⟶ (Uop π j V hV).toScheme
SchemeTheory.Properness.ProperClopenNeighborhoods.ProperClopenNbhd.πU_fac
Source context 10 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_exists_opens_isClosed_isProper_of_isProper_pullback_snd_of_isAdicComplete.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.Properness.ProperClopenNeighborhoods
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace ProperClopenNbhd
section Main
variable {A : Type u} [CommRing A] [IsLocalRing A]
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of A))
  {K : Type u} [Field K] (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of A))
  [IsClosedImmersion ι]
  {X' P : Scheme.{u}} (π : X' ⟶ X) (j : X' ⟶ P) (q : P ⟶ Spec (CommRingCat.of A))
  [IsProper π] [Surjective π] [IsOpenImmersion j] [IsProper q] (hcomm : j ≫ q = π ≫ f)
variable (V : Set P) (hV : IsClopen V) (hVfib : pP ι q ⁻¹' V = Set.range (j₀ ι j q))
include ι q hV hVfib
lemma πU_fac : πU f ι π j q hcomm V hV hVfib ≫ (Uop π j V hV).ι = (Zop j V hV).ι ≫ π
SchemeTheory.Properness.ProperClopenNeighborhoods.ProperClopenNbhd.surjective_πU
Source context 10 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_exists_opens_isClosed_isProper_of_isProper_pullback_snd_of_isAdicComplete.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.Properness.ProperClopenNeighborhoods
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace ProperClopenNbhd
section Main
variable {A : Type u} [CommRing A] [IsLocalRing A]
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of A))
  {K : Type u} [Field K] (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of A))
  [IsClosedImmersion ι]
  {X' P : Scheme.{u}} (π : X' ⟶ X) (j : X' ⟶ P) (q : P ⟶ Spec (CommRingCat.of A))
  [IsProper π] [Surjective π] [IsOpenImmersion j] [IsProper q] (hcomm : j ≫ q = π ≫ f)
variable (V : Set P) (hV : IsClopen V) (hVfib : pP ι q ⁻¹' V = Set.range (j₀ ι j q))
include ι q hV hVfib
lemma surjective_πU : Surjective (πU f ι π j q hcomm V hV hVfib)
SchemeTheory.Properness.ProperClopenNeighborhoods.ProperClopenNbhd.isProper_Uop
Source context 12 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_exists_opens_isClosed_isProper_of_isProper_pullback_snd_of_isAdicComplete.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.Properness.ProperClopenNeighborhoods
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace ProperClopenNbhd
section Main
variable {A : Type u} [CommRing A] [IsLocalRing A]
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of A))
  {K : Type u} [Field K] (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of A))
  [IsClosedImmersion ι]
  {X' P : Scheme.{u}} (π : X' ⟶ X) (j : X' ⟶ P) (q : P ⟶ Spec (CommRingCat.of A))
  [IsProper π] [Surjective π] [IsOpenImmersion j] [IsProper q] (hcomm : j ≫ q = π ≫ f)
variable (V : Set P) (hV : IsClopen V) (hVfib : pP ι q ⁻¹' V = Set.range (j₀ ι j q))
include ι q hV hVfib
variable [IsSeparated f] [LocallyOfFiniteType f] in
include hcomm in
lemma isProper_Uop : IsProper ((Uop π j V hV).ι ≫ f)
AlgebraicGeometry.exists_opens_isClosed_isProper_of_isProper_pullback_snd_of_isAdicComplete
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_exists_opens_isClosed_isProper_of_isProper_pullback_snd_of_isAdicComplete.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
open SchemeTheory.Properness.ProperClopenNeighborhoods in
theorem exists_opens_isClosed_isProper_of_isProper_pullback_snd_of_isAdicComplete
    {A : Type u} [CommRing A] [IsNoetherianRing A] [IsLocalRing A]
    [IsAdicComplete (IsLocalRing.maximalIdeal A) A]
    {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of A))
    [IsSeparated f] [LocallyOfFiniteType f] [QuasiCompact f]
    {K : Type u} [Field K] (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of A))
    [IsClosedImmersion ι] [IsProper (pullback.snd f ι)] :
    ∃ U : X.Opens, IsClosed (U : Set X) ∧ IsProper (U.ι ≫ f) ∧
      Set.range (pullback.fst f ι) ⊆ (U : Set X)
SchemeTheory.Properness.ProperClosedFiber.IsProperOfProperClosedFibre.ringHomOf

The ring homomorphism defining the affine closed immersion.

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_isProper_of_isProper_pullback_snd_of_geometricallyConnected_of_isLocalRing.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.Properness.ProperClosedFiber
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace IsProperOfProperClosedFibre
section ClosedPointOfField
variable {R : Type u} [CommRing R] {K : Type u} [Field K]
  (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of R)) [IsClosedImmersion ι]
def ringHomOf : R →+* K
SchemeTheory.Properness.ProperClosedFiber.IsProperOfProperClosedFibre.specMap_ringHomOf
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_AlgebraicGeometry_isProper_of_isProper_pullback_snd_of_geometricallyConnected_of_isLocalRing.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.Properness.ProperClosedFiber
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace IsProperOfProperClosedFibre
section ClosedPointOfField
variable {R : Type u} [CommRing R] {K : Type u} [Field K]
  (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of R)) [IsClosedImmersion ι]
omit [IsClosedImmersion ι] in
lemma specMap_ringHomOf : Spec.map (CommRingCat.ofHom (ringHomOf ι)) = ι
SchemeTheory.Properness.ProperClosedFiber.IsProperOfProperClosedFibre.surjective_ringHomOf
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_isProper_of_isProper_pullback_snd_of_geometricallyConnected_of_isLocalRing.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.Properness.ProperClosedFiber
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace IsProperOfProperClosedFibre
section ClosedPointOfField
variable {R : Type u} [CommRing R] {K : Type u} [Field K]
  (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of R)) [IsClosedImmersion ι]
lemma surjective_ringHomOf : Function.Surjective (ringHomOf ι)
SchemeTheory.Properness.ProperClosedFiber.IsProperOfProperClosedFibre.ker_ringHomOf_isMaximal
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_isProper_of_isProper_pullback_snd_of_geometricallyConnected_of_isLocalRing.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.Properness.ProperClosedFiber
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace IsProperOfProperClosedFibre
section ClosedPointOfField
variable {R : Type u} [CommRing R] {K : Type u} [Field K]
  (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of R)) [IsClosedImmersion ι]
lemma ker_ringHomOf_isMaximal : (RingHom.ker (ringHomOf ι)).IsMaximal
SchemeTheory.Properness.ProperClosedFiber.IsProperOfProperClosedFibre.ker_ringHomOf_eq
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_isProper_of_isProper_pullback_snd_of_geometricallyConnected_of_isLocalRing.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.Properness.ProperClosedFiber
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace IsProperOfProperClosedFibre
section ClosedPointOfField
variable {R : Type u} [CommRing R] {K : Type u} [Field K]
  (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of R)) [IsClosedImmersion ι]
lemma ker_ringHomOf_eq [IsLocalRing R] : RingHom.ker (ringHomOf ι) = maximalIdeal R
SchemeTheory.Properness.ProperClosedFiber.IsProperOfProperClosedFibre.Rhat

Completion at the maximal ideal of the local base ring.

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_isProper_of_isProper_pullback_snd_of_geometricallyConnected_of_isLocalRing.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.Properness.ProperClosedFiber
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace IsProperOfProperClosedFibre
section Completion
variable (R : Type u) [CommRing R] [IsLocalRing R]
abbrev Rhat : Type u
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_isProper_of_isProper_pullback_snd_of_geometricallyConnected_of_isLocalRing.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.Properness.ProperClosedFiber
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace IsProperOfProperClosedFibre
section Completion
variable (R : Type u) [CommRing R] [IsLocalRing R]
instance [IsNoetherianRing R] : IsNoetherianRing (Rhat R)
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_isProper_of_isProper_pullback_snd_of_geometricallyConnected_of_isLocalRing.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.Properness.ProperClosedFiber
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace IsProperOfProperClosedFibre
section Completion
variable (R : Type u) [CommRing R] [IsLocalRing R]
instance [IsNoetherianRing R] : Module.FaithfullyFlat R (Rhat R)
SchemeTheory.Properness.ProperClosedFiber.IsProperOfProperClosedFibre.cmap

The canonical morphism from the completed local base.

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_isProper_of_isProper_pullback_snd_of_geometricallyConnected_of_isLocalRing.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.Properness.ProperClosedFiber
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace IsProperOfProperClosedFibre
section Completion
variable (R : Type u) [CommRing R] [IsLocalRing R]
abbrev cmap : Spec (CommRingCat.of (Rhat R)) ⟶ Spec (CommRingCat.of R)
SchemeTheory.Properness.ProperClosedFiber.IsProperOfProperClosedFibre.flat_and_surjective_cmap
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_isProper_of_isProper_pullback_snd_of_geometricallyConnected_of_isLocalRing.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.Properness.ProperClosedFiber
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace IsProperOfProperClosedFibre
section Completion
variable (R : Type u) [CommRing R] [IsLocalRing R]
lemma flat_and_surjective_cmap [IsNoetherianRing R] : Flat (cmap R) ∧ Surjective (cmap R)
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_isProper_of_isProper_pullback_snd_of_geometricallyConnected_of_isLocalRing.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.Properness.ProperClosedFiber
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace IsProperOfProperClosedFibre
section Completion
variable (R : Type u) [CommRing R] [IsLocalRing R]
instance [IsNoetherianRing R] : Flat (cmap R)
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_isProper_of_isProper_pullback_snd_of_geometricallyConnected_of_isLocalRing.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.Properness.ProperClosedFiber
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace IsProperOfProperClosedFibre
section Completion
variable (R : Type u) [CommRing R] [IsLocalRing R]
instance [IsNoetherianRing R] : Surjective (cmap R)
SchemeTheory.Properness.ProperClosedFiber.IsProperOfProperClosedFibre.ghat

The extension of the closed-point map to the completed base.

Source context 10 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_isProper_of_isProper_pullback_snd_of_geometricallyConnected_of_isLocalRing.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.Properness.ProperClosedFiber
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace IsProperOfProperClosedFibre
section Completion
variable (R : Type u) [CommRing R] [IsLocalRing R]
variable {R}
variable {K : Type u} [Field K]
  (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of R)) [IsClosedImmersion ι]
def ghat : Rhat R →+* K
SchemeTheory.Properness.ProperClosedFiber.IsProperOfProperClosedFibre.ghat_comp_algebraMap
Source context 10 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_isProper_of_isProper_pullback_snd_of_geometricallyConnected_of_isLocalRing.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.Properness.ProperClosedFiber
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace IsProperOfProperClosedFibre
section Completion
variable (R : Type u) [CommRing R] [IsLocalRing R]
variable {R}
variable {K : Type u} [Field K]
  (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of R)) [IsClosedImmersion ι]
lemma ghat_comp_algebraMap : (ghat ι).comp (algebraMap R (Rhat R)) = ringHomOf ι
SchemeTheory.Properness.ProperClosedFiber.IsProperOfProperClosedFibre.surjective_ghat
Source context 10 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_isProper_of_isProper_pullback_snd_of_geometricallyConnected_of_isLocalRing.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.Properness.ProperClosedFiber
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace IsProperOfProperClosedFibre
section Completion
variable (R : Type u) [CommRing R] [IsLocalRing R]
variable {R}
variable {K : Type u} [Field K]
  (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of R)) [IsClosedImmersion ι]
lemma surjective_ghat : Function.Surjective (ghat ι)
SchemeTheory.Properness.ProperClosedFiber.IsProperOfProperClosedFibre.ιhat

The closed-point immersion into the completed base.

Source context 10 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_isProper_of_isProper_pullback_snd_of_geometricallyConnected_of_isLocalRing.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.Properness.ProperClosedFiber
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace IsProperOfProperClosedFibre
section Completion
variable (R : Type u) [CommRing R] [IsLocalRing R]
variable {R}
variable {K : Type u} [Field K]
  (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of R)) [IsClosedImmersion ι]
abbrev ιhat : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of (Rhat R))
Source context 10 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_isProper_of_isProper_pullback_snd_of_geometricallyConnected_of_isLocalRing.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.Properness.ProperClosedFiber
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace IsProperOfProperClosedFibre
section Completion
variable (R : Type u) [CommRing R] [IsLocalRing R]
variable {R}
variable {K : Type u} [Field K]
  (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of R)) [IsClosedImmersion ι]
instance : IsClosedImmersion (ιhat ι)
SchemeTheory.Properness.ProperClosedFiber.IsProperOfProperClosedFibre.ιhat_comp_cmap
Source context 10 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_isProper_of_isProper_pullback_snd_of_geometricallyConnected_of_isLocalRing.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.Properness.ProperClosedFiber
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace IsProperOfProperClosedFibre
section Completion
variable (R : Type u) [CommRing R] [IsLocalRing R]
variable {R}
variable {K : Type u} [Field K]
  (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of R)) [IsClosedImmersion ι]
lemma ιhat_comp_cmap : ιhat ι ≫ cmap R = ι
SchemeTheory.Properness.ProperClosedFiber.IsProperOfProperClosedFibre.ιhat_apply
Source context 10 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_isProper_of_isProper_pullback_snd_of_geometricallyConnected_of_isLocalRing.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.Properness.ProperClosedFiber
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace IsProperOfProperClosedFibre
section Completion
variable (R : Type u) [CommRing R] [IsLocalRing R]
variable {R}
variable {K : Type u} [Field K]
  (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of R)) [IsClosedImmersion ι]
lemma ιhat_apply [IsNoetherianRing R] (z : Spec (CommRingCat.of K)) :
    (ιhat ι) z = closedPoint (Rhat R)
SchemeTheory.Properness.ProperClosedFiber.IsProperOfProperClosedFibre.closedPoint_mem_range_ιhat
Source context 10 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_isProper_of_isProper_pullback_snd_of_geometricallyConnected_of_isLocalRing.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.Properness.ProperClosedFiber
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace IsProperOfProperClosedFibre
section Completion
variable (R : Type u) [CommRing R] [IsLocalRing R]
variable {R}
variable {K : Type u} [Field K]
  (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of R)) [IsClosedImmersion ι]
lemma closedPoint_mem_range_ιhat [IsNoetherianRing R] : closedPoint (Rhat R) ∈ Set.range (ιhat ι)
SchemeTheory.Properness.ProperClosedFiber.IsProperOfProperClosedFibre.fhat

The structure morphism after completion of the base.

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_isProper_of_isProper_pullback_snd_of_geometricallyConnected_of_isLocalRing.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.Properness.ProperClosedFiber
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace IsProperOfProperClosedFibre
section Main
variable {R : Type u} [CommRing R] [IsNoetherianRing R] [IsLocalRing R]
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R))
  [IsSeparated f] [LocallyOfFiniteType f] [QuasiCompact f] [GeometricallyConnected f]
  (e : Spec (CommRingCat.of R) ⟶ X) (he : e ≫ f = 𝟙 (Spec (CommRingCat.of R)))
  {K : Type u} [Field K] (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of R))
  [IsClosedImmersion ι] [IsProper (pullback.snd f ι)]
abbrev fhat : pullback f (cmap R) ⟶ Spec (CommRingCat.of (Rhat R))
SchemeTheory.Properness.ProperClosedFiber.IsProperOfProperClosedFibre.ehat

The section after completion of the base.

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_isProper_of_isProper_pullback_snd_of_geometricallyConnected_of_isLocalRing.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.Properness.ProperClosedFiber
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace IsProperOfProperClosedFibre
section Main
variable {R : Type u} [CommRing R] [IsNoetherianRing R] [IsLocalRing R]
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R))
  [IsSeparated f] [LocallyOfFiniteType f] [QuasiCompact f] [GeometricallyConnected f]
  (e : Spec (CommRingCat.of R) ⟶ X) (he : e ≫ f = 𝟙 (Spec (CommRingCat.of R)))
  {K : Type u} [Field K] (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of R))
  [IsClosedImmersion ι] [IsProper (pullback.snd f ι)]
def ehat : Spec (CommRingCat.of (Rhat R)) ⟶ pullback f (cmap R)
SchemeTheory.Properness.ProperClosedFiber.IsProperOfProperClosedFibre.ehat_fhat
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_AlgebraicGeometry_isProper_of_isProper_pullback_snd_of_geometricallyConnected_of_isLocalRing.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.Properness.ProperClosedFiber
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace IsProperOfProperClosedFibre
section Main
variable {R : Type u} [CommRing R] [IsNoetherianRing R] [IsLocalRing R]
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R))
  [IsSeparated f] [LocallyOfFiniteType f] [QuasiCompact f] [GeometricallyConnected f]
  (e : Spec (CommRingCat.of R) ⟶ X) (he : e ≫ f = 𝟙 (Spec (CommRingCat.of R)))
  {K : Type u} [Field K] (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of R))
  [IsClosedImmersion ι] [IsProper (pullback.snd f ι)]
omit [IsNoetherianRing R] [IsSeparated f] [LocallyOfFiniteType f]
  [QuasiCompact f] [GeometricallyConnected f] in
lemma ehat_fhat : ehat f e he ≫ fhat f = 𝟙 _
SchemeTheory.Properness.ProperClosedFiber.IsProperOfProperClosedFibre.isProper_fibre_hat
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_isProper_of_isProper_pullback_snd_of_geometricallyConnected_of_isLocalRing.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.Properness.ProperClosedFiber
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace IsProperOfProperClosedFibre
section Main
variable {R : Type u} [CommRing R] [IsNoetherianRing R] [IsLocalRing R]
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R))
  [IsSeparated f] [LocallyOfFiniteType f] [QuasiCompact f] [GeometricallyConnected f]
  (e : Spec (CommRingCat.of R) ⟶ X) (he : e ≫ f = 𝟙 (Spec (CommRingCat.of R)))
  {K : Type u} [Field K] (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of R))
  [IsClosedImmersion ι] [IsProper (pullback.snd f ι)]
instance isProper_fibre_hat : IsProper (pullback.snd (fhat f) (ιhat ι))
SchemeTheory.Properness.ProperClosedFiber.IsProperOfProperClosedFibre.isProper_fhat
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_AlgebraicGeometry_isProper_of_isProper_pullback_snd_of_geometricallyConnected_of_isLocalRing.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.Properness.ProperClosedFiber
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace IsProperOfProperClosedFibre
section Main
variable {R : Type u} [CommRing R] [IsNoetherianRing R] [IsLocalRing R]
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R))
  [IsSeparated f] [LocallyOfFiniteType f] [QuasiCompact f] [GeometricallyConnected f]
  (e : Spec (CommRingCat.of R) ⟶ X) (he : e ≫ f = 𝟙 (Spec (CommRingCat.of R)))
  {K : Type u} [Field K] (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of R))
  [IsClosedImmersion ι] [IsProper (pullback.snd f ι)]
include e he ι in
lemma isProper_fhat : IsProper (fhat f)
SchemeTheory.Properness.ProperClosedFiber.IsProperOfProperClosedFibre.isProper
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_AlgebraicGeometry_isProper_of_isProper_pullback_snd_of_geometricallyConnected_of_isLocalRing.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.Properness.ProperClosedFiber
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry IsLocalRing
universe u
namespace IsProperOfProperClosedFibre
section Main
variable {R : Type u} [CommRing R] [IsNoetherianRing R] [IsLocalRing R]
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R))
  [IsSeparated f] [LocallyOfFiniteType f] [QuasiCompact f] [GeometricallyConnected f]
  (e : Spec (CommRingCat.of R) ⟶ X) (he : e ≫ f = 𝟙 (Spec (CommRingCat.of R)))
  {K : Type u} [Field K] (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of R))
  [IsClosedImmersion ι] [IsProper (pullback.snd f ι)]
include e he ι in
theorem isProper : IsProper f
AlgebraicGeometry.isProper_of_isProper_pullback_snd_of_geometricallyConnected_of_isLocalRing
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_isProper_of_isProper_pullback_snd_of_geometricallyConnected_of_isLocalRing.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
open SchemeTheory.Properness.ProperClosedFiber in
theorem isProper_of_isProper_pullback_snd_of_geometricallyConnected_of_isLocalRing
    {R : Type u} [CommRing R] [IsNoetherianRing R] [IsLocalRing R]
    {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R))
    [IsSeparated f] [LocallyOfFiniteType f] [QuasiCompact f] [GeometricallyConnected f]
    (e : Spec (CommRingCat.of R) ⟶ X) (he : e ≫ f = 𝟙 (Spec (CommRingCat.of R)))
    {K : Type u} [Field K] (ι : Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of R))
    [IsClosedImmersion ι] [IsProper (pullback.snd f ι)] :
    IsProper f