Module

TorsionSpecialization.lean

Nyll.AbelianVarieties.Reduction.TorsionSpecialization
91 declarations indexed from sourceView source ↗

Torsion descent and injective specialization

Construct a finite Galois field of torsion coordinates. Use unramifiedness and the Néron mapping property to specialize torsion injectively, with the expected torsion cardinality.

Imports34
Imported by4

Declarations

AbelianVarieties.NOSProofs.TorsionSplittingField.TorsionFieldDescent.nsmul_coe
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_GoodReductionJacobian_RelativeGroupLaw_exists_isGalois_forall_isTorsionPoint_exists_specMap_comp_eq_and_forall_eq_one.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace AbelianVarieties.NOSProofs.TorsionSplittingField
namespace TorsionFieldDescent
variable {K : Type u} [Field K] {A : Scheme.{u}} {f : A ⟶ Spec (CommRingCat.of K)}
open AlgebraicCurves.Geometry.AbelianSchemes.Theorems.Proofs in
open RelativeGroupLaw_formallyUnramified_schemeNsmul_of_isUnit_of_isLocalRing in
theorem nsmul_coe (G : RelativeGroupLaw K f) {T : Scheme.{u}}
    (t : T ⟶ Spec (CommRingCat.of K)) (n : ℕ) (x : SchemeHomOver t f) :
    (G.nsmul t n x).1 = x.1 ≫ G.schemeNsmul n
AbelianVarieties.NOSProofs.TorsionSplittingField.TorsionFieldDescent.one_coe
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_GoodReductionJacobian_RelativeGroupLaw_exists_isGalois_forall_isTorsionPoint_exists_specMap_comp_eq_and_forall_eq_one.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace AbelianVarieties.NOSProofs.TorsionSplittingField
namespace TorsionFieldDescent
variable {K : Type u} [Field K] {A : Scheme.{u}} {f : A ⟶ Spec (CommRingCat.of K)}
theorem one_coe (G : RelativeGroupLaw K f) {T : Scheme.{u}}
    (t : T ⟶ Spec (CommRingCat.of K)) :
    (G.one t).1 = t ≫ (G.one (𝟙 (Spec (CommRingCat.of K)))).1
AbelianVarieties.NOSProofs.TorsionSplittingField.TorsionFieldDescent.isTorsionPoint_iff_comp
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_GoodReductionJacobian_RelativeGroupLaw_exists_isGalois_forall_isTorsionPoint_exists_specMap_comp_eq_and_forall_eq_one.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace AbelianVarieties.NOSProofs.TorsionSplittingField
namespace TorsionFieldDescent
variable {K : Type u} [Field K] {A : Scheme.{u}} {f : A ⟶ Spec (CommRingCat.of K)}
theorem isTorsionPoint_iff_comp (G : RelativeGroupLaw K f) {T : Scheme.{u}}
    (t : T ⟶ Spec (CommRingCat.of K)) (n : ℕ) (x : SchemeHomOver t f) :
    G.IsTorsionPoint t n x ↔
      x.1 ≫ G.schemeNsmul n = t ≫ (G.one (𝟙 (Spec (CommRingCat.of K)))).1
AbelianVarieties.NOSProofs.TorsionSplittingField.TorsionFieldDescent.mono_unit
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_GoodReductionJacobian_RelativeGroupLaw_exists_isGalois_forall_isTorsionPoint_exists_specMap_comp_eq_and_forall_eq_one.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace AbelianVarieties.NOSProofs.TorsionSplittingField
namespace TorsionFieldDescent
variable {K : Type u} [Field K] {A : Scheme.{u}} {f : A ⟶ Spec (CommRingCat.of K)}
theorem mono_unit (G : RelativeGroupLaw K f) :
    Mono (G.one (𝟙 (Spec (CommRingCat.of K)))).1
AbelianVarieties.NOSProofs.TorsionSplittingField.TorsionFieldDescent.kerFst_comp
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_GoodReductionJacobian_RelativeGroupLaw_exists_isGalois_forall_isTorsionPoint_exists_specMap_comp_eq_and_forall_eq_one.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace AbelianVarieties.NOSProofs.TorsionSplittingField
namespace TorsionFieldDescent
variable {K : Type u} [Field K] {A : Scheme.{u}} {f : A ⟶ Spec (CommRingCat.of K)}
theorem kerFst_comp (G : RelativeGroupLaw K f) (n : ℕ) :
    pullback.fst (G.schemeNsmul n) (G.one (𝟙 (Spec (CommRingCat.of K)))).1 ≫ f =
      G.schemeKerStr n
AbelianVarieties.NOSProofs.TorsionSplittingField.TorsionFieldDescent.isTorsionPoint_of_ker
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_GoodReductionJacobian_RelativeGroupLaw_exists_isGalois_forall_isTorsionPoint_exists_specMap_comp_eq_and_forall_eq_one.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace AbelianVarieties.NOSProofs.TorsionSplittingField
namespace TorsionFieldDescent
variable {K : Type u} [Field K] {A : Scheme.{u}} {f : A ⟶ Spec (CommRingCat.of K)}
theorem isTorsionPoint_of_ker (G : RelativeGroupLaw K f) (n : ℕ) {T : Scheme.{u}}
    (y : T ⟶ G.schemeKer n) (t : T ⟶ Spec (CommRingCat.of K)) (ht : y ≫ G.schemeKerStr n = t) :
    ∃ h : (y ≫ pullback.fst _ _) ≫ f = t,
      G.IsTorsionPoint t n ⟨y ≫ pullback.fst _ _, h⟩
AbelianVarieties.NOSProofs.TorsionSplittingField.TorsionFieldDescent.kerAlgMap

The base algebra map on the affine torsion kernel.

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_GoodReductionJacobian_RelativeGroupLaw_exists_isGalois_forall_isTorsionPoint_exists_specMap_comp_eq_and_forall_eq_one.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace AbelianVarieties.NOSProofs.TorsionSplittingField
namespace TorsionFieldDescent
variable {K : Type u} [Field K] {A : Scheme.{u}} {f : A ⟶ Spec (CommRingCat.of K)}
section Kernel
variable (G : RelativeGroupLaw K f) (n : ℕ) [IsAffine (G.schemeKer n)]
def kerAlgMap : CommRingCat.of K ⟶ Γ(G.schemeKer n, ⊤)
AbelianVarieties.NOSProofs.TorsionSplittingField.TorsionFieldDescent.spec_kerAlgMap
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_GoodReductionJacobian_RelativeGroupLaw_exists_isGalois_forall_isTorsionPoint_exists_specMap_comp_eq_and_forall_eq_one.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace AbelianVarieties.NOSProofs.TorsionSplittingField
namespace TorsionFieldDescent
variable {K : Type u} [Field K] {A : Scheme.{u}} {f : A ⟶ Spec (CommRingCat.of K)}
section Kernel
variable (G : RelativeGroupLaw K f) (n : ℕ) [IsAffine (G.schemeKer n)]
theorem spec_kerAlgMap :
    Spec.map (kerAlgMap G n) = (G.schemeKer n).isoSpec.inv ≫ G.schemeKerStr n
AbelianVarieties.NOSProofs.TorsionSplittingField.TorsionFieldDescent.homToPt

Convert a coordinate algebra homomorphism to a torsion-kernel 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_GoodReductionJacobian_RelativeGroupLaw_exists_isGalois_forall_isTorsionPoint_exists_specMap_comp_eq_and_forall_eq_one.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace AbelianVarieties.NOSProofs.TorsionSplittingField
namespace TorsionFieldDescent
variable {K : Type u} [Field K] {A : Scheme.{u}} {f : A ⟶ Spec (CommRingCat.of K)}
section Kernel
variable (G : RelativeGroupLaw K f) (n : ℕ) [IsAffine (G.schemeKer n)]
variable {T : Type u} [CommRing T] [Algebra K T]
def homToPt (φ : Γ(G.schemeKer n, ⊤) ⟶ CommRingCat.of T)
    (hφ : kerAlgMap G n ≫ φ = CommRingCat.ofHom (algebraMap K T)) :
    SchemeHomOver (Spec.map (CommRingCat.ofHom (algebraMap K T))) f
AbelianVarieties.NOSProofs.TorsionSplittingField.TorsionFieldDescent.homToPt_coe
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_GoodReductionJacobian_RelativeGroupLaw_exists_isGalois_forall_isTorsionPoint_exists_specMap_comp_eq_and_forall_eq_one.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace AbelianVarieties.NOSProofs.TorsionSplittingField
namespace TorsionFieldDescent
variable {K : Type u} [Field K] {A : Scheme.{u}} {f : A ⟶ Spec (CommRingCat.of K)}
section Kernel
variable (G : RelativeGroupLaw K f) (n : ℕ) [IsAffine (G.schemeKer n)]
variable {T : Type u} [CommRing T] [Algebra K T]
theorem homToPt_coe (φ : Γ(G.schemeKer n, ⊤) ⟶ CommRingCat.of T)
    (hφ : kerAlgMap G n ≫ φ = CommRingCat.ofHom (algebraMap K T)) :
    (homToPt G n φ hφ).1 = Spec.map φ ≫ (G.schemeKer n).isoSpec.inv ≫
      pullback.fst (G.schemeNsmul n) (G.one (𝟙 (Spec (CommRingCat.of K)))).1
AbelianVarieties.NOSProofs.TorsionSplittingField.TorsionFieldDescent.isTorsionPoint_homToPt
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_GoodReductionJacobian_RelativeGroupLaw_exists_isGalois_forall_isTorsionPoint_exists_specMap_comp_eq_and_forall_eq_one.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace AbelianVarieties.NOSProofs.TorsionSplittingField
namespace TorsionFieldDescent
variable {K : Type u} [Field K] {A : Scheme.{u}} {f : A ⟶ Spec (CommRingCat.of K)}
section Kernel
variable (G : RelativeGroupLaw K f) (n : ℕ) [IsAffine (G.schemeKer n)]
variable {T : Type u} [CommRing T] [Algebra K T]
theorem isTorsionPoint_homToPt (φ : Γ(G.schemeKer n, ⊤) ⟶ CommRingCat.of T)
    (hφ : kerAlgMap G n ≫ φ = CommRingCat.ofHom (algebraMap K T)) :
    G.IsTorsionPoint (Spec.map (CommRingCat.ofHom (algebraMap K T))) n (homToPt G n φ hφ)
AbelianVarieties.NOSProofs.TorsionSplittingField.TorsionFieldDescent.homToPt_comp_coe
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_GoodReductionJacobian_RelativeGroupLaw_exists_isGalois_forall_isTorsionPoint_exists_specMap_comp_eq_and_forall_eq_one.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace AbelianVarieties.NOSProofs.TorsionSplittingField
namespace TorsionFieldDescent
variable {K : Type u} [Field K] {A : Scheme.{u}} {f : A ⟶ Spec (CommRingCat.of K)}
section Kernel
variable (G : RelativeGroupLaw K f) (n : ℕ) [IsAffine (G.schemeKer n)]
variable {T : Type u} [CommRing T] [Algebra K T]
theorem homToPt_comp_coe (φ : Γ(G.schemeKer n, ⊤) ⟶ CommRingCat.of T)
    (hφ : kerAlgMap G n ≫ φ = CommRingCat.ofHom (algebraMap K T))
    {T' : Type u} [CommRing T'] [Algebra K T'] (j : CommRingCat.of T ⟶ CommRingCat.of T')
    (hj : kerAlgMap G n ≫ (φ ≫ j) = CommRingCat.ofHom (algebraMap K T')) :
    (homToPt G n (φ ≫ j) hj).1 = Spec.map j ≫ (homToPt G n φ hφ).1
AbelianVarieties.NOSProofs.TorsionSplittingField.TorsionFieldDescent.eq_of_homToPt_coe_eq
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_GoodReductionJacobian_RelativeGroupLaw_exists_isGalois_forall_isTorsionPoint_exists_specMap_comp_eq_and_forall_eq_one.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace AbelianVarieties.NOSProofs.TorsionSplittingField
namespace TorsionFieldDescent
variable {K : Type u} [Field K] {A : Scheme.{u}} {f : A ⟶ Spec (CommRingCat.of K)}
section Kernel
variable (G : RelativeGroupLaw K f) (n : ℕ) [IsAffine (G.schemeKer n)]
variable {T : Type u} [CommRing T] [Algebra K T]
theorem eq_of_homToPt_coe_eq {φ φ' : Γ(G.schemeKer n, ⊤) ⟶ CommRingCat.of T}
    (hφ : kerAlgMap G n ≫ φ = CommRingCat.ofHom (algebraMap K T))
    (hφ' : kerAlgMap G n ≫ φ' = CommRingCat.ofHom (algebraMap K T))
    (h : (homToPt G n φ hφ).1 = (homToPt G n φ' hφ').1) : φ = φ'
AbelianVarieties.NOSProofs.TorsionSplittingField.TorsionFieldDescent.exists_homToPt_eq
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_GoodReductionJacobian_RelativeGroupLaw_exists_isGalois_forall_isTorsionPoint_exists_specMap_comp_eq_and_forall_eq_one.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace AbelianVarieties.NOSProofs.TorsionSplittingField
namespace TorsionFieldDescent
variable {K : Type u} [Field K] {A : Scheme.{u}} {f : A ⟶ Spec (CommRingCat.of K)}
section Kernel
variable (G : RelativeGroupLaw K f) (n : ℕ) [IsAffine (G.schemeKer n)]
variable {T : Type u} [CommRing T] [Algebra K T]
theorem exists_homToPt_eq (x : SchemeHomOver (Spec.map (CommRingCat.ofHom (algebraMap K T))) f)
    (hx : G.IsTorsionPoint (Spec.map (CommRingCat.ofHom (algebraMap K T))) n x) :
    ∃ (φ : Γ(G.schemeKer n, ⊤) ⟶ CommRingCat.of T)
      (hφ : kerAlgMap G n ≫ φ = CommRingCat.ofHom (algebraMap K T)), homToPt G n φ hφ = x
AbelianVarieties.NOSProofs.TorsionSplittingField.TorsionFieldDescent.isFinite_schemeKerStr
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_GoodReductionJacobian_RelativeGroupLaw_exists_isGalois_forall_isTorsionPoint_exists_specMap_comp_eq_and_forall_eq_one.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace AbelianVarieties.NOSProofs.TorsionSplittingField
namespace TorsionFieldDescent
variable {K : Type u} [Field K] {A : Scheme.{u}} {f : A ⟶ Spec (CommRingCat.of K)}
section Structure
variable (G : RelativeGroupLaw K f)
  (hcomm : ∀ {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of K)) (x y : SchemeHomOver t f),
    G.mul t x y = G.mul t y x)
  (hA : AbelianSchemePropertyBundle K f) (n : ℕ) (hn : IsUnit (n : K))
include hcomm hA hn in
theorem isFinite_schemeKerStr : IsFinite (G.schemeKerStr n)
AbelianVarieties.NOSProofs.TorsionSplittingField.TorsionFieldDescent.isAffine_schemeKer
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_GoodReductionJacobian_RelativeGroupLaw_exists_isGalois_forall_isTorsionPoint_exists_specMap_comp_eq_and_forall_eq_one.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace AbelianVarieties.NOSProofs.TorsionSplittingField
namespace TorsionFieldDescent
variable {K : Type u} [Field K] {A : Scheme.{u}} {f : A ⟶ Spec (CommRingCat.of K)}
section Structure
variable (G : RelativeGroupLaw K f)
  (hcomm : ∀ {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of K)) (x y : SchemeHomOver t f),
    G.mul t x y = G.mul t y x)
  (hA : AbelianSchemePropertyBundle K f) (n : ℕ) (hn : IsUnit (n : K))
include hcomm hA hn in
theorem isAffine_schemeKer : IsAffine (G.schemeKer n)
AbelianVarieties.NOSProofs.TorsionSplittingField.TorsionFieldDescent.formallyUnramified_schemeKerStr
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_GoodReductionJacobian_RelativeGroupLaw_exists_isGalois_forall_isTorsionPoint_exists_specMap_comp_eq_and_forall_eq_one.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace AbelianVarieties.NOSProofs.TorsionSplittingField
namespace TorsionFieldDescent
variable {K : Type u} [Field K] {A : Scheme.{u}} {f : A ⟶ Spec (CommRingCat.of K)}
section Structure
variable (G : RelativeGroupLaw K f)
  (hcomm : ∀ {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of K)) (x y : SchemeHomOver t f),
    G.mul t x y = G.mul t y x)
  (hA : AbelianSchemePropertyBundle K f) (n : ℕ) (hn : IsUnit (n : K))
