Module

Bounds.lean

Nyll.AbelianVarieties.Geometry.Torsion.Bounds
34 declarations indexed from sourceView source ↗

Bounds for prime-to-characteristic torsion

Bound torsion in connected affine groups by their character rank, then combine the proper quotient and finitely many components to obtain the nonproper torsion bound.

Declarations

AbelianVarieties.NOSProofs.AffineTorsionBounds.CharacterRestriction.equiv_one
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_finite_and_natCard_isTorsionPoint_le_pow_of_isAffine.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.AffineTorsionBounds
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
open WithConv
universe u
namespace CharacterRestriction
section PointGroup
variable {k : Type u} [CommRing k]
variable {X : Scheme.{u}} {f : X ⟶ Spec (CommRingCat.of k)} (L : RelativeGroupLaw k f)
  {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of k))
theorem equiv_one {W : Type*} [Monoid W] (e : W ≃ SchemeHomOver t f)
    (he : ∀ φ ψ : W, e (φ * ψ) = L.mul t (e φ) (e ψ)) : e 1 = L.one t
AbelianVarieties.NOSProofs.AffineTorsionBounds.CharacterRestriction.equiv_pow
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_finite_and_natCard_isTorsionPoint_le_pow_of_isAffine.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.AffineTorsionBounds
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
open WithConv
universe u
namespace CharacterRestriction
section PointGroup
variable {k : Type u} [CommRing k]
variable {X : Scheme.{u}} {f : X ⟶ Spec (CommRingCat.of k)} (L : RelativeGroupLaw k f)
  {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of k))
theorem equiv_pow {W : Type*} [Monoid W] (e : W ≃ SchemeHomOver t f)
    (he : ∀ φ ψ : W, e (φ * ψ) = L.mul t (e φ) (e ψ)) (n : ℕ) (φ : W) :
    e (φ ^ n) = L.nsmul t n (e φ)
AbelianVarieties.NOSProofs.AffineTorsionBounds.CharacterRestriction.torsionEquiv

Transport finite-order points along a multiplicative equivalence.

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_finite_and_natCard_isTorsionPoint_le_pow_of_isAffine.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.AffineTorsionBounds
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
open WithConv
universe u
namespace CharacterRestriction
section PointGroup
variable {k : Type u} [CommRing k]
variable {X : Scheme.{u}} {f : X ⟶ Spec (CommRingCat.of k)} (L : RelativeGroupLaw k f)
  {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of k))
def torsionEquiv {W : Type*} [Monoid W] (e : W ≃ SchemeHomOver t f)
    (he : ∀ φ ψ : W, e (φ * ψ) = L.mul t (e φ) (e ψ)) (n : ℕ) :
    {φ : W // φ ^ n = 1} ≃ {x : SchemeHomOver t f // L.IsTorsionPoint t n x}
AbelianVarieties.NOSProofs.AffineTorsionBounds.CharacterRestriction.transport
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_finite_and_natCard_isTorsionPoint_le_pow_of_isAffine.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.AffineTorsionBounds
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
open WithConv
universe u
namespace CharacterRestriction
section PointGroup
variable {k : Type u} [CommRing k]
variable {X : Scheme.{u}} {f : X ⟶ Spec (CommRingCat.of k)} (L : RelativeGroupLaw k f)
  {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of k))
