Module

EtaleNeighborhoods.lean

Nyll.AbelianVarieties.NeronModels.EtaleNeighborhoods
94 declarations indexed from sourceView source ↗

Finite étale neighborhoods extending a partial group law

Imports24
Imported by2

Declarations

AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.subsingleton_spec_residueField
Source context 9 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
section General
instance subsingleton_spec_residueField (Y : Scheme.{u}) (x : Y) :
    Subsingleton ↥(Spec (Y.residueField x))
AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.dense_of_forall_dense_fibre
Source context 9 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
section General
theorem dense_of_forall_dense_fibre {X Z : Type*} [TopologicalSpace X] (p : X → Z) (S : Set X)
    (h : ∀ z : Z, Dense ((Subtype.val : {x : X // p x = z} → X) ⁻¹' S)) : Dense S
AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.subset_closure_inter
Source context 9 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
section General
theorem subset_closure_inter {X : Type*} [TopologicalSpace X] {O A A' : Set X} (hO : IsOpen O)
    (hA : IsOpen A) (h : O ⊆ closure A) (h' : O ⊆ closure A') : O ⊆ closure (A ∩ A')
AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.eq_of_comp_ι_eq
Source context 9 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
section General
theorem eq_of_comp_ι_eq {X Z S : Scheme.{u}} [IsReduced X] (s : Z ⟶ S) [IsSeparated s]
    {f g : X ⟶ Z} (hs : f ≫ s = g ≫ s) (W : X.Opens) (hW : Dense (W : Set X)) (h : W.ι ≫ f = W.ι
      ≫ g) :
    f = g
AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.exists_glue_of_isOpenImmersion
Source context 9 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
section General
theorem exists_glue_of_isOpenImmersion {X Z S : Scheme.{u}} [IsReduced X] (p : X ⟶ S) (s : Z ⟶ S)
    [IsSeparated s] {I : Type v} (F : I → Scheme.{u}) (j : ∀ i, F i ⟶ X) [∀ i, IsOpenImmersion
      (j i)]
    (hcov : ∀ x : X, ∃ i, x ∈ Set.range (j i))
    (g : ∀ i, F i ⟶ Z) (hg : ∀ i, g i ≫ s = j i ≫ p)
    (hagree : ∀ i i', ∃ W : Set X, IsOpen W ∧ Set.range (j i) ∩ Set.range (j i') ⊆ closure W ∧
      ∀ {T : Scheme.{u}} (t₁ : T ⟶ F i) (t₂ : T ⟶ F i'), t₁ ≫ j i = t₂ ≫ j i' →
        Set.range (t₁ ≫ j i) ⊆ W → t₁ ≫ g i = t₂ ≫ g i') :
    ∃ G : X ⟶ Z, (∀ i, j i ≫ G = g i) ∧ G ≫ s = p
AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.lamSnd

Base change of the second projection along a chosen point.

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_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
section Setup
variable {R : Type u} [CommRing R] {Y : Scheme.{u}} (y : Y ⟶ Spec (CommRingCat.of R))
  (U : (pullback y y).Opens) (m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y)
def lamSnd {T : Scheme.{u}} (c : T ⟶ Spec (CommRingCat.of R)) (g : T ⟶ Y) (hg : g ≫ y = c) :
    pullback y c ⟶ pullback y y
AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.lamSnd_fst
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_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
section Setup
variable {R : Type u} [CommRing R] {Y : Scheme.{u}} (y : Y ⟶ Spec (CommRingCat.of R))
  (U : (pullback y y).Opens) (m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y)
theorem lamSnd_fst {T : Scheme.{u}} (c : T ⟶ Spec (CommRingCat.of R)) (g : T ⟶ Y) (hg : g ≫ y =
  c) :
    lamSnd y c g hg ≫ pullback.fst y y = pullback.fst y c
AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.lamSnd_snd
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_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
section Setup
variable {R : Type u} [CommRing R] {Y : Scheme.{u}} (y : Y ⟶ Spec (CommRingCat.of R))
  (U : (pullback y y).Opens) (m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y)
theorem lamSnd_snd {T : Scheme.{u}} (c : T ⟶ Spec (CommRingCat.of R)) (g : T ⟶ Y) (hg : g ≫ y =
  c) :
    lamSnd y c g hg ≫ pullback.snd y y = pullback.snd y c ≫ g
AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.isPullback_lamSnd
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_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
section Setup
variable {R : Type u} [CommRing R] {Y : Scheme.{u}} (y : Y ⟶ Spec (CommRingCat.of R))
  (U : (pullback y y).Opens) (m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y)
theorem isPullback_lamSnd {T : Scheme.{u}} (c : T ⟶ Spec (CommRingCat.of R)) (g : T ⟶ Y)
    (hg : g ≫ y = c) : IsPullback (pullback.snd y c) (lamSnd y c g hg) g (pullback.snd y y)
AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.lamFst

Base change of the first projection along a chosen point.

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_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
section Setup
variable {R : Type u} [CommRing R] {Y : Scheme.{u}} (y : Y ⟶ Spec (CommRingCat.of R))
  (U : (pullback y y).Opens) (m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y)
def lamFst {T : Scheme.{u}} (c : T ⟶ Spec (CommRingCat.of R)) (g : T ⟶ Y) (hg : g ≫ y = c) :
    pullback y c ⟶ pullback y y
AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.lamFst_fst
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_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
section Setup
variable {R : Type u} [CommRing R] {Y : Scheme.{u}} (y : Y ⟶ Spec (CommRingCat.of R))
  (U : (pullback y y).Opens) (m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y)
theorem lamFst_fst {T : Scheme.{u}} (c : T ⟶ Spec (CommRingCat.of R)) (g : T ⟶ Y) (hg : g ≫ y =
  c) :
    lamFst y c g hg ≫ pullback.fst y y = pullback.snd y c ≫ g
AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.lamFst_snd
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_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
section Setup
variable {R : Type u} [CommRing R] {Y : Scheme.{u}} (y : Y ⟶ Spec (CommRingCat.of R))
  (U : (pullback y y).Opens) (m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y)
theorem lamFst_snd {T : Scheme.{u}} (c : T ⟶ Spec (CommRingCat.of R)) (g : T ⟶ Y) (hg : g ≫ y =
  c) :
    lamFst y c g hg ≫ pullback.snd y y = pullback.fst y c
AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.isPullback_lamFst
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_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
section Setup
variable {R : Type u} [CommRing R] {Y : Scheme.{u}} (y : Y ⟶ Spec (CommRingCat.of R))
  (U : (pullback y y).Opens) (m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y)
theorem isPullback_lamFst {T : Scheme.{u}} (c : T ⟶ Spec (CommRingCat.of R)) (g : T ⟶ Y)
    (hg : g ≫ y = c) : IsPullback (pullback.snd y c) (lamFst y c g hg) g (pullback.fst y y)
AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.bS

The spectrum morphism induced by a base algebra.

Source context 9 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
section Level
abbrev bS (A B : Type u) [CommRing A] [CommRing B] [Algebra A B] :
    Spec (CommRingCat.of B) ⟶ Spec (CommRingCat.of A)
AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.Y1

The model after the finite étale base extension.

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_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
section Level
variable {R : Type u} [CommRing R] {Y : Scheme.{u}} (y : Y ⟶ Spec (CommRingCat.of R))
  (R' : Type u) [CommRing R'] [Algebra R R']
abbrev Y1 : Scheme.{u}
AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.y1

The structure morphism after base extension.

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_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
section Level
variable {R : Type u} [CommRing R] {Y : Scheme.{u}} (y : Y ⟶ Spec (CommRingCat.of R))
  (R' : Type u) [CommRing R'] [Algebra R R']
abbrev y1 : Y1 y R' ⟶ Spec (CommRingCat.of R')
AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.p1

The projection to the original model.

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_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
section Level
variable {R : Type u} [CommRing R] {Y : Scheme.{u}} (y : Y ⟶ Spec (CommRingCat.of R))
  (R' : Type u) [CommRing R'] [Algebra R R']
abbrev p1 : Y1 y R' ⟶ Y
AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.P1

The pair of base-changed model points.

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_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
section Level
variable {R : Type u} [CommRing R] {Y : Scheme.{u}} (y : Y ⟶ Spec (CommRingCat.of R))
  (R' : Type u) [CommRing R'] [Algebra R R']
abbrev P1 : Scheme.{u}
AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.pi1

The induced projection on pairs of model points.

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_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
section Level
variable {R : Type u} [CommRing R] {Y : Scheme.{u}} (y : Y ⟶ Spec (CommRingCat.of R))
  (R' : Type u) [CommRing R'] [Algebra R R']
def pi1 : P1 y R' ⟶ pullback y y
AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.pi1_fst
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_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
section Level
variable {R : Type u} [CommRing R] {Y : Scheme.{u}} (y : Y ⟶ Spec (CommRingCat.of R))
  (R' : Type u) [CommRing R'] [Algebra R R']
theorem pi1_fst : pi1 y R' ≫ pullback.fst y y = pullback.fst _ _ ≫ p1 y R'
AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.pi1_snd
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_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
section Level
variable {R : Type u} [CommRing R] {Y : Scheme.{u}} (y : Y ⟶ Spec (CommRingCat.of R))
  (R' : Type u) [CommRing R'] [Algebra R R']
theorem pi1_snd : pi1 y R' ≫ pullback.snd y y = pullback.snd _ _ ≫ p1 y R'
AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.isPullback_pi1_fst
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_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
section Level
variable {R : Type u} [CommRing R] {Y : Scheme.{u}} (y : Y ⟶ Spec (CommRingCat.of R))
  (R' : Type u) [CommRing R'] [Algebra R R']
theorem isPullback_pi1_fst :
    IsPullback (pi1 y R') (pullback.fst (y1 y R') (y1 y R')) (pullback.fst y y) (p1 y R')
structure

Cx

L259 ↗
AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.Cx

The partial action and a finite étale extension used in the gluing construction.

Source context 8 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
structure Cx where
  /-- The discrete valuation base ring. -/
  R : Type u
  /-- The commutative ring structure on the base. -/
  [instR : CommRing R]
  /-- The base is a domain. -/
  [dom : IsDomain R]
  /-- The base is a discrete valuation ring. -/
  [dvr : IsDiscreteValuationRing R]
  /-- The base satisfies Hensel lifting. -/
  [hens : HenselianLocalRing R]
  /-- The original model. -/
  Y : Scheme.{u}
  /-- Its structure morphism. -/
  y : Y ⟶ Spec (CommRingCat.of R)
  /-- Smoothness of the original model. -/
  [smooth : Smooth y]
  /-- The domain of partial multiplication. -/
  U : (pullback y y).Opens
  /-- The partial multiplication morphism. -/
  m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y
  /-- Density along the first projection. -/
  hU₁ : ∀ x : Y,
    Dense ((Subtype.val : {q : ↑(pullback y y) // (pullback.fst y y).base q = x} → ↑(pullback y
      y)) ⁻¹'
        (U : Set ↑(pullback y y)))
  /-- Density along the second projection. -/
  hU₂ : ∀ x : Y,
    Dense ((Subtype.val : {q : ↑(pullback y y) // (pullback.snd y y).base q = x} → ↑(pullback y
      y)) ⁻¹'
        (U : Set ↑(pullback y y)))
  /-- The first translation map is an open immersion. -/
  hΦ : IsOpenImmersion (firstMultiplicationChart y U m)
  /-- Density of the first translation image along the second projection. -/
  hΦ₂ : ∀ x : Y,
    Dense ((Subtype.val : {q : ↑(pullback y y) // (pullback.snd y y).base q = x} → ↑(pullback y
      y)) ⁻¹'
        (Set.range (firstMultiplicationChart y U m).base))
  /-- The second translation map is an open immersion. -/
  hΨ : IsOpenImmersion (secondMultiplicationChart y U m)
  /-- Associativity on the common domain. -/
  hassoc : ∀ {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of R))
      (u v p q : SchemeHomOver t (U.ι ≫ pullback.fst y y ≫ y)),
    u.1 ≫ U.ι ≫ pullback.snd y y = v.1 ≫ U.ι ≫ pullback.fst y y →
    p.1 ≫ U.ι ≫ pullback.fst y y = u.1 ≫ m.1 → p.1 ≫ U.ι ≫ pullback.snd y y = v.1 ≫ U.ι ≫
      pullback.snd y y →
    q.1 ≫ U.ι ≫ pullback.fst y y = u.1 ≫ U.ι ≫ pullback.fst y y → q.1 ≫ U.ι ≫ pullback.snd y y =
      v.1 ≫ m.1 →
    p.1 ≫ m.1 = q.1 ≫ m.1
  /-- The generic fiber is contained in the multiplication domain. -/
  hUK : ∀ q : ↑(pullback y y), (pullback.fst y y ≫ y).base q ≠ IsLocalRing.closedPoint R → q ∈ U
  /-- The finite étale extension ring. -/
  R' : Type u
  /-- Its commutative ring structure. -/
  [instR' : CommRing R']
  /-- The extension ring is a domain. -/
  [dom' : IsDomain R']
  /-- The extension ring is a discrete valuation ring. -/
  [dvr' : IsDiscreteValuationRing R']
  /-- The algebra structure of the base extension. -/
  [alg : Algebra R R']
  /-- The base extension is finite as a module. -/
  [fin : Module.Finite R R']
  /-- The base extension is étale. -/
  [et : Algebra.Etale R R']
  /-- The base extension is faithfully flat. -/
  [ff : Module.FaithfullyFlat R R']
  /-- The refined model. -/
  Y' : Scheme.{u}
  /-- The structure morphism of the refined model. -/
  y' : Y' ⟶ Spec (CommRingCat.of R')
  /-- The refined model is smooth. -/
  [smooth' : Smooth y']
  /-- The refined model is separated. -/
  [sep' : IsSeparated y']
  /-- The inclusion of the base-changed original model. -/
  ι : SchemeHomOver (y1 y R') y'
  /-- The inclusion is an open immersion. -/
  [oi : IsOpenImmersion ι.1]
  /-- The refined domain of partial multiplication. -/
  U' : (pullback y' y').Opens
  /-- The refined partial multiplication. -/
  m' : SchemeHomOver (U'.ι ≫ pullback.fst y' y' ≫ y') y'
  /-- Compatibility with the original partial multiplication. -/
  hext : ∀ {T : Scheme.{u}} (t' : T ⟶ Spec (CommRingCat.of R'))
      (w : SchemeHomOver (t' ≫ bS R R') (U.ι ≫ pullback.fst y y ≫ y))
      (a b c : SchemeHomOver (t' ≫ bS R R') y),
    a.1 = w.1 ≫ U.ι ≫ pullback.fst y y → b.1 = w.1 ≫ U.ι ≫ pullback.snd y y → c.1 = w.1 ≫ m.1 →
    ∃ w' : SchemeHomOver t' (U'.ι ≫ pullback.fst y' y' ≫ y'),
      w'.1 ≫ U'.ι ≫ pullback.fst y' y' = (RelativeGroupLaw.baseChangePointOfBase (bS R R') a).1
        ≫ ι.1 ∧
      w'.1 ≫ U'.ι ≫ pullback.snd y' y' = (RelativeGroupLaw.baseChangePointOfBase (bS R R') b).1
        ≫ ι.1 ∧
      w'.1 ≫ m'.1 = (RelativeGroupLaw.baseChangePointOfBase (bS R R') c).1 ≫ ι.1
  /-- Compatible translations after each further finite étale extension. -/
  hstat : ∀ (R'' : Type u) (_ : CommRing R'') (_ : IsDomain R'') (_ : IsDiscreteValuationRing R'')
      (_ : Algebra R' R'') (_ : Module.Finite R' R'') (_ : Algebra.Etale R' R'') (_ :
        Module.FaithfullyFlat R' R'')
      (a : Spec (CommRingCat.of R'') ⟶ Y),
    a ≫ y = bS R' R'' ≫ bS R R' →
    ∃ τ : pullback y (bS R' R'' ≫ bS R R') ⟶ pullback y' (bS R' R''),
      τ ≫ pullback.snd y' (bS R' R'') = pullback.snd y (bS R' R'' ≫ bS R R') ∧
      ∀ {T : Scheme.{u}} (x : T ⟶ pullback y (bS R' R'' ≫ bS R R')) (w : T ⟶ (U : Scheme.{u}))
        (v : T ⟶ pullback y (bS R R')),
        w ≫ U.ι ≫ pullback.fst y y = x ≫ pullback.snd y (bS R' R'' ≫ bS R R') ≫ a →
        w ≫ U.ι ≫ pullback.snd y y = x ≫ pullback.fst y (bS R' R'' ≫ bS R R') →
        v ≫ pullback.fst y (bS R R') = w ≫ m.1 →
        v ≫ pullback.snd y (bS R R') = x ≫ pullback.snd y (bS R' R'' ≫ bS R R') ≫ bS R' R'' →
        x ≫ τ ≫ pullback.fst y' (bS R' R'') = v ≫ ι.1
abbrev

P

L377 ↗
AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.Cx.P

The pair scheme for the extended model.

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_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
attribute [local instance] Cx.instR Cx.dom Cx.dvr Cx.hens Cx.smooth
  Cx.instR' Cx.dom' Cx.dvr' Cx.alg Cx.fin Cx.et Cx.ff Cx.smooth' Cx.sep' Cx.oi
namespace Cx
variable (C : Cx.{u})
abbrev P : Scheme.{u}
AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.Cx.U₁

The pulled-back domain of partial multiplication.

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_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
attribute [local instance] Cx.instR Cx.dom Cx.dvr Cx.hens Cx.smooth
  Cx.instR' Cx.dom' Cx.dvr' Cx.alg Cx.fin Cx.et Cx.ff Cx.smooth' Cx.sep' Cx.oi
namespace Cx
variable (C : Cx.{u})
abbrev U₁ : C.P.Opens
AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.Cx.πU

The projection from the pulled-back multiplication domain.

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_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
attribute [local instance] Cx.instR Cx.dom Cx.dvr Cx.hens Cx.smooth
  Cx.instR' Cx.dom' Cx.dvr' Cx.alg Cx.fin Cx.et Cx.ff Cx.smooth' Cx.sep' Cx.oi
namespace Cx
variable (C : Cx.{u})
abbrev πU : (C.U₁ : Scheme.{u}) ⟶ C.U
AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.Cx.πU_ι
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_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
attribute [local instance] Cx.instR Cx.dom Cx.dvr Cx.hens Cx.smooth
  Cx.instR' Cx.dom' Cx.dvr' Cx.alg Cx.fin Cx.et Cx.ff Cx.smooth' Cx.sep' Cx.oi
namespace Cx
variable (C : Cx.{u})
theorem πU_ι : C.πU ≫ C.U.ι = C.U₁.ι ≫ pi1 C.y C.R'
AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.Cx.πU_fst
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_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
attribute [local instance] Cx.instR Cx.dom Cx.dvr Cx.hens Cx.smooth
  Cx.instR' Cx.dom' Cx.dvr' Cx.alg Cx.fin Cx.et Cx.ff Cx.smooth' Cx.sep' Cx.oi
namespace Cx
variable (C : Cx.{u})
theorem πU_fst : C.πU ≫ C.U.ι ≫ pullback.fst C.y C.y = C.U₁.ι ≫ pullback.fst _ _ ≫ p1 C.y C.R'
AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.Cx.πU_snd
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_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
attribute [local instance] Cx.instR Cx.dom Cx.dvr Cx.hens Cx.smooth
  Cx.instR' Cx.dom' Cx.dvr' Cx.alg Cx.fin Cx.et Cx.ff Cx.smooth' Cx.sep' Cx.oi
namespace Cx
variable (C : Cx.{u})
theorem πU_snd : C.πU ≫ C.U.ι ≫ pullback.snd C.y C.y = C.U₁.ι ≫ pullback.snd _ _ ≫ p1 C.y C.R'
AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.Cx.m₁

Multiplication lifted to the base-changed model.

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_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
attribute [local instance] Cx.instR Cx.dom Cx.dvr Cx.hens Cx.smooth
  Cx.instR' Cx.dom' Cx.dvr' Cx.alg Cx.fin Cx.et Cx.ff Cx.smooth' Cx.sep' Cx.oi
namespace Cx
variable (C : Cx.{u})
def m₁ : (C.U₁ : Scheme.{u}) ⟶ Y1 C.y C.R'
AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.Cx.m₁_p1
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_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
attribute [local instance] Cx.instR Cx.dom Cx.dvr Cx.hens Cx.smooth
  Cx.instR' Cx.dom' Cx.dvr' Cx.alg Cx.fin Cx.et Cx.ff Cx.smooth' Cx.sep' Cx.oi
namespace Cx
variable (C : Cx.{u})
theorem m₁_p1 : C.m₁ ≫ p1 C.y C.R' = C.πU ≫ C.m.1
AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.Cx.m₁_y1
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_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
attribute [local instance] Cx.instR Cx.dom Cx.dvr Cx.hens Cx.smooth
  Cx.instR' Cx.dom' Cx.dvr' Cx.alg Cx.fin Cx.et Cx.ff Cx.smooth' Cx.sep' Cx.oi
namespace Cx
variable (C : Cx.{u})
theorem m₁_y1 : C.m₁ ≫ y1 C.y C.R' = C.U₁.ι ≫ pullback.fst _ _ ≫ y1 C.y C.R'
AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.Cx.G₀

The known multiplication map on its original domain.

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_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
attribute [local instance] Cx.instR Cx.dom Cx.dvr Cx.hens Cx.smooth
  Cx.instR' Cx.dom' Cx.dvr' Cx.alg Cx.fin Cx.et Cx.ff Cx.smooth' Cx.sep' Cx.oi
namespace Cx
variable (C : Cx.{u})
def G₀ : (C.U₁ : Scheme.{u}) ⟶ C.Y'
AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.Cx.G₀_y'
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_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
attribute [local instance] Cx.instR Cx.dom Cx.dvr Cx.hens Cx.smooth
  Cx.instR' Cx.dom' Cx.dvr' Cx.alg Cx.fin Cx.et Cx.ff Cx.smooth' Cx.sep' Cx.oi
namespace Cx
variable (C : Cx.{u})
theorem G₀_y' : C.G₀ ≫ C.y' = C.U₁.ι ≫ pullback.fst _ _ ≫ y1 C.y C.R'
AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.Cx.henselian_R'
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_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
attribute [local instance] Cx.instR Cx.dom Cx.dvr Cx.hens Cx.smooth
  Cx.instR' Cx.dom' Cx.dvr' Cx.alg Cx.fin Cx.et Cx.ff Cx.smooth' Cx.sep' Cx.oi
namespace Cx
variable (C : Cx.{u})
theorem henselian_R' : HenselianLocalRing C.R'
AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.Cx.isReduced_P
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_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
attribute [local instance] Cx.instR Cx.dom Cx.dvr Cx.hens Cx.smooth
  Cx.instR' Cx.dom' Cx.dvr' Cx.alg Cx.fin Cx.et Cx.ff Cx.smooth' Cx.sep' Cx.oi
namespace Cx
variable (C : Cx.{u})
instance isReduced_P : IsReduced C.P
AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.Cx.dense_U₁
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_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
attribute [local instance] Cx.instR Cx.dom Cx.dvr Cx.hens Cx.smooth
  Cx.instR' Cx.dom' Cx.dvr' Cx.alg Cx.fin Cx.et Cx.ff Cx.smooth' Cx.sep' Cx.oi
namespace Cx
variable (C : Cx.{u})
theorem dense_U₁ : Dense (C.U₁ : Set C.P)
AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.Cx.mem_U₁_of_ne
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_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
attribute [local instance] Cx.instR Cx.dom Cx.dvr Cx.hens Cx.smooth
  Cx.instR' Cx.dom' Cx.dvr' Cx.alg Cx.fin Cx.et Cx.ff Cx.smooth' Cx.sep' Cx.oi
namespace Cx
variable (C : Cx.{u})
theorem mem_U₁_of_ne (q : C.P) (hq : (pullback.fst (y1 C.y C.R') (y1 C.y C.R') ≫ y1 C.y C.R') q ≠
    IsLocalRing.closedPoint C.R') : q ∈ C.U₁
AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.Cx.exists_datum
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_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
attribute [local instance] Cx.instR Cx.dom Cx.dvr Cx.hens Cx.smooth
  Cx.instR' Cx.dom' Cx.dvr' Cx.alg Cx.fin Cx.et Cx.ff Cx.smooth' Cx.sep' Cx.oi
namespace Cx
variable (C : Cx.{u})
theorem exists_datum (t : C.P)
    (ht : (pullback.fst (y1 C.y C.R') (y1 C.y C.R') ≫ y1 C.y C.R') t = IsLocalRing.closedPoint
      C.R') :
    ∃ (R'' : Type u) (_ : CommRing R'') (_ : IsDomain R'') (_ : IsDiscreteValuationRing R'') (_
      : Algebra C.R' R'')
      (_ : Module.Finite C.R' R'') (_ : Algebra.Etale C.R' R'') (_ : Module.FaithfullyFlat C.R'
        R'')
      (a : Spec (CommRingCat.of R'') ⟶ C.Y) (T : Scheme.{u}) (t'' : T ⟶ Spec (CommRingCat.of R''))
      (w₁ w₂ : T ⟶ (C.U : Scheme.{u})) (s : T ⟶ C.P),
      a ≫ C.y = bS C.R' R'' ≫ bS C.R C.R' ∧
      w₁ ≫ C.U.ι ≫ pullback.fst C.y C.y = t'' ≫ a ∧
      w₂ ≫ C.U.ι ≫ pullback.fst C.y C.y = w₁ ≫ C.U.ι ≫ pullback.snd C.y C.y ∧
      s ≫ pullback.fst _ _ ≫ p1 C.y C.R' = w₁ ≫ C.m.1 ∧
      s ≫ pullback.snd _ _ ≫ p1 C.y C.R' = w₂ ≫ C.U.ι ≫ pullback.snd C.y C.y ∧
      s ≫ pullback.fst _ _ ≫ y1 C.y C.R' = t'' ≫ bS C.R' R'' ∧
      t ∈ Set.range s.base
AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.Cx.Agree

Agreement with multiplication on the common dense domain.

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_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
attribute [local instance] Cx.instR Cx.dom Cx.dvr Cx.hens Cx.smooth
  Cx.instR' Cx.dom' Cx.dvr' Cx.alg Cx.fin Cx.et Cx.ff Cx.smooth' Cx.sep' Cx.oi
namespace Cx
variable (C : Cx.{u})
def Agree (V : C.P.Opens) (G : (V : Scheme.{u}) ⟶ C.Y') : Prop
AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.Cx.G₀_agree
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_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
attribute [local instance] Cx.instR Cx.dom Cx.dvr Cx.hens Cx.smooth
  Cx.instR' Cx.dom' Cx.dvr' Cx.alg Cx.fin Cx.et Cx.ff Cx.smooth' Cx.sep' Cx.oi
namespace Cx
variable (C : Cx.{u})
theorem G₀_agree : C.Agree C.U₁ C.G₀
AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.Cx.hpiece
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_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
attribute [local instance] Cx.instR Cx.dom Cx.dvr Cx.hens Cx.smooth
  Cx.instR' Cx.dom' Cx.dvr' Cx.alg Cx.fin Cx.et Cx.ff Cx.smooth' Cx.sep' Cx.oi
namespace Cx
variable (C : Cx.{u})
theorem hpiece (t : C.P) : ∃ (V : C.P.Opens) (G : (V : Scheme.{u}) ⟶ C.Y'),
    G ≫ C.y' = V.ι ≫ pullback.fst _ _ ≫ y1 C.y C.R' ∧ C.Agree V G ∧ t ∈ V
AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.Cx.PF

The open pieces used to glue the extended multiplication.

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_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
attribute [local instance] Cx.instR Cx.dom Cx.dvr Cx.hens Cx.smooth
  Cx.instR' Cx.dom' Cx.dvr' Cx.alg Cx.fin Cx.et Cx.ff Cx.smooth' Cx.sep' Cx.oi
namespace Cx
variable (C : Cx.{u})
def PF (V : C.P → C.P.Opens) : Option C.P → Scheme.{u}
  | none => (C.U₁ : Scheme.{u})
  | some t => (V t : Scheme.{u})
AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.Cx.Pj

The inclusions of the gluing pieces.

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_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
attribute [local instance] Cx.instR Cx.dom Cx.dvr Cx.hens Cx.smooth
  Cx.instR' Cx.dom' Cx.dvr' Cx.alg Cx.fin Cx.et Cx.ff Cx.smooth' Cx.sep' Cx.oi
namespace Cx
variable (C : Cx.{u})
def Pj (V : C.P → C.P.Opens) : ∀ o, C.PF V o ⟶ C.P
  | none => C.U₁.ι
  | some t => (V t).ι
AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.Cx.Pg

The local maps on the gluing pieces.

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_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
attribute [local instance] Cx.instR Cx.dom Cx.dvr Cx.hens Cx.smooth
  Cx.instR' Cx.dom' Cx.dvr' Cx.alg Cx.fin Cx.et Cx.ff Cx.smooth' Cx.sep' Cx.oi
namespace Cx
variable (C : Cx.{u})
def Pg (V : C.P → C.P.Opens) (G : ∀ t, (V t : Scheme.{u}) ⟶ C.Y') : ∀ o, C.PF V o ⟶ C.Y'
  | none => C.G₀
  | some t => G t
AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.Cx.isOpenImmersion_Pj
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_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
attribute [local instance] Cx.instR Cx.dom Cx.dvr Cx.hens Cx.smooth
  Cx.instR' Cx.dom' Cx.dvr' Cx.alg Cx.fin Cx.et Cx.ff Cx.smooth' Cx.sep' Cx.oi
namespace Cx
variable (C : Cx.{u})
instance isOpenImmersion_Pj (V : C.P → C.P.Opens) (o : Option C.P) : IsOpenImmersion
  (C.Pj V o)
AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.Cx.exists_G
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_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
attribute [local instance] Cx.instR Cx.dom Cx.dvr Cx.hens Cx.smooth
  Cx.instR' Cx.dom' Cx.dvr' Cx.alg Cx.fin Cx.et Cx.ff Cx.smooth' Cx.sep' Cx.oi
namespace Cx
variable (C : Cx.{u})
theorem exists_G : ∃ G : C.P ⟶ C.Y', C.U₁.ι ≫ G = C.G₀ ∧ G ≫ C.y' = pullback.fst _ _ ≫ y1 C.y
  C.R'
AbelianVarieties.NOSProofs.EtaleTranslationDomains.TranslationDomains.Cx.exists_extension
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_NeronModelInfra_exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing.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 AbelianVarieties.NOSProofs.EtaleTranslationDomains
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
  GoodReductionJacobian Topology
universe u v
namespace TranslationDomains
open AbelianVarieties.NOSProofs.DensityBaseChange.FibreDensity
  (dense_fibre_iff dense_preimage_of_isPullback dense_fibre_of_isPullback)
attribute [local instance] Cx.instR Cx.dom Cx.dvr Cx.hens Cx.smooth
  Cx.instR' Cx.dom' Cx.dvr' Cx.alg Cx.fin Cx.et Cx.ff Cx.smooth' Cx.sep' Cx.oi
namespace Cx
variable (C : Cx.{u})
theorem exists_extension :
    ∃ (D : (pullback C.y' C.y').Opens) (hle : C.U' ≤ D)
      (M : SchemeHomOver (D.ι ≫ pullback.fst C.y' C.y' ≫ C.y') C.y'),
      (pullback C.y' C.y').homOfLE hle ≫ M.1 = C.m'.1 ∧
      ∀ q : ↑(pullback C.y' C.y'), (pullback.fst C.y' C.y').base q ∈ Set.range C.ι.1.base →
        (pullback.snd C.y' C.y').base q ∈ Set.range C.ι.1.base → q ∈ D
NeronModelInfra.exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing
Source context 6 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace NeronModelInfra
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry GoodReductionJacobian Topology
open AbelianVarieties.NOSProofs.EtaleTranslationDomains
universe u
theorem exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing
    {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R] [HenselianLocalRing R]
    {Y : Scheme.{u}} (y : Y ⟶ Spec (CommRingCat.of R))
    [Smooth y] [IsSeparated y] [LocallyOfFiniteType y] [QuasiCompact y]
    (U : (pullback y y).Opens) (m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y)
    (hU₁ : ∀ x : Y,
      Dense ((Subtype.val : {q : ↑(pullback y y) // (pullback.fst y y).base q = x} → ↑(pullback
        y y)) ⁻¹'
          (U : Set ↑(pullback y y))))
    (hU₂ : ∀ x : Y,
      Dense ((Subtype.val : {q : ↑(pullback y y) // (pullback.snd y y).base q = x} → ↑(pullback
        y y)) ⁻¹'
          (U : Set ↑(pullback y y))))
    (hΦ : IsOpenImmersion
      (pullback.lift (f := y) (g := y) (U.ι ≫ pullback.fst y y) m.1
            ((Category.assoc _ _ _).trans m.2.symm)))
    (_hΦ₁ : ∀ x : Y,
      Dense ((Subtype.val : {q : ↑(pullback y y) // (pullback.fst y y).base q = x} → ↑(pullback
        y y)) ⁻¹'
          (Set.range (pullback.lift (f := y) (g := y) (U.ι ≫ pullback.fst y y) m.1
            ((Category.assoc _ _ _).trans m.2.symm)).base)))
    (hΦ₂ : ∀ x : Y,
      Dense ((Subtype.val : {q : ↑(pullback y y) // (pullback.snd y y).base q = x} → ↑(pullback
        y y)) ⁻¹'
          (Set.range (pullback.lift (f := y) (g := y) (U.ι ≫ pullback.fst y y) m.1
            ((Category.assoc _ _ _).trans m.2.symm)).base)))
    (hΨ : IsOpenImmersion
      (pullback.lift (f := y) (g := y) m.1 (U.ι ≫ pullback.snd y y)
            (m.2.trans (by rw [Category.assoc, pullback.condition]))))
    (_hΨ₁ : ∀ x : Y,
      Dense ((Subtype.val : {q : ↑(pullback y y) // (pullback.fst y y).base q = x} → ↑(pullback
        y y)) ⁻¹'
          (Set.range (pullback.lift (f := y) (g := y) m.1 (U.ι ≫ pullback.snd y y)
            (m.2.trans (by rw [Category.assoc, pullback.condition]))).base)))
    (_hΨ₂ : ∀ x : Y,
      Dense ((Subtype.val : {q : ↑(pullback y y) // (pullback.snd y y).base q = x} → ↑(pullback
        y y)) ⁻¹'
          (Set.range (pullback.lift (f := y) (g := y) m.1 (U.ι ≫ pullback.snd y y)
            (m.2.trans (by rw [Category.assoc, pullback.condition]))).base)))
    (hassoc : ∀ {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of R))
        (u v p q : SchemeHomOver t (U.ι ≫ pullback.fst y y ≫ y)),
      u.1 ≫ U.ι ≫ pullback.snd y y = v.1 ≫ U.ι ≫ pullback.fst y y →
      p.1 ≫ U.ι ≫ pullback.fst y y = u.1 ≫ m.1 → p.1 ≫ U.ι ≫ pullback.snd y y = v.1 ≫ U.ι ≫
        pullback.snd y y →
      q.1 ≫ U.ι ≫ pullback.fst y y = u.1 ≫ U.ι ≫ pullback.fst y y → q.1 ≫ U.ι ≫ pullback.snd y y
        = v.1 ≫ m.1 →
      p.1 ≫ m.1 = q.1 ≫ m.1)
    (hUK : ∀ q : ↑(pullback y y), (pullback.fst y y ≫ y).base q ≠ IsLocalRing.closedPoint R → q
      ∈ U)
    (R' : Type u) [CommRing R'] [IsDomain R'] [IsDiscreteValuationRing R'] [Algebra R R']
    [Module.Finite R R'] [Algebra.Etale R R'] [Module.FaithfullyFlat R R']
    {Y' : Scheme.{u}} (y' : Y' ⟶ Spec (CommRingCat.of R'))
    [Smooth y'] [IsSeparated y'] [LocallyOfFiniteType y'] [QuasiCompact y']
    (ι : SchemeHomOver (pullback.snd y (Spec.map (CommRingCat.ofHom (algebraMap R R')))) y')
      [IsOpenImmersion ι.1]
    (U' : (pullback y' y').Opens) (m' : SchemeHomOver (U'.ι ≫ pullback.fst y' y' ≫ y') y')
    (hU'₁ : ∀ x : Y',
      Dense ((Subtype.val : {q : ↑(pullback y' y') // (pullback.fst y' y').base q = x} →
        ↑(pullback y' y')) ⁻¹'
          (U' : Set ↑(pullback y' y'))))
    (hU'₂ : ∀ x : Y',
      Dense ((Subtype.val : {q : ↑(pullback y' y') // (pullback.snd y' y').base q = x} →
        ↑(pullback y' y')) ⁻¹'
          (U' : Set ↑(pullback y' y'))))
    (hΦ' : IsOpenImmersion
      (pullback.lift (f := y') (g := y') (U'.ι ≫ pullback.fst y' y') m'.1
            ((Category.assoc _ _ _).trans m'.2.symm)))
    (hΦ'₁ : ∀ x : Y',
      Dense ((Subtype.val : {q : ↑(pullback y' y') // (pullback.fst y' y').base q = x} →
        ↑(pullback y' y')) ⁻¹'
          (Set.range (pullback.lift (f := y') (g := y') (U'.ι ≫ pullback.fst y' y') m'.1
            ((Category.assoc _ _ _).trans m'.2.symm)).base)))
    (hΦ'₂ : ∀ x : Y',
      Dense ((Subtype.val : {q : ↑(pullback y' y') // (pullback.snd y' y').base q = x} →
        ↑(pullback y' y')) ⁻¹'
          (Set.range (pullback.lift (f := y') (g := y') (U'.ι ≫ pullback.fst y' y') m'.1
            ((Category.assoc _ _ _).trans m'.2.symm)).base)))
    (hΨ' : IsOpenImmersion
      (pullback.lift (f := y') (g := y') m'.1 (U'.ι ≫ pullback.snd y' y')
            (m'.2.trans (by rw [Category.assoc, pullback.condition]))))
    (hΨ'₁ : ∀ x : Y',
      Dense ((Subtype.val : {q : ↑(pullback y' y') // (pullback.fst y' y').base q = x} →
        ↑(pullback y' y')) ⁻¹'
          (Set.range (pullback.lift (f := y') (g := y') m'.1 (U'.ι ≫ pullback.snd y' y')
            (m'.2.trans (by rw [Category.assoc, pullback.condition]))).base)))
    (hΨ'₂ : ∀ x : Y',
      Dense ((Subtype.val : {q : ↑(pullback y' y') // (pullback.snd y' y').base q = x} →
        ↑(pullback y' y')) ⁻¹'
          (Set.range (pullback.lift (f := y') (g := y') m'.1 (U'.ι ≫ pullback.snd y' y')
            (m'.2.trans (by rw [Category.assoc, pullback.condition]))).base)))
    (hassoc' : ∀ {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of R'))
        (u v p q : SchemeHomOver t (U'.ι ≫ pullback.fst y' y' ≫ y')),
      u.1 ≫ U'.ι ≫ pullback.snd y' y' = v.1 ≫ U'.ι ≫ pullback.fst y' y' →
      p.1 ≫ U'.ι ≫ pullback.fst y' y' = u.1 ≫ m'.1 → p.1 ≫ U'.ι ≫ pullback.snd y' y' = v.1 ≫
        U'.ι ≫ pullback.snd y' y' →
      q.1 ≫ U'.ι ≫ pullback.fst y' y' = u.1 ≫ U'.ι ≫ pullback.fst y' y' → q.1 ≫ U'.ι ≫
        pullback.snd y' y' = v.1 ≫ m'.1 →
      p.1 ≫ m'.1 = q.1 ≫ m'.1)
    (hext : ∀ {T : Scheme.{u}} (t' : T ⟶ Spec (CommRingCat.of R'))
        (w : SchemeHomOver (t' ≫ (Spec.map (CommRingCat.ofHom (algebraMap R R')))) (U.ι ≫
          pullback.fst y y ≫ y))
        (a b c : SchemeHomOver (t' ≫ (Spec.map (CommRingCat.ofHom (algebraMap R R')))) y),
      a.1 = w.1 ≫ U.ι ≫ pullback.fst y y → b.1 = w.1 ≫ U.ι ≫ pullback.snd y y → c.1 = w.1 ≫ m.1 →
      ∃ w' : SchemeHomOver t' (U'.ι ≫ pullback.fst y' y' ≫ y'),
        w'.1 ≫ U'.ι ≫ pullback.fst y' y' = (RelativeGroupLaw.baseChangePointOfBase (Spec.map
          (CommRingCat.ofHom (algebraMap R R'))) a).1 ≫ ι.1 ∧
        w'.1 ≫ U'.ι ≫ pullback.snd y' y' = (RelativeGroupLaw.baseChangePointOfBase (Spec.map
          (CommRingCat.ofHom (algebraMap R R'))) b).1 ≫ ι.1 ∧
        w'.1 ≫ m'.1 = (RelativeGroupLaw.baseChangePointOfBase (Spec.map (CommRingCat.ofHom
          (algebraMap R R'))) c).1 ≫ ι.1)
    (hstat : ∀ (R'' : Type u) (_ : CommRing R'') (_ : IsDomain R'') (_ : IsDiscreteValuationRing
      R'')
        (_ : Algebra R' R'') (_ : Module.Finite R' R'') (_ : Algebra.Etale R' R'') (_ :
          Module.FaithfullyFlat R' R'')
        (a : Spec (CommRingCat.of R'') ⟶ Y),
      a ≫ y = (Spec.map (CommRingCat.ofHom (algebraMap R' R''))) ≫ (Spec.map (CommRingCat.ofHom
        (algebraMap R R'))) →
      ∃ τ : pullback y ((Spec.map (CommRingCat.ofHom (algebraMap R' R''))) ≫ (Spec.map
        (CommRingCat.ofHom (algebraMap R R')))) ⟶ pullback y' (Spec.map (CommRingCat.ofHom
          (algebraMap R' R''))),
        τ ≫ pullback.snd y' (Spec.map (CommRingCat.ofHom (algebraMap R' R''))) = pullback.snd y
          ((Spec.map (CommRingCat.ofHom (algebraMap R' R''))) ≫ (Spec.map (CommRingCat.ofHom
            (algebraMap R R')))) ∧
        ∀ {T : Scheme.{u}} (x : T ⟶ pullback y ((Spec.map (CommRingCat.ofHom (algebraMap R'
          R''))) ≫ (Spec.map (CommRingCat.ofHom (algebraMap R R')))))
          (w : T ⟶ (U : Scheme.{u})) (v : T ⟶ pullback y (Spec.map (CommRingCat.ofHom
            (algebraMap R R')))),
          w ≫ U.ι ≫ pullback.fst y y = x ≫ pullback.snd y ((Spec.map (CommRingCat.ofHom
            (algebraMap R' R''))) ≫ (Spec.map (CommRingCat.ofHom (algebraMap R R')))) ≫ a →
          w ≫ U.ι ≫ pullback.snd y y = x ≫ pullback.fst y ((Spec.map (CommRingCat.ofHom
            (algebraMap R' R''))) ≫ (Spec.map (CommRingCat.ofHom (algebraMap R R')))) →
          v ≫ pullback.fst y (Spec.map (CommRingCat.ofHom (algebraMap R R'))) = w ≫ m.1 →
          v ≫ pullback.snd y (Spec.map (CommRingCat.ofHom (algebraMap R R'))) = x ≫ pullback.snd
            y ((Spec.map (CommRingCat.ofHom (algebraMap R' R''))) ≫ (Spec.map (CommRingCat.ofHom
              (algebraMap R R')))) ≫ (Spec.map (CommRingCat.ofHom (algebraMap R' R''))) →
          x ≫ τ ≫ pullback.fst y' (Spec.map (CommRingCat.ofHom (algebraMap R' R''))) = v ≫ ι.1) :
    ∃ (U'' : (pullback y' y').Opens) (hle : U' ≤ U'')
      (m'' : SchemeHomOver (U''.ι ≫ pullback.fst y' y' ≫ y') y'),
      (pullback y' y').homOfLE hle ≫ m''.1 = m'.1 ∧
      (∀ x, Dense ((Subtype.val : {q : ↑(pullback y' y') // (pullback.fst y' y').base q = x} →
        ↑(pullback y' y')) ⁻¹'
          (U'' : Set ↑(pullback y' y')))) ∧
      (∀ x, Dense ((Subtype.val : {q : ↑(pullback y' y') // (pullback.snd y' y').base q = x} →
        ↑(pullback y' y')) ⁻¹'
          (U'' : Set ↑(pullback y' y')))) ∧
      IsOpenImmersion
          (pullback.lift (f := y') (g := y') (U''.ι ≫ pullback.fst y' y') m''.1
            ((Category.assoc _ _ _).trans m''.2.symm)) ∧
      (∀ x, Dense ((Subtype.val : {q : ↑(pullback y' y') // (pullback.fst y' y').base q = x} →
        ↑(pullback y' y')) ⁻¹'
          (Set.range (pullback.lift (f := y') (g := y') (U''.ι ≫ pullback.fst y' y') m''.1
            ((Category.assoc _ _ _).trans m''.2.symm)).base))) ∧
      (∀ x, Dense ((Subtype.val : {q : ↑(pullback y' y') // (pullback.snd y' y').base q = x} →
        ↑(pullback y' y')) ⁻¹'
          (Set.range (pullback.lift (f := y') (g := y') (U''.ι ≫ pullback.fst y' y') m''.1
            ((Category.assoc _ _ _).trans m''.2.symm)).base))) ∧
      IsOpenImmersion
          (pullback.lift (f := y') (g := y') m''.1 (U''.ι ≫ pullback.snd y' y')
            (m''.2.trans (by rw [Category.assoc, pullback.condition]))) ∧
      (∀ x, Dense ((Subtype.val : {q : ↑(pullback y' y') // (pullback.fst y' y').base q = x} →
        ↑(pullback y' y')) ⁻¹'
          (Set.range (pullback.lift (f := y') (g := y') m''.1 (U''.ι ≫ pullback.snd y' y')
            (m''.2.trans (by rw [Category.assoc, pullback.condition]))).base))) ∧
      (∀ x, Dense ((Subtype.val : {q : ↑(pullback y' y') // (pullback.snd y' y').base q = x} →
        ↑(pullback y' y')) ⁻¹'
          (Set.range (pullback.lift (f := y') (g := y') m''.1 (U''.ι ≫ pullback.snd y' y')
            (m''.2.trans (by rw [Category.assoc, pullback.condition]))).base))) ∧
      (∀ {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of R'))
          (u v p q : SchemeHomOver t (U''.ι ≫ pullback.fst y' y' ≫ y')),
        u.1 ≫ U''.ι ≫ pullback.snd y' y' = v.1 ≫ U''.ι ≫ pullback.fst y' y' →
        p.1 ≫ U''.ι ≫ pullback.fst y' y' = u.1 ≫ m''.1 →
        p.1 ≫ U''.ι ≫ pullback.snd y' y' = v.1 ≫ U''.ι ≫ pullback.snd y' y' →
        q.1 ≫ U''.ι ≫ pullback.fst y' y' = u.1 ≫ U''.ι ≫ pullback.fst y' y' →
        q.1 ≫ U''.ι ≫ pullback.snd y' y' = v.1 ≫ m''.1 →
        p.1 ≫ m''.1 = q.1 ≫ m''.1) ∧
      (∀ q : ↑(pullback y' y'), (pullback.fst y' y').base q ∈ Set.range ι.1.base →
        (pullback.snd y' y').base q ∈ Set.range ι.1.base → q ∈ U'') := by
  let C : TranslationDomains.Cx.{u} :=
    { R := R, Y := Y, y := y, U := U, m := m, hU₁ := hU₁, hU₂ := hU₂, hΦ := hΦ, hΦ₂ := hΦ₂, hΨ
      := hΨ,
      hassoc := hassoc, hUK := hUK, R' := R', Y' := Y', y' := y', ι := ι, U' := U', m' := m',
        hext := hext,
      hstat := hstat }
  obtain ⟨D, hle, M, hM, hsq⟩ := C.exists_extension
  have h :=
    isOpenImmersion_lift_and_forall_comp_eq_of_homOfLE_comp_eq_of_forall_dense_preimage_fibre
      y' U' m' hU'₁ hU'₂ hΦ' hΦ'₁ hΦ'₂ hΨ' hΨ'₁ hΨ'₂ hassoc' D hle M hM
  exact ⟨D, hle, M, hM, h.1, h.2.1, h.2.2.1, h.2.2.2.1, h.2.2.2.2.1, h.2.2.2.2.2.1,
    h.2.2.2.2.2.2.1,
    h.2.2.2.2.2.2.2.1, h.2.2.2.2.2.2.2.2, hsq⟩
AbelianVarieties.NOSProofs.EtaleTranslationExtensions.TranslationRefinement.specMap_apply_ne_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_NeronModelInfra_exists_etale_translation_extension.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 AbelianVarieties.NOSProofs.EtaleTranslationExtensions
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace TranslationRefinement
open NeronModelInfra renaming
 exists_glue_translate_baseChange_isOpenImmersion_forall_range_subset_of_forall_dense_preimage_fibre
 → glueTranslation
section Algebra
theorem specMap_apply_ne_closedPoint {A B : Type u} [CommRing A] [IsLocalRing A] [CommRing B]
  [IsDomain B]
    [IsLocalRing B] [Ring.DimensionLEOne B] (hA : IsLocalRing.maximalIdeal A ≠ ⊥) (f : A →+* B)
    (hf : Function.Injective f) (p : ↥(Spec (CommRingCat.of B))) (hp : p ≠
      IsLocalRing.closedPoint B) :
    (Spec.map (CommRingCat.ofHom f)).base p ≠ IsLocalRing.closedPoint A
AbelianVarieties.NOSProofs.EtaleTranslationExtensions.TranslationRefinement.exists_ringHom_comp_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_NeronModelInfra_exists_etale_translation_extension.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 AbelianVarieties.NOSProofs.EtaleTranslationExtensions
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace TranslationRefinement
open NeronModelInfra renaming
 exists_glue_translate_baseChange_isOpenImmersion_forall_range_subset_of_forall_dense_preimage_fibre
 → glueTranslation
section Algebra
theorem exists_ringHom_comp_eq {A B K : Type u} [CommRing A] [IsLocalRing A] [CommRing B]
  [IsLocalRing B]
    [Algebra A B] [Module.Finite A B] [Field K] [IsAlgClosed K]
    (φ : A →+* K) (hφ : ∀ x ∈ IsLocalRing.maximalIdeal A, φ x = 0) :
    ∃ ψ : B →+* K, ψ.comp (algebraMap A B) = φ ∧ ∀ x ∈ IsLocalRing.maximalIdeal B, ψ x = 0
AbelianVarieties.NOSProofs.EtaleTranslationExtensions.TranslationRefinement.Strict

The density and associativity properties of the partial group law.

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_NeronModelInfra_exists_etale_translation_extension.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 AbelianVarieties.NOSProofs.EtaleTranslationExtensions
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace TranslationRefinement
open NeronModelInfra renaming
 exists_glue_translate_baseChange_isOpenImmersion_forall_range_subset_of_forall_dense_preimage_fibre
 → glueTranslation
section Main
variable {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
variable {Y : Scheme.{u}} {y : Y ⟶ Spec (CommRingCat.of R)}
variable {U : (pullback y y).Opens} {m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y}
variable (y U m) in
structure Strict : Prop where
  /-- Density along the first projection. -/
  hU₁ : ∀ x : Y,
      Dense ((Subtype.val : {q : ↑(pullback y y) // (pullback.fst y y).base q = x} → ↑(pullback
        y y)) ⁻¹'
          (U : Set ↑(pullback y y)))
  /-- Density along the second projection. -/
  hU₂ : ∀ x : Y,
      Dense ((Subtype.val : {q : ↑(pullback y y) // (pullback.snd y y).base q = x} → ↑(pullback
        y y)) ⁻¹'
          (U : Set ↑(pullback y y)))
  /-- The first translation map is an open immersion. -/
  hΦ : IsOpenImmersion
      (pullback.lift (f := y) (g := y) (U.ι ≫ pullback.fst y y) m.1
            ((Category.assoc _ _ _).trans m.2.symm))
  /-- Density of the first translation image along the first projection. -/
  hΦ₁ : ∀ x : Y,
      Dense ((Subtype.val : {q : ↑(pullback y y) // (pullback.fst y y).base q = x} → ↑(pullback
        y y)) ⁻¹'
          (Set.range (pullback.lift (f := y) (g := y) (U.ι ≫ pullback.fst y y) m.1
            ((Category.assoc _ _ _).trans m.2.symm)).base))
  /-- Density of the first translation image along the second projection. -/
  hΦ₂ : ∀ x : Y,
      Dense ((Subtype.val : {q : ↑(pullback y y) // (pullback.snd y y).base q = x} → ↑(pullback
        y y)) ⁻¹'
          (Set.range (pullback.lift (f := y) (g := y) (U.ι ≫ pullback.fst y y) m.1
            ((Category.assoc _ _ _).trans m.2.symm)).base))
  /-- The second translation map is an open immersion. -/
  hΨ : IsOpenImmersion
      (pullback.lift (f := y) (g := y) m.1 (U.ι ≫ pullback.snd y y)
            (m.2.trans (by rw [Category.assoc, pullback.condition])))
  /-- Density of the second translation image along the first projection. -/
  hΨ₁ : ∀ x : Y,
      Dense ((Subtype.val : {q : ↑(pullback y y) // (pullback.fst y y).base q = x} → ↑(pullback
        y y)) ⁻¹'
          (Set.range (pullback.lift (f := y) (g := y) m.1 (U.ι ≫ pullback.snd y y)
            (m.2.trans (by rw [Category.assoc, pullback.condition]))).base))
  /-- Density of the second translation image along the second projection. -/
  hΨ₂ : ∀ x : Y,
      Dense ((Subtype.val : {q : ↑(pullback y y) // (pullback.snd y y).base q = x} → ↑(pullback
        y y)) ⁻¹'
          (Set.range (pullback.lift (f := y) (g := y) m.1 (U.ι ≫ pullback.snd y y)
            (m.2.trans (by rw [Category.assoc, pullback.condition]))).base))
  /-- Associativity on the common domain. -/
  hassoc : ∀ {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of R))
        (u v p q : SchemeHomOver t (U.ι ≫ pullback.fst y y ≫ y)),
      u.1 ≫ U.ι ≫ pullback.snd y y = v.1 ≫ U.ι ≫ pullback.fst y y →
      p.1 ≫ U.ι ≫ pullback.fst y y = u.1 ≫ m.1 → p.1 ≫ U.ι ≫ pullback.snd y y = v.1 ≫ U.ι ≫
        pullback.snd y y →
      q.1 ≫ U.ι ≫ pullback.fst y y = u.1 ≫ U.ι ≫ pullback.fst y y → q.1 ≫ U.ι ≫ pullback.snd y y
        = v.1 ≫ m.1 →
      p.1 ≫ m.1 = q.1 ≫ m.1
  /-- The generic fiber is contained in the multiplication domain. -/
  hUK : ∀ q : ↑(pullback y y), (pullback.fst y y ≫ y).base q ≠ IsLocalRing.closedPoint R → q ∈ U
AbelianVarieties.NOSProofs.EtaleTranslationExtensions.TranslationRefinement.Level

A finite étale refinement of the partial group model.

Source context 13 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_NeronModelInfra_exists_etale_translation_extension.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 AbelianVarieties.NOSProofs.EtaleTranslationExtensions
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace TranslationRefinement
open NeronModelInfra renaming
 exists_glue_translate_baseChange_isOpenImmersion_forall_range_subset_of_forall_dense_preimage_fibre
 → glueTranslation
section Main
variable {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
variable {Y : Scheme.{u}} {y : Y ⟶ Spec (CommRingCat.of R)}
variable {U : (pullback y y).Opens} {m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y}
variable (y U m) in
variable (y U m) in
structure Level (K : Type u) [Field K] (φ₀ : R →+* K) : Type (u + 1) where
  /-- The finite étale extension ring. -/
  R' : Type u
  /-- The commutative ring structure of the extension. -/
  [cr : CommRing R']
  /-- The base is a domain. -/
  [dom : IsDomain R']
  /-- The base is a discrete valuation ring. -/
  [dvr : IsDiscreteValuationRing R']
  /-- The algebra structure of the base extension. -/
  [alg : Algebra R R']
  /-- The base extension is finite as a module. -/
  [fin : Module.Finite R R']
  /-- The base extension is étale. -/
  [et : Algebra.Etale R R']
  /-- The base extension is faithfully flat. -/
  [ff : Module.FaithfullyFlat R R']
  /-- The chosen map to the algebraically closed residue extension. -/
  φ : R' →+* K
  /-- The chosen residue map extends the original one. -/
  hφ : φ.comp (algebraMap R R') = φ₀
  /-- The residue map kills the maximal ideal. -/
  hφm : ∀ x ∈ IsLocalRing.maximalIdeal R', φ x = 0
  /-- The refined model. -/
  Y' : Scheme.{u}
  /-- The structure morphism of the refined model. -/
  y' : Y' ⟶ Spec (CommRingCat.of R')
  /-- Smoothness of the refined model. -/
  [sm : Smooth y']
  /-- Separatedness of the refined model. -/
  [sep : IsSeparated y']
  /-- Quasi-compactness of the refined model. -/
  [qc : QuasiCompact y']
  /-- The inclusion of the base-changed original model. -/
  ι : SchemeHomOver (pullback.snd y (Spec.map (CommRingCat.ofHom (algebraMap R R')))) y'
  /-- The inclusion is an open immersion. -/
  [oi : IsOpenImmersion ι.1]
  /-- The inclusion contains the generic fiber. -/
  hgen : ∀ p : Y', y'.base p ≠ IsLocalRing.closedPoint R' → p ∈ Set.range ι.1.base
  /-- The inclusion contains all maximal generalizations in fibers. -/
  hmax : ∀ p : Y', (∀ p' : Y', p' ⤳ p → y'.base p' = y'.base p → p' = p) → p ∈ Set.range ι.1.base
  /-- The refined domain of partial multiplication. -/
  U' : (pullback y' y').Opens
  /-- The refined partial multiplication. -/
  m' : SchemeHomOver (U'.ι ≫ pullback.fst y' y' ≫ y') y'
  /-- Compatibility of the refined partial multiplication. -/
  hU'₁ : ∀ x : Y',
      Dense ((Subtype.val : {q : ↑(pullback y' y') // (pullback.fst y' y').base q = x} →
        ↑(pullback y' y')) ⁻¹'
          (U' : Set ↑(pullback y' y')))
  /-- Compatibility of the refined partial multiplication. -/
  hU'₂ : ∀ x : Y',
      Dense ((Subtype.val : {q : ↑(pullback y' y') // (pullback.snd y' y').base q = x} →
        ↑(pullback y' y')) ⁻¹'
          (U' : Set ↑(pullback y' y')))
  /-- The first translation map is an open immersion. -/
  hΦ' : IsOpenImmersion
      (pullback.lift (f := y') (g := y') (U'.ι ≫ pullback.fst y' y') m'.1
            ((Category.assoc _ _ _).trans m'.2.symm))
  /-- Compatibility of the refined partial multiplication. -/
  hΦ'₁ : ∀ x : Y',
      Dense ((Subtype.val : {q : ↑(pullback y' y') // (pullback.fst y' y').base q = x} →
        ↑(pullback y' y')) ⁻¹'
          (Set.range (pullback.lift (f := y') (g := y') (U'.ι ≫ pullback.fst y' y') m'.1
            ((Category.assoc _ _ _).trans m'.2.symm)).base))
  /-- Compatibility of the refined partial multiplication. -/
  hΦ'₂ : ∀ x : Y',
      Dense ((Subtype.val : {q : ↑(pullback y' y') // (pullback.snd y' y').base q = x} →
        ↑(pullback y' y')) ⁻¹'
          (Set.range (pullback.lift (f := y') (g := y') (U'.ι ≫ pullback.fst y' y') m'.1
            ((Category.assoc _ _ _).trans m'.2.symm)).base))
  /-- The second translation map is an open immersion. -/
  hΨ' : IsOpenImmersion
      (pullback.lift (f := y') (g := y') m'.1 (U'.ι ≫ pullback.snd y' y')
            (m'.2.trans (by rw [Category.assoc, pullback.condition])))
  /-- Compatibility of the refined partial multiplication. -/
  hΨ'₁ : ∀ x : Y',
      Dense ((Subtype.val : {q : ↑(pullback y' y') // (pullback.fst y' y').base q = x} →
        ↑(pullback y' y')) ⁻¹'
          (Set.range (pullback.lift (f := y') (g := y') m'.1 (U'.ι ≫ pullback.snd y' y')
            (m'.2.trans (by rw [Category.assoc, pullback.condition]))).base))
  /-- Compatibility of the refined partial multiplication. -/
  hΨ'₂ : ∀ x : Y',
      Dense ((Subtype.val : {q : ↑(pullback y' y') // (pullback.snd y' y').base q = x} →
        ↑(pullback y' y')) ⁻¹'
          (Set.range (pullback.lift (f := y') (g := y') m'.1 (U'.ι ≫ pullback.snd y' y')
            (m'.2.trans (by rw [Category.assoc, pullback.condition]))).base))
  /-- Associativity on the common domain. -/
  hassoc' : ∀ {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of R'))
        (u v p q : SchemeHomOver t (U'.ι ≫ pullback.fst y' y' ≫ y')),
      u.1 ≫ U'.ι ≫ pullback.snd y' y' = v.1 ≫ U'.ι ≫ pullback.fst y' y' →
      p.1 ≫ U'.ι ≫ pullback.fst y' y' = u.1 ≫ m'.1 → p.1 ≫ U'.ι ≫ pullback.snd y' y' = v.1 ≫
        U'.ι ≫ pullback.snd y' y' →
      q.1 ≫ U'.ι ≫ pullback.fst y' y' = u.1 ≫ U'.ι ≫ pullback.fst y' y' → q.1 ≫ U'.ι ≫
        pullback.snd y' y' = v.1 ≫ m'.1 →
      p.1 ≫ m'.1 = q.1 ≫ m'.1
  /-- Compatibility with the original partial multiplication. -/
  hext : ∀ {T : Scheme.{u}} (t' : T ⟶ Spec (CommRingCat.of R'))
        (w : SchemeHomOver (t' ≫ (Spec.map (CommRingCat.ofHom (algebraMap R R')))) (U.ι ≫
          pullback.fst y y ≫ y))
        (a b c : SchemeHomOver (t' ≫ (Spec.map (CommRingCat.ofHom (algebraMap R R')))) y),
      a.1 = w.1 ≫ U.ι ≫ pullback.fst y y → b.1 = w.1 ≫ U.ι ≫ pullback.snd y y → c.1 = w.1 ≫ m.1 →
      ∃ w' : SchemeHomOver t' (U'.ι ≫ pullback.fst y' y' ≫ y'),
        w'.1 ≫ U'.ι ≫ pullback.fst y' y' = (RelativeGroupLaw.baseChangePointOfBase (Spec.map
          (CommRingCat.ofHom (algebraMap R R'))) a).1 ≫ ι.1 ∧
        w'.1 ≫ U'.ι ≫ pullback.snd y' y' = (RelativeGroupLaw.baseChangePointOfBase (Spec.map
          (CommRingCat.ofHom (algebraMap R R'))) b).1 ≫ ι.1 ∧
        w'.1 ≫ m'.1 = (RelativeGroupLaw.baseChangePointOfBase (Spec.map (CommRingCat.ofHom
          (algebraMap R R'))) c).1 ≫ ι.1
AbelianVarieties.NOSProofs.EtaleTranslationExtensions.TranslationRefinement.Level.s

The finite étale base morphism.

Source context 17 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_NeronModelInfra_exists_etale_translation_extension.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 AbelianVarieties.NOSProofs.EtaleTranslationExtensions
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace TranslationRefinement
open NeronModelInfra renaming
 exists_glue_translate_baseChange_isOpenImmersion_forall_range_subset_of_forall_dense_preimage_fibre
 → glueTranslation
section Main
variable {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
variable {Y : Scheme.{u}} {y : Y ⟶ Spec (CommRingCat.of R)}
variable {U : (pullback y y).Opens} {m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y}
variable (y U m) in
variable (y U m) in
variable {K : Type u} [Field K] {φ₀ : R →+* K}
attribute [scoped instance] Level.cr Level.dom Level.dvr Level.alg Level.fin Level.et
  Level.ff Level.sm Level.sep Level.qc Level.oi
namespace Level
variable (E : Level y U m K φ₀)
abbrev s : Spec (CommRingCat.of E.R') ⟶ Spec (CommRingCat.of R)
AbelianVarieties.NOSProofs.EtaleTranslationExtensions.TranslationRefinement.Level.X

The pair scheme over the refined base.

Source context 17 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_NeronModelInfra_exists_etale_translation_extension.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 AbelianVarieties.NOSProofs.EtaleTranslationExtensions
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace TranslationRefinement
open NeronModelInfra renaming
 exists_glue_translate_baseChange_isOpenImmersion_forall_range_subset_of_forall_dense_preimage_fibre
 → glueTranslation
section Main
variable {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
variable {Y : Scheme.{u}} {y : Y ⟶ Spec (CommRingCat.of R)}
variable {U : (pullback y y).Opens} {m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y}
variable (y U m) in
variable (y U m) in
variable {K : Type u} [Field K] {φ₀ : R →+* K}
attribute [scoped instance] Level.cr Level.dom Level.dvr Level.alg Level.fin Level.et
  Level.ff Level.sm Level.sep Level.qc Level.oi
namespace Level
variable (E : Level y U m K φ₀)
abbrev X : Scheme.{u}
AbelianVarieties.NOSProofs.EtaleTranslationExtensions.TranslationRefinement.Level.prX

The projection from the refined pair scheme.

Source context 17 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_NeronModelInfra_exists_etale_translation_extension.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 AbelianVarieties.NOSProofs.EtaleTranslationExtensions
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace TranslationRefinement
open NeronModelInfra renaming
 exists_glue_translate_baseChange_isOpenImmersion_forall_range_subset_of_forall_dense_preimage_fibre
 → glueTranslation
section Main
variable {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
variable {Y : Scheme.{u}} {y : Y ⟶ Spec (CommRingCat.of R)}
variable {U : (pullback y y).Opens} {m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y}
variable (y U m) in
variable (y U m) in
variable {K : Type u} [Field K] {φ₀ : R →+* K}
attribute [scoped instance] Level.cr Level.dom Level.dvr Level.alg Level.fin Level.et
  Level.ff Level.sm Level.sep Level.qc Level.oi
namespace Level
variable (E : Level y U m K φ₀)
abbrev prX : E.X ⟶ pullback y y
AbelianVarieties.NOSProofs.EtaleTranslationExtensions.TranslationRefinement.Level.UX

The known domain of multiplication after base extension.

Source context 17 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_NeronModelInfra_exists_etale_translation_extension.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 AbelianVarieties.NOSProofs.EtaleTranslationExtensions
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace TranslationRefinement
open NeronModelInfra renaming
 exists_glue_translate_baseChange_isOpenImmersion_forall_range_subset_of_forall_dense_preimage_fibre
 → glueTranslation
section Main
variable {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
variable {Y : Scheme.{u}} {y : Y ⟶ Spec (CommRingCat.of R)}
variable {U : (pullback y y).Opens} {m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y}
variable (y U m) in
variable (y U m) in
variable {K : Type u} [Field K] {φ₀ : R →+* K}
attribute [scoped instance] Level.cr Level.dom Level.dvr Level.alg Level.fin Level.et
  Level.ff Level.sm Level.sep Level.qc Level.oi
namespace Level
variable (E : Level y U m K φ₀)
abbrev UX : E.X.Opens
AbelianVarieties.NOSProofs.EtaleTranslationExtensions.TranslationRefinement.Level.hom

The multiplication morphism on the known domain.

Source context 17 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_NeronModelInfra_exists_etale_translation_extension.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 AbelianVarieties.NOSProofs.EtaleTranslationExtensions
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace TranslationRefinement
open NeronModelInfra renaming
 exists_glue_translate_baseChange_isOpenImmersion_forall_range_subset_of_forall_dense_preimage_fibre
 → glueTranslation
section Main
variable {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
variable {Y : Scheme.{u}} {y : Y ⟶ Spec (CommRingCat.of R)}
variable {U : (pullback y y).Opens} {m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y}
variable (y U m) in
variable (y U m) in
variable {K : Type u} [Field K] {φ₀ : R →+* K}
attribute [scoped instance] Level.cr Level.dom Level.dvr Level.alg Level.fin Level.et
  Level.ff Level.sm Level.sep Level.qc Level.oi
namespace Level
variable (E : Level y U m K φ₀)
def hom : (E.UX : Scheme.{u}) ⟶ E.Y'
AbelianVarieties.NOSProofs.EtaleTranslationExtensions.TranslationRefinement.Level.hom_comp_y'
Source context 18 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_NeronModelInfra_exists_etale_translation_extension.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 AbelianVarieties.NOSProofs.EtaleTranslationExtensions
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace TranslationRefinement
open NeronModelInfra renaming
 exists_glue_translate_baseChange_isOpenImmersion_forall_range_subset_of_forall_dense_preimage_fibre
 → glueTranslation
section Main
variable {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
variable {Y : Scheme.{u}} {y : Y ⟶ Spec (CommRingCat.of R)}
variable {U : (pullback y y).Opens} {m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y}
variable (y U m) in
variable (y U m) in
variable {K : Type u} [Field K] {φ₀ : R →+* K}
attribute [scoped instance] Level.cr Level.dom Level.dvr Level.alg Level.fin Level.et
  Level.ff Level.sm Level.sep Level.qc Level.oi
namespace Level
variable (E : Level y U m K φ₀)
omit [IsDomain R] [IsDiscreteValuationRing R] in
theorem hom_comp_y' : E.hom ≫ E.y' = E.UX.ι ≫ pullback.snd (pullback.fst y y ≫ y) E.s
AbelianVarieties.NOSProofs.EtaleTranslationExtensions.TranslationRefinement.Level.s_apply_ne_closedPoint
Source context 17 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_NeronModelInfra_exists_etale_translation_extension.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 AbelianVarieties.NOSProofs.EtaleTranslationExtensions
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace TranslationRefinement
open NeronModelInfra renaming
 exists_glue_translate_baseChange_isOpenImmersion_forall_range_subset_of_forall_dense_preimage_fibre
 → glueTranslation
section Main
variable {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
variable {Y : Scheme.{u}} {y : Y ⟶ Spec (CommRingCat.of R)}
variable {U : (pullback y y).Opens} {m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y}
variable (y U m) in
variable (y U m) in
variable {K : Type u} [Field K] {φ₀ : R →+* K}
attribute [scoped instance] Level.cr Level.dom Level.dvr Level.alg Level.fin Level.et
  Level.ff Level.sm Level.sep Level.qc Level.oi
namespace Level
variable (E : Level y U m K φ₀)
theorem s_apply_ne_closedPoint (p : ↥(Spec (CommRingCat.of E.R'))) (hp : p ≠
  IsLocalRing.closedPoint E.R') :
    E.s.base p ≠ IsLocalRing.closedPoint R
AbelianVarieties.NOSProofs.EtaleTranslationExtensions.TranslationRefinement.Level.mem_UX_of_ne
Source context 17 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_NeronModelInfra_exists_etale_translation_extension.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 AbelianVarieties.NOSProofs.EtaleTranslationExtensions
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace TranslationRefinement
open NeronModelInfra renaming
 exists_glue_translate_baseChange_isOpenImmersion_forall_range_subset_of_forall_dense_preimage_fibre
 → glueTranslation
section Main
variable {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
variable {Y : Scheme.{u}} {y : Y ⟶ Spec (CommRingCat.of R)}
variable {U : (pullback y y).Opens} {m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y}
variable (y U m) in
variable (y U m) in
variable {K : Type u} [Field K] {φ₀ : R →+* K}
attribute [scoped instance] Level.cr Level.dom Level.dvr Level.alg Level.fin Level.et
  Level.ff Level.sm Level.sep Level.qc Level.oi
namespace Level
variable (E : Level y U m K φ₀)
theorem mem_UX_of_ne (hS : Strict y U m) (q : ↥E.X)
    (hq : (pullback.snd (pullback.fst y y ≫ y) E.s).base q ≠ IsLocalRing.closedPoint E.R') : q ∈
      E.UX
AbelianVarieties.NOSProofs.EtaleTranslationExtensions.TranslationRefinement.Level.smooth_sndX
Source context 18 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_NeronModelInfra_exists_etale_translation_extension.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 AbelianVarieties.NOSProofs.EtaleTranslationExtensions
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace TranslationRefinement
open NeronModelInfra renaming
 exists_glue_translate_baseChange_isOpenImmersion_forall_range_subset_of_forall_dense_preimage_fibre
 → glueTranslation
section Main
variable {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
variable {Y : Scheme.{u}} {y : Y ⟶ Spec (CommRingCat.of R)}
variable {U : (pullback y y).Opens} {m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y}
variable (y U m) in
variable (y U m) in
variable {K : Type u} [Field K] {φ₀ : R →+* K}
attribute [scoped instance] Level.cr Level.dom Level.dvr Level.alg Level.fin Level.et
  Level.ff Level.sm Level.sep Level.qc Level.oi
namespace Level
variable (E : Level y U m K φ₀)
variable [Smooth y]
instance smooth_sndX : Smooth (pullback.snd (pullback.fst y y ≫ y) E.s)
AbelianVarieties.NOSProofs.EtaleTranslationExtensions.TranslationRefinement.Level.dense_UX
Source context 18 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_NeronModelInfra_exists_etale_translation_extension.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 AbelianVarieties.NOSProofs.EtaleTranslationExtensions
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace TranslationRefinement
open NeronModelInfra renaming
 exists_glue_translate_baseChange_isOpenImmersion_forall_range_subset_of_forall_dense_preimage_fibre
 → glueTranslation
section Main
variable {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
variable {Y : Scheme.{u}} {y : Y ⟶ Spec (CommRingCat.of R)}
variable {U : (pullback y y).Opens} {m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y}
variable (y U m) in
variable (y U m) in
variable {K : Type u} [Field K] {φ₀ : R →+* K}
attribute [scoped instance] Level.cr Level.dom Level.dvr Level.alg Level.fin Level.et
  Level.ff Level.sm Level.sep Level.qc Level.oi
namespace Level
variable (E : Level y U m K φ₀)
variable [Smooth y]
theorem dense_UX (hS : Strict y U m) : Dense (E.UX : Set ↥E.X)
AbelianVarieties.NOSProofs.EtaleTranslationExtensions.TranslationRefinement.Level.isReduced_X
Source context 18 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_NeronModelInfra_exists_etale_translation_extension.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 AbelianVarieties.NOSProofs.EtaleTranslationExtensions
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace TranslationRefinement
open NeronModelInfra renaming
 exists_glue_translate_baseChange_isOpenImmersion_forall_range_subset_of_forall_dense_preimage_fibre
 → glueTranslation
section Main
variable {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
variable {Y : Scheme.{u}} {y : Y ⟶ Spec (CommRingCat.of R)}
variable {U : (pullback y y).Opens} {m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y}
variable (y U m) in
variable (y U m) in
variable {K : Type u} [Field K] {φ₀ : R →+* K}
attribute [scoped instance] Level.cr Level.dom Level.dvr Level.alg Level.fin Level.et
  Level.ff Level.sm Level.sep Level.qc Level.oi
namespace Level
variable (E : Level y U m K φ₀)
variable [Smooth y]
instance isReduced_X : IsReduced E.X
AbelianVarieties.NOSProofs.EtaleTranslationExtensions.TranslationRefinement.Level.isSeparated_Y'
Source context 18 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_NeronModelInfra_exists_etale_translation_extension.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 AbelianVarieties.NOSProofs.EtaleTranslationExtensions
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace TranslationRefinement
open NeronModelInfra renaming
 exists_glue_translate_baseChange_isOpenImmersion_forall_range_subset_of_forall_dense_preimage_fibre
 → glueTranslation
section Main
variable {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
variable {Y : Scheme.{u}} {y : Y ⟶ Spec (CommRingCat.of R)}
variable {U : (pullback y y).Opens} {m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y}
variable (y U m) in
variable (y U m) in
variable {K : Type u} [Field K] {φ₀ : R →+* K}
attribute [scoped instance] Level.cr Level.dom Level.dvr Level.alg Level.fin Level.et
  Level.ff Level.sm Level.sep Level.qc Level.oi
namespace Level
variable (E : Level y U m K φ₀)
variable [Smooth y]
instance isSeparated_Y' : E.Y'.IsSeparated
AbelianVarieties.NOSProofs.EtaleTranslationExtensions.TranslationRefinement.Level.pm

The partial multiplication map determined by the dense domain.

Source context 18 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_NeronModelInfra_exists_etale_translation_extension.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 AbelianVarieties.NOSProofs.EtaleTranslationExtensions
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace TranslationRefinement
open NeronModelInfra renaming
 exists_glue_translate_baseChange_isOpenImmersion_forall_range_subset_of_forall_dense_preimage_fibre
 → glueTranslation
section Main
variable {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
variable {Y : Scheme.{u}} {y : Y ⟶ Spec (CommRingCat.of R)}
variable {U : (pullback y y).Opens} {m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y}
variable (y U m) in
variable (y U m) in
variable {K : Type u} [Field K] {φ₀ : R →+* K}
attribute [scoped instance] Level.cr Level.dom Level.dvr Level.alg Level.fin Level.et
  Level.ff Level.sm Level.sep Level.qc Level.oi
namespace Level
variable (E : Level y U m K φ₀)
variable [Smooth y]
def pm (hS : Strict y U m) : E.X.PartialMap E.Y'
AbelianVarieties.NOSProofs.EtaleTranslationExtensions.TranslationRefinement.Level.D

The maximal domain of the induced rational map.

Source context 18 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_NeronModelInfra_exists_etale_translation_extension.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 AbelianVarieties.NOSProofs.EtaleTranslationExtensions
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace TranslationRefinement
open NeronModelInfra renaming
 exists_glue_translate_baseChange_isOpenImmersion_forall_range_subset_of_forall_dense_preimage_fibre
 → glueTranslation
section Main
variable {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
variable {Y : Scheme.{u}} {y : Y ⟶ Spec (CommRingCat.of R)}
variable {U : (pullback y y).Opens} {m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y}
variable (y U m) in
variable (y U m) in
variable {K : Type u} [Field K] {φ₀ : R →+* K}
attribute [scoped instance] Level.cr Level.dom Level.dvr Level.alg Level.fin Level.et
  Level.ff Level.sm Level.sep Level.qc Level.oi
namespace Level
variable (E : Level y U m K φ₀)
variable [Smooth y]
def D (hS : Strict y U m) : E.X.Opens
AbelianVarieties.NOSProofs.EtaleTranslationExtensions.TranslationRefinement.Level.M

The extension of multiplication to its maximal domain.

Source context 18 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_NeronModelInfra_exists_etale_translation_extension.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 AbelianVarieties.NOSProofs.EtaleTranslationExtensions
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace TranslationRefinement
open NeronModelInfra renaming
 exists_glue_translate_baseChange_isOpenImmersion_forall_range_subset_of_forall_dense_preimage_fibre
 → glueTranslation
section Main
variable {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
variable {Y : Scheme.{u}} {y : Y ⟶ Spec (CommRingCat.of R)}
variable {U : (pullback y y).Opens} {m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y}
variable (y U m) in
variable (y U m) in
variable {K : Type u} [Field K] {φ₀ : R →+* K}
attribute [scoped instance] Level.cr Level.dom Level.dvr Level.alg Level.fin Level.et
  Level.ff Level.sm Level.sep Level.qc Level.oi
namespace Level
variable (E : Level y U m K φ₀)
variable [Smooth y]
def M (hS : Strict y U m) : ((E.D hS : E.X.Opens) : Scheme.{u}) ⟶ E.Y'
AbelianVarieties.NOSProofs.EtaleTranslationExtensions.TranslationRefinement.Level.UX_le_D
Source context 18 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_NeronModelInfra_exists_etale_translation_extension.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 AbelianVarieties.NOSProofs.EtaleTranslationExtensions
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace TranslationRefinement
open NeronModelInfra renaming
 exists_glue_translate_baseChange_isOpenImmersion_forall_range_subset_of_forall_dense_preimage_fibre
 → glueTranslation
section Main
variable {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
variable {Y : Scheme.{u}} {y : Y ⟶ Spec (CommRingCat.of R)}
variable {U : (pullback y y).Opens} {m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y}
variable (y U m) in
variable (y U m) in
variable {K : Type u} [Field K] {φ₀ : R →+* K}
attribute [scoped instance] Level.cr Level.dom Level.dvr Level.alg Level.fin Level.et
  Level.ff Level.sm Level.sep Level.qc Level.oi
namespace Level
variable (E : Level y U m K φ₀)
variable [Smooth y]
theorem UX_le_D (hS : Strict y U m) : E.UX ≤ E.D hS
AbelianVarieties.NOSProofs.EtaleTranslationExtensions.TranslationRefinement.Level.homOfLE_M
Source context 18 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_NeronModelInfra_exists_etale_translation_extension.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 AbelianVarieties.NOSProofs.EtaleTranslationExtensions
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace TranslationRefinement
open NeronModelInfra renaming
 exists_glue_translate_baseChange_isOpenImmersion_forall_range_subset_of_forall_dense_preimage_fibre
 → glueTranslation
section Main
variable {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
variable {Y : Scheme.{u}} {y : Y ⟶ Spec (CommRingCat.of R)}
variable {U : (pullback y y).Opens} {m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y}
variable (y U m) in
variable (y U m) in
variable {K : Type u} [Field K] {φ₀ : R →+* K}
attribute [scoped instance] Level.cr Level.dom Level.dvr Level.alg Level.fin Level.et
  Level.ff Level.sm Level.sep Level.qc Level.oi
namespace Level
variable (E : Level y U m K φ₀)
variable [Smooth y]
theorem homOfLE_M (hS : Strict y U m) : E.X.homOfLE (E.UX_le_D hS) ≫ E.M hS = E.hom
AbelianVarieties.NOSProofs.EtaleTranslationExtensions.TranslationRefinement.Level.le_D_of_hom
Source context 18 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_NeronModelInfra_exists_etale_translation_extension.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 AbelianVarieties.NOSProofs.EtaleTranslationExtensions
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace TranslationRefinement
open NeronModelInfra renaming
 exists_glue_translate_baseChange_isOpenImmersion_forall_range_subset_of_forall_dense_preimage_fibre
 → glueTranslation
section Main
variable {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
variable {Y : Scheme.{u}} {y : Y ⟶ Spec (CommRingCat.of R)}
variable {U : (pullback y y).Opens} {m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y}
variable (y U m) in
variable (y U m) in
variable {K : Type u} [Field K] {φ₀ : R →+* K}
attribute [scoped instance] Level.cr Level.dom Level.dvr Level.alg Level.fin Level.et
  Level.ff Level.sm Level.sep Level.qc Level.oi
namespace Level
variable (E : Level y U m K φ₀)
variable [Smooth y]
theorem le_D_of_hom (hS : Strict y U m) (V : E.X.Opens) (hUV : E.UX ≤ V) (g : (V : Scheme.{u}) ⟶
  E.Y')
    (hg : E.X.homOfLE hUV ≫ g = E.hom) : V ≤ E.D hS
AbelianVarieties.NOSProofs.EtaleTranslationExtensions.TranslationRefinement.Level.isReduced_D
Source context 18 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_NeronModelInfra_exists_etale_translation_extension.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 AbelianVarieties.NOSProofs.EtaleTranslationExtensions
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace TranslationRefinement
open NeronModelInfra renaming
 exists_glue_translate_baseChange_isOpenImmersion_forall_range_subset_of_forall_dense_preimage_fibre
 → glueTranslation
section Main
variable {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
variable {Y : Scheme.{u}} {y : Y ⟶ Spec (CommRingCat.of R)}
variable {U : (pullback y y).Opens} {m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y}
variable (y U m) in
variable (y U m) in
variable {K : Type u} [Field K] {φ₀ : R →+* K}
attribute [scoped instance] Level.cr Level.dom Level.dvr Level.alg Level.fin Level.et
  Level.ff Level.sm Level.sep Level.qc Level.oi
namespace Level
variable (E : Level y U m K φ₀)
variable [Smooth y]
instance isReduced_D (hS : Strict y U m) : IsReduced ((E.D hS : E.X.Opens) : Scheme.{u})
AbelianVarieties.NOSProofs.EtaleTranslationExtensions.TranslationRefinement.Level.M_comp_y'
Source context 18 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_NeronModelInfra_exists_etale_translation_extension.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 AbelianVarieties.NOSProofs.EtaleTranslationExtensions
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace TranslationRefinement
open NeronModelInfra renaming
 exists_glue_translate_baseChange_isOpenImmersion_forall_range_subset_of_forall_dense_preimage_fibre
 → glueTranslation
section Main
variable {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
variable {Y : Scheme.{u}} {y : Y ⟶ Spec (CommRingCat.of R)}
variable {U : (pullback y y).Opens} {m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y}
variable (y U m) in
variable (y U m) in
variable {K : Type u} [Field K] {φ₀ : R →+* K}
attribute [scoped instance] Level.cr Level.dom Level.dvr Level.alg Level.fin Level.et
  Level.ff Level.sm Level.sep Level.qc Level.oi
namespace Level
variable (E : Level y U m K φ₀)
variable [Smooth y]
theorem M_comp_y' (hS : Strict y U m) :
    E.M hS ≫ E.y' = (E.D hS).ι ≫ pullback.snd (pullback.fst y y ≫ y) E.s
AbelianVarieties.NOSProofs.EtaleTranslationExtensions.TranslationRefinement.Level.Ω

The geometric special fiber of the pair scheme.

Source context 18 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_NeronModelInfra_exists_etale_translation_extension.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 AbelianVarieties.NOSProofs.EtaleTranslationExtensions
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace TranslationRefinement
open NeronModelInfra renaming
 exists_glue_translate_baseChange_isOpenImmersion_forall_range_subset_of_forall_dense_preimage_fibre
 → glueTranslation
section Main
variable {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
variable {Y : Scheme.{u}} {y : Y ⟶ Spec (CommRingCat.of R)}
variable {U : (pullback y y).Opens} {m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y}
variable (y U m) in
variable (y U m) in
variable {K : Type u} [Field K] {φ₀ : R →+* K}
attribute [scoped instance] Level.cr Level.dom Level.dvr Level.alg Level.fin Level.et
  Level.ff Level.sm Level.sep Level.qc Level.oi
namespace Level
variable (E : Level y U m K φ₀)
variable [Smooth y]
abbrev Ω (y : Y ⟶ Spec (CommRingCat.of R)) (φ₀ : R →+* K) : Scheme.{u}
AbelianVarieties.NOSProofs.EtaleTranslationExtensions.TranslationRefinement.Level.specMap_φ_comp_s
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_NeronModelInfra_exists_etale_translation_extension.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 AbelianVarieties.NOSProofs.EtaleTranslationExtensions
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace TranslationRefinement
open NeronModelInfra renaming
 exists_glue_translate_baseChange_isOpenImmersion_forall_range_subset_of_forall_dense_preimage_fibre
 → glueTranslation
section Main
variable {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
variable {Y : Scheme.{u}} {y : Y ⟶ Spec (CommRingCat.of R)}
variable {U : (pullback y y).Opens} {m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y}
variable (y U m) in
variable (y U m) in
variable {K : Type u} [Field K] {φ₀ : R →+* K}
attribute [scoped instance] Level.cr Level.dom Level.dvr Level.alg Level.fin Level.et
  Level.ff Level.sm Level.sep Level.qc Level.oi
namespace Level
variable (E : Level y U m K φ₀)
variable [Smooth y]
omit [IsDomain R] [IsDiscreteValuationRing R] [Smooth y] in
theorem specMap_φ_comp_s : Spec.map (CommRingCat.ofHom E.φ) ≫ E.s = Spec.map (CommRingCat.ofHom
  φ₀)
AbelianVarieties.NOSProofs.EtaleTranslationExtensions.TranslationRefinement.Level.ρ

The comparison from the geometric special fiber to a refinement.

Source context 18 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_NeronModelInfra_exists_etale_translation_extension.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 AbelianVarieties.NOSProofs.EtaleTranslationExtensions
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace TranslationRefinement
open NeronModelInfra renaming
 exists_glue_translate_baseChange_isOpenImmersion_forall_range_subset_of_forall_dense_preimage_fibre
 → glueTranslation
section Main
variable {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
variable {Y : Scheme.{u}} {y : Y ⟶ Spec (CommRingCat.of R)}
variable {U : (pullback y y).Opens} {m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y}
variable (y U m) in
variable (y U m) in
variable {K : Type u} [Field K] {φ₀ : R →+* K}
attribute [scoped instance] Level.cr Level.dom Level.dvr Level.alg Level.fin Level.et
  Level.ff Level.sm Level.sep Level.qc Level.oi
namespace Level
variable (E : Level y U m K φ₀)
variable [Smooth y]
def ρ : Ω y φ₀ ⟶ E.X
AbelianVarieties.NOSProofs.EtaleTranslationExtensions.TranslationRefinement.Level.Z

The closed locus where the refined multiplication is undefined.

Source context 18 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_NeronModelInfra_exists_etale_translation_extension.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 AbelianVarieties.NOSProofs.EtaleTranslationExtensions
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace TranslationRefinement
open NeronModelInfra renaming
 exists_glue_translate_baseChange_isOpenImmersion_forall_range_subset_of_forall_dense_preimage_fibre
 → glueTranslation
section Main
variable {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
variable {Y : Scheme.{u}} {y : Y ⟶ Spec (CommRingCat.of R)}
variable {U : (pullback y y).Opens} {m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y}
variable (y U m) in
variable (y U m) in
variable {K : Type u} [Field K] {φ₀ : R →+* K}
attribute [scoped instance] Level.cr Level.dom Level.dvr Level.alg Level.fin Level.et
  Level.ff Level.sm Level.sep Level.qc Level.oi
namespace Level
variable (E : Level y U m K φ₀)
variable [Smooth y]
def Z (hS : Strict y U m) : Set ↥(Ω y φ₀)
AbelianVarieties.NOSProofs.EtaleTranslationExtensions.TranslationRefinement.Level.isClosed_Z
Source context 18 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_NeronModelInfra_exists_etale_translation_extension.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 AbelianVarieties.NOSProofs.EtaleTranslationExtensions
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace TranslationRefinement
open NeronModelInfra renaming
 exists_glue_translate_baseChange_isOpenImmersion_forall_range_subset_of_forall_dense_preimage_fibre
 → glueTranslation
section Main
variable {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
variable {Y : Scheme.{u}} {y : Y ⟶ Spec (CommRingCat.of R)}
variable {U : (pullback y y).Opens} {m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y}
variable (y U m) in
variable (y U m) in
variable {K : Type u} [Field K] {φ₀ : R →+* K}
attribute [scoped instance] Level.cr Level.dom Level.dvr Level.alg Level.fin Level.et
  Level.ff Level.sm Level.sep Level.qc Level.oi
namespace Level
variable (E : Level y U m K φ₀)
variable [Smooth y]
theorem isClosed_Z (hS : Strict y U m) : IsClosed (E.Z hS)
AbelianVarieties.NOSProofs.EtaleTranslationExtensions.TranslationRefinement.Level.t

The morphism of spectra for a further base extension.

Source context 20 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_NeronModelInfra_exists_etale_translation_extension.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 AbelianVarieties.NOSProofs.EtaleTranslationExtensions
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace TranslationRefinement
open NeronModelInfra renaming
 exists_glue_translate_baseChange_isOpenImmersion_forall_range_subset_of_forall_dense_preimage_fibre
 → glueTranslation
section Main
variable {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
variable {Y : Scheme.{u}} {y : Y ⟶ Spec (CommRingCat.of R)}
variable {U : (pullback y y).Opens} {m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y}
variable (y U m) in
variable (y U m) in
variable {K : Type u} [Field K] {φ₀ : R →+* K}
attribute [scoped instance] Level.cr Level.dom Level.dvr Level.alg Level.fin Level.et
  Level.ff Level.sm Level.sep Level.qc Level.oi
namespace Level
variable (E : Level y U m K φ₀)
variable [Smooth y]
section Stat
variable {R'' : Type u} [CommRing R''] [IsDomain R''] [IsDiscreteValuationRing R''] [Algebra
  E.R' R'']
abbrev t (R'' : Type u) [CommRing R''] [Algebra E.R' R''] :
    Spec (CommRingCat.of R'') ⟶ Spec (CommRingCat.of E.R')
AbelianVarieties.NOSProofs.EtaleTranslationExtensions.TranslationRefinement.Level.P

The pair scheme for the extended model.

Source context 20 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_NeronModelInfra_exists_etale_translation_extension.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 AbelianVarieties.NOSProofs.EtaleTranslationExtensions
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace TranslationRefinement
open NeronModelInfra renaming
 exists_glue_translate_baseChange_isOpenImmersion_forall_range_subset_of_forall_dense_preimage_fibre
 → glueTranslation
section Main
variable {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
variable {Y : Scheme.{u}} {y : Y ⟶ Spec (CommRingCat.of R)}
variable {U : (pullback y y).Opens} {m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y}
variable (y U m) in
variable (y U m) in
variable {K : Type u} [Field K] {φ₀ : R →+* K}
attribute [scoped instance] Level.cr Level.dom Level.dvr Level.alg Level.fin Level.et
  Level.ff Level.sm Level.sep Level.qc Level.oi
namespace Level
variable (E : Level y U m K φ₀)
variable [Smooth y]
section Stat
variable {R'' : Type u} [CommRing R''] [IsDomain R''] [IsDiscreteValuationRing R''] [Algebra
  E.R' R'']
def P (s : Spec (CommRingCat.of R'') ⟶ Spec (CommRingCat.of R)) (hs : s = E.t R''
  ≫ E.s)
    (a : Spec (CommRingCat.of R'') ⟶ Y) (ha : a ≫ y = s) : pullback y s ⟶ E.X
AbelianVarieties.NOSProofs.EtaleTranslationExtensions.TranslationRefinement.Level.P_prX
Source context 21 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_NeronModelInfra_exists_etale_translation_extension.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 AbelianVarieties.NOSProofs.EtaleTranslationExtensions
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace TranslationRefinement
open NeronModelInfra renaming
 exists_glue_translate_baseChange_isOpenImmersion_forall_range_subset_of_forall_dense_preimage_fibre
 → glueTranslation
section Main
variable {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
variable {Y : Scheme.{u}} {y : Y ⟶ Spec (CommRingCat.of R)}
variable {U : (pullback y y).Opens} {m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y}
variable (y U m) in
variable (y U m) in
variable {K : Type u} [Field K] {φ₀ : R →+* K}
attribute [scoped instance] Level.cr Level.dom Level.dvr Level.alg Level.fin Level.et
  Level.ff Level.sm Level.sep Level.qc Level.oi
namespace Level
variable (E : Level y U m K φ₀)
variable [Smooth y]
section Stat
variable {R'' : Type u} [CommRing R''] [IsDomain R''] [IsDiscreteValuationRing R''] [Algebra
  E.R' R'']
omit [IsDomain R] [IsDiscreteValuationRing R] [Smooth y]
  [IsDomain R''] [IsDiscreteValuationRing R''] in
theorem P_prX (s : Spec (CommRingCat.of R'') ⟶ Spec (CommRingCat.of R)) (hs : s = E.t R'' ≫ E.s)
    (a : Spec (CommRingCat.of R'') ⟶ Y) (ha : a ≫ y = s) :
    E.P s hs a ha ≫ E.prX = pullback.lift (f := y) (g := y) (pullback.snd y s ≫ a) (pullback.fst
      y s)
      (by rw [Category.assoc, ha, pullback.condition]) :=
  pullback.lift_fst _ _ _
AbelianVarieties.NOSProofs.EtaleTranslationExtensions.TranslationRefinement.Level.P_snd
Source context 21 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_NeronModelInfra_exists_etale_translation_extension.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 AbelianVarieties.NOSProofs.EtaleTranslationExtensions
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace TranslationRefinement
open NeronModelInfra renaming
 exists_glue_translate_baseChange_isOpenImmersion_forall_range_subset_of_forall_dense_preimage_fibre
 → glueTranslation
section Main
variable {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
variable {Y : Scheme.{u}} {y : Y ⟶ Spec (CommRingCat.of R)}
variable {U : (pullback y y).Opens} {m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y}
variable (y U m) in
variable (y U m) in
variable {K : Type u} [Field K] {φ₀ : R →+* K}
attribute [scoped instance] Level.cr Level.dom Level.dvr Level.alg Level.fin Level.et
  Level.ff Level.sm Level.sep Level.qc Level.oi
namespace Level
variable (E : Level y U m K φ₀)
variable [Smooth y]
section Stat
variable {R'' : Type u} [CommRing R''] [IsDomain R''] [IsDiscreteValuationRing R''] [Algebra
  E.R' R'']
omit [IsDomain R] [IsDiscreteValuationRing R] [Smooth y]
  [IsDomain R''] [IsDiscreteValuationRing R''] in
theorem P_snd (s : Spec (CommRingCat.of R'') ⟶ Spec (CommRingCat.of R)) (hs : s = E.t R'' ≫ E.s)
    (a : Spec (CommRingCat.of R'') ⟶ Y) (ha : a ≫ y = s) :
    E.P s hs a ha ≫ pullback.snd (pullback.fst y y ≫ y) E.s = pullback.snd y s ≫ E.t R''
AbelianVarieties.NOSProofs.EtaleTranslationExtensions.TranslationRefinement.Level.Stat

Existence of a translation compatible with the partial multiplication.

Source context 20 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_NeronModelInfra_exists_etale_translation_extension.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 AbelianVarieties.NOSProofs.EtaleTranslationExtensions
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace TranslationRefinement
open NeronModelInfra renaming
 exists_glue_translate_baseChange_isOpenImmersion_forall_range_subset_of_forall_dense_preimage_fibre
 → glueTranslation
section Main
variable {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
variable {Y : Scheme.{u}} {y : Y ⟶ Spec (CommRingCat.of R)}
variable {U : (pullback y y).Opens} {m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y}
variable (y U m) in
variable (y U m) in
variable {K : Type u} [Field K] {φ₀ : R →+* K}
attribute [scoped instance] Level.cr Level.dom Level.dvr Level.alg Level.fin Level.et
  Level.ff Level.sm Level.sep Level.qc Level.oi
namespace Level
variable (E : Level y U m K φ₀)
variable [Smooth y]
section Stat
variable {R'' : Type u} [CommRing R''] [IsDomain R''] [IsDiscreteValuationRing R''] [Algebra
  E.R' R'']
def Stat (s : Spec (CommRingCat.of R'') ⟶ Spec (CommRingCat.of R)) (a : Spec (CommRingCat.of
  R'') ⟶ Y) : Prop
AbelianVarieties.NOSProofs.EtaleTranslationExtensions.TranslationRefinement.Level.stat_of_range_subset
Source context 21 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_NeronModelInfra_exists_etale_translation_extension.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 AbelianVarieties.NOSProofs.EtaleTranslationExtensions
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace TranslationRefinement
open NeronModelInfra renaming
 exists_glue_translate_baseChange_isOpenImmersion_forall_range_subset_of_forall_dense_preimage_fibre
 → glueTranslation
section Main
variable {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
variable {Y : Scheme.{u}} {y : Y ⟶ Spec (CommRingCat.of R)}
variable {U : (pullback y y).Opens} {m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y}
variable (y U m) in
variable (y U m) in
variable {K : Type u} [Field K] {φ₀ : R →+* K}
attribute [scoped instance] Level.cr Level.dom Level.dvr Level.alg Level.fin Level.et
  Level.ff Level.sm Level.sep Level.qc Level.oi
namespace Level
variable (E : Level y U m K φ₀)
variable [Smooth y]
section Stat
variable {R'' : Type u} [CommRing R''] [IsDomain R''] [IsDiscreteValuationRing R''] [Algebra
  E.R' R'']
omit [IsDomain R''] [IsDiscreteValuationRing R''] in
theorem stat_of_range_subset (hS : Strict y U m)
    (s : Spec (CommRingCat.of R'') ⟶ Spec (CommRingCat.of R)) (hs : s = E.t R'' ≫ E.s)
    (a : Spec (CommRingCat.of R'') ⟶ Y) (ha : a ≫ y = s)
    (hP : Set.range (E.P s hs a ha).base ⊆ (E.D hS : Set ↥E.X)) : E.Stat s a
AbelianVarieties.NOSProofs.EtaleTranslationExtensions.TranslationRefinement.Level.exists_not_mem_D
Source context 21 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_NeronModelInfra_exists_etale_translation_extension.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 AbelianVarieties.NOSProofs.EtaleTranslationExtensions
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace TranslationRefinement
open NeronModelInfra renaming
 exists_glue_translate_baseChange_isOpenImmersion_forall_range_subset_of_forall_dense_preimage_fibre
 → glueTranslation
section Main
variable {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
variable {Y : Scheme.{u}} {y : Y ⟶ Spec (CommRingCat.of R)}
variable {U : (pullback y y).Opens} {m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y}
variable (y U m) in
variable (y U m) in
variable {K : Type u} [Field K] {φ₀ : R →+* K}
attribute [scoped instance] Level.cr Level.dom Level.dvr Level.alg Level.fin Level.et
  Level.ff Level.sm Level.sep Level.qc Level.oi
namespace Level
variable (E : Level y U m K φ₀)
variable [Smooth y]
section Stat
variable {R'' : Type u} [CommRing R''] [IsDomain R''] [IsDiscreteValuationRing R''] [Algebra
  E.R' R'']
omit [IsDomain R''] [IsDiscreteValuationRing R''] in
theorem exists_not_mem_D (hS : Strict y U m)
    (s : Spec (CommRingCat.of R'') ⟶ Spec (CommRingCat.of R)) (hs : s = E.t R'' ≫ E.s)
    (a : Spec (CommRingCat.of R'') ⟶ Y) (ha : a ≫ y = s) (hn : ¬ E.Stat s a) :
    ∃ b : ↥(pullback y s), (E.P s hs a ha).base b ∉ E.D hS
AbelianVarieties.NOSProofs.EtaleTranslationExtensions.TranslationRefinement.Level.HasSec

Existence of a section of the refined model.

Source context 18 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_NeronModelInfra_exists_etale_translation_extension.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 AbelianVarieties.NOSProofs.EtaleTranslationExtensions
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace TranslationRefinement
open NeronModelInfra renaming
 exists_glue_translate_baseChange_isOpenImmersion_forall_range_subset_of_forall_dense_preimage_fibre
 → glueTranslation
section Main
variable {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
variable {Y : Scheme.{u}} {y : Y ⟶ Spec (CommRingCat.of R)}
variable {U : (pullback y y).Opens} {m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y}
variable (y U m) in
variable (y U m) in
variable {K : Type u} [Field K] {φ₀ : R →+* K}
attribute [scoped instance] Level.cr Level.dom Level.dvr Level.alg Level.fin Level.et
  Level.ff Level.sm Level.sep Level.qc Level.oi
namespace Level
variable (E : Level y U m K φ₀)
variable [Smooth y]
def HasSec : Prop
AbelianVarieties.NOSProofs.EtaleTranslationExtensions.TranslationRefinement.Level.s₂_eq
Source context 22 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_NeronModelInfra_exists_etale_translation_extension.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 AbelianVarieties.NOSProofs.EtaleTranslationExtensions
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace TranslationRefinement
open NeronModelInfra renaming
 exists_glue_translate_baseChange_isOpenImmersion_forall_range_subset_of_forall_dense_preimage_fibre
 → glueTranslation
section Main
variable {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
variable {Y : Scheme.{u}} {y : Y ⟶ Spec (CommRingCat.of R)}
variable {U : (pullback y y).Opens} {m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y}
variable (y U m) in
variable (y U m) in
variable {K : Type u} [Field K] {φ₀ : R →+* K}
attribute [scoped instance] Level.cr Level.dom Level.dvr Level.alg Level.fin Level.et
  Level.ff Level.sm Level.sep Level.qc Level.oi
namespace Level
variable (E : Level y U m K φ₀)
variable [Smooth y]
section Next
variable [IsSeparated y] [LocallyOfFiniteType y] [QuasiCompact y] [IsAlgClosed K]
variable {R'' : Type u} [CommRing R''] [IsDomain R''] [IsDiscreteValuationRing R''] [Algebra
  E.R' R'']
  [Module.Finite E.R' R''] [Algebra.Etale E.R' R''] [Module.FaithfullyFlat E.R' R'']
  [Algebra R R''] [IsScalarTower R E.R' R'']
  [Module.Finite R R''] [Algebra.Etale R R''] [Module.FaithfullyFlat R R'']
omit [IsDomain R] [IsDiscreteValuationRing R] [Smooth y] [IsSeparated y]
  [LocallyOfFiniteType y] [QuasiCompact y] [IsAlgClosed K]
  [IsDomain R''] [IsDiscreteValuationRing R'']
  [Module.Finite E.R' R''] [Algebra.Etale E.R' R''] [Module.FaithfullyFlat E.R' R'']
  [Module.Finite R R''] [Algebra.Etale R R''] [Module.FaithfullyFlat R R''] in
theorem s₂_eq : Spec.map (CommRingCat.ofHom (algebraMap R R'')) = E.t R'' ≫ E.s
AbelianVarieties.NOSProofs.EtaleTranslationExtensions.TranslationRefinement.Level.exists_next
Source context 22 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_NeronModelInfra_exists_etale_translation_extension.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 AbelianVarieties.NOSProofs.EtaleTranslationExtensions
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace TranslationRefinement
open NeronModelInfra renaming
 exists_glue_translate_baseChange_isOpenImmersion_forall_range_subset_of_forall_dense_preimage_fibre
 → glueTranslation
section Main
variable {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
variable {Y : Scheme.{u}} {y : Y ⟶ Spec (CommRingCat.of R)}
variable {U : (pullback y y).Opens} {m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y}
variable (y U m) in
variable (y U m) in
variable {K : Type u} [Field K] {φ₀ : R →+* K}
attribute [scoped instance] Level.cr Level.dom Level.dvr Level.alg Level.fin Level.et
  Level.ff Level.sm Level.sep Level.qc Level.oi
namespace Level
variable (E : Level y U m K φ₀)
variable [Smooth y]
section Next
variable [IsSeparated y] [LocallyOfFiniteType y] [QuasiCompact y] [IsAlgClosed K]
variable {R'' : Type u} [CommRing R''] [IsDomain R''] [IsDiscreteValuationRing R''] [Algebra
  E.R' R'']
  [Module.Finite E.R' R''] [Algebra.Etale E.R' R''] [Module.FaithfullyFlat E.R' R'']
  [Algebra R R''] [IsScalarTower R E.R' R'']
  [Module.Finite R R''] [Algebra.Etale R R''] [Module.FaithfullyFlat R R'']
omit [Algebra.Etale E.R' R''] in
theorem exists_next (hS : Strict y U m)
    (s : Spec (CommRingCat.of R'') ⟶ Spec (CommRingCat.of R)) (hs : s = E.t R'' ≫ E.s)
    (a : Spec (CommRingCat.of R'') ⟶ Y) (ha : a ≫ y = s) :
    ∃ E₂ : Level y U m K φ₀, E₂.HasSec ∧ E₂.Z hS ⊆ E.Z hS ∧
      ∀ b : ↥(pullback y s), (E.P s hs a ha).base b ∉ E.D hS → E₂.Z hS ≠ E.Z hS
AbelianVarieties.NOSProofs.EtaleTranslationExtensions.TranslationRefinement.s₀_eq_id
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_NeronModelInfra_exists_etale_translation_extension.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 AbelianVarieties.NOSProofs.EtaleTranslationExtensions
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace TranslationRefinement
open NeronModelInfra renaming
 exists_glue_translate_baseChange_isOpenImmersion_forall_range_subset_of_forall_dense_preimage_fibre
 → glueTranslation
section Main
variable {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
variable {Y : Scheme.{u}} {y : Y ⟶ Spec (CommRingCat.of R)}
variable {U : (pullback y y).Opens} {m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y}
variable (y U m) in
variable (y U m) in
variable {K : Type u} [Field K] {φ₀ : R →+* K}
attribute [scoped instance] Level.cr Level.dom Level.dvr Level.alg Level.fin Level.et
  Level.ff Level.sm Level.sep Level.qc Level.oi
attribute [scoped instance] Level.smooth_sndX Level.isReduced_X Level.isSeparated_Y'
  Level.isReduced_D
section Final
variable [Smooth y] [IsSeparated y] [LocallyOfFiniteType y] [QuasiCompact y]
omit [IsDomain R] [IsDiscreteValuationRing R] in
theorem s₀_eq_id : Spec.map (CommRingCat.ofHom (algebraMap R R)) = 𝟙 (Spec (CommRingCat.of R))
AbelianVarieties.NOSProofs.EtaleTranslationExtensions.TranslationRefinement.base
Source context 18 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_NeronModelInfra_exists_etale_translation_extension.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 AbelianVarieties.NOSProofs.EtaleTranslationExtensions
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace TranslationRefinement
open NeronModelInfra renaming
 exists_glue_translate_baseChange_isOpenImmersion_forall_range_subset_of_forall_dense_preimage_fibre
 → glueTranslation
section Main
variable {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
variable {Y : Scheme.{u}} {y : Y ⟶ Spec (CommRingCat.of R)}
variable {U : (pullback y y).Opens} {m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y}
variable (y U m) in
variable (y U m) in
variable {K : Type u} [Field K] {φ₀ : R →+* K}
attribute [scoped instance] Level.cr Level.dom Level.dvr Level.alg Level.fin Level.et
  Level.ff Level.sm Level.sep Level.qc Level.oi
attribute [scoped instance] Level.smooth_sndX Level.isReduced_X Level.isSeparated_Y'
  Level.isReduced_D
section Final
variable [Smooth y] [IsSeparated y] [LocallyOfFiniteType y] [QuasiCompact y]
def base (hS : Strict y U m) (hφ₀m : ∀ x ∈ IsLocalRing.maximalIdeal R, φ₀
  x = 0) :
    Level y U m K φ₀ where
  R' := R
  φ := φ₀
  hφ := RingHom.comp_id _
  hφm := hφ₀m
  Y' := Y
  y' := y
  ι := ⟨pullback.fst y _, by rw [pullback.condition, s₀_eq_id, Category.comp_id]⟩
  oi := by
    have : IsOpenImmersion (Spec.map (CommRingCat.ofHom (algebraMap R R))) := by
      rw [s₀_eq_id]
      infer_instance
    exact MorphismProperty.pullback_fst (P := (@IsOpenImmersion : MorphismProperty Scheme.{u})) _
      _ this
  hgen := fun p _ => by
    have : Surjective (Spec.map (CommRingCat.ofHom (algebraMap R R))) := by
      rw [s₀_eq_id]
      infer_instance
    exact (MorphismProperty.of_isPullback
      (P := (@Surjective : MorphismProperty Scheme.{u}))
      (IsPullback.of_hasPullback y _).flip this).surj p
  hmax := fun p _ => by
    have : Surjective (Spec.map (CommRingCat.ofHom (algebraMap R R))) := by
      rw [s₀_eq_id]
      infer_instance
    exact (MorphismProperty.of_isPullback
      (P := (@Surjective : MorphismProperty Scheme.{u}))
      (IsPullback.of_hasPullback y _).flip this).surj p
  U' := U
  m' := m
  hU'₁ := hS.hU₁
  hU'₂ := hS.hU₂
  hΦ' := hS.hΦ
  hΦ'₁ := hS.hΦ₁
  hΦ'₂ := hS.hΦ₂
  hΨ' := hS.hΨ
  hΨ'₁ := hS.hΨ₁
  hΨ'₂ := hS.hΨ₂
  hassoc' := hS.hassoc
  hext := by
    intro T t' w a b c ha hb hc
    refine ⟨⟨w.1, by rw [w.2, s₀_eq_id, Category.comp_id]⟩, ?_, ?_, ?_⟩
    · rw [RelativeGroupLaw.baseChangePointOfBase_coe, pullback.lift_fst]; exact ha.symm
    · rw [RelativeGroupLaw.baseChangePointOfBase_coe, pullback.lift_fst]; exact hb.symm
    · rw [RelativeGroupLaw.baseChangePointOfBase_coe, pullback.lift_fst]; exact hc.symm
AbelianVarieties.NOSProofs.EtaleTranslationExtensions.TranslationRefinement.main
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_NeronModelInfra_exists_etale_translation_extension.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 AbelianVarieties.NOSProofs.EtaleTranslationExtensions
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace TranslationRefinement
open NeronModelInfra renaming
 exists_glue_translate_baseChange_isOpenImmersion_forall_range_subset_of_forall_dense_preimage_fibre
 → glueTranslation
theorem main
    {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R] [HenselianLocalRing R]
    {Y : Scheme.{u}} (y : Y ⟶ Spec (CommRingCat.of R))
    [Smooth y] [IsSeparated y] [LocallyOfFiniteType y] [QuasiCompact y]
    (U : (pullback y y).Opens) (m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y)
    (hS : Strict y U m) (hYk : ∃ x : Y, y.base x = IsLocalRing.closedPoint R) :
    ∃ (R' : Type u) (_ : CommRing R') (_ : IsDomain R') (_ : IsDiscreteValuationRing R') (_ :
      Algebra R R')
      (_ : Module.Finite R R') (_ : Algebra.Etale R R') (_ : Module.FaithfullyFlat R R')
      (Y' : Scheme.{u}) (y' : Y' ⟶ Spec (CommRingCat.of R'))
      (ι : SchemeHomOver (pullback.snd y (Spec.map (CommRingCat.ofHom (algebraMap R R')))) y')
      (U' : (pullback y' y').Opens) (m' : SchemeHomOver (U'.ι ≫ pullback.fst y' y' ≫ y') y'),
      Smooth y' ∧ IsSeparated y' ∧ LocallyOfFiniteType y' ∧ QuasiCompact y' ∧
      IsOpenImmersion ι.1 ∧
      (∀ p : Y', y'.base p ≠ IsLocalRing.closedPoint R' → p ∈ Set.range ι.1.base) ∧
      (∀ p : Y', (∀ p' : Y', p' ⤳ p → y'.base p' = y'.base p → p' = p) → p ∈ Set.range ι.1.base) ∧
      (∀ x, Dense ((Subtype.val : {q : ↑(pullback y' y') // (pullback.fst y' y').base q = x} →
        ↑(pullback y' y')) ⁻¹'
          (U' : Set ↑(pullback y' y')))) ∧
      (∀ x, Dense ((Subtype.val : {q : ↑(pullback y' y') // (pullback.snd y' y').base q = x} →
        ↑(pullback y' y')) ⁻¹'
          (U' : Set ↑(pullback y' y')))) ∧
      IsOpenImmersion
          (pullback.lift (f := y') (g := y') (U'.ι ≫ pullback.fst y' y') m'.1
            ((Category.assoc _ _ _).trans m'.2.symm)) ∧
      (∀ x, Dense ((Subtype.val : {q : ↑(pullback y' y') // (pullback.fst y' y').base q = x} →
        ↑(pullback y' y')) ⁻¹'
          (Set.range (pullback.lift (f := y') (g := y') (U'.ι ≫ pullback.fst y' y') m'.1
            ((Category.assoc _ _ _).trans m'.2.symm)).base))) ∧
      (∀ x, Dense ((Subtype.val : {q : ↑(pullback y' y') // (pullback.snd y' y').base q = x} →
        ↑(pullback y' y')) ⁻¹'
          (Set.range (pullback.lift (f := y') (g := y') (U'.ι ≫ pullback.fst y' y') m'.1
            ((Category.assoc _ _ _).trans m'.2.symm)).base))) ∧
      IsOpenImmersion
          (pullback.lift (f := y') (g := y') m'.1 (U'.ι ≫ pullback.snd y' y')
            (m'.2.trans (by rw [Category.assoc, pullback.condition]))) ∧
      (∀ x, Dense ((Subtype.val : {q : ↑(pullback y' y') // (pullback.fst y' y').base q = x} →
        ↑(pullback y' y')) ⁻¹'
          (Set.range (pullback.lift (f := y') (g := y') m'.1 (U'.ι ≫ pullback.snd y' y')
            (m'.2.trans (by rw [Category.assoc, pullback.condition]))).base))) ∧
      (∀ x, Dense ((Subtype.val : {q : ↑(pullback y' y') // (pullback.snd y' y').base q = x} →
        ↑(pullback y' y')) ⁻¹'
          (Set.range (pullback.lift (f := y') (g := y') m'.1 (U'.ι ≫ pullback.snd y' y')
            (m'.2.trans (by rw [Category.assoc, pullback.condition]))).base))) ∧
      (∀ {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of R'))
          (u v p q : SchemeHomOver t (U'.ι ≫ pullback.fst y' y' ≫ y')),
        u.1 ≫ U'.ι ≫ pullback.snd y' y' = v.1 ≫ U'.ι ≫ pullback.fst y' y' →
        p.1 ≫ U'.ι ≫ pullback.fst y' y' = u.1 ≫ m'.1 →
        p.1 ≫ U'.ι ≫ pullback.snd y' y' = v.1 ≫ U'.ι ≫ pullback.snd y' y' →
        q.1 ≫ U'.ι ≫ pullback.fst y' y' = u.1 ≫ U'.ι ≫ pullback.fst y' y' →
        q.1 ≫ U'.ι ≫ pullback.snd y' y' = v.1 ≫ m'.1 →
        p.1 ≫ m'.1 = q.1 ≫ m'.1) ∧
      (∀ {T : Scheme.{u}} (t' : T ⟶ Spec (CommRingCat.of R'))
          (w : SchemeHomOver (t' ≫ (Spec.map (CommRingCat.ofHom (algebraMap R R')))) (U.ι ≫
            pullback.fst y y ≫ y))
          (a b c : SchemeHomOver (t' ≫ (Spec.map (CommRingCat.ofHom (algebraMap R R')))) y),
        a.1 = w.1 ≫ U.ι ≫ pullback.fst y y → b.1 = w.1 ≫ U.ι ≫ pullback.snd y y → c.1 = w.1 ≫ m.1 →
        ∃ w' : SchemeHomOver t' (U'.ι ≫ pullback.fst y' y' ≫ y'),
          w'.1 ≫ U'.ι ≫ pullback.fst y' y' = (RelativeGroupLaw.baseChangePointOfBase (Spec.map
            (CommRingCat.ofHom (algebraMap R R'))) a).1 ≫ ι.1 ∧
          w'.1 ≫ U'.ι ≫ pullback.snd y' y' = (RelativeGroupLaw.baseChangePointOfBase (Spec.map
            (CommRingCat.ofHom (algebraMap R R'))) b).1 ≫ ι.1 ∧
          w'.1 ≫ m'.1 = (RelativeGroupLaw.baseChangePointOfBase (Spec.map (CommRingCat.ofHom
            (algebraMap R R'))) c).1 ≫ ι.1) ∧
      (∃ a' : Spec (CommRingCat.of R') ⟶ Y', a' ≫ y' = 𝟙 _) ∧
      (∀ (R'' : Type u) (_ : CommRing R'') (_ : IsDomain R'') (_ : IsDiscreteValuationRing R'')
          (_ : Algebra R' R'') (_ : Module.Finite R' R'') (_ : Algebra.Etale R' R'') (_ :
            Module.FaithfullyFlat R' R'')
          (a : Spec (CommRingCat.of R'') ⟶ Y),
        a ≫ y = (Spec.map (CommRingCat.ofHom (algebraMap R' R''))) ≫ (Spec.map
          (CommRingCat.ofHom (algebraMap R R'))) →
        ∃ τ : pullback y ((Spec.map (CommRingCat.ofHom (algebraMap R' R''))) ≫ (Spec.map
          (CommRingCat.ofHom (algebraMap R R')))) ⟶ pullback y' (Spec.map (CommRingCat.ofHom
            (algebraMap R' R''))),
          τ ≫ pullback.snd y' (Spec.map (CommRingCat.ofHom (algebraMap R' R''))) = pullback.snd
            y ((Spec.map (CommRingCat.ofHom (algebraMap R' R''))) ≫ (Spec.map (CommRingCat.ofHom
              (algebraMap R R')))) ∧
          ∀ {T : Scheme.{u}} (x : T ⟶ pullback y ((Spec.map (CommRingCat.ofHom (algebraMap R'
            R''))) ≫ (Spec.map (CommRingCat.ofHom (algebraMap R R')))))
            (w : T ⟶ (U : Scheme.{u})) (v : T ⟶ pullback y (Spec.map (CommRingCat.ofHom
              (algebraMap R R')))),
            w ≫ U.ι ≫ pullback.fst y y = x ≫ pullback.snd y ((Spec.map (CommRingCat.ofHom
              (algebraMap R' R''))) ≫ (Spec.map (CommRingCat.ofHom (algebraMap R R')))) ≫ a →
            w ≫ U.ι ≫ pullback.snd y y = x ≫ pullback.fst y ((Spec.map (CommRingCat.ofHom
              (algebraMap R' R''))) ≫ (Spec.map (CommRingCat.ofHom (algebraMap R R')))) →
            v ≫ pullback.fst y (Spec.map (CommRingCat.ofHom (algebraMap R R'))) = w ≫ m.1 →
            v ≫ pullback.snd y (Spec.map (CommRingCat.ofHom (algebraMap R R'))) = x ≫
              pullback.snd y ((Spec.map (CommRingCat.ofHom (algebraMap R' R''))) ≫ (Spec.map
                (CommRingCat.ofHom (algebraMap R R')))) ≫ (Spec.map (CommRingCat.ofHom
                  (algebraMap R' R''))) →
            x ≫ τ ≫ pullback.fst y' (Spec.map (CommRingCat.ofHom (algebraMap R' R''))) = v ≫
              ι.1) := by
  classical
  let k := IsLocalRing.ResidueField R
  let K := AlgebraicClosure k
  let φ₀ : R →+* K := (algebraMap k K).comp (IsLocalRing.residue R)
  have hφ₀m : ∀ x ∈ IsLocalRing.maximalIdeal R, φ₀ x = 0 := fun x hx => by
    change algebraMap k K (IsLocalRing.residue R x) = 0
    rw [(IsLocalRing.residue_eq_zero_iff x).mpr hx, map_zero]
  obtain ⟨x₀, hx₀⟩ := hYk
  obtain ⟨R₁, _, _, _, _, _, _, _, _, _, a₁, -, ha₁, -⟩ :=
    (open AlgebraicGeometry.Smooth in
      exists_finite_etale_dvr_specMap_comp_eq_apply_closedPoint_mem_of_henselianLocalRing
      y ⊤ x₀ hx₀ trivial)
  let : Algebra (base (K := K) hS hφ₀m).R' R₁ := ‹Algebra R R₁›
  have : Module.Finite (base (K := K) hS hφ₀m).R' R₁ := ‹Module.Finite R R₁›
  have : Algebra.Etale (base (K := K) hS hφ₀m).R' R₁ := ‹Algebra.Etale R R₁›
  have : Module.FaithfullyFlat (base (K := K) hS hφ₀m).R' R₁ := ‹Module.FaithfullyFlat R R₁›
  have : IsScalarTower R (base (K := K) hS hφ₀m).R' R₁ := IsScalarTower.of_algebraMap_eq (fun _
    => rfl)
  obtain ⟨E₁, hE₁sec, -, -⟩ := (base (K := K) hS hφ₀m).exists_next hS
    ((base (K := K) hS hφ₀m).t R₁ ≫ (base (K := K) hS hφ₀m).s) rfl a₁ (ha₁.trans (base (K := K)
      hS hφ₀m).s₂_eq)
  have : LocallyOfFiniteType (pullback.snd (pullback.fst y y ≫ y) (Spec.map (CommRingCat.ofHom
    φ₀))) :=
    MorphismProperty.of_isPullback
      (P := (@LocallyOfFiniteType : MorphismProperty Scheme.{u}))
      (IsPullback.of_hasPullback (pullback.fst y y ≫ y)
        (Spec.map (CommRingCat.ofHom φ₀))) inferInstance
  have : QuasiCompact (pullback.snd (pullback.fst y y ≫ y) (Spec.map (CommRingCat.ofHom φ₀))) :=
    MorphismProperty.of_isPullback
      (P := (@QuasiCompact : MorphismProperty Scheme.{u}))
      (IsPullback.of_hasPullback (pullback.fst y y ≫ y)
        (Spec.map (CommRingCat.ofHom φ₀))) inferInstance
  have : IsLocallyNoetherian (Level.Ω y φ₀) :=
    LocallyOfFiniteType.isLocallyNoetherian (pullback.snd (pullback.fst y y ≫ y) (Spec.map
      (CommRingCat.ofHom φ₀)))
  have : CompactSpace ↥(Level.Ω y φ₀) :=
    QuasiCompact.compactSpace_of_compactSpace (pullback.snd (pullback.fst y y ≫ y) (Spec.map
      (CommRingCat.ofHom φ₀)))
  have : IsNoetherian (Level.Ω y φ₀) := {}
  obtain ⟨C, ⟨E, hEsec, rfl⟩, hmin⟩ := WellFounded.has_min (wellFounded_lt (α :=
    TopologicalSpace.Closeds ↥(Level.Ω y φ₀)))
    {C | ∃ E : Level y U m K φ₀, E.HasSec ∧ (⟨E.Z hS, E.isClosed_Z hS⟩ :
      TopologicalSpace.Closeds ↥(Level.Ω y φ₀)) = C}
    ⟨_, E₁, hE₁sec, rfl⟩
  refine ⟨E.R', inferInstance, inferInstance, inferInstance, E.alg, E.fin, E.et, E.ff, E.Y',
    E.y', E.ι, E.U', E.m',
    E.sm, E.sep, inferInstance, E.qc, E.oi, E.hgen, E.hmax, E.hU'₁, E.hU'₂, E.hΦ', E.hΦ'₁,
      E.hΦ'₂, E.hΨ', E.hΨ'₁, E.hΨ'₂,
    E.hassoc', E.hext, hEsec, ?_⟩
  intro R'' _ _ _ _ _ _ _ a ha
  by_contra hn
  let : Algebra R R'' := ((algebraMap E.R' R'').comp (algebraMap R E.R')).toAlgebra
  have : IsScalarTower R E.R' R'' := IsScalarTower.of_algebraMap_eq (fun _ => rfl)
  have : Module.Finite R R'' := Module.Finite.trans E.R' R''
  have : Algebra.Etale R R'' := Algebra.Etale.comp R E.R' R''
  have : Module.FaithfullyFlat R R'' := Module.FaithfullyFlat.trans R E.R' R''
  obtain ⟨b, hb⟩ := E.exists_not_mem_D hS (E.t R'' ≫ E.s) rfl a ha hn
  obtain ⟨E₂, hE₂sec, hsub, hne⟩ := E.exists_next hS (E.t R'' ≫ E.s) rfl a ha
  refine hmin ⟨E₂.Z hS, E₂.isClosed_Z hS⟩ ⟨E₂, hE₂sec, rfl⟩ (lt_of_le_of_ne hsub ?_)
  intro h
  exact hne b hb (congrArg (fun C : TopologicalSpace.Closeds ↥(Level.Ω y φ₀) => (C : Set
    ↥(Level.Ω y φ₀))) h)
NeronModelInfra.exists_etale_translation_extension
Source context 6 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace NeronModelInfra
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry GoodReductionJacobian Topology
open AbelianVarieties.NOSProofs.EtaleTranslationExtensions
universe u
theorem exists_etale_translation_extension
    {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R] [HenselianLocalRing R]
    {Y : Scheme.{u}} (y : Y ⟶ Spec (CommRingCat.of R))
    [Smooth y] [IsSeparated y] [LocallyOfFiniteType y] [QuasiCompact y]
    (U : (pullback y y).Opens) (m : SchemeHomOver (U.ι ≫ pullback.fst y y ≫ y) y)
    (hU₁ : ∀ x : Y,
      Dense ((Subtype.val : {q : ↑(pullback y y) // (pullback.fst y y).base q = x} → ↑(pullback
        y y)) ⁻¹'
          (U : Set ↑(pullback y y))))
    (hU₂ : ∀ x : Y,
      Dense ((Subtype.val : {q : ↑(pullback y y) // (pullback.snd y y).base q = x} → ↑(pullback
        y y)) ⁻¹'
          (U : Set ↑(pullback y y))))
    (hΦ : IsOpenImmersion
      (pullback.lift (f := y) (g := y) (U.ι ≫ pullback.fst y y) m.1
            ((Category.assoc _ _ _).trans m.2.symm)))
    (hΦ₁ : ∀ x : Y,
      Dense ((Subtype.val : {q : ↑(pullback y y) // (pullback.fst y y).base q = x} → ↑(pullback
        y y)) ⁻¹'
          (Set.range (pullback.lift (f := y) (g := y) (U.ι ≫ pullback.fst y y) m.1
            ((Category.assoc _ _ _).trans m.2.symm)).base)))
    (hΦ₂ : ∀ x : Y,
      Dense ((Subtype.val : {q : ↑(pullback y y) // (pullback.snd y y).base q = x} → ↑(pullback
        y y)) ⁻¹'
          (Set.range (pullback.lift (f := y) (g := y) (U.ι ≫ pullback.fst y y) m.1
            ((Category.assoc _ _ _).trans m.2.symm)).base)))
    (hΨ : IsOpenImmersion
      (pullback.lift (f := y) (g := y) m.1 (U.ι ≫ pullback.snd y y)
            (m.2.trans (by rw [Category.assoc, pullback.condition]))))
    (hΨ₁ : ∀ x : Y,
      Dense ((Subtype.val : {q : ↑(pullback y y) // (pullback.fst y y).base q = x} → ↑(pullback
        y y)) ⁻¹'
          (Set.range (pullback.lift (f := y) (g := y) m.1 (U.ι ≫ pullback.snd y y)
            (m.2.trans (by rw [Category.assoc, pullback.condition]))).base)))
    (hΨ₂ : ∀ x : Y,
      Dense ((Subtype.val : {q : ↑(pullback y y) // (pullback.snd y y).base q = x} → ↑(pullback
        y y)) ⁻¹'
          (Set.range (pullback.lift (f := y) (g := y) m.1 (U.ι ≫ pullback.snd y y)
            (m.2.trans (by rw [Category.assoc, pullback.condition]))).base)))
    (hassoc : ∀ {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of R))
        (u v p q : SchemeHomOver t (U.ι ≫ pullback.fst y y ≫ y)),
      u.1 ≫ U.ι ≫ pullback.snd y y = v.1 ≫ U.ι ≫ pullback.fst y y →
      p.1 ≫ U.ι ≫ pullback.fst y y = u.1 ≫ m.1 → p.1 ≫ U.ι ≫ pullback.snd y y = v.1 ≫ U.ι ≫
        pullback.snd y y →
      q.1 ≫ U.ι ≫ pullback.fst y y = u.1 ≫ U.ι ≫ pullback.fst y y → q.1 ≫ U.ι ≫ pullback.snd y y
        = v.1 ≫ m.1 →
      p.1 ≫ m.1 = q.1 ≫ m.1)
    (hYk : ∃ x : Y, y.base x = IsLocalRing.closedPoint R)
    (hUK : ∀ q : ↑(pullback y y), (pullback.fst y y ≫ y).base q ≠ IsLocalRing.closedPoint R → q
      ∈ U) :
    ∃ (R' : Type u) (_ : CommRing R') (_ : IsDomain R') (_ : IsDiscreteValuationRing R') (_ :
      Algebra R R')
      (_ : Module.Finite R R') (_ : Algebra.Etale R R') (_ : Module.FaithfullyFlat R R')
      (Y' : Scheme.{u}) (y' : Y' ⟶ Spec (CommRingCat.of R'))
      (ι : SchemeHomOver (pullback.snd y (Spec.map (CommRingCat.ofHom (algebraMap R R')))) y')
      (U' : (pullback y' y').Opens) (m' : SchemeHomOver (U'.ι ≫ pullback.fst y' y' ≫ y') y'),
      Smooth y' ∧ IsSeparated y' ∧ LocallyOfFiniteType y' ∧ QuasiCompact y' ∧
      IsOpenImmersion ι.1 ∧
      (∀ p : Y', y'.base p ≠ IsLocalRing.closedPoint R' → p ∈ Set.range ι.1.base) ∧
      (∀ p : Y', (∀ p' : Y', p' ⤳ p → y'.base p' = y'.base p → p' = p) → p ∈ Set.range ι.1.base) ∧
      (∀ x, Dense ((Subtype.val : {q : ↑(pullback y' y') // (pullback.fst y' y').base q = x} →
        ↑(pullback y' y')) ⁻¹'
          (U' : Set ↑(pullback y' y')))) ∧
      (∀ x, Dense ((Subtype.val : {q : ↑(pullback y' y') // (pullback.snd y' y').base q = x} →
        ↑(pullback y' y')) ⁻¹'
          (U' : Set ↑(pullback y' y')))) ∧
      IsOpenImmersion
          (pullback.lift (f := y') (g := y') (U'.ι ≫ pullback.fst y' y') m'.1
            ((Category.assoc _ _ _).trans m'.2.symm)) ∧
      (∀ x, Dense ((Subtype.val : {q : ↑(pullback y' y') // (pullback.fst y' y').base q = x} →
        ↑(pullback y' y')) ⁻¹'
          (Set.range (pullback.lift (f := y') (g := y') (U'.ι ≫ pullback.fst y' y') m'.1
            ((Category.assoc _ _ _).trans m'.2.symm)).base))) ∧
      (∀ x, Dense ((Subtype.val : {q : ↑(pullback y' y') // (pullback.snd y' y').base q = x} →
        ↑(pullback y' y')) ⁻¹'
          (Set.range (pullback.lift (f := y') (g := y') (U'.ι ≫ pullback.fst y' y') m'.1
            ((Category.assoc _ _ _).trans m'.2.symm)).base))) ∧
      IsOpenImmersion
          (pullback.lift (f := y') (g := y') m'.1 (U'.ι ≫ pullback.snd y' y')
            (m'.2.trans (by rw [Category.assoc, pullback.condition]))) ∧
      (∀ x, Dense ((Subtype.val : {q : ↑(pullback y' y') // (pullback.fst y' y').base q = x} →
        ↑(pullback y' y')) ⁻¹'
          (Set.range (pullback.lift (f := y') (g := y') m'.1 (U'.ι ≫ pullback.snd y' y')
            (m'.2.trans (by rw [Category.assoc, pullback.condition]))).base))) ∧
      (∀ x, Dense ((Subtype.val : {q : ↑(pullback y' y') // (pullback.snd y' y').base q = x} →
        ↑(pullback y' y')) ⁻¹'
          (Set.range (pullback.lift (f := y') (g := y') m'.1 (U'.ι ≫ pullback.snd y' y')
            (m'.2.trans (by rw [Category.assoc, pullback.condition]))).base))) ∧
      (∀ {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of R'))
          (u v p q : SchemeHomOver t (U'.ι ≫ pullback.fst y' y' ≫ y')),
        u.1 ≫ U'.ι ≫ pullback.snd y' y' = v.1 ≫ U'.ι ≫ pullback.fst y' y' →
        p.1 ≫ U'.ι ≫ pullback.fst y' y' = u.1 ≫ m'.1 →
        p.1 ≫ U'.ι ≫ pullback.snd y' y' = v.1 ≫ U'.ι ≫ pullback.snd y' y' →
        q.1 ≫ U'.ι ≫ pullback.fst y' y' = u.1 ≫ U'.ι ≫ pullback.fst y' y' →
        q.1 ≫ U'.ι ≫ pullback.snd y' y' = v.1 ≫ m'.1 →
        p.1 ≫ m'.1 = q.1 ≫ m'.1) ∧
      (∀ {T : Scheme.{u}} (t' : T ⟶ Spec (CommRingCat.of R'))
          (w : SchemeHomOver (t' ≫ (Spec.map (CommRingCat.ofHom (algebraMap R R')))) (U.ι ≫
            pullback.fst y y ≫ y))
          (a b c : SchemeHomOver (t' ≫ (Spec.map (CommRingCat.ofHom (algebraMap R R')))) y),
        a.1 = w.1 ≫ U.ι ≫ pullback.fst y y → b.1 = w.1 ≫ U.ι ≫ pullback.snd y y → c.1 = w.1 ≫ m.1 →
        ∃ w' : SchemeHomOver t' (U'.ι ≫ pullback.fst y' y' ≫ y'),
          w'.1 ≫ U'.ι ≫ pullback.fst y' y' = (RelativeGroupLaw.baseChangePointOfBase (Spec.map
            (CommRingCat.ofHom (algebraMap R R'))) a).1 ≫ ι.1 ∧
          w'.1 ≫ U'.ι ≫ pullback.snd y' y' = (RelativeGroupLaw.baseChangePointOfBase (Spec.map
            (CommRingCat.ofHom (algebraMap R R'))) b).1 ≫ ι.1 ∧
          w'.1 ≫ m'.1 = (RelativeGroupLaw.baseChangePointOfBase (Spec.map (CommRingCat.ofHom
            (algebraMap R R'))) c).1 ≫ ι.1) ∧
      (∃ a' : Spec (CommRingCat.of R') ⟶ Y', a' ≫ y' = 𝟙 _) ∧
      (∀ (R'' : Type u) (_ : CommRing R'') (_ : IsDomain R'') (_ : IsDiscreteValuationRing R'')
          (_ : Algebra R' R'') (_ : Module.Finite R' R'') (_ : Algebra.Etale R' R'') (_ :
            Module.FaithfullyFlat R' R'')
          (a : Spec (CommRingCat.of R'') ⟶ Y),
        a ≫ y = (Spec.map (CommRingCat.ofHom (algebraMap R' R''))) ≫ (Spec.map
          (CommRingCat.ofHom (algebraMap R R'))) →
        ∃ τ : pullback y ((Spec.map (CommRingCat.ofHom (algebraMap R' R''))) ≫ (Spec.map
          (CommRingCat.ofHom (algebraMap R R')))) ⟶ pullback y' (Spec.map (CommRingCat.ofHom
            (algebraMap R' R''))),
          τ ≫ pullback.snd y' (Spec.map (CommRingCat.ofHom (algebraMap R' R''))) = pullback.snd
            y ((Spec.map (CommRingCat.ofHom (algebraMap R' R''))) ≫ (Spec.map (CommRingCat.ofHom
              (algebraMap R R')))) ∧
          ∀ {T : Scheme.{u}} (x : T ⟶ pullback y ((Spec.map (CommRingCat.ofHom (algebraMap R'
            R''))) ≫ (Spec.map (CommRingCat.ofHom (algebraMap R R')))))
            (w : T ⟶ (U : Scheme.{u})) (v : T ⟶ pullback y (Spec.map (CommRingCat.ofHom
              (algebraMap R R')))),
            w ≫ U.ι ≫ pullback.fst y y = x ≫ pullback.snd y ((Spec.map (CommRingCat.ofHom
              (algebraMap R' R''))) ≫ (Spec.map (CommRingCat.ofHom (algebraMap R R')))) ≫ a →
            w ≫ U.ι ≫ pullback.snd y y = x ≫ pullback.fst y ((Spec.map (CommRingCat.ofHom
              (algebraMap R' R''))) ≫ (Spec.map (CommRingCat.ofHom (algebraMap R R')))) →
            v ≫ pullback.fst y (Spec.map (CommRingCat.ofHom (algebraMap R R'))) = w ≫ m.1 →
            v ≫ pullback.snd y (Spec.map (CommRingCat.ofHom (algebraMap R R'))) = x ≫
              pullback.snd y ((Spec.map (CommRingCat.ofHom (algebraMap R' R''))) ≫ (Spec.map
                (CommRingCat.ofHom (algebraMap R R')))) ≫ (Spec.map (CommRingCat.ofHom
                  (algebraMap R' R''))) →
            x ≫ τ ≫ pullback.fst y' (Spec.map (CommRingCat.ofHom (algebraMap R' R''))) = v ≫
              ι.1) :=
  TranslationRefinement.main y U m ⟨hU₁, hU₂, hΦ, hΦ₁, hΦ₂, hΨ, hΨ₁, hΨ₂, hassoc, hUK⟩ hYk
AbelianVarieties.NOSProofs.EtaleTranslationCovers.MaximalSpecializations.exists_maximal_specializes
Source context 6 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_NeronModelInfra_exists_etale_translation_cover.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 AbelianVarieties.NOSProofs.EtaleTranslationCovers
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace MaximalSpecializations
theorem exists_maximal_specializes {X : Scheme.{u}} (S : Set X) (hS : IsClosed S) (x : X) (hx :
  x ∈ S) :
    ∃ η ∈ S, η ⤳ x ∧ ∀ y ∈ S, y ⤳ η → y = η
NeronModelInfra.exists_etale_translation_cover
Source context 8 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace NeronModelInfra
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry GoodReductionJacobian Topology
open AbelianVarieties.NOSProofs.EtaleTranslationCovers
open AbelianVarieties.NOSProofs.EtaleTranslationCovers.MaximalSpecializations
open NeronModelInfra renaming
 exists_forall_dense_preimage_fibre_comp_eq_comp_of_forall_dense_preimage_fibre_of_relativeGroupLaw
 → restrictMultiplication
universe u
theorem exists_etale_translation_cover
    {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R] [HenselianLocalRing R]
    (K : Type u) [Field K] [Algebra R K] [IsFractionRing R K]
    {XK : Scheme.{u}} {gK : XK ⟶ Spec (CommRingCat.of K)} (LXK : RelativeGroupLaw K gK)
    {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R))
    [Smooth f] [IsSeparated f] [LocallyOfFiniteType f] [QuasiCompact f]
    (hXk : ∃ x : X, f.base x = IsLocalRing.closedPoint R)
    (e : SchemeHomOver (pullback.snd f (specGenericFibreInclusion R K)) gK) [IsIso e.1]
    (W : (pullback f f).Opens) (m : SchemeHomOver (W.ι ≫ pullback.fst f f ≫ f) f)
    (_hW₁ : ∀ p : ↑(pullback f f), (pullback.fst f f ≫ f).base p ≠ IsLocalRing.closedPoint R → p
      ∈ W)
    (_hW₂ : ∀ p : ↑(pullback f f), (pullback.fst f f ≫ f).base p = IsLocalRing.closedPoint R →
      (∀ y : ↑(pullback f f), y ⤳ p → (pullback.fst f f ≫ f).base y = IsLocalRing.closedPoint R
        → y = p) →
      p ∈ W)
    (hmK : (NeronModelInfra.schemeHomOverComp
        (genericFibreRestrict R K f (W.ι ≫ pullback.fst f f ≫ f) m) e).1 =
      pullback.map (W.ι ≫ pullback.fst f f ≫ f) (specGenericFibreInclusion R K)
          (pullback.fst f f ≫ f) (specGenericFibreInclusion R K) W.ι (𝟙 _) (𝟙 _)
          (Category.comp_id _) ((Category.comp_id _).trans (Category.id_comp _).symm) ≫
        (LXK.mul (pullback.snd (pullback.fst f f ≫ f) (specGenericFibreInclusion R K))
          (NeronModelInfra.schemeHomOverComp
            (genericFibreRestrict R K f (pullback.fst f f ≫ f) ⟨pullback.fst f f, rfl⟩) e)
          (NeronModelInfra.schemeHomOverComp
            (genericFibreRestrict R K f (pullback.fst f f ≫ f)
              ⟨pullback.snd f f, pullback.condition.symm⟩) e)).1)
    (hΦ : IsOpenImmersion
      (pullback.lift (f := f) (g := f) (W.ι ≫ pullback.fst f f) m.1
        ((Category.assoc _ _ _).trans m.2.symm)))
    (_hΦ₂ : ∀ p : ↑(pullback f f), (pullback.fst f f ≫ f).base p = IsLocalRing.closedPoint R →
      (∀ y : ↑(pullback f f), y ⤳ p → (pullback.fst f f ≫ f).base y = IsLocalRing.closedPoint R
        → y = p) →
      p ∈ Set.range (pullback.lift (f := f) (g := f) (W.ι ≫ pullback.fst f f) m.1
        ((Category.assoc _ _ _).trans m.2.symm)).base)
    (hΨ : IsOpenImmersion
      (pullback.lift (f := f) (g := f) m.1 (W.ι ≫ pullback.snd f f)
        (m.2.trans (by rw [Category.assoc, pullback.condition]))))
    (_hΨ₂ : ∀ p : ↑(pullback f f), (pullback.fst f f ≫ f).base p = IsLocalRing.closedPoint R →
      (∀ y : ↑(pullback f f), y ⤳ p → (pullback.fst f f ≫ f).base y = IsLocalRing.closedPoint R
        → y = p) →
      p ∈ Set.range (pullback.lift (f := f) (g := f) m.1 (W.ι ≫ pullback.snd f f)
        (m.2.trans (by rw [Category.assoc, pullback.condition]))).base)
    (X' : X.Opens) (U : (pullback f f).Opens) (hUW : U ≤ W)
    (_hX'₁ : ∀ x : X, f.base x ≠ IsLocalRing.closedPoint R → x ∈ X')
    (hX'₂ : ∀ x : X, f.base x = IsLocalRing.closedPoint R →
      (∀ y : X, y ⤳ x → f.base y = IsLocalRing.closedPoint R → y = x) → x ∈ X')
    (hU₁ : ∀ q : ↑(pullback f f), (pullback.fst f f ≫ f).base q ≠ IsLocalRing.closedPoint R → q
      ∈ U)
    (hU₂ : ∀ (q : ↑(pullback f f)) (hq : q ∈ U), (pullback.fst f f).base q ∈ X' ∧ (pullback.snd
      f f).base q ∈ X' ∧
      m.1.base ⟨q, hUW hq⟩ ∈ X')
    (hU₃ : ∀ x : X, x ∈ X' →
        Dense ((Subtype.val : {q : ↑(pullback f f) // (pullback.fst f f).base q = x} →
          ↑(pullback f f)) ⁻¹'
            (U : Set ↑(pullback f f))) ∧
        Dense ((Subtype.val : {q : ↑(pullback f f) // (pullback.snd f f).base q = x} →
          ↑(pullback f f)) ⁻¹'
            (U : Set ↑(pullback f f))) ∧
        Dense ((Subtype.val : {q : ↑(pullback f f) // (pullback.fst f f).base q = x} →
          ↑(pullback f f)) ⁻¹'
            ((pullback.lift (f := f) (g := f) (W.ι ≫ pullback.fst f f) m.1
            ((Category.assoc _ _ _).trans m.2.symm)).base '' {w | W.ι.base w ∈ U})) ∧
        Dense ((Subtype.val : {q : ↑(pullback f f) // (pullback.snd f f).base q = x} →
          ↑(pullback f f)) ⁻¹'
            ((pullback.lift (f := f) (g := f) (W.ι ≫ pullback.fst f f) m.1
            ((Category.assoc _ _ _).trans m.2.symm)).base '' {w | W.ι.base w ∈ U})) ∧
        Dense ((Subtype.val : {q : ↑(pullback f f) // (pullback.fst f f).base q = x} →
          ↑(pullback f f)) ⁻¹'
            ((pullback.lift (f := f) (g := f) m.1 (W.ι ≫ pullback.snd f f)
            (m.2.trans (by rw [Category.assoc, pullback.condition]))).base '' {w | W.ι.base w ∈
              U})) ∧
        Dense ((Subtype.val : {q : ↑(pullback f f) // (pullback.snd f f).base q = x} →
          ↑(pullback f f)) ⁻¹'
            ((pullback.lift (f := f) (g := f) m.1 (W.ι ≫ pullback.snd f f)
            (m.2.trans (by rw [Category.assoc, pullback.condition]))).base '' {w | W.ι.base w ∈
              U}))) :
    ∃ (R' : Type u) (_ : CommRing R') (_ : IsDomain R') (_ : IsDiscreteValuationRing R') (_ :
      Algebra R R')
      (_ : Module.Finite R R') (_ : Algebra.Etale R R') (_ : Module.FaithfullyFlat R R')
      (Y' : Scheme.{u}) (y' : Y' ⟶ Spec (CommRingCat.of R'))
      (ι : SchemeHomOver (pullback.snd (X'.ι ≫ f) (Spec.map (CommRingCat.ofHom (algebraMap R
        R')))) y')
      (U' : (pullback y' y').Opens) (m' : SchemeHomOver (U'.ι ≫ pullback.fst y' y' ≫ y') y'),
      Smooth y' ∧ IsSeparated y' ∧ LocallyOfFiniteType y' ∧ QuasiCompact y' ∧
      IsOpenImmersion ι.1 ∧
      (∀ p : Y', y'.base p ≠ IsLocalRing.closedPoint R' → p ∈ Set.range ι.1.base) ∧
      (∀ p : Y', (∀ p' : Y', p' ⤳ p → y'.base p' = y'.base p → p' = p) → p ∈ Set.range ι.1.base) ∧
      (∀ x, Dense ((Subtype.val : {q : ↑(pullback y' y') // (pullback.fst y' y').base q = x} →
        ↑(pullback y' y')) ⁻¹'
          (U' : Set ↑(pullback y' y')))) ∧
      (∀ x, Dense ((Subtype.val : {q : ↑(pullback y' y') // (pullback.snd y' y').base q = x} →
        ↑(pullback y' y')) ⁻¹'
          (U' : Set ↑(pullback y' y')))) ∧
      IsOpenImmersion
          (pullback.lift (f := y') (g := y') (U'.ι ≫ pullback.fst y' y') m'.1
            ((Category.assoc _ _ _).trans m'.2.symm)) ∧
      (∀ x, Dense ((Subtype.val : {q : ↑(pullback y' y') // (pullback.fst y' y').base q = x} →
        ↑(pullback y' y')) ⁻¹'
          (Set.range (pullback.lift (f := y') (g := y') (U'.ι ≫ pullback.fst y' y') m'.1
            ((Category.assoc _ _ _).trans m'.2.symm)).base))) ∧
      (∀ x, Dense ((Subtype.val : {q : ↑(pullback y' y') // (pullback.snd y' y').base q = x} →
        ↑(pullback y' y')) ⁻¹'
          (Set.range (pullback.lift (f := y') (g := y') (U'.ι ≫ pullback.fst y' y') m'.1
            ((Category.assoc _ _ _).trans m'.2.symm)).base))) ∧
      IsOpenImmersion
          (pullback.lift (f := y') (g := y') m'.1 (U'.ι ≫ pullback.snd y' y')
            (m'.2.trans (by rw [Category.assoc, pullback.condition]))) ∧
      (∀ x, Dense ((Subtype.val : {q : ↑(pullback y' y') // (pullback.fst y' y').base q = x} →
        ↑(pullback y' y')) ⁻¹'
          (Set.range (pullback.lift (f := y') (g := y') m'.1 (U'.ι ≫ pullback.snd y' y')
            (m'.2.trans (by rw [Category.assoc, pullback.condition]))).base))) ∧
      (∀ x, Dense ((Subtype.val : {q : ↑(pullback y' y') // (pullback.snd y' y').base q = x} →
        ↑(pullback y' y')) ⁻¹'
          (Set.range (pullback.lift (f := y') (g := y') m'.1 (U'.ι ≫ pullback.snd y' y')
            (m'.2.trans (by rw [Category.assoc, pullback.condition]))).base))) ∧
      (∀ {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of R'))
          (u v p q : SchemeHomOver t (U'.ι ≫ pullback.fst y' y' ≫ y')),
        u.1 ≫ U'.ι ≫ pullback.snd y' y' = v.1 ≫ U'.ι ≫ pullback.fst y' y' →
        p.1 ≫ U'.ι ≫ pullback.fst y' y' = u.1 ≫ m'.1 →
        p.1 ≫ U'.ι ≫ pullback.snd y' y' = v.1 ≫ U'.ι ≫ pullback.snd y' y' →
        q.1 ≫ U'.ι ≫ pullback.fst y' y' = u.1 ≫ U'.ι ≫ pullback.fst y' y' →
        q.1 ≫ U'.ι ≫ pullback.snd y' y' = v.1 ≫ m'.1 →
        p.1 ≫ m'.1 = q.1 ≫ m'.1) ∧
      (∀ {T : Scheme.{u}} (t' : T ⟶ Spec (CommRingCat.of R'))
          (w : SchemeHomOver (t' ≫ (Spec.map (CommRingCat.ofHom (algebraMap R R')))) (U.ι ≫
            pullback.fst f f ≫ f))
          (a b c : SchemeHomOver (t' ≫ (Spec.map (CommRingCat.ofHom (algebraMap R R')))) (X'.ι ≫
            f)),
        a.1 ≫ X'.ι = w.1 ≫ U.ι ≫ pullback.fst f f → b.1 ≫ X'.ι = w.1 ≫ U.ι ≫ pullback.snd f f →
        c.1 ≫ X'.ι = w.1 ≫ (pullback f f).homOfLE hUW ≫ m.1 →
        ∃ w' : SchemeHomOver t' (U'.ι ≫ pullback.fst y' y' ≫ y'),
          w'.1 ≫ U'.ι ≫ pullback.fst y' y' = (RelativeGroupLaw.baseChangePointOfBase (Spec.map
            (CommRingCat.ofHom (algebraMap R R'))) a).1 ≫ ι.1 ∧
          w'.1 ≫ U'.ι ≫ pullback.snd y' y' = (RelativeGroupLaw.baseChangePointOfBase (Spec.map
            (CommRingCat.ofHom (algebraMap R R'))) b).1 ≫ ι.1 ∧
          w'.1 ≫ m'.1 = (RelativeGroupLaw.baseChangePointOfBase (Spec.map (CommRingCat.ofHom
            (algebraMap R R'))) c).1 ≫ ι.1) ∧
      (∃ a' : Spec (CommRingCat.of R') ⟶ Y', a' ≫ y' = 𝟙 _) ∧
      (∀ q : ↑(pullback y' y'), (pullback.fst y' y').base q ∈ Set.range ι.1.base →
        (pullback.snd y' y').base q ∈ Set.range ι.1.base → q ∈ U') := by
  classical
  obtain ⟨UY, mY, hY₁, hY₂, hYΦ, hYΦ₁, hYΦ₂, hYΨ, hYΨ₁, hYΨ₂, hassocY, hgenY, hrel⟩ :=
    restrictMultiplication
      K LXK f e W m hmK hΦ hΨ X' U hUW hU₁ hU₂ hU₃
  have : IsLocallyNoetherian X := LocallyOfFiniteType.isLocallyNoetherian f
  have : CompactSpace ↥X := QuasiCompact.compactSpace_of_compactSpace f
  have : IsNoetherian X := {}
  have : CompactSpace ↥(X' : Scheme.{u}) :=
    isCompact_iff_compactSpace.mp (TopologicalSpace.NoetherianSpace.isCompact (X' : Set X))
  have : IsNoetherian (X' : Scheme.{u}) := {}
  have : QuasiCompact (X'.ι ≫ f) := inferInstance
  have : Smooth (X'.ι ≫ f) := inferInstance
  have : IsSeparated (X'.ι ≫ f) := inferInstance
  have : LocallyOfFiniteType (X'.ι ≫ f) := inferInstance
  have hYk : ∃ x : ↥(X' : Scheme.{u}), (X'.ι ≫ f).base x = IsLocalRing.closedPoint R := by
    obtain ⟨x₀, hx₀⟩ := hXk
    have hS : IsClosed {x : X | f.base x = IsLocalRing.closedPoint R} := by
      have : IsClosed ({IsLocalRing.closedPoint R} : Set (Spec (CommRingCat.of R))) :=
        (PrimeSpectrum.isClosed_singleton_iff_isMaximal _).2 (IsLocalRing.maximalIdeal.isMaximal R)
      exact this.preimage f.base.hom.continuous
    obtain ⟨η, hηS, -, hηmax⟩ := exists_maximal_specializes {x : X | f.base x =
      IsLocalRing.closedPoint R} hS x₀ hx₀
    have hηX' : η ∈ X' := hX'₂ η hηS (fun y hy hyk => hηmax y hyk hy)
    exact ⟨⟨η, hηX'⟩, hηS⟩
  obtain ⟨R', instCR, instDom, instDVR, instAlg, instFin, instEt, instFF, Y', y', ι, U', m',
      hsm, hsep, hloft, hqc, hιo, hgen, hmax, hU'₁, hU'₂, hΦ', hΦ'₁, hΦ'₂, hΨ', hΨ'₁, hΨ'₂,
        hassoc',
      hext, hsec, hstat⟩ :=
    NeronModelInfra.exists_etale_translation_extension
      (X'.ι ≫ f) UY mY hY₁ hY₂ hYΦ hYΦ₁ hYΦ₂ hYΨ hYΨ₁ hYΨ₂ (fun t u v p q => hassocY t u v p q)
        hYk hgenY
  have : Smooth y' := hsm
  have : IsSeparated y' := hsep
  have : LocallyOfFiniteType y' := hloft
  have : QuasiCompact y' := hqc
  have : IsOpenImmersion ι.1 := hιo
  obtain ⟨U'', hle, m'', hm''m', hU''₁, hU''₂, hΦ'', hΦ''₁, hΦ''₂, hΨ'', hΨ''₁, hΨ''₂, hassoc'',
    hsq⟩ :=
    exists_opens_forall_mem_of_mem_range_of_forall_exists_translation_of_henselianLocalRing
      (X'.ι ≫ f) UY mY hY₁ hY₂ hYΦ hYΦ₁ hYΦ₂ hYΨ hYΨ₁ hYΨ₂ (fun t u v p q => hassocY t u v p q)
        hgenY
      R' y' ι U' m' hU'₁ hU'₂ hΦ' hΦ'₁ hΦ'₂ hΨ' hΨ'₁ hΨ'₂ (fun t u v p q => hassoc' t u v p q)
      (fun t' w a b c ha hb hc => hext t' w a b c ha hb hc) hstat
  refine ⟨R', instCR, instDom, instDVR, instAlg, instFin, instEt, instFF, Y', y', ι, U'', m'',
    hsm, hsep, hloft, hqc, hιo, hgen, hmax, hU''₁, hU''₂, hΦ'', hΦ''₁, hΦ''₂, hΨ'', hΨ''₁, hΨ''₂,
    (fun t u v p q => hassoc'' t u v p q), ?_, hsec, hsq⟩
  intro T t' w a b c ha hb hc
  obtain ⟨v, hv₁, hv₂, hv₃⟩ := hrel w.1 a.1 b.1 ha hb
  have hcv : c.1 = v ≫ mY.1 := by
    rw [← cancel_mono X'.ι, Category.assoc, hv₃, hc]
  let wY : SchemeHomOver (t' ≫ Spec.map (CommRingCat.ofHom (algebraMap R R')))
      (UY.ι ≫ pullback.fst (X'.ι ≫ f) (X'.ι ≫ f) ≫ (X'.ι ≫ f)) :=
    ⟨v, by
      have h := a.2
      rw [← hv₁] at h
      simpa only [Category.assoc] using h⟩
  obtain ⟨w', e₁, e₂, e₃⟩ := hext t' wY a b c hv₁.symm hv₂.symm hcv
  refine ⟨⟨w'.1 ≫ (pullback y' y').homOfLE hle, ?_⟩, ?_, ?_, ?_⟩
  · rw [Category.assoc, Scheme.homOfLE_ι_assoc]; exact w'.2
  · change (w'.1 ≫ (pullback y' y').homOfLE hle) ≫ U''.ι ≫ pullback.fst y' y' = _
    rw [Category.assoc, Scheme.homOfLE_ι_assoc]; exact e₁
  · change (w'.1 ≫ (pullback y' y').homOfLE hle) ≫ U''.ι ≫ pullback.snd y' y' = _
    rw [Category.assoc, Scheme.homOfLE_ι_assoc]; exact e₂
  · change (w'.1 ≫ (pullback y' y').homOfLE hle) ≫ m''.1 = _
    rw [Category.assoc, hm''m']; exact e₃