include hcomm hn in
theorem formallyUnramified_schemeKerStr (d : ℕ) [SmoothOfRelativeDimension d f] :
    FormallyUnramified (G.schemeKerStr n)
AbelianVarieties.NOSProofs.TorsionSplittingField.TorsionFieldDescent.finite_kerAlgMap
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_GoodReductionJacobian_RelativeGroupLaw_exists_isGalois_forall_isTorsionPoint_exists_specMap_comp_eq_and_forall_eq_one.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace AbelianVarieties.NOSProofs.TorsionSplittingField
namespace TorsionFieldDescent
variable {K : Type u} [Field K] {A : Scheme.{u}} {f : A ⟶ Spec (CommRingCat.of K)}
section Structure
variable (G : RelativeGroupLaw K f)
  (hcomm : ∀ {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of K)) (x y : SchemeHomOver t f),
    G.mul t x y = G.mul t y x)
  (hA : AbelianSchemePropertyBundle K f) (n : ℕ) (hn : IsUnit (n : K))
theorem finite_kerAlgMap [IsAffine (G.schemeKer n)] (hfin : IsFinite (G.schemeKerStr n)) :
    (kerAlgMap G n).hom.Finite
AbelianVarieties.NOSProofs.TorsionSplittingField.TorsionFieldDescent.formallyUnramified_kerAlgMap
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_GoodReductionJacobian_RelativeGroupLaw_exists_isGalois_forall_isTorsionPoint_exists_specMap_comp_eq_and_forall_eq_one.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace AbelianVarieties.NOSProofs.TorsionSplittingField
namespace TorsionFieldDescent
variable {K : Type u} [Field K] {A : Scheme.{u}} {f : A ⟶ Spec (CommRingCat.of K)}
section Structure
variable (G : RelativeGroupLaw K f)
  (hcomm : ∀ {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of K)) (x y : SchemeHomOver t f),
    G.mul t x y = G.mul t y x)
  (hA : AbelianSchemePropertyBundle K f) (n : ℕ) (hn : IsUnit (n : K))
theorem formallyUnramified_kerAlgMap [IsAffine (G.schemeKer n)]
    (h : FormallyUnramified (G.schemeKerStr n)) : (kerAlgMap G n).hom.FormallyUnramified
AbelianVarieties.NOSProofs.TorsionSplittingField.TorsionFieldDescent.torsionCoords

All coordinates of torsion points over the ambient field.

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_GoodReductionJacobian_RelativeGroupLaw_exists_isGalois_forall_isTorsionPoint_exists_specMap_comp_eq_and_forall_eq_one.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace AbelianVarieties.NOSProofs.TorsionSplittingField
namespace TorsionFieldDescent
variable {K : Type u} [Field K] {A : Scheme.{u}} {f : A ⟶ Spec (CommRingCat.of K)}
section Field
variable (G : RelativeGroupLaw K f) (n : ℕ) [IsAffine (G.schemeKer n)]
  (Ω : Type u) [Field Ω] [Algebra K Ω]
def torsionCoords : Set Ω
AbelianVarieties.NOSProofs.TorsionSplittingField.TorsionFieldDescent.torsionField

The intermediate field generated by torsion coordinates.

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_GoodReductionJacobian_RelativeGroupLaw_exists_isGalois_forall_isTorsionPoint_exists_specMap_comp_eq_and_forall_eq_one.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace AbelianVarieties.NOSProofs.TorsionSplittingField
namespace TorsionFieldDescent
variable {K : Type u} [Field K] {A : Scheme.{u}} {f : A ⟶ Spec (CommRingCat.of K)}
section Field
variable (G : RelativeGroupLaw K f) (n : ℕ) [IsAffine (G.schemeKer n)]
  (Ω : Type u) [Field Ω] [Algebra K Ω]
def torsionField : IntermediateField K Ω
AbelianVarieties.NOSProofs.TorsionSplittingField.TorsionFieldDescent.image_torsionCoords_subset
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_GoodReductionJacobian_RelativeGroupLaw_exists_isGalois_forall_isTorsionPoint_exists_specMap_comp_eq_and_forall_eq_one.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace AbelianVarieties.NOSProofs.TorsionSplittingField
namespace TorsionFieldDescent
variable {K : Type u} [Field K] {A : Scheme.{u}} {f : A ⟶ Spec (CommRingCat.of K)}
section Field
variable (G : RelativeGroupLaw K f) (n : ℕ) [IsAffine (G.schemeKer n)]
  (Ω : Type u) [Field Ω] [Algebra K Ω]
theorem image_torsionCoords_subset (σ : Ω ≃ₐ[K] Ω) :
    σ '' torsionCoords G n Ω ⊆ torsionCoords G n Ω
AbelianVarieties.NOSProofs.TorsionSplittingField.TorsionFieldDescent.normal_torsionField
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_GoodReductionJacobian_RelativeGroupLaw_exists_isGalois_forall_isTorsionPoint_exists_specMap_comp_eq_and_forall_eq_one.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace AbelianVarieties.NOSProofs.TorsionSplittingField
namespace TorsionFieldDescent
variable {K : Type u} [Field K] {A : Scheme.{u}} {f : A ⟶ Spec (CommRingCat.of K)}
section Field
variable (G : RelativeGroupLaw K f) (n : ℕ) [IsAffine (G.schemeKer n)]
  (Ω : Type u) [Field Ω] [Algebra K Ω]
theorem normal_torsionField [Normal K Ω] : Normal K (torsionField G n Ω)
AbelianVarieties.NOSProofs.TorsionSplittingField.TorsionFieldDescent.restrictHom

Restrict torsion-point coordinates to their generated field.

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_GoodReductionJacobian_RelativeGroupLaw_exists_isGalois_forall_isTorsionPoint_exists_specMap_comp_eq_and_forall_eq_one.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace AbelianVarieties.NOSProofs.TorsionSplittingField
namespace TorsionFieldDescent
variable {K : Type u} [Field K] {A : Scheme.{u}} {f : A ⟶ Spec (CommRingCat.of K)}
section Field
variable (G : RelativeGroupLaw K f) (n : ℕ) [IsAffine (G.schemeKer n)]
  (Ω : Type u) [Field Ω] [Algebra K Ω]
def restrictHom (φ : Γ(G.schemeKer n, ⊤) ⟶ CommRingCat.of Ω)
    (hφ : kerAlgMap G n ≫ φ = CommRingCat.ofHom (algebraMap K Ω)) :
    Γ(G.schemeKer n, ⊤) ⟶ CommRingCat.of (torsionField G n Ω)
AbelianVarieties.NOSProofs.TorsionSplittingField.TorsionFieldDescent.restrictHom_comp
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_GoodReductionJacobian_RelativeGroupLaw_exists_isGalois_forall_isTorsionPoint_exists_specMap_comp_eq_and_forall_eq_one.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace AbelianVarieties.NOSProofs.TorsionSplittingField
namespace TorsionFieldDescent
variable {K : Type u} [Field K] {A : Scheme.{u}} {f : A ⟶ Spec (CommRingCat.of K)}
section Field
variable (G : RelativeGroupLaw K f) (n : ℕ) [IsAffine (G.schemeKer n)]
  (Ω : Type u) [Field Ω] [Algebra K Ω]
theorem restrictHom_comp (φ : Γ(G.schemeKer n, ⊤) ⟶ CommRingCat.of Ω)
    (hφ : kerAlgMap G n ≫ φ = CommRingCat.ofHom (algebraMap K Ω)) :
    restrictHom G n Ω φ hφ ≫ CommRingCat.ofHom (algebraMap (torsionField G n Ω) Ω) = φ
AbelianVarieties.NOSProofs.TorsionSplittingField.TorsionFieldDescent.kerAlgMap_comp_restrictHom
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_GoodReductionJacobian_RelativeGroupLaw_exists_isGalois_forall_isTorsionPoint_exists_specMap_comp_eq_and_forall_eq_one.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace AbelianVarieties.NOSProofs.TorsionSplittingField
namespace TorsionFieldDescent
variable {K : Type u} [Field K] {A : Scheme.{u}} {f : A ⟶ Spec (CommRingCat.of K)}
section Field
variable (G : RelativeGroupLaw K f) (n : ℕ) [IsAffine (G.schemeKer n)]
  (Ω : Type u) [Field Ω] [Algebra K Ω]
theorem kerAlgMap_comp_restrictHom (φ : Γ(G.schemeKer n, ⊤) ⟶ CommRingCat.of Ω)
    (hφ : kerAlgMap G n ≫ φ = CommRingCat.ofHom (algebraMap K Ω)) :
    kerAlgMap G n ≫ restrictHom G n Ω φ hφ =
      CommRingCat.ofHom (algebraMap K (torsionField G n Ω))
AbelianVarieties.NOSProofs.TorsionSplittingField.TorsionFieldDescent.exists_descent
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_GoodReductionJacobian_RelativeGroupLaw_exists_isGalois_forall_isTorsionPoint_exists_specMap_comp_eq_and_forall_eq_one.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace AbelianVarieties.NOSProofs.TorsionSplittingField
namespace TorsionFieldDescent
variable {K : Type u} [Field K] {A : Scheme.{u}} {f : A ⟶ Spec (CommRingCat.of K)}
section Field
variable (G : RelativeGroupLaw K f) (n : ℕ) [IsAffine (G.schemeKer n)]
  (Ω : Type u) [Field Ω] [Algebra K Ω]
theorem exists_descent (x : SchemeHomOver (Spec.map (CommRingCat.ofHom (algebraMap K Ω))) f)
    (hx : G.IsTorsionPoint (Spec.map (CommRingCat.ofHom (algebraMap K Ω))) n x) :
    ∃ z : SchemeHomOver
        (Spec.map (CommRingCat.ofHom (algebraMap K (torsionField G n Ω)))) f,
      G.IsTorsionPoint (Spec.map (CommRingCat.ofHom (algebraMap K (torsionField G n Ω)))) n z ∧
      Spec.map (CommRingCat.ofHom (algebraMap (torsionField G n Ω) Ω)) ≫ z.1 = x.1
AbelianVarieties.NOSProofs.TorsionSplittingField.TorsionFieldDescent.eq_one_of_forall_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_GoodReductionJacobian_RelativeGroupLaw_exists_isGalois_forall_isTorsionPoint_exists_specMap_comp_eq_and_forall_eq_one.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace AbelianVarieties.NOSProofs.TorsionSplittingField
namespace TorsionFieldDescent
variable {K : Type u} [Field K] {A : Scheme.{u}} {f : A ⟶ Spec (CommRingCat.of K)}
section Field
variable (G : RelativeGroupLaw K f) (n : ℕ) [IsAffine (G.schemeKer n)]
  (Ω : Type u) [Field Ω] [Algebra K Ω]
theorem eq_one_of_forall_comp_eq [Normal K Ω] (τ : torsionField G n Ω ≃ₐ[K] torsionField G n Ω)
    (hτ : ∀ z : SchemeHomOver
        (Spec.map (CommRingCat.ofHom (algebraMap K (torsionField G n Ω)))) f,
      G.IsTorsionPoint (Spec.map (CommRingCat.ofHom (algebraMap K (torsionField G n Ω)))) n z →
      Spec.map (CommRingCat.ofHom (τ : torsionField G n Ω →+* torsionField G n Ω)) ≫ z.1 = z.1) :
    τ = 1
GoodReductionJacobian.RelativeGroupLaw.exists_isGalois_forall_isTorsionPoint_exists_specMap_comp_eq_and_forall_eq_one
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_GoodReductionJacobian_RelativeGroupLaw_exists_isGalois_forall_isTorsionPoint_exists_specMap_comp_eq_and_forall_eq_one.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
open AbelianVarieties.NOSProofs.TorsionSplittingField.TorsionFieldDescent
namespace GoodReductionJacobian.RelativeGroupLaw
theorem exists_isGalois_forall_isTorsionPoint_exists_specMap_comp_eq_and_forall_eq_one (K : Type u)
    [Field K] {A : Scheme.{u}} {f : A ⟶ Spec (CommRingCat.of K)}
    (G : RelativeGroupLaw K f)
    (hcomm : ∀ {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of K)) (x y : SchemeHomOver t f),
      G.mul t x y = G.mul t y x)
    (hA : AbelianSchemePropertyBundle K f) (d : ℕ) [SmoothOfRelativeDimension d f]
    (n : ℕ) (hn : (n : K) ≠ 0)
    (Ω : Type u) [Field Ω] [Algebra K Ω] [Normal K Ω] :
    ∃ L : IntermediateField K Ω, FiniteDimensional K L ∧ IsGalois K L ∧
      (∀ x : SchemeHomOver (Spec.map (CommRingCat.ofHom (algebraMap K Ω))) f,
        G.IsTorsionPoint (Spec.map (CommRingCat.ofHom (algebraMap K Ω))) n x →
        ∃ z : SchemeHomOver (Spec.map (CommRingCat.ofHom (algebraMap K L))) f,
          G.IsTorsionPoint (Spec.map (CommRingCat.ofHom (algebraMap K L))) n z ∧
          Spec.map (CommRingCat.ofHom (algebraMap L Ω)) ≫ z.1 = x.1) ∧
      (∀ τ : L ≃ₐ[K] L,
        (∀ z : SchemeHomOver (Spec.map (CommRingCat.ofHom (algebraMap K L))) f,
          G.IsTorsionPoint (Spec.map (CommRingCat.ofHom (algebraMap K L))) n z →
          Spec.map (CommRingCat.ofHom (τ : L →+* L)) ≫ z.1 = z.1) → τ = 1)