theorem transport {t t' : T ⟶ Spec (CommRingCat.of k)} (htt : t = t') (n B : ℕ)
    (H : Finite {x : SchemeHomOver t f // L.IsTorsionPoint t n x} ∧
      Nat.card {x : SchemeHomOver t f // L.IsTorsionPoint t n x} ≤ B) :
    Finite {x : SchemeHomOver t' f // L.IsTorsionPoint t' n x} ∧
      Nat.card {x : SchemeHomOver t' f // L.IsTorsionPoint t' n x} ≤ B
AbelianVarieties.NOSProofs.AffineTorsionBounds.CharacterRestriction.CharLat

The additive character lattice of the commutative Hopf algebra.

Source context 9 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.AffineTorsionBounds
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
open WithConv
universe u
namespace CharacterRestriction
section Hopf
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [HopfAlgebra k H]
abbrev CharLat : Type u
AbelianVarieties.NOSProofs.AffineTorsionBounds.CharacterRestriction.inclHom

Include the character lattice as group-like elements.

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_finite_and_natCard_isTorsionPoint_le_pow_of_isAffine.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.AffineTorsionBounds
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
open WithConv
universe u
namespace CharacterRestriction
section Hopf
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [HopfAlgebra k H]
def inclHom : Multiplicative (CharLat k H) →* H where
  toFun x := (Additive.toMul (Multiplicative.toAdd x) : GroupLike k H).val
  map_one' := rfl
  map_mul' _ _ := rfl
AbelianVarieties.NOSProofs.AffineTorsionBounds.CharacterRestriction.res

The algebra map generated by the group-like elements.

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_finite_and_natCard_isTorsionPoint_le_pow_of_isAffine.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.AffineTorsionBounds
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
open WithConv
universe u
namespace CharacterRestriction
section Hopf
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [HopfAlgebra k H]
def res : AddMonoidAlgebra k (CharLat k H) →ₐ[k] H
AbelianVarieties.NOSProofs.AffineTorsionBounds.CharacterRestriction.res_single
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_finite_and_natCard_isTorsionPoint_le_pow_of_isAffine.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.AffineTorsionBounds
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
open WithConv
universe u
namespace CharacterRestriction
section Hopf
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [HopfAlgebra k H]
variable {k H}
theorem res_single (g : GroupLike k H) (c : k) :
    res k H (AddMonoidAlgebra.single (Additive.ofMul g) c) = c • g.val
AbelianVarieties.NOSProofs.AffineTorsionBounds.CharacterRestriction.convMul_apply_of_isGroupLikeElem
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_finite_and_natCard_isTorsionPoint_le_pow_of_isAffine.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.AffineTorsionBounds
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
open WithConv
universe u
namespace CharacterRestriction
section Hopf
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [HopfAlgebra k H]
variable {k H}
theorem convMul_apply_of_isGroupLikeElem (φ ψ : WithConv (H →ₐ[k] k)) {g : H}
    (hg : IsGroupLikeElem k g) : (φ * ψ) g = φ g * ψ g
AbelianVarieties.NOSProofs.AffineTorsionBounds.CharacterRestriction.convOne_apply_of_isGroupLikeElem
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_finite_and_natCard_isTorsionPoint_le_pow_of_isAffine.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.AffineTorsionBounds
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
open WithConv
universe u
namespace CharacterRestriction
section Hopf
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [HopfAlgebra k H]
variable {k H}
theorem convOne_apply_of_isGroupLikeElem {g : H} (hg : IsGroupLikeElem k g) :
    (1 : WithConv (H →ₐ[k] k)) g = 1
AbelianVarieties.NOSProofs.AffineTorsionBounds.CharacterRestriction.convPow_apply_of_isGroupLikeElem
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_finite_and_natCard_isTorsionPoint_le_pow_of_isAffine.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.AffineTorsionBounds
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
open WithConv
universe u
namespace CharacterRestriction
section Hopf
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [HopfAlgebra k H]
variable {k H}
theorem convPow_apply_of_isGroupLikeElem (φ : WithConv (H →ₐ[k] k)) {g : H}
    (hg : IsGroupLikeElem k g) (n : ℕ) : (φ ^ n) g = (φ g) ^ n
AbelianVarieties.NOSProofs.AffineTorsionBounds.CharacterRestriction.resPt

Restrict a convolution character to the group-like subalgebra.

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_finite_and_natCard_isTorsionPoint_le_pow_of_isAffine.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.AffineTorsionBounds
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
open WithConv
universe u
namespace CharacterRestriction
section Hopf
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [HopfAlgebra k H]
variable {k H}
def resPt (φ : WithConv (H →ₐ[k] k)) :
    WithConv (AddMonoidAlgebra k (CharLat k H) →ₐ[k] k)
AbelianVarieties.NOSProofs.AffineTorsionBounds.CharacterRestriction.resPt_single
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_finite_and_natCard_isTorsionPoint_le_pow_of_isAffine.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.AffineTorsionBounds
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
open WithConv
universe u
namespace CharacterRestriction
section Hopf
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [HopfAlgebra k H]
variable {k H}
theorem resPt_single (φ : WithConv (H →ₐ[k] k)) (g : GroupLike k H) :
    resPt φ (AddMonoidAlgebra.single (Additive.ofMul g) 1) = φ g.val
AbelianVarieties.NOSProofs.AffineTorsionBounds.CharacterRestriction.comul_single_one
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_finite_and_natCard_isTorsionPoint_le_pow_of_isAffine.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.AffineTorsionBounds
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
open WithConv
universe u
namespace CharacterRestriction
section Hopf
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [HopfAlgebra k H]
variable {k H}
theorem comul_single_one (g : GroupLike k H) :
    Coalgebra.comul (R := k) (AddMonoidAlgebra.single (Additive.ofMul g) (1 : k)) =
      AddMonoidAlgebra.single (Additive.ofMul g) (1 : k) ⊗ₜ[k]
        AddMonoidAlgebra.single (Additive.ofMul g) (1 : k)
AbelianVarieties.NOSProofs.AffineTorsionBounds.CharacterRestriction.counit_single_one
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_finite_and_natCard_isTorsionPoint_le_pow_of_isAffine.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.AffineTorsionBounds
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
open WithConv
universe u
namespace CharacterRestriction
section Hopf
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [HopfAlgebra k H]
variable {k H}
theorem counit_single_one (g : GroupLike k H) :
    Coalgebra.counit (R := k) (AddMonoidAlgebra.single (Additive.ofMul g) (1 : k)) = 1
AbelianVarieties.NOSProofs.AffineTorsionBounds.CharacterRestriction.resPt_mul
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_finite_and_natCard_isTorsionPoint_le_pow_of_isAffine.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.AffineTorsionBounds
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
open WithConv
universe u
namespace CharacterRestriction
section Hopf
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [HopfAlgebra k H]
variable {k H}
theorem resPt_mul (φ ψ : WithConv (H →ₐ[k] k)) : resPt (φ * ψ) = resPt φ * resPt ψ
AbelianVarieties.NOSProofs.AffineTorsionBounds.CharacterRestriction.resPt_one
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_finite_and_natCard_isTorsionPoint_le_pow_of_isAffine.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.AffineTorsionBounds
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
open WithConv
universe u
namespace CharacterRestriction
section Hopf
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [HopfAlgebra k H]
variable {k H}
theorem resPt_one : resPt (1 : WithConv (H →ₐ[k] k)) = 1
AbelianVarieties.NOSProofs.AffineTorsionBounds.CharacterRestriction.resPt_pow
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_finite_and_natCard_isTorsionPoint_le_pow_of_isAffine.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.AffineTorsionBounds
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
open WithConv
universe u
namespace CharacterRestriction
section Hopf
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [HopfAlgebra k H]
variable {k H}
theorem resPt_pow (φ : WithConv (H →ₐ[k] k)) (n : ℕ) : resPt (φ ^ n) = resPt φ ^ n
AbelianVarieties.NOSProofs.AffineTorsionBounds.CharacterRestriction.eq_of_resPt_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_finite_and_natCard_isTorsionPoint_le_pow_of_isAffine.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.AffineTorsionBounds
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
open WithConv
universe u
namespace CharacterRestriction
section Hopf
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [HopfAlgebra k H]
variable {k H}
theorem eq_of_resPt_eq [IsAlgClosed k] [Coalgebra.IsCocomm k H] {m : ℕ} (hm : (m : k) ≠ 0)
    {φ ψ : WithConv (H →ₐ[k] k)} (hφ : φ ^ m = 1) (hψ : ψ ^ m = 1)
    (hres : resPt φ = resPt ψ) : φ = ψ
AbelianVarieties.NOSProofs.AffineTorsionBounds.CharacterRestriction.finite_and_natCard_le
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_finite_and_natCard_isTorsionPoint_le_pow_of_isAffine.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.AffineTorsionBounds
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
open WithConv
universe u
namespace CharacterRestriction
section Hopf
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [HopfAlgebra k H]
variable {k H}
theorem finite_and_natCard_le [IsAlgClosed k] [Coalgebra.IsCocomm k H]
    [ConnectedSpace (PrimeSpectrum H)] (h : ℕ)
    (hsm : RingHom.Locally (RingHom.IsStandardSmoothOfRelativeDimension h) (algebraMap k H))
    (m : ℕ) (hm : (m : k) ≠ 0) :
    Finite {φ : WithConv (H →ₐ[k] k) // φ ^ m = 1} ∧
      Nat.card {φ : WithConv (H →ₐ[k] k) // φ ^ m = 1} ≤ m ^ h
AbelianVarieties.NOSProofs.AffineTorsionBounds.CharacterRestriction.specMap_algebraMap_self
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_finite_and_natCard_isTorsionPoint_le_pow_of_isAffine.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.AffineTorsionBounds
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
open WithConv
universe u
namespace CharacterRestriction
section SchemeSide
variable (k : Type u) [Field k] {N : Scheme.{u}} (f : N ⟶ Spec (CommRingCat.of k))
theorem specMap_algebraMap_self :
    Spec.map (CommRingCat.ofHom (algebraMap k k)) = 𝟙 (Spec (CommRingCat.of k))
AbelianVarieties.NOSProofs.AffineTorsionBounds.CharacterRestriction.connectedSpace_primeSpectrum_of_iso
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_finite_and_natCard_isTorsionPoint_le_pow_of_isAffine.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.AffineTorsionBounds
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
open WithConv
universe u
namespace CharacterRestriction
section SchemeSide
variable (k : Type u) [Field k] {N : Scheme.{u}} (f : N ⟶ Spec (CommRingCat.of k))
theorem connectedSpace_primeSpectrum_of_iso [ConnectedSpace N] (H : Type u) [CommRing H]
    (I : N ≅ Spec (CommRingCat.of H)) : ConnectedSpace (PrimeSpectrum H)
AbelianVarieties.NOSProofs.AffineTorsionBounds.CharacterRestriction.locally_isStandardSmoothOfRelativeDimension_of_algEquiv
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_finite_and_natCard_isTorsionPoint_le_pow_of_isAffine.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.AffineTorsionBounds
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
open WithConv
universe u
namespace CharacterRestriction
section SchemeSide
variable (k : Type u) [Field k] {N : Scheme.{u}} (f : N ⟶ Spec (CommRingCat.of k))
theorem locally_isStandardSmoothOfRelativeDimension_of_algEquiv [IsAffine N] (h : ℕ)
    [SmoothOfRelativeDimension h f] (H : Type u) [CommRing H]
    (algN : Algebra k Γ(N, ⊤))
    (halg : algebraMap k Γ(N, ⊤) = ((Scheme.ΓSpecIso (CommRingCat.of k)).inv ≫ f.appTop).hom)
    [Algebra k H] (iso : H ≃ₐ[k] Γ(N, ⊤)) :
    RingHom.Locally (RingHom.IsStandardSmoothOfRelativeDimension h) (algebraMap k H)
GoodReductionJacobian.RelativeGroupLaw.finite_and_natCard_isTorsionPoint_le_pow_of_isAffine
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_finite_and_natCard_isTorsionPoint_le_pow_of_isAffine.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace GoodReductionJacobian.RelativeGroupLaw
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
open GoodReductionJacobian
universe u
open AbelianVarieties.NOSProofs.AffineTorsionBounds.CharacterRestriction
theorem
    finite_and_natCard_isTorsionPoint_le_pow_of_isAffine
    (k : Type u) [Field k] [IsAlgClosed k] {N : Scheme.{u}} [IsAffine N] [ConnectedSpace N]
    (f : N ⟶ Spec (CommRingCat.of k)) (L : RelativeGroupLaw k f) (hc : L.IsCommutative)
    (h : ℕ) [SmoothOfRelativeDimension h f] (m : ℕ) (hm : (m : k) ≠ 0) :
    Finite {x : SchemeHomOver (𝟙 (Spec (CommRingCat.of k))) f //
        L.IsTorsionPoint (𝟙 (Spec (CommRingCat.of k))) m x} ∧
      Nat.card {x : SchemeHomOver (𝟙 (Spec (CommRingCat.of k))) f //
        L.IsTorsionPoint (𝟙 (Spec (CommRingCat.of k))) m x} ≤ m ^ h
AbelianVarieties.NOSProofs.ConnectedTorsionBounds.TorsionProperReduction.nsmul_eq_pow
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_isProper_or_natCard_isTorsionPoint_le_pow_sub_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.
-/
namespace AbelianVarieties.NOSProofs.ConnectedTorsionBounds
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.NeronModelInfra
open _root_.GoodReductionJacobian
universe u
namespace TorsionProperReduction
open _root_.GoodReductionJacobian.RelativeGroupLaw
open _root_.GoodReductionJacobian
section PointGroup
variable {k : Type u} [CommRing k]
variable {X : Scheme.{u}} {f : X ⟶ Spec (CommRingCat.of k)} (L : RelativeGroupLaw k f)
  {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of k))
theorem nsmul_eq_pow (n : ℕ) (x : SchemeHomOver t f) :
    L.nsmul t n x = (let : Group (SchemeHomOver t f) := L.pointGroup t; x ^ n) := by
  let : Group (SchemeHomOver t f) := L.pointGroup t
  induction n with
  | zero => rfl
  | succ n ih =>
      rw [L.nsmul_succ, pow_succ, ih]
      rfl
AbelianVarieties.NOSProofs.ConnectedTorsionBounds.TorsionProperReduction.isTorsionPoint_iff_pow_eq_one
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_isProper_or_natCard_isTorsionPoint_le_pow_sub_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.
-/
namespace AbelianVarieties.NOSProofs.ConnectedTorsionBounds
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.NeronModelInfra
open _root_.GoodReductionJacobian
universe u
namespace TorsionProperReduction
open _root_.GoodReductionJacobian.RelativeGroupLaw
open _root_.GoodReductionJacobian
section PointGroup
variable {k : Type u} [CommRing k]
variable {X : Scheme.{u}} {f : X ⟶ Spec (CommRingCat.of k)} (L : RelativeGroupLaw k f)
  {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of k))
theorem isTorsionPoint_iff_pow_eq_one (n : ℕ) (x : SchemeHomOver t f) :
    L.IsTorsionPoint t n x ↔
      (let : Group (SchemeHomOver t f) := L.pointGroup t; x ^ n = 1) := by
  rw [L.isTorsionPoint_def, nsmul_eq_pow]
  rfl
AbelianVarieties.NOSProofs.ConnectedTorsionBounds.TorsionProperReduction.Tors

Elements killed by the indicated power map.

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_isProper_or_natCard_isTorsionPoint_le_pow_sub_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.
-/
namespace AbelianVarieties.NOSProofs.ConnectedTorsionBounds
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.NeronModelInfra
open _root_.GoodReductionJacobian
universe u
namespace TorsionProperReduction
open _root_.GoodReductionJacobian.RelativeGroupLaw
open _root_.GoodReductionJacobian
section Abstract
abbrev Tors (P : Type*) [Group P] (m : ℕ) : Type _
AbelianVarieties.NOSProofs.ConnectedTorsionBounds.TorsionProperReduction.finite_tors_and_natCard_tors_le_mul
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_isProper_or_natCard_isTorsionPoint_le_pow_sub_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.
-/
namespace AbelianVarieties.NOSProofs.ConnectedTorsionBounds
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.NeronModelInfra
open _root_.GoodReductionJacobian
universe u
namespace TorsionProperReduction
open _root_.GoodReductionJacobian.RelativeGroupLaw
open _root_.GoodReductionJacobian
section Abstract
variable {P Q S : Type*} [CommGroup P] [Group Q] [Group S]
theorem finite_tors_and_natCard_tors_le_mul (ι : S →* P) (hι : Function.Injective ι)
    (π : P →* Q) (hker : ∀ x : P, π x = 1 → ∃ y : S, ι y = x) (m : ℕ)
    [Finite (Tors S m)] [Finite (Tors Q m)] :
    Finite (Tors P m) ∧ Nat.card (Tors P m) ≤ Nat.card (Tors S m) * Nat.card (Tors Q m)
AbelianVarieties.NOSProofs.ConnectedTorsionBounds.TorsionProperReduction.main
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_isProper_or_natCard_isTorsionPoint_le_pow_sub_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.
-/
namespace AbelianVarieties.NOSProofs.ConnectedTorsionBounds
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry
open _root_.NeronModelInfra
open _root_.GoodReductionJacobian
universe u
namespace TorsionProperReduction
open _root_.GoodReductionJacobian.RelativeGroupLaw
open _root_.GoodReductionJacobian
theorem main
    (k : Type u) [Field k] [IsAlgClosed k] {G : Scheme.{u}} (f : G ⟶ Spec (CommRingCat.of k))
    [IsSeparated f] [QuasiCompact f] [ConnectedSpace G]
    (L : RelativeGroupLaw k f) (hc : L.IsCommutative)
    (g : ℕ) [SmoothOfRelativeDimension g f] :
    IsProper f ∨ ∀ m : ℕ, (m : k) ≠ 0 →
      Finite {x : SchemeHomOver (𝟙 (Spec (CommRingCat.of k))) f //
          L.IsTorsionPoint (𝟙 (Spec (CommRingCat.of k))) m x} ∧
        Nat.card {x : SchemeHomOver (𝟙 (Spec (CommRingCat.of k))) f //
          L.IsTorsionPoint (𝟙 (Spec (CommRingCat.of k))) m x} ≤ m ^ (2 * g - 1)
GoodReductionJacobian.RelativeGroupLaw.isProper_or_natCard_isTorsionPoint_le_pow_sub_one
Source context 7 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_GoodReductionJacobian_RelativeGroupLaw_isProper_or_natCard_isTorsionPoint_le_pow_sub_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.
-/
namespace GoodReductionJacobian.RelativeGroupLaw
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
open GoodReductionJacobian
universe u
open AbelianVarieties.NOSProofs.ConnectedTorsionBounds
theorem
    isProper_or_natCard_isTorsionPoint_le_pow_sub_one
    (k : Type u) [Field k] [IsAlgClosed k] {G : Scheme.{u}} (f : G ⟶ Spec (CommRingCat.of k))
    [IsSeparated f] [QuasiCompact f] [ConnectedSpace G]
    (L : RelativeGroupLaw k f) (hc : L.IsCommutative)
    (g : ℕ) [SmoothOfRelativeDimension g f] :
    IsProper f ∨ ∀ m : ℕ, (m : k) ≠ 0 →
      Finite {x : SchemeHomOver (𝟙 (Spec (CommRingCat.of k))) f //
          L.IsTorsionPoint (𝟙 (Spec (CommRingCat.of k))) m x} ∧
        Nat.card {x : SchemeHomOver (𝟙 (Spec (CommRingCat.of k))) f //
          L.IsTorsionPoint (𝟙 (Spec (CommRingCat.of k))) m x} ≤ m ^ (2 * g - 1)
AbelianVarieties.NOSProofs.TorsionBounds.ComponentCount.finite_tors_and_natCard_tors_le_mul
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_forall_isProper_or_exists_natCard_isTorsionPoint_le_mul_pow.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.TorsionBounds
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace ComponentCount
open AbelianVarieties.NOSProofs.ConnectedTorsionBounds.TorsionProperReduction
  (Tors isTorsionPoint_iff_pow_eq_one)
section Abstract
variable {P S : Type*} [CommGroup P] [Group S]
theorem finite_tors_and_natCard_tors_le_mul (ι : S →* P) (hι : Function.Injective ι)
    (C : Set P) (hC : C.Finite) (hcov : ∀ x : P, ∃ c ∈ C, ∃ a : S, x = c * ι a) (m : ℕ)
    [Finite (Tors S m)] :
    Finite (Tors P m) ∧ Nat.card (Tors P m) ≤ Nat.card C * Nat.card (Tors S m)
AbelianVarieties.NOSProofs.TorsionBounds.ComponentCount.isProper_of_smoothOfRelativeDimension_zero
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_forall_isProper_or_exists_natCard_isTorsionPoint_le_mul_pow.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.TorsionBounds
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace ComponentCount
open AbelianVarieties.NOSProofs.ConnectedTorsionBounds.TorsionProperReduction
  (Tors isTorsionPoint_iff_pow_eq_one)
open AbelianVarieties.NOSProofs.TorsionSpecializationInjection.TorsionInjection
  (torsionEquivOfEq torsionEquivBaseChange)
theorem isProper_of_smoothOfRelativeDimension_zero {k : Type u} [Field k] {X : Scheme.{u}}
    (f : X ⟶ Spec (CommRingCat.of k)) [SmoothOfRelativeDimension 0 f] [QuasiCompact f] :
    IsProper f
AbelianVarieties.NOSProofs.TorsionBounds.ComponentCount.isProper_of_isProper_pullback_snd
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_forall_isProper_or_exists_natCard_isTorsionPoint_le_mul_pow.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.TorsionBounds
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace ComponentCount
open AbelianVarieties.NOSProofs.ConnectedTorsionBounds.TorsionProperReduction
  (Tors isTorsionPoint_iff_pow_eq_one)
open AbelianVarieties.NOSProofs.TorsionSpecializationInjection.TorsionInjection
  (torsionEquivOfEq torsionEquivBaseChange)
theorem isProper_of_isProper_pullback_snd {k k' : Type u} [Field k] [Field k'] [Algebra k k']
    {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of k)) [IsSeparated f] [LocallyOfFiniteType f]
    [IsProper (pullback.snd f (Spec.map (CommRingCat.ofHom (algebraMap k k'))))] : IsProper f
GoodReductionJacobian.RelativeGroupLaw.forall_isProper_or_exists_natCard_isTorsionPoint_le_mul_pow
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_forall_isProper_or_exists_natCard_isTorsionPoint_le_mul_pow.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace GoodReductionJacobian.RelativeGroupLaw
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra
open GoodReductionJacobian
universe u
open AbelianVarieties.NOSProofs.TorsionBounds.ComponentCount
open AbelianVarieties.NOSProofs.ConnectedTorsionBounds.TorsionProperReduction
  (Tors isTorsionPoint_iff_pow_eq_one)
open AbelianVarieties.NOSProofs.TorsionSpecializationInjection.TorsionInjection
  (torsionEquivOfEq torsionEquivBaseChange)
theorem
    forall_isProper_or_exists_natCard_isTorsionPoint_le_mul_pow
    (k : Type u) [Field k] {G : Scheme.{u}} (f : G ⟶ Spec (CommRingCat.of k))
    [IsSeparated f] [LocallyOfFiniteType f] [QuasiCompact f]
    (L : RelativeGroupLaw k f) (hc : L.IsCommutative)
    (d : ℕ) [SmoothOfRelativeDimension d f]
    (k' : Type u) [Field k'] [IsAlgClosed k'] [Algebra k k'] :
    (∀ (G₀ : Scheme.{u}) (i : G₀ ⟶ G) [IsOpenImmersion i],
        Set.range i =
          connectedComponent ((L.one (𝟙 (Spec (CommRingCat.of k)))).1 (IsLocalRing.closedPoint k)) →
        IsProper (i ≫ f)) ∨
    (0 < d ∧ ∃ c : ℕ, ∀ m : ℕ, (m : k) ≠ 0 →
        Finite {x : SchemeHomOver (Spec.map (CommRingCat.ofHom (algebraMap k k'))) f //
            L.IsTorsionPoint (Spec.map (CommRingCat.ofHom (algebraMap k k'))) m x} ∧
        Nat.card {x : SchemeHomOver (Spec.map (CommRingCat.ofHom (algebraMap k k'))) f //
            L.IsTorsionPoint (Spec.map (CommRingCat.ofHom (algebraMap k k'))) m x} ≤
          c * m ^ (2 * d - 1))