AbelianVarieties.NOSProofs.TorsionSectionRigidity.TorsionRigidity.preconnectedSpace_of_forall_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_GoodReductionJacobian_RelativeGroupLaw_eq_of_isTorsionPoint_of_comp_eq.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace AbelianVarieties.NOSProofs.TorsionSectionRigidity
namespace TorsionRigidity
theorem preconnectedSpace_of_forall_specializes {α : Type*} [TopologicalSpace α] (c : α)
    (hc : ∀ x : α, x ⤳ c) : PreconnectedSpace α
AbelianVarieties.NOSProofs.TorsionSectionRigidity.TorsionRigidity.preconnectedSpace_spec_of_isLocalRing
Source context 6 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_GoodReductionJacobian_RelativeGroupLaw_eq_of_isTorsionPoint_of_comp_eq.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace AbelianVarieties.NOSProofs.TorsionSectionRigidity
namespace TorsionRigidity
instance preconnectedSpace_spec_of_isLocalRing (O : Type u) [CommRing O] [IsLocalRing O] :
    PreconnectedSpace (Spec (CommRingCat.of O))
AbelianVarieties.NOSProofs.TorsionSectionRigidity.TorsionRigidity.connectedSpace_spec_of_isLocalRing
Source context 6 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_GoodReductionJacobian_RelativeGroupLaw_eq_of_isTorsionPoint_of_comp_eq.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace AbelianVarieties.NOSProofs.TorsionSectionRigidity
namespace TorsionRigidity
instance connectedSpace_spec_of_isLocalRing (O : Type u) [CommRing O] [IsLocalRing O] :
    ConnectedSpace (Spec (CommRingCat.of O)) where
  toNonempty := ⟨IsLocalRing.closedPoint O⟩
AbelianVarieties.NOSProofs.TorsionSectionRigidity.TorsionRigidity.coe_nsmul_eq_comp_schemeNsmul
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_GoodReductionJacobian_RelativeGroupLaw_eq_of_isTorsionPoint_of_comp_eq.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace AbelianVarieties.NOSProofs.TorsionSectionRigidity
namespace TorsionRigidity
section Torsion
variable {R : Type u} [CommRing R] {A : Scheme.{u}} {f : A ⟶ Spec (CommRingCat.of R)}
open AlgebraicCurves.Geometry.AbelianSchemes.Theorems.Proofs in
open RelativeGroupLaw_formallyUnramified_schemeNsmul_of_isUnit_of_isLocalRing in
theorem coe_nsmul_eq_comp_schemeNsmul (G : RelativeGroupLaw R f) {T : Scheme.{u}}
    (t : T ⟶ Spec (CommRingCat.of R)) (n : ℕ) (x : SchemeHomOver t f) :
    (G.nsmul t n x).1 = x.1 ≫ G.schemeNsmul n
AbelianVarieties.NOSProofs.TorsionSectionRigidity.TorsionRigidity.coe_comp_schemeNsmul_of_isTorsionPoint
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_GoodReductionJacobian_RelativeGroupLaw_eq_of_isTorsionPoint_of_comp_eq.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace AbelianVarieties.NOSProofs.TorsionSectionRigidity
namespace TorsionRigidity
section Torsion
variable {R : Type u} [CommRing R] {A : Scheme.{u}} {f : A ⟶ Spec (CommRingCat.of R)}
theorem coe_comp_schemeNsmul_of_isTorsionPoint (G : RelativeGroupLaw R f) {T : Scheme.{u}}
    (t : T ⟶ Spec (CommRingCat.of R)) (n : ℕ) {x : SchemeHomOver t f}
    (hx : G.IsTorsionPoint t n x) :
    x.1 ≫ G.schemeNsmul n = (G.one t).1
AbelianVarieties.NOSProofs.TorsionSectionRigidity.TorsionRigidity.eq_of_isTorsionPoint_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_GoodReductionJacobian_RelativeGroupLaw_eq_of_isTorsionPoint_of_comp_eq.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace AbelianVarieties.NOSProofs.TorsionSectionRigidity
namespace TorsionRigidity
section Torsion
variable {R : Type u} [CommRing R] {A : Scheme.{u}} {f : A ⟶ Spec (CommRingCat.of R)}
variable [IsLocalRing R]
theorem eq_of_isTorsionPoint_of_comp_eq [IsSeparated f] [LocallyOfFiniteType f]
    (G : RelativeGroupLaw R f)
    (hcomm : ∀ {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of R)) (x y : SchemeHomOver t f),
      G.mul t x y = G.mul t y x)
    (n : ℕ) (hn : IsUnit (n : R))
    {T : Scheme.{u}} [PreconnectedSpace T] (t : T ⟶ Spec (CommRingCat.of R))
    (x y : SchemeHomOver t f) (hx : G.IsTorsionPoint t n x) (hy : G.IsTorsionPoint t n y)
    {Z : Scheme.{u}} [Nonempty Z] (p : Z ⟶ T) (hp : p ≫ x.1 = p ≫ y.1) :
    x = y
AbelianVarieties.NOSProofs.TorsionSectionRigidity.TorsionRigidity.eq_of_isTorsionPoint_of_residue_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_GoodReductionJacobian_RelativeGroupLaw_eq_of_isTorsionPoint_of_comp_eq.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace AbelianVarieties.NOSProofs.TorsionSectionRigidity
namespace TorsionRigidity
section Torsion
variable {R : Type u} [CommRing R] {A : Scheme.{u}} {f : A ⟶ Spec (CommRingCat.of R)}
variable [IsLocalRing R]
theorem eq_of_isTorsionPoint_of_residue_comp_eq [IsSeparated f] [LocallyOfFiniteType f]
    (G : RelativeGroupLaw R f)
    (hcomm : ∀ {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of R)) (x y : SchemeHomOver t f),
      G.mul t x y = G.mul t y x)
    (n : ℕ) (hn : IsUnit (n : R))
    (O : Type u) [CommRing O] [IsLocalRing O]
    (t : Spec (CommRingCat.of O) ⟶ Spec (CommRingCat.of R))
    (x y : SchemeHomOver t f) (hx : G.IsTorsionPoint t n x) (hy : G.IsTorsionPoint t n y)
    (hres : Spec.map (CommRingCat.ofHom (IsLocalRing.residue O)) ≫ x.1 =
      Spec.map (CommRingCat.ofHom (IsLocalRing.residue O)) ≫ y.1) :
    x = y
GoodReductionJacobian.RelativeGroupLaw.eq_of_isTorsionPoint_of_comp_eq
Source context 6 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_GoodReductionJacobian_RelativeGroupLaw_eq_of_isTorsionPoint_of_comp_eq.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
open AbelianVarieties.NOSProofs.TorsionSectionRigidity
namespace GoodReductionJacobian.RelativeGroupLaw
theorem eq_of_isTorsionPoint_of_comp_eq
    {R : Type u} [CommRing R] [IsLocalRing R] {A : Scheme.{u}}
    {f : A ⟶ Spec (CommRingCat.of R)} [IsSeparated f] [LocallyOfFiniteType f]
    (G : RelativeGroupLaw R f)
    (hcomm : ∀ {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of R)) (x y : SchemeHomOver t f),
      G.mul t x y = G.mul t y x)
    (n : ℕ) (hn : IsUnit (n : R))
    {T : Scheme.{u}} [PreconnectedSpace T] (t : T ⟶ Spec (CommRingCat.of R))
    (x y : SchemeHomOver t f) (hx : G.IsTorsionPoint t n x) (hy : G.IsTorsionPoint t n y)
    {Z : Scheme.{u}} [Nonempty Z] (p : Z ⟶ T) (hp : p ≫ x.1 = p ≫ y.1) :
    x = y
AbelianVarieties.NOSProofs.SmoothTorsionSpecialization.GoodReductionJacobian.RelativeGroupLaw.TorsionSpecialization.β

The tensor-product map induced by the two compatible embeddings into the fraction field.

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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_specialize_isTorsionPoint_of_smooth.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.
-/
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.NeronModelInfra
open _root_.GoodReductionJacobian
open scoped TensorProduct nonZeroDivisors
universe u
namespace AbelianVarieties.NOSProofs.SmoothTorsionSpecialization
namespace GoodReductionJacobian
open _root_.GoodReductionJacobian
namespace RelativeGroupLaw
open _root_.GoodReductionJacobian.RelativeGroupLaw
namespace TorsionSpecialization
open _root_.GoodReductionJacobian.RelativeGroupLaw
open _root_.GoodReductionJacobian
section GenericFibreOfBase
variable (R : Type u) [CommRing R]
  (K : Type u) [Field K] [Algebra R K]
  (R' : Type u) [CommRing R'] [Algebra R R']
  (L : Type u) [Field L] [Algebra R' L] [Algebra K L] [Algebra R L]
  [IsScalarTower R R' L] [IsScalarTower R K L]
local notation "P" => R' ⊗[R] K
local notation "tR'" => Spec.map (CommRingCat.ofHom (algebraMap R R'))
local notation "ιK" => Spec.map (CommRingCat.ofHom (algebraMap R K))
def β : P →ₐ[R] L
AbelianVarieties.NOSProofs.SmoothTorsionSpecialization.GoodReductionJacobian.RelativeGroupLaw.TorsionSpecialization.β_tmul
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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_specialize_isTorsionPoint_of_smooth.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.
-/
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.NeronModelInfra
open _root_.GoodReductionJacobian
open scoped TensorProduct nonZeroDivisors
universe u
namespace AbelianVarieties.NOSProofs.SmoothTorsionSpecialization
namespace GoodReductionJacobian
open _root_.GoodReductionJacobian
namespace RelativeGroupLaw
open _root_.GoodReductionJacobian.RelativeGroupLaw
namespace TorsionSpecialization
open _root_.GoodReductionJacobian.RelativeGroupLaw
open _root_.GoodReductionJacobian
section GenericFibreOfBase
variable (R : Type u) [CommRing R]
  (K : Type u) [Field K] [Algebra R K]
  (R' : Type u) [CommRing R'] [Algebra R R']
  (L : Type u) [Field L] [Algebra R' L] [Algebra K L] [Algebra R L]
  [IsScalarTower R R' L] [IsScalarTower R K L]
local notation "P" => R' ⊗[R] K
local notation "tR'" => Spec.map (CommRingCat.ofHom (algebraMap R R'))
local notation "ιK" => Spec.map (CommRingCat.ofHom (algebraMap R K))
theorem β_tmul (r' : R') (k : K) : β R K R' L (r' ⊗ₜ k) = algebraMap R' L r' * algebraMap K L k
AbelianVarieties.NOSProofs.SmoothTorsionSpecialization.GoodReductionJacobian.RelativeGroupLaw.TorsionSpecialization.β_comp_includeLeft
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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_specialize_isTorsionPoint_of_smooth.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.
-/
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.NeronModelInfra
open _root_.GoodReductionJacobian
open scoped TensorProduct nonZeroDivisors
universe u
namespace AbelianVarieties.NOSProofs.SmoothTorsionSpecialization
namespace GoodReductionJacobian
open _root_.GoodReductionJacobian
namespace RelativeGroupLaw
open _root_.GoodReductionJacobian.RelativeGroupLaw
namespace TorsionSpecialization
open _root_.GoodReductionJacobian.RelativeGroupLaw
open _root_.GoodReductionJacobian
section GenericFibreOfBase
variable (R : Type u) [CommRing R]
  (K : Type u) [Field K] [Algebra R K]
  (R' : Type u) [CommRing R'] [Algebra R R']
  (L : Type u) [Field L] [Algebra R' L] [Algebra K L] [Algebra R L]
  [IsScalarTower R R' L] [IsScalarTower R K L]
local notation "P" => R' ⊗[R] K
local notation "tR'" => Spec.map (CommRingCat.ofHom (algebraMap R R'))
local notation "ιK" => Spec.map (CommRingCat.ofHom (algebraMap R K))
theorem β_comp_includeLeft :
    (β R K R' L).toRingHom.comp Algebra.TensorProduct.includeLeftRingHom = algebraMap R' L
AbelianVarieties.NOSProofs.SmoothTorsionSpecialization.GoodReductionJacobian.RelativeGroupLaw.TorsionSpecialization.β_comp_includeRight
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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_specialize_isTorsionPoint_of_smooth.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.
-/
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.NeronModelInfra
open _root_.GoodReductionJacobian
open scoped TensorProduct nonZeroDivisors
universe u
namespace AbelianVarieties.NOSProofs.SmoothTorsionSpecialization
namespace GoodReductionJacobian
open _root_.GoodReductionJacobian
namespace RelativeGroupLaw
open _root_.GoodReductionJacobian.RelativeGroupLaw
namespace TorsionSpecialization
open _root_.GoodReductionJacobian.RelativeGroupLaw
open _root_.GoodReductionJacobian
section GenericFibreOfBase
variable (R : Type u) [CommRing R]
  (K : Type u) [Field K] [Algebra R K]
  (R' : Type u) [CommRing R'] [Algebra R R']
  (L : Type u) [Field L] [Algebra R' L] [Algebra K L] [Algebra R L]
  [IsScalarTower R R' L] [IsScalarTower R K L]
local notation "P" => R' ⊗[R] K
local notation "tR'" => Spec.map (CommRingCat.ofHom (algebraMap R R'))
local notation "ιK" => Spec.map (CommRingCat.ofHom (algebraMap R K))
theorem β_comp_includeRight :
    (β R K R' L).toRingHom.comp
      ((Algebra.TensorProduct.includeRight : K →ₐ[R] P) : K →+* P) = algebraMap K L
AbelianVarieties.NOSProofs.SmoothTorsionSpecialization.GoodReductionJacobian.RelativeGroupLaw.TorsionSpecialization.isUnit_includeLeft
Source context 23 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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_specialize_isTorsionPoint_of_smooth.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.
-/
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.NeronModelInfra
open _root_.GoodReductionJacobian
open scoped TensorProduct nonZeroDivisors
universe u
namespace AbelianVarieties.NOSProofs.SmoothTorsionSpecialization
namespace GoodReductionJacobian
open _root_.GoodReductionJacobian
namespace RelativeGroupLaw
open _root_.GoodReductionJacobian.RelativeGroupLaw
namespace TorsionSpecialization
open _root_.GoodReductionJacobian.RelativeGroupLaw
open _root_.GoodReductionJacobian
section GenericFibreOfBase
variable (R : Type u) [CommRing R]
  (K : Type u) [Field K] [Algebra R K]
  (R' : Type u) [CommRing R'] [Algebra R R']
  (L : Type u) [Field L] [Algebra R' L] [Algebra K L] [Algebra R L]
  [IsScalarTower R R' L] [IsScalarTower R K L]
local notation "P" => R' ⊗[R] K
local notation "tR'" => Spec.map (CommRingCat.ofHom (algebraMap R R'))
local notation "ιK" => Spec.map (CommRingCat.ofHom (algebraMap R K))
variable [IsDomain R] [IsFractionRing R K]
theorem isUnit_includeLeft (m : Algebra.algebraMapSubmonoid R' R⁰) :
    IsUnit (Algebra.TensorProduct.includeLeftRingHom (R := R) (B := K) (m : R'))
AbelianVarieties.NOSProofs.SmoothTorsionSpecialization.GoodReductionJacobian.RelativeGroupLaw.TorsionSpecialization.α

The inverse map obtained from the localization universal property.

Source context 24 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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_specialize_isTorsionPoint_of_smooth.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.
-/
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.NeronModelInfra
open _root_.GoodReductionJacobian
open scoped TensorProduct nonZeroDivisors
universe u
namespace AbelianVarieties.NOSProofs.SmoothTorsionSpecialization
namespace GoodReductionJacobian
open _root_.GoodReductionJacobian
namespace RelativeGroupLaw
open _root_.GoodReductionJacobian.RelativeGroupLaw
namespace TorsionSpecialization
open _root_.GoodReductionJacobian.RelativeGroupLaw
open _root_.GoodReductionJacobian
section GenericFibreOfBase
variable (R : Type u) [CommRing R]
  (K : Type u) [Field K] [Algebra R K]
  (R' : Type u) [CommRing R'] [Algebra R R']
  (L : Type u) [Field L] [Algebra R' L] [Algebra K L] [Algebra R L]
  [IsScalarTower R R' L] [IsScalarTower R K L]
local notation "P" => R' ⊗[R] K
local notation "tR'" => Spec.map (CommRingCat.ofHom (algebraMap R R'))
local notation "ιK" => Spec.map (CommRingCat.ofHom (algebraMap R K))
variable [IsDomain R] [IsFractionRing R K]
variable [IsLocalization (Algebra.algebraMapSubmonoid R' R⁰) L]
def α : L →+* P
AbelianVarieties.NOSProofs.SmoothTorsionSpecialization.GoodReductionJacobian.RelativeGroupLaw.TorsionSpecialization.α_algebraMap
Source context 25 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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_specialize_isTorsionPoint_of_smooth.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.
-/
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.NeronModelInfra
open _root_.GoodReductionJacobian
open scoped TensorProduct nonZeroDivisors
universe u
namespace AbelianVarieties.NOSProofs.SmoothTorsionSpecialization
namespace GoodReductionJacobian
open _root_.GoodReductionJacobian
namespace RelativeGroupLaw
open _root_.GoodReductionJacobian.RelativeGroupLaw
namespace TorsionSpecialization
open _root_.GoodReductionJacobian.RelativeGroupLaw
open _root_.GoodReductionJacobian
section GenericFibreOfBase
variable (R : Type u) [CommRing R]
  (K : Type u) [Field K] [Algebra R K]
  (R' : Type u) [CommRing R'] [Algebra R R']
  (L : Type u) [Field L] [Algebra R' L] [Algebra K L] [Algebra R L]
  [IsScalarTower R R' L] [IsScalarTower R K L]
local notation "P" => R' ⊗[R] K
local notation "tR'" => Spec.map (CommRingCat.ofHom (algebraMap R R'))
local notation "ιK" => Spec.map (CommRingCat.ofHom (algebraMap R K))
variable [IsDomain R] [IsFractionRing R K]
variable [IsLocalization (Algebra.algebraMapSubmonoid R' R⁰) L]
omit [Algebra K L] [Algebra R L] [IsScalarTower R R' L] [IsScalarTower R K L] in
theorem α_algebraMap (r' : R') : α R K R' L (algebraMap R' L r') = r' ⊗ₜ 1
AbelianVarieties.NOSProofs.SmoothTorsionSpecialization.GoodReductionJacobian.RelativeGroupLaw.TorsionSpecialization.β_comp_α
Source context 24 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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_specialize_isTorsionPoint_of_smooth.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.
-/
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.NeronModelInfra
open _root_.GoodReductionJacobian
open scoped TensorProduct nonZeroDivisors
universe u
namespace AbelianVarieties.NOSProofs.SmoothTorsionSpecialization
namespace GoodReductionJacobian
open _root_.GoodReductionJacobian
namespace RelativeGroupLaw
open _root_.GoodReductionJacobian.RelativeGroupLaw
namespace TorsionSpecialization
open _root_.GoodReductionJacobian.RelativeGroupLaw
open _root_.GoodReductionJacobian
section GenericFibreOfBase
variable (R : Type u) [CommRing R]
  (K : Type u) [Field K] [Algebra R K]
  (R' : Type u) [CommRing R'] [Algebra R R']
  (L : Type u) [Field L] [Algebra R' L] [Algebra K L] [Algebra R L]
  [IsScalarTower R R' L] [IsScalarTower R K L]
local notation "P" => R' ⊗[R] K
local notation "tR'" => Spec.map (CommRingCat.ofHom (algebraMap R R'))
local notation "ιK" => Spec.map (CommRingCat.ofHom (algebraMap R K))
variable [IsDomain R] [IsFractionRing R K]
variable [IsLocalization (Algebra.algebraMapSubmonoid R' R⁰) L]
theorem β_comp_α : (β R K R' L).toRingHom.comp (α R K R' L) = RingHom.id L
AbelianVarieties.NOSProofs.SmoothTorsionSpecialization.GoodReductionJacobian.RelativeGroupLaw.TorsionSpecialization.α_comp_algebraMap
Source context 24 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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_specialize_isTorsionPoint_of_smooth.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.
-/
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.NeronModelInfra
open _root_.GoodReductionJacobian
open scoped TensorProduct nonZeroDivisors
universe u
namespace AbelianVarieties.NOSProofs.SmoothTorsionSpecialization
namespace GoodReductionJacobian
open _root_.GoodReductionJacobian
namespace RelativeGroupLaw
open _root_.GoodReductionJacobian.RelativeGroupLaw
namespace TorsionSpecialization
open _root_.GoodReductionJacobian.RelativeGroupLaw
open _root_.GoodReductionJacobian
section GenericFibreOfBase
variable (R : Type u) [CommRing R]
  (K : Type u) [Field K] [Algebra R K]
  (R' : Type u) [CommRing R'] [Algebra R R']
  (L : Type u) [Field L] [Algebra R' L] [Algebra K L] [Algebra R L]
  [IsScalarTower R R' L] [IsScalarTower R K L]
local notation "P" => R' ⊗[R] K
local notation "tR'" => Spec.map (CommRingCat.ofHom (algebraMap R R'))
local notation "ιK" => Spec.map (CommRingCat.ofHom (algebraMap R K))
variable [IsDomain R] [IsFractionRing R K]
variable [IsLocalization (Algebra.algebraMapSubmonoid R' R⁰) L]
theorem α_comp_algebraMap :
    (α R K R' L).comp (algebraMap K L) =
      ((Algebra.TensorProduct.includeRight : K →ₐ[R] P) : K →+* P)
AbelianVarieties.NOSProofs.SmoothTorsionSpecialization.GoodReductionJacobian.RelativeGroupLaw.TorsionSpecialization.e

The generic base-change morphism into the spectrum of the common fraction field.

Source context 24 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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_specialize_isTorsionPoint_of_smooth.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.
-/
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.NeronModelInfra
open _root_.GoodReductionJacobian
open scoped TensorProduct nonZeroDivisors
universe u
namespace AbelianVarieties.NOSProofs.SmoothTorsionSpecialization
namespace GoodReductionJacobian
open _root_.GoodReductionJacobian
namespace RelativeGroupLaw
open _root_.GoodReductionJacobian.RelativeGroupLaw
namespace TorsionSpecialization
open _root_.GoodReductionJacobian.RelativeGroupLaw
open _root_.GoodReductionJacobian
section GenericFibreOfBase
variable (R : Type u) [CommRing R]
  (K : Type u) [Field K] [Algebra R K]
  (R' : Type u) [CommRing R'] [Algebra R R']
  (L : Type u) [Field L] [Algebra R' L] [Algebra K L] [Algebra R L]
  [IsScalarTower R R' L] [IsScalarTower R K L]
local notation "P" => R' ⊗[R] K
local notation "tR'" => Spec.map (CommRingCat.ofHom (algebraMap R R'))
local notation "ιK" => Spec.map (CommRingCat.ofHom (algebraMap R K))
variable [IsDomain R] [IsFractionRing R K]
variable [IsLocalization (Algebra.algebraMapSubmonoid R' R⁰) L]
def e : pullback tR' ιK ⟶ Spec (CommRingCat.of L)
AbelianVarieties.NOSProofs.SmoothTorsionSpecialization.GoodReductionJacobian.RelativeGroupLaw.TorsionSpecialization.j

The comparison morphism from the common fraction field to the generic base change.

Source context 24 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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_specialize_isTorsionPoint_of_smooth.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.
-/
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.NeronModelInfra
open _root_.GoodReductionJacobian
open scoped TensorProduct nonZeroDivisors
universe u
namespace AbelianVarieties.NOSProofs.SmoothTorsionSpecialization
namespace GoodReductionJacobian
open _root_.GoodReductionJacobian
namespace RelativeGroupLaw
open _root_.GoodReductionJacobian.RelativeGroupLaw
namespace TorsionSpecialization
open _root_.GoodReductionJacobian.RelativeGroupLaw
open _root_.GoodReductionJacobian
section GenericFibreOfBase
variable (R : Type u) [CommRing R]
  (K : Type u) [Field K] [Algebra R K]
  (R' : Type u) [CommRing R'] [Algebra R R']
  (L : Type u) [Field L] [Algebra R' L] [Algebra K L] [Algebra R L]
  [IsScalarTower R R' L] [IsScalarTower R K L]
local notation "P" => R' ⊗[R] K
local notation "tR'" => Spec.map (CommRingCat.ofHom (algebraMap R R'))
local notation "ιK" => Spec.map (CommRingCat.ofHom (algebraMap R K))
variable [IsDomain R] [IsFractionRing R K]
variable [IsLocalization (Algebra.algebraMapSubmonoid R' R⁰) L]
def j : Spec (CommRingCat.of L) ⟶ pullback tR' ιK
AbelianVarieties.NOSProofs.SmoothTorsionSpecialization.GoodReductionJacobian.RelativeGroupLaw.TorsionSpecialization.j_e
Source context 24 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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_specialize_isTorsionPoint_of_smooth.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.
-/
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.NeronModelInfra
open _root_.GoodReductionJacobian
open scoped TensorProduct nonZeroDivisors
universe u
namespace AbelianVarieties.NOSProofs.SmoothTorsionSpecialization
namespace GoodReductionJacobian
open _root_.GoodReductionJacobian
namespace RelativeGroupLaw
open _root_.GoodReductionJacobian.RelativeGroupLaw
namespace TorsionSpecialization
open _root_.GoodReductionJacobian.RelativeGroupLaw
open _root_.GoodReductionJacobian
section GenericFibreOfBase
variable (R : Type u) [CommRing R]
  (K : Type u) [Field K] [Algebra R K]
  (R' : Type u) [CommRing R'] [Algebra R R']
  (L : Type u) [Field L] [Algebra R' L] [Algebra K L] [Algebra R L]
  [IsScalarTower R R' L] [IsScalarTower R K L]
local notation "P" => R' ⊗[R] K
local notation "tR'" => Spec.map (CommRingCat.ofHom (algebraMap R R'))
local notation "ιK" => Spec.map (CommRingCat.ofHom (algebraMap R K))
variable [IsDomain R] [IsFractionRing R K]
variable [IsLocalization (Algebra.algebraMapSubmonoid R' R⁰) L]
theorem j_e : j R K R' L ≫ e R K R' L = 𝟙 _
AbelianVarieties.NOSProofs.SmoothTorsionSpecialization.GoodReductionJacobian.RelativeGroupLaw.TorsionSpecialization.j_fst
Source context 25 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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_specialize_isTorsionPoint_of_smooth.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.
-/
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.NeronModelInfra
open _root_.GoodReductionJacobian
open scoped TensorProduct nonZeroDivisors
universe u
namespace AbelianVarieties.NOSProofs.SmoothTorsionSpecialization
namespace GoodReductionJacobian
open _root_.GoodReductionJacobian
namespace RelativeGroupLaw
open _root_.GoodReductionJacobian.RelativeGroupLaw
namespace TorsionSpecialization
open _root_.GoodReductionJacobian.RelativeGroupLaw
open _root_.GoodReductionJacobian
section GenericFibreOfBase
variable (R : Type u) [CommRing R]
  (K : Type u) [Field K] [Algebra R K]
  (R' : Type u) [CommRing R'] [Algebra R R']
  (L : Type u) [Field L] [Algebra R' L] [Algebra K L] [Algebra R L]
  [IsScalarTower R R' L] [IsScalarTower R K L]
local notation "P" => R' ⊗[R] K
local notation "tR'" => Spec.map (CommRingCat.ofHom (algebraMap R R'))
local notation "ιK" => Spec.map (CommRingCat.ofHom (algebraMap R K))
variable [IsDomain R] [IsFractionRing R K]
variable [IsLocalization (Algebra.algebraMapSubmonoid R' R⁰) L]
omit [IsDomain R] [IsFractionRing R K]
  [IsLocalization (Algebra.algebraMapSubmonoid R' R⁰) L] in
theorem j_fst : j R K R' L ≫ pullback.fst tR' ιK = Spec.map (CommRingCat.ofHom (algebraMap R' L))
AbelianVarieties.NOSProofs.SmoothTorsionSpecialization.GoodReductionJacobian.RelativeGroupLaw.TorsionSpecialization.e_snd
Source context 24 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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_specialize_isTorsionPoint_of_smooth.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.
-/
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.NeronModelInfra
open _root_.GoodReductionJacobian
open scoped TensorProduct nonZeroDivisors
universe u
namespace AbelianVarieties.NOSProofs.SmoothTorsionSpecialization
namespace GoodReductionJacobian
open _root_.GoodReductionJacobian
namespace RelativeGroupLaw
open _root_.GoodReductionJacobian.RelativeGroupLaw
namespace TorsionSpecialization
open _root_.GoodReductionJacobian.RelativeGroupLaw
open _root_.GoodReductionJacobian
section GenericFibreOfBase
variable (R : Type u) [CommRing R]
  (K : Type u) [Field K] [Algebra R K]
  (R' : Type u) [CommRing R'] [Algebra R R']
  (L : Type u) [Field L] [Algebra R' L] [Algebra K L] [Algebra R L]
  [IsScalarTower R R' L] [IsScalarTower R K L]
local notation "P" => R' ⊗[R] K
local notation "tR'" => Spec.map (CommRingCat.ofHom (algebraMap R R'))
local notation "ιK" => Spec.map (CommRingCat.ofHom (algebraMap R K))
variable [IsDomain R] [IsFractionRing R K]
variable [IsLocalization (Algebra.algebraMapSubmonoid R' R⁰) L]
theorem e_snd : e R K R' L ≫ Spec.map (CommRingCat.ofHom (algebraMap K L)) = pullback.snd tR' ιK
AbelianVarieties.NOSProofs.SmoothTorsionSpecialization.GoodReductionJacobian.RelativeGroupLaw.TorsionSpecialization.baseChangePointToBase_genericFibreRestrict
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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_specialize_isTorsionPoint_of_smooth.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.
-/
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.NeronModelInfra
open _root_.GoodReductionJacobian
open scoped TensorProduct nonZeroDivisors
universe u
namespace AbelianVarieties.NOSProofs.SmoothTorsionSpecialization
namespace GoodReductionJacobian
open _root_.GoodReductionJacobian
namespace RelativeGroupLaw
open _root_.GoodReductionJacobian.RelativeGroupLaw
namespace TorsionSpecialization
open _root_.GoodReductionJacobian.RelativeGroupLaw
open _root_.GoodReductionJacobian
section Restrict
variable {R : Type u} [CommRing R] (K : Type u) [Field K] [Algebra R K]
variable {B : Scheme.{u}} {g : B ⟶ Spec (CommRingCat.of R)}
theorem baseChangePointToBase_genericFibreRestrict {T : Scheme.{u}}
    (t : T ⟶ Spec (CommRingCat.of R)) (a : SchemeHomOver t g) :
    baseChangePointToBase (specGenericFibreInclusion R K) (genericFibreRestrict R K g t a) =
      GoodReductionJacobian.schemeHomOverComp (pullback.fst t (specGenericFibreInclusion R K))
        pullback.condition a
AbelianVarieties.NOSProofs.SmoothTorsionSpecialization.GoodReductionJacobian.RelativeGroupLaw.TorsionSpecialization.genericFibreRestrict_mul
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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_specialize_isTorsionPoint_of_smooth.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.
-/
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.NeronModelInfra
open _root_.GoodReductionJacobian
open scoped TensorProduct nonZeroDivisors
universe u
namespace AbelianVarieties.NOSProofs.SmoothTorsionSpecialization
namespace GoodReductionJacobian
open _root_.GoodReductionJacobian
namespace RelativeGroupLaw
open _root_.GoodReductionJacobian.RelativeGroupLaw
namespace TorsionSpecialization
open _root_.GoodReductionJacobian.RelativeGroupLaw
open _root_.GoodReductionJacobian
section Restrict
variable {R : Type u} [CommRing R] (K : Type u) [Field K] [Algebra R K]
variable {B : Scheme.{u}} {g : B ⟶ Spec (CommRingCat.of R)}
theorem genericFibreRestrict_mul (LB : RelativeGroupLaw R g) {T : Scheme.{u}}
    (t : T ⟶ Spec (CommRingCat.of R)) (a b : SchemeHomOver t g) :
    genericFibreRestrict R K g t (LB.mul t a b) =
      (LB.genericFibre K).mul (pullback.snd t (specGenericFibreInclusion R K))
        (genericFibreRestrict R K g t a) (genericFibreRestrict R K g t b)
AbelianVarieties.NOSProofs.SmoothTorsionSpecialization.GoodReductionJacobian.RelativeGroupLaw.TorsionSpecialization.genericFibreRestrict_one
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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_specialize_isTorsionPoint_of_smooth.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.
-/
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.NeronModelInfra
open _root_.GoodReductionJacobian
open scoped TensorProduct nonZeroDivisors
universe u
namespace AbelianVarieties.NOSProofs.SmoothTorsionSpecialization
namespace GoodReductionJacobian
open _root_.GoodReductionJacobian
namespace RelativeGroupLaw
open _root_.GoodReductionJacobian.RelativeGroupLaw
namespace TorsionSpecialization
open _root_.GoodReductionJacobian.RelativeGroupLaw
open _root_.GoodReductionJacobian
section Restrict
variable {R : Type u} [CommRing R] (K : Type u) [Field K] [Algebra R K]
variable {B : Scheme.{u}} {g : B ⟶ Spec (CommRingCat.of R)}
theorem genericFibreRestrict_one (LB : RelativeGroupLaw R g) {T : Scheme.{u}}
    (t : T ⟶ Spec (CommRingCat.of R)) :
    genericFibreRestrict R K g t (LB.one t) =
      (LB.genericFibre K).one (pullback.snd t (specGenericFibreInclusion R K))
AbelianVarieties.NOSProofs.SmoothTorsionSpecialization.GoodReductionJacobian.RelativeGroupLaw.TorsionSpecialization.genericFibreRestrict_nsmul
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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_specialize_isTorsionPoint_of_smooth.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.
-/
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.NeronModelInfra
open _root_.GoodReductionJacobian
open scoped TensorProduct nonZeroDivisors
universe u
namespace AbelianVarieties.NOSProofs.SmoothTorsionSpecialization
namespace GoodReductionJacobian
open _root_.GoodReductionJacobian
namespace RelativeGroupLaw
open _root_.GoodReductionJacobian.RelativeGroupLaw
namespace TorsionSpecialization
open _root_.GoodReductionJacobian.RelativeGroupLaw
open _root_.GoodReductionJacobian
section Restrict
variable {R : Type u} [CommRing R] (K : Type u) [Field K] [Algebra R K]
variable {B : Scheme.{u}} {g : B ⟶ Spec (CommRingCat.of R)}
theorem genericFibreRestrict_nsmul (LB : RelativeGroupLaw R g) {T : Scheme.{u}}
    (t : T ⟶ Spec (CommRingCat.of R)) (n : ℕ) (a : SchemeHomOver t g) :
    genericFibreRestrict R K g t (LB.nsmul t n a) =
      (LB.genericFibre K).nsmul (pullback.snd t (specGenericFibreInclusion R K)) n
        (genericFibreRestrict R K g t a)
AbelianVarieties.NOSProofs.SmoothTorsionSpecialization.GoodReductionJacobian.RelativeGroupLaw.TorsionSpecialization.isTorsionPoint_of_genericFibreRestrict
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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_specialize_isTorsionPoint_of_smooth.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.
-/
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.NeronModelInfra
open _root_.GoodReductionJacobian
open scoped TensorProduct nonZeroDivisors
universe u
namespace AbelianVarieties.NOSProofs.SmoothTorsionSpecialization
namespace GoodReductionJacobian
open _root_.GoodReductionJacobian
namespace RelativeGroupLaw
open _root_.GoodReductionJacobian.RelativeGroupLaw
namespace TorsionSpecialization
open _root_.GoodReductionJacobian.RelativeGroupLaw
open _root_.GoodReductionJacobian
section Restrict
variable {R : Type u} [CommRing R] (K : Type u) [Field K] [Algebra R K]
variable {B : Scheme.{u}} {g : B ⟶ Spec (CommRingCat.of R)}
theorem isTorsionPoint_of_genericFibreRestrict (LB : RelativeGroupLaw R g) {T : Scheme.{u}}
    (t : T ⟶ Spec (CommRingCat.of R)) (hinj : Function.Injective (genericFibreRestrict R K g t))
    (n : ℕ) (a : SchemeHomOver t g)
    (ha : (LB.genericFibre K).IsTorsionPoint (pullback.snd t (specGenericFibreInclusion R K)) n
      (genericFibreRestrict R K g t a)) :
    LB.IsTorsionPoint t n a
AbelianVarieties.NOSProofs.SmoothTorsionSpecialization.GoodReductionJacobian.RelativeGroupLaw.TorsionSpecialization.preconnectedSpace_spec
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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_specialize_isTorsionPoint_of_smooth.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.
-/
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.NeronModelInfra
open _root_.GoodReductionJacobian
open scoped TensorProduct nonZeroDivisors
universe u
namespace AbelianVarieties.NOSProofs.SmoothTorsionSpecialization
namespace GoodReductionJacobian
open _root_.GoodReductionJacobian
namespace RelativeGroupLaw
open _root_.GoodReductionJacobian.RelativeGroupLaw
namespace TorsionSpecialization
open _root_.GoodReductionJacobian.RelativeGroupLaw
open _root_.GoodReductionJacobian
section Main
variable {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
  (K : Type u) [Field K] [Algebra R K] [IsFractionRing R K]
  {B : Scheme.{u}} {g : B ⟶ Spec (CommRingCat.of R)}
theorem preconnectedSpace_spec (S : Type u) [CommRing S] [IsDomain S] :
    PreconnectedSpace (Spec (CommRingCat.of S) : Scheme.{u})
AbelianVarieties.NOSProofs.SmoothTorsionSpecialization.GoodReductionJacobian.RelativeGroupLaw.TorsionSpecialization.nonempty_spec
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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_specialize_isTorsionPoint_of_smooth.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.
-/
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.NeronModelInfra
open _root_.GoodReductionJacobian
open scoped TensorProduct nonZeroDivisors
universe u
namespace AbelianVarieties.NOSProofs.SmoothTorsionSpecialization
namespace GoodReductionJacobian
open _root_.GoodReductionJacobian
namespace RelativeGroupLaw
open _root_.GoodReductionJacobian.RelativeGroupLaw
namespace TorsionSpecialization
open _root_.GoodReductionJacobian.RelativeGroupLaw
open _root_.GoodReductionJacobian
section Main
variable {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
  (K : Type u) [Field K] [Algebra R K] [IsFractionRing R K]
  {B : Scheme.{u}} {g : B ⟶ Spec (CommRingCat.of R)}
theorem nonempty_spec (S : Type u) [CommRing S] [Nontrivial S] :
    Nonempty (Spec (CommRingCat.of S) : Scheme.{u})
AbelianVarieties.NOSProofs.SmoothTorsionSpecialization.GoodReductionJacobian.RelativeGroupLaw.TorsionSpecialization.main
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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_specialize_isTorsionPoint_of_smooth.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.
-/
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.NeronModelInfra
open _root_.GoodReductionJacobian
open scoped TensorProduct nonZeroDivisors
universe u
namespace AbelianVarieties.NOSProofs.SmoothTorsionSpecialization
namespace GoodReductionJacobian
open _root_.GoodReductionJacobian
namespace RelativeGroupLaw
open _root_.GoodReductionJacobian.RelativeGroupLaw
namespace TorsionSpecialization
open _root_.GoodReductionJacobian.RelativeGroupLaw
open _root_.GoodReductionJacobian
section Main
variable {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
  (K : Type u) [Field K] [Algebra R K] [IsFractionRing R K]
  {B : Scheme.{u}} {g : B ⟶ Spec (CommRingCat.of R)}
theorem main (LB : RelativeGroupLaw R g)
    (hcomm : ∀ {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of R)) (x y : SchemeHomOver t g),
      LB.mul t x y = LB.mul t y x)
    (hN : NeronModelPropertyBundle R K g)
    (n : ℕ) (hn : IsUnit (n : R))
    (R' : Type u) [CommRing R'] [IsDomain R'] [Algebra R R']
    (hsm : Smooth (Spec.map (CommRingCat.ofHom (algebraMap R R'))))
    (L : Type u) [Field L] [Algebra R' L] [Algebra K L] [Algebra R L]
    [IsScalarTower R R' L] [IsScalarTower R K L]
    [IsLocalization (Algebra.algebraMapSubmonoid R' R⁰) L]
    (k' : Type u) [Field k'] [Algebra R k'] (ψ : R' →ₐ[R] k') :
    ∃ r : {z : SchemeHomOver (Spec.map (CommRingCat.ofHom (algebraMap K L)))
              (pullback.snd g (specGenericFibreInclusion R K)) //
            (LB.genericFibre K).IsTorsionPoint (Spec.map (CommRingCat.ofHom (algebraMap K L))) n z}
          → {y : SchemeHomOver (Spec.map (CommRingCat.ofHom (algebraMap R k'))) g //
            LB.IsTorsionPoint (Spec.map (CommRingCat.ofHom (algebraMap R k'))) n y},
      Function.Injective r ∧
      ∀ z, ∃ x : SchemeHomOver (Spec.map (CommRingCat.ofHom (algebraMap R R'))) g,
        LB.IsTorsionPoint (Spec.map (CommRingCat.ofHom (algebraMap R R'))) n x ∧
        Spec.map (CommRingCat.ofHom (algebraMap R' L)) ≫ x.1 =
          z.1.1 ≫ pullback.fst g (specGenericFibreInclusion R K) ∧
        (r z).1.1 = Spec.map (CommRingCat.ofHom (ψ : R' →+* k')) ≫ x.1
GoodReductionJacobian.RelativeGroupLaw.exists_injective_specialize_isTorsionPoint_of_smooth
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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_specialize_isTorsionPoint_of_smooth.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.
-/
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.NeronModelInfra
open _root_.GoodReductionJacobian
open scoped TensorProduct nonZeroDivisors
universe u
open AbelianVarieties.NOSProofs.SmoothTorsionSpecialization.GoodReductionJacobian
open RelativeGroupLaw.TorsionSpecialization (main)
namespace GoodReductionJacobian.RelativeGroupLaw
theorem exists_injective_specialize_isTorsionPoint_of_smooth
    {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
    (K : Type u) [Field K] [Algebra R K] [IsFractionRing R K]
    {B : Scheme.{u}} {g : B ⟶ Spec (CommRingCat.of R)} (LB : RelativeGroupLaw R g)
    (hcomm : ∀ {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of R)) (x y : SchemeHomOver t g),
      LB.mul t x y = LB.mul t y x)
    (hN : NeronModelPropertyBundle R K g)
    (n : ℕ) (hn : IsUnit (n : R))
    (R' : Type u) [CommRing R'] [IsDomain R'] [Algebra R R']
    (hsm : Smooth (Spec.map (CommRingCat.ofHom (algebraMap R R'))))
    (L : Type u) [Field L] [Algebra R' L] [Algebra K L] [Algebra R L]
    [IsScalarTower R R' L] [IsScalarTower R K L]
    [IsLocalization (Algebra.algebraMapSubmonoid R' R⁰) L]
    (k' : Type u) [Field k'] [Algebra R k'] (ψ : R' →ₐ[R] k') :
    ∃ r : {z : SchemeHomOver (Spec.map (CommRingCat.ofHom (algebraMap K L)))
              (pullback.snd g (specGenericFibreInclusion R K)) //
            (LB.genericFibre K).IsTorsionPoint (Spec.map (CommRingCat.ofHom (algebraMap K L))) n z}
          → {y : SchemeHomOver (Spec.map (CommRingCat.ofHom (algebraMap R k'))) g //
            LB.IsTorsionPoint (Spec.map (CommRingCat.ofHom (algebraMap R k'))) n y},
      Function.Injective r ∧
      ∀ z, ∃ x : SchemeHomOver (Spec.map (CommRingCat.ofHom (algebraMap R R'))) g,
        LB.IsTorsionPoint (Spec.map (CommRingCat.ofHom (algebraMap R R'))) n x ∧
        Spec.map (CommRingCat.ofHom (algebraMap R' L)) ≫ x.1 =
          z.1.1 ≫ pullback.fst g (specGenericFibreInclusion R K) ∧
        (r z).1.1 = Spec.map (CommRingCat.ofHom (ψ : R' →+* k')) ≫ x.1
AbelianVarieties.NOSProofs.UnramifiedTorsionSpecialization.GoodReductionJacobian.RelativeGroupLaw.TorsionSpecializationDedekind.exists_formallyUnramified_away
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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_specialize_isTorsionPoint_of_isUnramifiedAt.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.
-/
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.NeronModelInfra
open _root_.GoodReductionJacobian
open scoped nonZeroDivisors
universe u
namespace AbelianVarieties.NOSProofs.UnramifiedTorsionSpecialization
namespace GoodReductionJacobian
open _root_.GoodReductionJacobian
namespace RelativeGroupLaw
open _root_.GoodReductionJacobian.RelativeGroupLaw
namespace TorsionSpecializationDedekind
open _root_.GoodReductionJacobian.RelativeGroupLaw
open _root_.GoodReductionJacobian
section EtaleNbhd
variable (R : Type u) [CommRing R]
  (S : Type u) [CommRing S] [Algebra R S] [Module.Finite R S]
  (P : Ideal S) [P.IsPrime] [Algebra.IsUnramifiedAt R P]
theorem exists_formallyUnramified_away :
    ∃ f : S, f ∉ P ∧ Algebra.FormallyUnramified R (Localization.Away f)
AbelianVarieties.NOSProofs.UnramifiedTorsionSpecialization.GoodReductionJacobian.RelativeGroupLaw.TorsionSpecializationDedekind.smooth_specMap_away
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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_specialize_isTorsionPoint_of_isUnramifiedAt.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.
-/
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.NeronModelInfra
open _root_.GoodReductionJacobian
open scoped nonZeroDivisors
universe u
namespace AbelianVarieties.NOSProofs.UnramifiedTorsionSpecialization
namespace GoodReductionJacobian
open _root_.GoodReductionJacobian
namespace RelativeGroupLaw
open _root_.GoodReductionJacobian.RelativeGroupLaw
namespace TorsionSpecializationDedekind
open _root_.GoodReductionJacobian.RelativeGroupLaw
open _root_.GoodReductionJacobian
section EtaleNbhd
variable (R : Type u) [CommRing R]
  (S : Type u) [CommRing S] [Algebra R S] [Module.Finite R S]
  (P : Ideal S) [P.IsPrime] [Algebra.IsUnramifiedAt R P]
variable [IsDomain R] [IsDiscreteValuationRing R] [IsDomain S] [FaithfulSMul R S] (f : S)
theorem smooth_specMap_away [Algebra.FormallyUnramified R (Localization.Away f)] :
    Smooth (Spec.map (CommRingCat.ofHom (algebraMap R (Localization.Away f))))
AbelianVarieties.NOSProofs.UnramifiedTorsionSpecialization.GoodReductionJacobian.RelativeGroupLaw.TorsionSpecializationDedekind.awayToField

Embed a principal localization into the fraction field.

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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_specialize_isTorsionPoint_of_isUnramifiedAt.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.
-/
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.NeronModelInfra
open _root_.GoodReductionJacobian
open scoped nonZeroDivisors
universe u
namespace AbelianVarieties.NOSProofs.UnramifiedTorsionSpecialization
namespace GoodReductionJacobian
open _root_.GoodReductionJacobian
namespace RelativeGroupLaw
open _root_.GoodReductionJacobian.RelativeGroupLaw
namespace TorsionSpecializationDedekind
open _root_.GoodReductionJacobian.RelativeGroupLaw
open _root_.GoodReductionJacobian
section GenericFibre
variable (R : Type u) [CommRing R] [IsDomain R]
  (S : Type u) [CommRing S] [IsDomain S] [Algebra R S]
  (L : Type u) [Field L] [Algebra S L] [Algebra R L]
  [IsScalarTower R S L] [IsFractionRing S L] [IsIntegralClosure S R L]
  (f : S) (hf : f ≠ 0)
def awayToField : Localization.Away f →+* L
AbelianVarieties.NOSProofs.UnramifiedTorsionSpecialization.GoodReductionJacobian.RelativeGroupLaw.TorsionSpecializationDedekind.awayToField_comp
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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_specialize_isTorsionPoint_of_isUnramifiedAt.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.
-/
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.NeronModelInfra
open _root_.GoodReductionJacobian
open scoped nonZeroDivisors
universe u
namespace AbelianVarieties.NOSProofs.UnramifiedTorsionSpecialization
namespace GoodReductionJacobian
open _root_.GoodReductionJacobian
namespace RelativeGroupLaw
open _root_.GoodReductionJacobian.RelativeGroupLaw
namespace TorsionSpecializationDedekind
open _root_.GoodReductionJacobian.RelativeGroupLaw
open _root_.GoodReductionJacobian
section GenericFibre
variable (R : Type u) [CommRing R] [IsDomain R]
  (S : Type u) [CommRing S] [IsDomain S] [Algebra R S]
  (L : Type u) [Field L] [Algebra S L] [Algebra R L]
  [IsScalarTower R S L] [IsFractionRing S L] [IsIntegralClosure S R L]
  (f : S) (hf : f ≠ 0)
omit [IsDomain S] in
theorem awayToField_comp : (awayToField S L f hf).comp (algebraMap S (Localization.Away f)) =
    algebraMap S L
AbelianVarieties.NOSProofs.UnramifiedTorsionSpecialization.GoodReductionJacobian.RelativeGroupLaw.TorsionSpecializationDedekind.awayToField_injective
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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_specialize_isTorsionPoint_of_isUnramifiedAt.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.
-/
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.NeronModelInfra
open _root_.GoodReductionJacobian
open scoped nonZeroDivisors
universe u
namespace AbelianVarieties.NOSProofs.UnramifiedTorsionSpecialization
namespace GoodReductionJacobian
open _root_.GoodReductionJacobian
namespace RelativeGroupLaw
open _root_.GoodReductionJacobian.RelativeGroupLaw
namespace TorsionSpecializationDedekind
open _root_.GoodReductionJacobian.RelativeGroupLaw
open _root_.GoodReductionJacobian
section GenericFibre
variable (R : Type u) [CommRing R] [IsDomain R]
  (S : Type u) [CommRing S] [IsDomain S] [Algebra R S]
  (L : Type u) [Field L] [Algebra S L] [Algebra R L]
  [IsScalarTower R S L] [IsFractionRing S L] [IsIntegralClosure S R L]
  (f : S) (hf : f ≠ 0)
omit [IsDomain S] in
theorem awayToField_injective : Function.Injective (awayToField S L f hf)
AbelianVarieties.NOSProofs.UnramifiedTorsionSpecialization.GoodReductionJacobian.RelativeGroupLaw.TorsionSpecializationDedekind.isLocalization_away
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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_specialize_isTorsionPoint_of_isUnramifiedAt.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.
-/
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.NeronModelInfra
open _root_.GoodReductionJacobian
open scoped nonZeroDivisors
universe u
namespace AbelianVarieties.NOSProofs.UnramifiedTorsionSpecialization
namespace GoodReductionJacobian
open _root_.GoodReductionJacobian
namespace RelativeGroupLaw
open _root_.GoodReductionJacobian.RelativeGroupLaw
namespace TorsionSpecializationDedekind
open _root_.GoodReductionJacobian.RelativeGroupLaw
open _root_.GoodReductionJacobian
section GenericFibre
variable (R : Type u) [CommRing R] [IsDomain R]
  (S : Type u) [CommRing S] [IsDomain S] [Algebra R S]
  (L : Type u) [Field L] [Algebra S L] [Algebra R L]
  [IsScalarTower R S L] [IsFractionRing S L] [IsIntegralClosure S R L]
  (f : S) (hf : f ≠ 0)
omit [IsDomain S] in
theorem isLocalization_away (K : Type u) [Field K] [Algebra R K] [IsFractionRing R K]
    [Algebra K L] [IsScalarTower R K L] [Algebra.IsAlgebraic K L] :
    let : Algebra (Localization.Away f) L := (awayToField S L f hf).toAlgebra
    IsLocalization (Algebra.algebraMapSubmonoid (Localization.Away f) R⁰) L := by
  intro awayAlgebra
  have halg : ∀ x, algebraMap (Localization.Away f) L x = awayToField S L f hf x := fun _ => rfl
  have hSL : IsLocalization (Algebra.algebraMapSubmonoid S R⁰) L :=
    IsIntegralClosure.isLocalization R K L S
  have htower : ∀ s : S, algebraMap (Localization.Away f) L (algebraMap S _ s) = algebraMap S L s :=
    by
    intro s; rw [halg, ← RingHom.comp_apply, awayToField_comp]
  refine (isLocalization_iff _ _).2 ⟨?_, ?_, ?_⟩
  · rintro ⟨_, r, hr, rfl⟩
    change IsUnit (algebraMap (Localization.Away f) L (algebraMap R (Localization.Away f) r))
    rw [IsScalarTower.algebraMap_apply R S (Localization.Away f), htower]
    exact IsLocalization.map_units L (M := Algebra.algebraMapSubmonoid S R⁰)
      ⟨algebraMap R S r, r, hr, rfl⟩
  · intro y
    obtain ⟨⟨s, ⟨_, r, hr, rfl⟩⟩, h⟩ := IsLocalization.surj (Algebra.algebraMapSubmonoid S R⁰) y
    refine ⟨⟨algebraMap S _ s, ⟨algebraMap R _ r, r, hr, rfl⟩⟩, ?_⟩
    change y * algebraMap (Localization.Away f) L (algebraMap R (Localization.Away f) r) =
      algebraMap (Localization.Away f) L (algebraMap S _ s)
    rw [IsScalarTower.algebraMap_apply R S (Localization.Away f), htower, htower]
    exact h
  · intro x₁ x₂ h
    rw [halg, halg] at h
    exact ⟨1, by rw [awayToField_injective S L f hf h]⟩
AbelianVarieties.NOSProofs.UnramifiedTorsionSpecialization.GoodReductionJacobian.RelativeGroupLaw.TorsionSpecializationDedekind.main
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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_specialize_isTorsionPoint_of_isUnramifiedAt.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.
-/
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.NeronModelInfra
open _root_.GoodReductionJacobian
open scoped nonZeroDivisors
universe u
namespace AbelianVarieties.NOSProofs.UnramifiedTorsionSpecialization
namespace GoodReductionJacobian
open _root_.GoodReductionJacobian
namespace RelativeGroupLaw
open _root_.GoodReductionJacobian.RelativeGroupLaw
namespace TorsionSpecializationDedekind
open _root_.GoodReductionJacobian.RelativeGroupLaw
open _root_.GoodReductionJacobian
section Main
variable {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
  (K : Type u) [Field K] [Algebra R K] [IsFractionRing R K]
  {B : Scheme.{u}} {g : B ⟶ Spec (CommRingCat.of R)}
theorem main (LB : RelativeGroupLaw R g)
    (hcomm : ∀ {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of R)) (x y : SchemeHomOver t g),
      LB.mul t x y = LB.mul t y x)
    (hN : NeronModelPropertyBundle R K g)
    (n : ℕ) (hn : IsUnit (n : R))
    (S : Type u) [CommRing S] [IsDomain S] [Algebra R S] [Module.Finite R S]
    (L : Type u) [Field L] [Algebra S L] [Algebra K L] [Algebra R L]
    [IsScalarTower R S L] [IsScalarTower R K L] [IsFractionRing S L]
    [IsIntegralClosure S R L] [Algebra.IsAlgebraic K L]
    (P : Ideal S) [P.IsPrime] [Algebra.IsUnramifiedAt R P]
    (k' : Type u) [Field k'] [Algebra R k'] (ψ : S →ₐ[R] k')
    (hψ : ∀ s : S, ψ s = 0 → s ∈ P) :
    ∃ r : {z : SchemeHomOver (Spec.map (CommRingCat.ofHom (algebraMap K L)))
              (pullback.snd g (specGenericFibreInclusion R K)) //
            (LB.genericFibre K).IsTorsionPoint (Spec.map (CommRingCat.ofHom (algebraMap K L))) n z}
          → {y : SchemeHomOver (Spec.map (CommRingCat.ofHom (algebraMap R k'))) g //
            LB.IsTorsionPoint (Spec.map (CommRingCat.ofHom (algebraMap R k'))) n y},
      Function.Injective r
GoodReductionJacobian.RelativeGroupLaw.exists_injective_specialize_isTorsionPoint_of_isUnramifiedAt
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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_specialize_isTorsionPoint_of_isUnramifiedAt.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.
-/
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.NeronModelInfra
open _root_.GoodReductionJacobian
open scoped nonZeroDivisors
universe u
open AbelianVarieties.NOSProofs.UnramifiedTorsionSpecialization.GoodReductionJacobian
open RelativeGroupLaw.TorsionSpecializationDedekind (main)
namespace GoodReductionJacobian.RelativeGroupLaw
theorem exists_injective_specialize_isTorsionPoint_of_isUnramifiedAt
    {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
    (K : Type u) [Field K] [Algebra R K] [IsFractionRing R K]
    {B : Scheme.{u}} {g : B ⟶ Spec (CommRingCat.of R)} (LB : RelativeGroupLaw R g)
    (hcomm : ∀ {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of R)) (x y : SchemeHomOver t g),
      LB.mul t x y = LB.mul t y x)
    (hN : NeronModelPropertyBundle R K g)
    (n : ℕ) (hn : IsUnit (n : R))
    (S : Type u) [CommRing S] [IsDomain S] [Algebra R S] [Module.Finite R S]
    (L : Type u) [Field L] [Algebra S L] [Algebra K L] [Algebra R L]
    [IsScalarTower R S L] [IsScalarTower R K L] [IsFractionRing S L]
    [IsIntegralClosure S R L] [Algebra.IsAlgebraic K L]
    (P : Ideal S) [P.IsPrime] [Algebra.IsUnramifiedAt R P]
    (k' : Type u) [Field k'] [Algebra R k'] (ψ : S →ₐ[R] k')
    (hψ : ∀ s : S, ψ s = 0 → s ∈ P) :
    ∃ r : {z : SchemeHomOver (Spec.map (CommRingCat.ofHom (algebraMap K L)))
              (pullback.snd g (specGenericFibreInclusion R K)) //
            (LB.genericFibre K).IsTorsionPoint (Spec.map (CommRingCat.ofHom (algebraMap K L))) n z}
          → {y : SchemeHomOver (Spec.map (CommRingCat.ofHom (algebraMap R k'))) g //
            LB.IsTorsionPoint (Spec.map (CommRingCat.ofHom (algebraMap R k'))) n y},
      Function.Injective r
AbelianVarieties.NOSProofs.TorsionSpecializationInjection.TorsionInjection.torsionEquivOfEq

Transport torsion points along an equality of structure morphisms.

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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_isTorsionPoint_of_neronModelPropertyBundle_of_forall_specMap_comp_eq_self.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
open scoped Pointwise
universe u
namespace AbelianVarieties.NOSProofs.TorsionSpecializationInjection
namespace TorsionInjection
open AbelianVarieties.NOSProofs.TorsionInertia.GoodReductionJacobian.RelativeGroupLaw
open InertiaOnTorsion (baseChangePointToBase_nsmul)
section Transport
variable {R : Type u} [CommRing R] {A : Scheme.{u}} {f : A ⟶ Spec (CommRingCat.of R)}
def torsionEquivOfEq (G : RelativeGroupLaw R f) {T : Scheme.{u}}
    {t₁ t₂ : T ⟶ Spec (CommRingCat.of R)} (h : t₁ = t₂) (n : ℕ) :
    {x : SchemeHomOver t₁ f // G.IsTorsionPoint t₁ n x} ≃
      {x : SchemeHomOver t₂ f // G.IsTorsionPoint t₂ n x}
AbelianVarieties.NOSProofs.TorsionSpecializationInjection.TorsionInjection.isTorsionPoint_baseChange_iff
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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_isTorsionPoint_of_neronModelPropertyBundle_of_forall_specMap_comp_eq_self.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
open scoped Pointwise
universe u
namespace AbelianVarieties.NOSProofs.TorsionSpecializationInjection
namespace TorsionInjection
open AbelianVarieties.NOSProofs.TorsionInertia.GoodReductionJacobian.RelativeGroupLaw
open InertiaOnTorsion (baseChangePointToBase_nsmul)
section Transport
variable {R : Type u} [CommRing R] {A : Scheme.{u}} {f : A ⟶ Spec (CommRingCat.of R)}
variable {R' : Type u} [CommRing R'] (ι : Spec (CommRingCat.of R') ⟶ Spec (CommRingCat.of R))
theorem isTorsionPoint_baseChange_iff (G : RelativeGroupLaw R f) {T : Scheme.{u}}
    (t' : T ⟶ Spec (CommRingCat.of R')) (n : ℕ)
    (x : SchemeHomOver t' (RelativeGroupLaw.baseChangeStr ι f)) :
    (G.baseChange ι).IsTorsionPoint t' n x ↔
      G.IsTorsionPoint (t' ≫ ι) n (RelativeGroupLaw.baseChangePointToBase ι x)
AbelianVarieties.NOSProofs.TorsionSpecializationInjection.TorsionInjection.torsionEquivBaseChange

Identify torsion points before and after base change.

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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_isTorsionPoint_of_neronModelPropertyBundle_of_forall_specMap_comp_eq_self.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
open scoped Pointwise
universe u
namespace AbelianVarieties.NOSProofs.TorsionSpecializationInjection
namespace TorsionInjection
open AbelianVarieties.NOSProofs.TorsionInertia.GoodReductionJacobian.RelativeGroupLaw
open InertiaOnTorsion (baseChangePointToBase_nsmul)
section Transport
variable {R : Type u} [CommRing R] {A : Scheme.{u}} {f : A ⟶ Spec (CommRingCat.of R)}
variable {R' : Type u} [CommRing R'] (ι : Spec (CommRingCat.of R') ⟶ Spec (CommRingCat.of R))
def torsionEquivBaseChange (G : RelativeGroupLaw R f) {T : Scheme.{u}}
    (t' : T ⟶ Spec (CommRingCat.of R')) (n : ℕ) :
    {x : SchemeHomOver t' (RelativeGroupLaw.baseChangeStr ι f) //
        (G.baseChange ι).IsTorsionPoint t' n x} ≃
      {y : SchemeHomOver (t' ≫ ι) f // G.IsTorsionPoint (t' ≫ ι) n y}
AbelianVarieties.NOSProofs.TorsionSpecializationInjection.TorsionInjection.finite_and_natCard_torsion
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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_isTorsionPoint_of_neronModelPropertyBundle_of_forall_specMap_comp_eq_self.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
open scoped Pointwise
universe u
namespace AbelianVarieties.NOSProofs.TorsionSpecializationInjection
namespace TorsionInjection
open AbelianVarieties.NOSProofs.TorsionInertia.GoodReductionJacobian.RelativeGroupLaw
open InertiaOnTorsion (baseChangePointToBase_nsmul)
section Count
variable {K : Type u} [Field K] {A : Scheme.{u}} {f : A ⟶ Spec (CommRingCat.of K)}
theorem finite_and_natCard_torsion (G : RelativeGroupLaw K f) (hc : G.IsCommutative)
    (hA : AbelianSchemePropertyBundle K f) (d : ℕ) [SmoothOfRelativeDimension d f]
    (n : ℕ) (hn : (n : K) ≠ 0) (Ω : Type u) [Field Ω] [Algebra K Ω] [IsAlgClosed Ω] :
    Finite {x : SchemeHomOver (Spec.map (CommRingCat.ofHom (algebraMap K Ω))) f //
        G.IsTorsionPoint (Spec.map (CommRingCat.ofHom (algebraMap K Ω))) n x} ∧
      Nat.card {x : SchemeHomOver (Spec.map (CommRingCat.ofHom (algebraMap K Ω))) f //
        G.IsTorsionPoint (Spec.map (CommRingCat.ofHom (algebraMap K Ω))) n x} = n ^ (2 * d)
AbelianVarieties.NOSProofs.TorsionSpecializationInjection.TorsionInjection.epi_specMap_of_field
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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_isTorsionPoint_of_neronModelPropertyBundle_of_forall_specMap_comp_eq_self.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
open scoped Pointwise
universe u
namespace AbelianVarieties.NOSProofs.TorsionSpecializationInjection
namespace TorsionInjection
open AbelianVarieties.NOSProofs.TorsionInertia.GoodReductionJacobian.RelativeGroupLaw
open InertiaOnTorsion (baseChangePointToBase_nsmul)
theorem epi_specMap_of_field {L Ω : Type u} [Field L] [Field Ω] (φ : L →+* Ω) :
    Epi (Spec.map (CommRingCat.ofHom φ))
AbelianVarieties.NOSProofs.TorsionSpecializationInjection.TorsionInjection.mem_valuationSubringAtPrime_iff
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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_isTorsionPoint_of_neronModelPropertyBundle_of_forall_specMap_comp_eq_self.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
open scoped Pointwise
universe u
namespace AbelianVarieties.NOSProofs.TorsionSpecializationInjection
namespace TorsionInjection
open AbelianVarieties.NOSProofs.TorsionInertia.GoodReductionJacobian.RelativeGroupLaw
open InertiaOnTorsion (baseChangePointToBase_nsmul)
section ValuationInertia
variable {S L : Type u} [CommRing S] [IsDedekindDomain S] [Field L] [Algebra S L]
  [IsFractionRing S L]
open IsDedekindDomain IsDedekindDomain.HeightOneSpectrum
theorem mem_valuationSubringAtPrime_iff (v : HeightOneSpectrum S) (x : L) :
    x ∈ valuationSubringAtPrime L v ↔ v.valuation L x ≤ 1
AbelianVarieties.NOSProofs.TorsionSpecializationInjection.TorsionInjection.mem_nonunits_valuationSubringAtPrime_iff
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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_isTorsionPoint_of_neronModelPropertyBundle_of_forall_specMap_comp_eq_self.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
open scoped Pointwise
universe u
namespace AbelianVarieties.NOSProofs.TorsionSpecializationInjection
namespace TorsionInjection
open AbelianVarieties.NOSProofs.TorsionInertia.GoodReductionJacobian.RelativeGroupLaw
open InertiaOnTorsion (baseChangePointToBase_nsmul)
section ValuationInertia
variable {S L : Type u} [CommRing S] [IsDedekindDomain S] [Field L] [Algebra S L]
  [IsFractionRing S L]
open IsDedekindDomain IsDedekindDomain.HeightOneSpectrum
theorem mem_nonunits_valuationSubringAtPrime_iff (v : HeightOneSpectrum S) (x : L) :
    x ∈ (valuationSubringAtPrime L v).nonunits ↔ v.valuation L x < 1
AbelianVarieties.NOSProofs.TorsionSpecializationInjection.TorsionInjection.algebraMap_mem_valuationSubringAtPrime
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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_isTorsionPoint_of_neronModelPropertyBundle_of_forall_specMap_comp_eq_self.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
open scoped Pointwise
universe u
namespace AbelianVarieties.NOSProofs.TorsionSpecializationInjection
namespace TorsionInjection
open AbelianVarieties.NOSProofs.TorsionInertia.GoodReductionJacobian.RelativeGroupLaw
open InertiaOnTorsion (baseChangePointToBase_nsmul)
section ValuationInertia
variable {S L : Type u} [CommRing S] [IsDedekindDomain S] [Field L] [Algebra S L]
  [IsFractionRing S L]
open IsDedekindDomain IsDedekindDomain.HeightOneSpectrum
theorem algebraMap_mem_valuationSubringAtPrime (v : HeightOneSpectrum S) (b : S) :
    algebraMap S L b ∈ valuationSubringAtPrime L v
AbelianVarieties.NOSProofs.TorsionSpecializationInjection.TorsionInjection.algebraMap_mem_nonunits_iff
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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_isTorsionPoint_of_neronModelPropertyBundle_of_forall_specMap_comp_eq_self.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
open scoped Pointwise
universe u
namespace AbelianVarieties.NOSProofs.TorsionSpecializationInjection
namespace TorsionInjection
open AbelianVarieties.NOSProofs.TorsionInertia.GoodReductionJacobian.RelativeGroupLaw
open InertiaOnTorsion (baseChangePointToBase_nsmul)
section ValuationInertia
variable {S L : Type u} [CommRing S] [IsDedekindDomain S] [Field L] [Algebra S L]
  [IsFractionRing S L]
open IsDedekindDomain IsDedekindDomain.HeightOneSpectrum
theorem algebraMap_mem_nonunits_iff (v : HeightOneSpectrum S) (b : S) :
    algebraMap S L b ∈ (valuationSubringAtPrime L v).nonunits ↔ b ∈ v.asIdeal
AbelianVarieties.NOSProofs.TorsionSpecializationInjection.TorsionInjection.mul_mem_nonunits
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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_isTorsionPoint_of_neronModelPropertyBundle_of_forall_specMap_comp_eq_self.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
open scoped Pointwise
universe u
namespace AbelianVarieties.NOSProofs.TorsionSpecializationInjection
namespace TorsionInjection
open AbelianVarieties.NOSProofs.TorsionInertia.GoodReductionJacobian.RelativeGroupLaw
open InertiaOnTorsion (baseChangePointToBase_nsmul)
section ValuationInertia
variable {S L : Type u} [CommRing S] [IsDedekindDomain S] [Field L] [Algebra S L]
  [IsFractionRing S L]
open IsDedekindDomain IsDedekindDomain.HeightOneSpectrum
theorem mul_mem_nonunits {F : Type*} [Field F] (P : ValuationSubring F) {x y : F} (hx : x ∈ P)
    (hy : y ∈ P.nonunits) : x * y ∈ P.nonunits
AbelianVarieties.NOSProofs.TorsionSpecializationInjection.TorsionInjection.eq_valuationSubringAtPrime_of_centre
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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_isTorsionPoint_of_neronModelPropertyBundle_of_forall_specMap_comp_eq_self.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
open scoped Pointwise
universe u
namespace AbelianVarieties.NOSProofs.TorsionSpecializationInjection
namespace TorsionInjection
open AbelianVarieties.NOSProofs.TorsionInertia.GoodReductionJacobian.RelativeGroupLaw
open InertiaOnTorsion (baseChangePointToBase_nsmul)
section ValuationInertia
variable {S L : Type u} [CommRing S] [IsDedekindDomain S] [Field L] [Algebra S L]
  [IsFractionRing S L]
open IsDedekindDomain IsDedekindDomain.HeightOneSpectrum
theorem eq_valuationSubringAtPrime_of_centre (v : HeightOneSpectrum S) (P' : ValuationSubring L)
    (h1 : ∀ b : S, algebraMap S L b ∈ P')
    (h2 : ∀ b : S, algebraMap S L b ∈ P'.nonunits ↔ b ∈ v.asIdeal) :
    P' = valuationSubringAtPrime L v
AbelianVarieties.NOSProofs.TorsionSpecializationInjection.TorsionInjection.exists_sub_algebraMap_mem_nonunits
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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_isTorsionPoint_of_neronModelPropertyBundle_of_forall_specMap_comp_eq_self.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
open scoped Pointwise
universe u
namespace AbelianVarieties.NOSProofs.TorsionSpecializationInjection
namespace TorsionInjection
open AbelianVarieties.NOSProofs.TorsionInertia.GoodReductionJacobian.RelativeGroupLaw
open InertiaOnTorsion (baseChangePointToBase_nsmul)
section ValuationInertia
variable {S L : Type u} [CommRing S] [IsDedekindDomain S] [Field L] [Algebra S L]
  [IsFractionRing S L]
open IsDedekindDomain IsDedekindDomain.HeightOneSpectrum
theorem exists_sub_algebraMap_mem_nonunits (v : HeightOneSpectrum S) [v.asIdeal.IsMaximal]
    (e : valuationSubringAtPrime L v) :
    ∃ b : S, (e : L) - algebraMap S L b ∈ (valuationSubringAtPrime L v).nonunits
AbelianVarieties.NOSProofs.TorsionSpecializationInjection.TorsionInjection.smulCommClass_gal
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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_isTorsionPoint_of_neronModelPropertyBundle_of_forall_specMap_comp_eq_self.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
open scoped Pointwise
universe u
namespace AbelianVarieties.NOSProofs.TorsionSpecializationInjection
namespace TorsionInjection
open AbelianVarieties.NOSProofs.TorsionInertia.GoodReductionJacobian.RelativeGroupLaw
open InertiaOnTorsion (baseChangePointToBase_nsmul)
section IntegralClosure
variable {R : Type u} [CommRing R] [IsDomain R]
  {K : Type u} [Field K] [Algebra R K]
  {L : Type u} [Field L] [Algebra K L] [Algebra R L] [IsScalarTower R K L]
instance smulCommClass_gal : SMulCommClass (L ≃ₐ[K] L) R L where
  smul_comm g r x := by
    rw [Algebra.smul_def, Algebra.smul_def, AlgEquiv.smul_def, AlgEquiv.smul_def, map_mul,
      IsScalarTower.algebraMap_apply R K L, AlgEquiv.commutes]
AbelianVarieties.NOSProofs.TorsionSpecializationInjection.TorsionInjection.isFractionRing_integralClosure
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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_isTorsionPoint_of_neronModelPropertyBundle_of_forall_specMap_comp_eq_self.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
open scoped Pointwise
universe u
namespace AbelianVarieties.NOSProofs.TorsionSpecializationInjection
namespace TorsionInjection
open AbelianVarieties.NOSProofs.TorsionInertia.GoodReductionJacobian.RelativeGroupLaw
open InertiaOnTorsion (baseChangePointToBase_nsmul)
section IntegralClosure
variable {R : Type u} [CommRing R] [IsDomain R]
  {K : Type u} [Field K] [Algebra R K]
  {L : Type u} [Field L] [Algebra K L] [Algebra R L] [IsScalarTower R K L]
open IsDedekindDomain IsDedekindDomain.HeightOneSpectrum
variable (K L) in
theorem isFractionRing_integralClosure [IsFractionRing R K] [FiniteDimensional K L] :
    IsFractionRing (integralClosure R L) L
AbelianVarieties.NOSProofs.TorsionSpecializationInjection.TorsionInjection.module_finite_integralClosure
Source context 14 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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_isTorsionPoint_of_neronModelPropertyBundle_of_forall_specMap_comp_eq_self.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
open scoped Pointwise
universe u
namespace AbelianVarieties.NOSProofs.TorsionSpecializationInjection
namespace TorsionInjection
open AbelianVarieties.NOSProofs.TorsionInertia.GoodReductionJacobian.RelativeGroupLaw
open InertiaOnTorsion (baseChangePointToBase_nsmul)
section IntegralClosure
variable {R : Type u} [CommRing R] [IsDomain R]
  {K : Type u} [Field K] [Algebra R K]
  {L : Type u} [Field L] [Algebra K L] [Algebra R L] [IsScalarTower R K L]
open IsDedekindDomain IsDedekindDomain.HeightOneSpectrum
variable (K L) in
variable (K L) in
theorem module_finite_integralClosure [IsDiscreteValuationRing R] [IsFractionRing R K]
    [FiniteDimensional K L] [Algebra.IsSeparable K L] :
    Module.Finite R (integralClosure R L)
AbelianVarieties.NOSProofs.TorsionSpecializationInjection.TorsionInjection.isDedekindDomain_integralClosure
Source context 15 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_GoodReductionJacobian_RelativeGroupLaw_exists_injective_isTorsionPoint_of_neronModelPropertyBundle_of_forall_specMap_comp_eq_self.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
open scoped Pointwise
universe u
namespace AbelianVarieties.NOSProofs.TorsionSpecializationInjection
namespace TorsionInjection
open AbelianVarieties.NOSProofs.TorsionInertia.GoodReductionJacobian.RelativeGroupLaw
open InertiaOnTorsion (baseChangePointToBase_nsmul)
section IntegralClosure
variable {R : Type u} [CommRing R] [IsDomain R]
  {K : Type u} [Field K] [Algebra R K]
  {L : Type u} [Field L] [Algebra K L] [Algebra R L] [IsScalarTower R K L]
open IsDedekindDomain IsDedekindDomain.HeightOneSpectrum
variable (K L) in
variable (K L) in
variable (K L) in
theorem isDedekindDomain_integralClosure [IsDiscreteValuationRing R] [IsFractionRing R K]
    [FiniteDimensional K L] [Algebra.IsSeparable K L] :
    IsDedekindDomain (integralClosure R L)
AbelianVarieties.NOSProofs.TorsionSpecializationInjection.TorsionInjection.isTorsionFree_integralClosure
Source context 16 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_GoodReductionJacobian_RelativeGroupLaw_exists_injective_isTorsionPoint_of_neronModelPropertyBundle_of_forall_specMap_comp_eq_self.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
open scoped Pointwise
universe u
namespace AbelianVarieties.NOSProofs.TorsionSpecializationInjection
namespace TorsionInjection
open AbelianVarieties.NOSProofs.TorsionInertia.GoodReductionJacobian.RelativeGroupLaw
open InertiaOnTorsion (baseChangePointToBase_nsmul)
section IntegralClosure
variable {R : Type u} [CommRing R] [IsDomain R]
  {K : Type u} [Field K] [Algebra R K]
  {L : Type u} [Field L] [Algebra K L] [Algebra R L] [IsScalarTower R K L]
open IsDedekindDomain IsDedekindDomain.HeightOneSpectrum
variable (K L) in
variable (K L) in
variable (K L) in
omit [Algebra R K] in
theorem isTorsionFree_integralClosure (K : Type u) [Field K] [Algebra R K] [IsFractionRing R K]
    (L : Type u) [Field L] [Algebra K L] [Algebra R L] [IsScalarTower R K L] :
    Module.IsTorsionFree R (integralClosure R L)
AbelianVarieties.NOSProofs.TorsionSpecializationInjection.TorsionInjection.isGaloisGroup_integralClosure
Source context 16 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_GoodReductionJacobian_RelativeGroupLaw_exists_injective_isTorsionPoint_of_neronModelPropertyBundle_of_forall_specMap_comp_eq_self.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
open scoped Pointwise
universe u
namespace AbelianVarieties.NOSProofs.TorsionSpecializationInjection
namespace TorsionInjection
open AbelianVarieties.NOSProofs.TorsionInertia.GoodReductionJacobian.RelativeGroupLaw
open InertiaOnTorsion (baseChangePointToBase_nsmul)
section IntegralClosure
variable {R : Type u} [CommRing R] [IsDomain R]
  {K : Type u} [Field K] [Algebra R K]
  {L : Type u} [Field L] [Algebra K L] [Algebra R L] [IsScalarTower R K L]
open IsDedekindDomain IsDedekindDomain.HeightOneSpectrum
variable (K L) in
variable (K L) in
variable (K L) in
variable (K L) in
theorem isGaloisGroup_integralClosure [IsDiscreteValuationRing R] [IsFractionRing R K] [IsGalois K
    L]
    [IsFractionRing (integralClosure R L) L] :
    IsGaloisGroup (L ≃ₐ[K] L) R (integralClosure R L)
AbelianVarieties.NOSProofs.TorsionSpecializationInjection.TorsionInjection.mem_inertiaSubgroupIn_of_mem_inertia
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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_isTorsionPoint_of_neronModelPropertyBundle_of_forall_specMap_comp_eq_self.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
open scoped Pointwise
universe u
namespace AbelianVarieties.NOSProofs.TorsionSpecializationInjection
namespace TorsionInjection
open AbelianVarieties.NOSProofs.TorsionInertia.GoodReductionJacobian.RelativeGroupLaw
open InertiaOnTorsion (baseChangePointToBase_nsmul)
section IntegralClosure
variable {R : Type u} [CommRing R] [IsDomain R]
  {K : Type u} [Field K] [Algebra R K]
  {L : Type u} [Field L] [Algebra K L] [Algebra R L] [IsScalarTower R K L]
open IsDedekindDomain IsDedekindDomain.HeightOneSpectrum
variable (K L) in
variable (K L) in
variable (K L) in
variable (K L) in
omit [IsDomain R] in
theorem mem_inertiaSubgroupIn_of_mem_inertia [IsDedekindDomain (integralClosure R L)]
    [IsFractionRing (integralClosure R L) L]
    (v : HeightOneSpectrum (integralClosure R L)) [v.asIdeal.IsMaximal]
    (τ : L ≃ₐ[K] L) (hτ : τ ∈ v.asIdeal.inertia (L ≃ₐ[K] L)) :
    τ ∈ (valuationSubringAtPrime L v).inertiaSubgroupIn K
AbelianVarieties.NOSProofs.TorsionSpecializationInjection.TorsionInjection.isUnramifiedAt_of_inertia_eq_bot
Source context 16 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_GoodReductionJacobian_RelativeGroupLaw_exists_injective_isTorsionPoint_of_neronModelPropertyBundle_of_forall_specMap_comp_eq_self.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
open scoped Pointwise
universe u
namespace AbelianVarieties.NOSProofs.TorsionSpecializationInjection
namespace TorsionInjection
open AbelianVarieties.NOSProofs.TorsionInertia.GoodReductionJacobian.RelativeGroupLaw
open InertiaOnTorsion (baseChangePointToBase_nsmul)
section IntegralClosure
variable {R : Type u} [CommRing R] [IsDomain R]
  {K : Type u} [Field K] [Algebra R K]
  {L : Type u} [Field L] [Algebra K L] [Algebra R L] [IsScalarTower R K L]
open IsDedekindDomain IsDedekindDomain.HeightOneSpectrum
variable (K L) in
variable (K L) in
variable (K L) in
variable (K L) in
theorem isUnramifiedAt_of_inertia_eq_bot [IsDiscreteValuationRing R] [IsFractionRing R K]
    [FiniteDimensional K L] [IsGalois K L]
    [IsDedekindDomain (integralClosure R L)] [IsFractionRing (integralClosure R L) L]
    [Module.Finite R (integralClosure R L)]
    (P : Ideal (integralClosure R L)) [P.IsMaximal] [P.LiesOver (IsLocalRing.maximalIdeal R)]
    (h : P.inertia (L ≃ₐ[K] L) = ⊥) :
    Algebra.IsUnramifiedAt R P
AbelianVarieties.NOSProofs.TorsionSpecializationInjection.TorsionInjection.exists_ideal_algHom_of_isAlgClosed
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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_isTorsionPoint_of_neronModelPropertyBundle_of_forall_specMap_comp_eq_self.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
open scoped Pointwise
universe u
namespace AbelianVarieties.NOSProofs.TorsionSpecializationInjection
namespace TorsionInjection
open AbelianVarieties.NOSProofs.TorsionInertia.GoodReductionJacobian.RelativeGroupLaw
open InertiaOnTorsion (baseChangePointToBase_nsmul)
section Point
variable {R : Type u} [CommRing R] [IsLocalRing R]
  {S : Type u} [CommRing S] [Algebra R S] [Algebra.IsIntegral R S]
theorem exists_ideal_algHom_of_isAlgClosed (k' : Type u) [Field k'] [IsAlgClosed k'] [Algebra R k']
    (hk' : ∀ r ∈ IsLocalRing.maximalIdeal R, algebraMap R k' r = 0)
    (hker : RingHom.ker (algebraMap R S) ≠ ⊤) :
    ∃ (P : Ideal S) (_ : P.IsMaximal) (_ : P.LiesOver (IsLocalRing.maximalIdeal R))
      (ψ : S →ₐ[R] k'), ∀ s : S, ψ s = 0 → s ∈ P
AbelianVarieties.NOSProofs.TorsionSpecializationInjection.TorsionInjection.ne_bot_of_liesOver_maximalIdeal
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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_isTorsionPoint_of_neronModelPropertyBundle_of_forall_specMap_comp_eq_self.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
open scoped Pointwise
universe u
namespace AbelianVarieties.NOSProofs.TorsionSpecializationInjection
namespace TorsionInjection
open AbelianVarieties.NOSProofs.TorsionInertia.GoodReductionJacobian.RelativeGroupLaw
open InertiaOnTorsion (baseChangePointToBase_nsmul)
section Main
variable {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
  {K : Type u} [Field K] [Algebra R K] [IsFractionRing R K]
  {L : Type u} [Field L] [Algebra K L] [Algebra R L] [IsScalarTower R K L]
include K in
theorem ne_bot_of_liesOver_maximalIdeal (P : Ideal (integralClosure R L))
    [P.LiesOver (IsLocalRing.maximalIdeal R)] : P ≠ ⊥
GoodReductionJacobian.RelativeGroupLaw.exists_injective_isTorsionPoint_of_neronModelPropertyBundle_of_forall_specMap_comp_eq_self
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_GoodReductionJacobian_RelativeGroupLaw_exists_injective_isTorsionPoint_of_neronModelPropertyBundle_of_forall_specMap_comp_eq_self.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.
-/
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
open scoped Pointwise
universe u
open AbelianVarieties.NOSProofs.TorsionSpecializationInjection.TorsionInjection
namespace GoodReductionJacobian.RelativeGroupLaw
theorem exists_injective_isTorsionPoint_of_neronModelPropertyBundle_of_forall_specMap_comp_eq_self
    {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
    (K : Type u) [Field K] [Algebra R K] [IsFractionRing R K]
    {B : Scheme.{u}} {g : B ⟶ Spec (CommRingCat.of R)} (LB : RelativeGroupLaw R g)
    (hcomm : ∀ {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of R)) (x y : SchemeHomOver t g),
      LB.mul t x y = LB.mul t y x)
    (hN : NeronModelPropertyBundle R K g)
    (hBK : AbelianSchemePropertyBundle K (pullback.snd g (specGenericFibreInclusion R K)))
    (d : ℕ) [SmoothOfRelativeDimension d (pullback.snd g (specGenericFibreInclusion R K))]
    (ℓ : ℕ) (hℓu : IsUnit (ℓ : R))
    (hunr : ∀ (A : ValuationSubring (AlgebraicClosure K)),
      (∀ r : R, algebraMap R (AlgebraicClosure K) r ∈ A) →
      ∀ σ : AlgebraicClosure K ≃ₐ[K] AlgebraicClosure K, σ ∈ A.inertiaSubgroupIn K →
      ∀ (v : ℕ) (x : SchemeHomOver
          (Spec.map (CommRingCat.ofHom (algebraMap K (AlgebraicClosure K))))
          (pullback.snd g (specGenericFibreInclusion R K))),
        (LB.genericFibre K).IsTorsionPoint
            (Spec.map (CommRingCat.ofHom (algebraMap K (AlgebraicClosure K)))) (ℓ ^ v) x →
          Spec.map (CommRingCat.ofHom (σ : AlgebraicClosure K →+* AlgebraicClosure K)) ≫ x.1 =
            x.1)
    (k' : Type u) [Field k'] [IsAlgClosed k'] [Algebra R k']
    (hk' : ∀ r ∈ IsLocalRing.maximalIdeal R, algebraMap R k' r = 0) (v : ℕ) :
    ∃ r : Fin (ℓ ^ (2 * d * v)) →
        {y : SchemeHomOver (Spec.map (CommRingCat.ofHom (algebraMap R k'))) g //
          LB.IsTorsionPoint (Spec.map (CommRingCat.ofHom (algebraMap R k'))) (ℓ ^ v) y},
      Function.Injective r