Module

GroupLike.lean

Nyll.SchemeTheory.GroupSchemes.HopfAlgebra.GroupLike
69 declarations indexed from sourceView source ↗

Group-like elements and torsion characters of Hopf algebras

Convolution characters trivial on group-like elements have no prime-to-characteristic finite order. The character lattice of a connected smooth commutative Hopf algebra is finite free, with rank bounded by its relative dimension.

Imports24
Imported by2

Declarations

SchemeTheory.HopfGroupLike.TorsionCharacters.exists_common_eigenvector
Source context 17 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.Coalgebra
open _root_.TensorProduct
open _root_.Coalgebra.TensorProduct
open _root_.Module
open _root_.WithConv
universe u v w
namespace TorsionCharacters
section LinAlg
variable {k : Type u} [Field k] {V : Type v} [AddCommGroup V] [Module k V]
theorem exists_common_eigenvector [IsAlgClosed k]
    (S : Set (Module.End k V)) (hS : ∀ f ∈ S, ∀ g ∈ S, Commute f g) :
    ∀ (n : ℕ) (p : Submodule k V), FiniteDimensional k p → Module.finrank k p = n → p ≠ ⊥ →
      (∀ f ∈ S, ∀ v ∈ p, f v ∈ p) →
      ∃ v ∈ p, v ≠ 0 ∧ ∀ f ∈ S, ∃ c : k, f v = c • v
SchemeTheory.HopfGroupLike.TorsionCharacters.tmul_eq_zero_of_forall_lTensor
Source context 17 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.Coalgebra
open _root_.TensorProduct
open _root_.Coalgebra.TensorProduct
open _root_.Module
open _root_.WithConv
universe u v w
namespace TorsionCharacters
section LinAlg
variable {k : Type u} [Field k] {V : Type v} [AddCommGroup V] [Module k V]
theorem tmul_eq_zero_of_forall_lTensor {M : Type v} {N : Type w} [AddCommGroup M] [Module k M]
    [AddCommGroup N] [Module k N] (t : M ⊗[k] N)
    (h : ∀ ξ : N →ₗ[k] k, LinearMap.lTensor M ξ t = 0) : t = 0
SchemeTheory.HopfGroupLike.TorsionCharacters.rho

The right convolution action on the underlying coalgebra.

Source context 17 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.Coalgebra
open _root_.TensorProduct
open _root_.Coalgebra.TensorProduct
open _root_.Module
open _root_.WithConv
universe u v w
namespace TorsionCharacters
section Rho
variable (k : Type u) [Field k] (H : Type v) [CommRing H] [HopfAlgebra k H]
def rho (ξ : H →ₗ[k] k) : H →ₗ[k] H
SchemeTheory.HopfGroupLike.TorsionCharacters.rho_apply
Source context 18 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.Coalgebra
open _root_.TensorProduct
open _root_.Coalgebra.TensorProduct
open _root_.Module
open _root_.WithConv
universe u v w
namespace TorsionCharacters
section Rho
variable (k : Type u) [Field k] (H : Type v) [CommRing H] [HopfAlgebra k H]
variable {k H}
theorem rho_apply (ξ : H →ₗ[k] k) (a : H) :
    rho k H ξ a = TensorProduct.rid k H (LinearMap.lTensor H ξ (Coalgebra.comul a))
SchemeTheory.HopfGroupLike.TorsionCharacters.rho_apply_repr
Source context 18 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.Coalgebra
open _root_.TensorProduct
open _root_.Coalgebra.TensorProduct
open _root_.Module
open _root_.WithConv
universe u v w
namespace TorsionCharacters
section Rho
variable (k : Type u) [Field k] (H : Type v) [CommRing H] [HopfAlgebra k H]
variable {k H}
theorem rho_apply_repr (ξ : H →ₗ[k] k) {a : H} {ι𝓡 : Type*} (𝓡 : Coalgebra.Repr k a ι𝓡) :
    rho k H ξ a = ∑ i ∈ 𝓡.index, ξ (𝓡.right i) • 𝓡.left i
SchemeTheory.HopfGroupLike.TorsionCharacters.rho_counit
Source context 18 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.Coalgebra
open _root_.TensorProduct
open _root_.Coalgebra.TensorProduct
open _root_.Module
open _root_.WithConv
universe u v w
namespace TorsionCharacters
section Rho
variable (k : Type u) [Field k] (H : Type v) [CommRing H] [HopfAlgebra k H]
variable {k H}
theorem rho_counit (a : H) : rho k H (Coalgebra.counit) a = a
SchemeTheory.HopfGroupLike.TorsionCharacters.rho_convOne
Source context 18 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.Coalgebra
open _root_.TensorProduct
open _root_.Coalgebra.TensorProduct
open _root_.Module
open _root_.WithConv
universe u v w
namespace TorsionCharacters
section Rho
variable (k : Type u) [Field k] (H : Type v) [CommRing H] [HopfAlgebra k H]
variable {k H}
theorem rho_convOne : rho k H (1 : WithConv (H →ₗ[k] k)).ofConv = LinearMap.id
SchemeTheory.HopfGroupLike.TorsionCharacters.rho_convMul
Source context 18 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.Coalgebra
open _root_.TensorProduct
open _root_.Coalgebra.TensorProduct
open _root_.Module
open _root_.WithConv
universe u v w
namespace TorsionCharacters
section Rho
variable (k : Type u) [Field k] (H : Type v) [CommRing H] [HopfAlgebra k H]
variable {k H}
theorem rho_convMul (ξ ξ' : WithConv (H →ₗ[k] k)) :
    rho k H (ξ * ξ').ofConv = rho k H ξ.ofConv ∘ₗ rho k H ξ'.ofConv
SchemeTheory.HopfGroupLike.TorsionCharacters.rhoHom

The convolution action as a monoid homomorphism.

Source context 18 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.Coalgebra
open _root_.TensorProduct
open _root_.Coalgebra.TensorProduct
open _root_.Module
open _root_.WithConv
universe u v w
namespace TorsionCharacters
section Rho
variable (k : Type u) [Field k] (H : Type v) [CommRing H] [HopfAlgebra k H]
variable {k H}
def rhoHom : WithConv (H →ₗ[k] k) →* Module.End k H where
  toFun ξ := rho k H ξ.ofConv
  map_one' := rho_convOne
  map_mul' ξ ξ' := by
    rw [Module.End.mul_eq_comp]
    exact rho_convMul ξ ξ'
SchemeTheory.HopfGroupLike.TorsionCharacters.rhoHom_apply
Source context 18 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.Coalgebra
open _root_.TensorProduct
open _root_.Coalgebra.TensorProduct
open _root_.Module
open _root_.WithConv
universe u v w
namespace TorsionCharacters
section Rho
variable (k : Type u) [Field k] (H : Type v) [CommRing H] [HopfAlgebra k H]
variable {k H}
theorem rhoHom_apply (ξ : WithConv (H →ₗ[k] k)) : rhoHom ξ = rho k H ξ.ofConv
SchemeTheory.HopfGroupLike.TorsionCharacters.counit_rho
Source context 18 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.Coalgebra
open _root_.TensorProduct
open _root_.Coalgebra.TensorProduct
open _root_.Module
open _root_.WithConv
universe u v w
namespace TorsionCharacters
section Rho
variable (k : Type u) [Field k] (H : Type v) [CommRing H] [HopfAlgebra k H]
variable {k H}
theorem counit_rho (ξ : H →ₗ[k] k) (a : H) : Coalgebra.counit (rho k H ξ a) = ξ a
SchemeTheory.HopfGroupLike.TorsionCharacters.orbit

The span of the convolution orbit of an element.

Source context 18 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.Coalgebra
open _root_.TensorProduct
open _root_.Coalgebra.TensorProduct
open _root_.Module
open _root_.WithConv
universe u v w
namespace TorsionCharacters
section Rho
variable (k : Type u) [Field k] (H : Type v) [CommRing H] [HopfAlgebra k H]
variable {k H}
def orbit (a : H) : Submodule k H
SchemeTheory.HopfGroupLike.TorsionCharacters.rho_mem_orbit_gen
Source context 18 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.Coalgebra
open _root_.TensorProduct
open _root_.Coalgebra.TensorProduct
open _root_.Module
open _root_.WithConv
universe u v w
namespace TorsionCharacters
section Rho
variable (k : Type u) [Field k] (H : Type v) [CommRing H] [HopfAlgebra k H]
variable {k H}
theorem rho_mem_orbit_gen (ξ : H →ₗ[k] k) (a : H) : rho k H ξ a ∈ orbit (k := k) a
SchemeTheory.HopfGroupLike.TorsionCharacters.self_mem_orbit
Source context 18 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.Coalgebra
open _root_.TensorProduct
open _root_.Coalgebra.TensorProduct
open _root_.Module
open _root_.WithConv
universe u v w
namespace TorsionCharacters
section Rho
variable (k : Type u) [Field k] (H : Type v) [CommRing H] [HopfAlgebra k H]
variable {k H}
theorem self_mem_orbit (a : H) : a ∈ orbit (k := k) a
SchemeTheory.HopfGroupLike.TorsionCharacters.orbit_le_span
Source context 18 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.Coalgebra
open _root_.TensorProduct
open _root_.Coalgebra.TensorProduct
open _root_.Module
open _root_.WithConv
universe u v w
namespace TorsionCharacters
section Rho
variable (k : Type u) [Field k] (H : Type v) [CommRing H] [HopfAlgebra k H]
variable {k H}
theorem orbit_le_span (a : H) {ι𝓡 : Type*} (𝓡 : Coalgebra.Repr k a ι𝓡) :
    orbit (k := k) a ≤ Submodule.span k (𝓡.left '' (𝓡.index : Set ι𝓡))
SchemeTheory.HopfGroupLike.TorsionCharacters.orbit_finiteDimensional
Source context 18 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.Coalgebra
open _root_.TensorProduct
open _root_.Coalgebra.TensorProduct
open _root_.Module
open _root_.WithConv
universe u v w
namespace TorsionCharacters
section Rho
variable (k : Type u) [Field k] (H : Type v) [CommRing H] [HopfAlgebra k H]
variable {k H}
instance orbit_finiteDimensional (a : H) : FiniteDimensional k (orbit (k := k) a)
SchemeTheory.HopfGroupLike.TorsionCharacters.rho_mem_orbit
Source context 18 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.Coalgebra
open _root_.TensorProduct
open _root_.Coalgebra.TensorProduct
open _root_.Module
open _root_.WithConv
universe u v w
namespace TorsionCharacters
section Rho
variable (k : Type u) [Field k] (H : Type v) [CommRing H] [HopfAlgebra k H]
variable {k H}
theorem rho_mem_orbit (ξ : H →ₗ[k] k) {a v : H} (hv : v ∈ orbit (k := k) a) :
    rho k H ξ v ∈ orbit (k := k) a
SchemeTheory.HopfGroupLike.TorsionCharacters.exists_isGroupLikeElem_of_common_eigenvector
Source context 18 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.Coalgebra
open _root_.TensorProduct
open _root_.Coalgebra.TensorProduct
open _root_.Module
open _root_.WithConv
universe u v w
namespace TorsionCharacters
section Rho
variable (k : Type u) [Field k] (H : Type v) [CommRing H] [HopfAlgebra k H]
variable {k H}
theorem exists_isGroupLikeElem_of_common_eigenvector {w : H} (hw : w ≠ 0)
    (hev : ∀ ξ : H →ₗ[k] k, ∃ c : k, rho k H ξ w = c • w) :
    ∃ b : H, IsGroupLikeElem k b ∧ ∀ ξ : H →ₗ[k] k, rho k H ξ w = ξ b • w
SchemeTheory.HopfGroupLike.TorsionCharacters.main
Source context 18 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.Coalgebra
open _root_.TensorProduct
open _root_.Coalgebra.TensorProduct
open _root_.Module
open _root_.WithConv
universe u v w
namespace TorsionCharacters
section Rho
variable (k : Type u) [Field k] (H : Type v) [CommRing H] [HopfAlgebra k H]
variable {k H}
theorem main [IsAlgClosed k] [Coalgebra.IsCocomm k H]
    (φ : WithConv (H →ₐ[k] k)) (m : ℕ) (hm : (m : k) ≠ 0) (hφ : φ ^ m = 1)
    (h1 : ∀ g : H, IsGroupLikeElem k g → φ g = 1) : φ = 1
HopfAlgebra.withConv_algHom_eq_one_of_pow_eq_one_of_forall_isGroupLikeElem
Source context 11 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace HopfAlgebra
universe u v w
open SchemeTheory.HopfGroupLike
open SchemeTheory.HopfGroupLike.TorsionCharacters
theorem withConv_algHom_eq_one_of_pow_eq_one_of_forall_isGroupLikeElem
    (k : Type u) [Field k] [IsAlgClosed k] (H : Type v) [CommRing H] [HopfAlgebra k H]
    [Coalgebra.IsCocomm k H]
    (φ : WithConv (H →ₐ[k] k)) (m : ℕ) (hm : (m : k) ≠ 0) (hφ : φ ^ m = 1)
    (h1 : ∀ g : H, IsGroupLikeElem k g → φ g = 1) :
    φ = 1
SchemeTheory.HopfGroupLike.CharacterCount.convEquivChar

Convolution characters of a group algebra are multiplicative characters.

Source context 13 commands

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

@[expose] public section
open AlgebraicCurves.Foundations.CommutativeAlgebra.Proofs
open Ideal_natCast_le_ringKrullDim_quotient_of_mem_minimalPrimes_map_of_algebraicIndependent
open P2mFibDim (ringKrullDim_localization_le)
open AlgebraicCurves.Geometry.Schemes.Proofs
open SmoothOfRelativeDimension_topologicalKrullDim_le.P2mSmoothOfRelativeDimensionKrullDim
  (ringKrullDim_le_of_faithfullyFlat)
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AddMonoidAlgebra_natCard_withConv_algHom_pow_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.
-/
namespace SchemeTheory.HopfGroupLike
open AddMonoidAlgebra WithConv
namespace CharacterCount
universe u v w
section Char
variable (k : Type u) [CommRing k] (M : Type v) [AddCommGroup M]
  (A : Type w) [CommRing A] [Algebra k A]
def convEquivChar :
    WithConv (AddMonoidAlgebra k M →ₐ[k] A) ≃* (Multiplicative M →* A) where
  toEquiv := (WithConv.equiv _).trans (AddMonoidAlgebra.lift k A M).symm
  map_mul' φ ψ := by
    refine MonoidHom.ext fun x => ?_
    rw [MonoidHom.mul_apply]
    change (AddMonoidAlgebra.lift k A M).symm (φ * ψ).ofConv x =
      (AddMonoidAlgebra.lift k A M).symm φ.ofConv x * (AddMonoidAlgebra.lift k A M).symm ψ.ofConv x
    rw [AddMonoidAlgebra.lift_symm_apply, AddMonoidAlgebra.lift_symm_apply,
      AddMonoidAlgebra.lift_symm_apply, AlgHom.convMul_apply]
    rw [(AddMonoidAlgebra.isGroupLikeElem_single_one (R := k) (A := k)
      (Multiplicative.toAdd x)).comul_eq_tmul_self, Algebra.TensorProduct.lift_tmul]
SchemeTheory.HopfGroupLike.CharacterCount.convEquivChar_apply
Source context 13 commands

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

@[expose] public section
open AlgebraicCurves.Foundations.CommutativeAlgebra.Proofs
open Ideal_natCast_le_ringKrullDim_quotient_of_mem_minimalPrimes_map_of_algebraicIndependent
open P2mFibDim (ringKrullDim_localization_le)
open AlgebraicCurves.Geometry.Schemes.Proofs
open SmoothOfRelativeDimension_topologicalKrullDim_le.P2mSmoothOfRelativeDimensionKrullDim
  (ringKrullDim_le_of_faithfullyFlat)
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AddMonoidAlgebra_natCard_withConv_algHom_pow_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.
-/
namespace SchemeTheory.HopfGroupLike
open AddMonoidAlgebra WithConv
namespace CharacterCount
universe u v w
section Char
variable (k : Type u) [CommRing k] (M : Type v) [AddCommGroup M]
  (A : Type w) [CommRing A] [Algebra k A]
theorem convEquivChar_apply (φ : WithConv (AddMonoidAlgebra k M →ₐ[k] A)) (x : Multiplicative M) :
    convEquivChar k M A φ x = φ.ofConv (single (Multiplicative.toAdd x) 1)
SchemeTheory.HopfGroupLike.CharacterCount.char_ext
Source context 13 commands

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

@[expose] public section
open AlgebraicCurves.Foundations.CommutativeAlgebra.Proofs
open Ideal_natCast_le_ringKrullDim_quotient_of_mem_minimalPrimes_map_of_algebraicIndependent
open P2mFibDim (ringKrullDim_localization_le)
open AlgebraicCurves.Geometry.Schemes.Proofs
open SmoothOfRelativeDimension_topologicalKrullDim_le.P2mSmoothOfRelativeDimensionKrullDim
  (ringKrullDim_le_of_faithfullyFlat)
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AddMonoidAlgebra_natCard_withConv_algHom_pow_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.
-/
namespace SchemeTheory.HopfGroupLike
open AddMonoidAlgebra WithConv
namespace CharacterCount
universe u v w
section Count
variable {M : Type v} [AddCommGroup M] {A : Type w} [CommRing A]
theorem char_ext {ι : Type*} (b : Module.Basis ι ℤ M) (ψ ψ' : Multiplicative M →* A)
    (h : ∀ i, ψ (Multiplicative.ofAdd (b i)) = ψ' (Multiplicative.ofAdd (b i))) : ψ = ψ'
SchemeTheory.HopfGroupLike.CharacterCount.natCard_char_pow_eq_one
Source context 14 commands

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

@[expose] public section
open AlgebraicCurves.Foundations.CommutativeAlgebra.Proofs
open Ideal_natCast_le_ringKrullDim_quotient_of_mem_minimalPrimes_map_of_algebraicIndependent
open P2mFibDim (ringKrullDim_localization_le)
open AlgebraicCurves.Geometry.Schemes.Proofs
open SmoothOfRelativeDimension_topologicalKrullDim_le.P2mSmoothOfRelativeDimensionKrullDim
  (ringKrullDim_le_of_faithfullyFlat)
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AddMonoidAlgebra_natCard_withConv_algHom_pow_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.
-/
namespace SchemeTheory.HopfGroupLike
open AddMonoidAlgebra WithConv
namespace CharacterCount
universe u v w
section Count
variable {M : Type v} [AddCommGroup M] {A : Type w} [CommRing A]
variable (M A)
theorem natCard_char_pow_eq_one [Module.Free ℤ M] [Module.Finite ℤ M]
    (m : ℕ) [NeZero m] [HasEnoughRootsOfUnity A m] :
    Nat.card {ψ : Multiplicative M →* A // ψ ^ m = 1} = m ^ Module.finrank ℤ M
SchemeTheory.HopfGroupLike.CharacterCount.main
Source context 11 commands

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

@[expose] public section
open AlgebraicCurves.Foundations.CommutativeAlgebra.Proofs
open Ideal_natCast_le_ringKrullDim_quotient_of_mem_minimalPrimes_map_of_algebraicIndependent
open P2mFibDim (ringKrullDim_localization_le)
open AlgebraicCurves.Geometry.Schemes.Proofs
open SmoothOfRelativeDimension_topologicalKrullDim_le.P2mSmoothOfRelativeDimensionKrullDim
  (ringKrullDim_le_of_faithfullyFlat)
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AddMonoidAlgebra_natCard_withConv_algHom_pow_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.
-/
namespace SchemeTheory.HopfGroupLike
open AddMonoidAlgebra WithConv
namespace CharacterCount
universe u v w
theorem main
    (k : Type u) [CommRing k] (M : Type v) [AddCommGroup M] [Module.Free ℤ M] [Module.Finite ℤ M]
    (A : Type w) [CommRing A] [Algebra k A]
    (m : ℕ) [NeZero m] [HasEnoughRootsOfUnity A m] :
    Nat.card {φ : WithConv (AddMonoidAlgebra k M →ₐ[k] A) // φ ^ m = 1} =
      m ^ Module.finrank ℤ M
AddMonoidAlgebra.natCard_withConv_algHom_pow_eq_one
Source context 11 commands

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

@[expose] public section
open AlgebraicCurves.Foundations.CommutativeAlgebra.Proofs
open Ideal_natCast_le_ringKrullDim_quotient_of_mem_minimalPrimes_map_of_algebraicIndependent
open P2mFibDim (ringKrullDim_localization_le)
open AlgebraicCurves.Geometry.Schemes.Proofs
open SmoothOfRelativeDimension_topologicalKrullDim_le.P2mSmoothOfRelativeDimensionKrullDim
  (ringKrullDim_le_of_faithfullyFlat)
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AddMonoidAlgebra_natCard_withConv_algHom_pow_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.
-/
namespace AddMonoidAlgebra
universe u v w
open SchemeTheory.HopfGroupLike
open SchemeTheory.HopfGroupLike.CharacterCount
theorem natCard_withConv_algHom_pow_eq_one
    (k : Type u) [CommRing k] (M : Type v) [AddCommGroup M] [Module.Free ℤ M] [Module.Finite ℤ M]
    (A : Type w) [CommRing A] [Algebra k A]
    (m : ℕ) [NeZero m] [HasEnoughRootsOfUnity A m] :
    Nat.card {φ : WithConv (AddMonoidAlgebra k M →ₐ[k] A) // φ ^ m = 1} =
      m ^ Module.finrank ℤ M
SchemeTheory.HopfGroupLike.LaurentDimension.ringKrullDim_laurentPolynomial
Source context 10 commands

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

@[expose] public section
open AlgebraicCurves.Foundations.CommutativeAlgebra.Proofs
open Ideal_natCast_le_ringKrullDim_quotient_of_mem_minimalPrimes_map_of_algebraicIndependent
open P2mFibDim (ringKrullDim_localization_le)
open AlgebraicCurves.Geometry.Schemes.Proofs
open SmoothOfRelativeDimension_topologicalKrullDim_le.P2mSmoothOfRelativeDimensionKrullDim
  (ringKrullDim_le_of_faithfullyFlat)
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AddMonoidAlgebra_ringKrullDim_pi_fin_int_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.
-/
namespace SchemeTheory.HopfGroupLike
open Polynomial
namespace LaurentDimension
theorem ringKrullDim_laurentPolynomial (R : Type*) [CommRing R] [IsDomain R] [IsNoetherianRing R] :
    ringKrullDim (LaurentPolynomial R) = ringKrullDim R + 1
SchemeTheory.HopfGroupLike.LaurentDimension.noeth_and_dim
Source context 10 commands

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

@[expose] public section
open AlgebraicCurves.Foundations.CommutativeAlgebra.Proofs
open Ideal_natCast_le_ringKrullDim_quotient_of_mem_minimalPrimes_map_of_algebraicIndependent
open P2mFibDim (ringKrullDim_localization_le)
open AlgebraicCurves.Geometry.Schemes.Proofs
open SmoothOfRelativeDimension_topologicalKrullDim_le.P2mSmoothOfRelativeDimensionKrullDim
  (ringKrullDim_le_of_faithfullyFlat)
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AddMonoidAlgebra_ringKrullDim_pi_fin_int_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.
-/
namespace SchemeTheory.HopfGroupLike
open Polynomial
namespace LaurentDimension
theorem noeth_and_dim (κ : Type*) [Field κ] :
    ∀ t : ℕ, IsNoetherianRing (AddMonoidAlgebra κ (Fin t → ℤ)) ∧
      ringKrullDim (AddMonoidAlgebra κ (Fin t → ℤ)) = t
  | 0 => by
      let e : AddMonoidAlgebra κ (Fin 0 → ℤ) ≃+* κ := AddMonoidAlgebra.uniqueRingEquiv (Fin 0 → ℤ)
      refine ⟨isNoetherianRing_of_ringEquiv κ e.symm, ?_⟩
      rw [ringKrullDim_eq_of_ringEquiv e, ringKrullDim_eq_zero_of_field]
      rfl
  | (t + 1) => by
      obtain ⟨hN, hd⟩ := noeth_and_dim κ t
      let e1 : (Fin (t + 1) → ℤ) ≃+ ℤ × (Fin t → ℤ) :=
        { (Fin.consEquiv fun _ : Fin (t + 1) => ℤ).symm with
          map_add' := fun f g => rfl }
      let E : AddMonoidAlgebra κ (Fin (t + 1) → ℤ) ≃+*
          LaurentPolynomial (AddMonoidAlgebra κ (Fin t → ℤ)) :=
        (AddMonoidAlgebra.domCongr κ κ e1).toRingEquiv.trans AddMonoidAlgebra.curryRingEquiv
      have : IsNoetherianRing (AddMonoidAlgebra κ (Fin t → ℤ)) := hN
      have : IsNoetherianRing (LaurentPolynomial (AddMonoidAlgebra κ (Fin t → ℤ))) :=
        IsLocalization.isNoetherianRing
          (.powers (X : (AddMonoidAlgebra κ (Fin t → ℤ))[X])) _ inferInstance
      refine ⟨isNoetherianRing_of_ringEquiv _ E.symm, ?_⟩
      rw [ringKrullDim_eq_of_ringEquiv E, ringKrullDim_laurentPolynomial, hd]
      rfl
AddMonoidAlgebra.ringKrullDim_pi_fin_int_eq
Source context 11 commands

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

@[expose] public section
open AlgebraicCurves.Foundations.CommutativeAlgebra.Proofs
open Ideal_natCast_le_ringKrullDim_quotient_of_mem_minimalPrimes_map_of_algebraicIndependent
open P2mFibDim (ringKrullDim_localization_le)
open AlgebraicCurves.Geometry.Schemes.Proofs
open SmoothOfRelativeDimension_topologicalKrullDim_le.P2mSmoothOfRelativeDimensionKrullDim
  (ringKrullDim_le_of_faithfullyFlat)
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AddMonoidAlgebra_ringKrullDim_pi_fin_int_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.
-/
namespace AddMonoidAlgebra
universe u v w
open SchemeTheory.HopfGroupLike
open SchemeTheory.HopfGroupLike.LaurentDimension
theorem ringKrullDim_pi_fin_int_eq (κ : Type*) [Field κ] (t : ℕ) :
    ringKrullDim (AddMonoidAlgebra κ (Fin t → ℤ)) = t
SchemeTheory.HopfGroupLike.CharacterLattice.smoothOfRelativeDimension_specMap
Source context 18 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.AlgebraicGeometry
open _root_.CategoryTheory
open _root_.Coalgebra
open scoped TensorProduct
open scoped Coalgebra.TensorProduct
universe u v
namespace CharacterLattice
section Plumbing
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [Algebra k H] (h : ℕ)
  (hsm : RingHom.Locally (RingHom.IsStandardSmoothOfRelativeDimension h) (algebraMap k H))
include hsm
theorem smoothOfRelativeDimension_specMap :
    SmoothOfRelativeDimension h (Spec.map (CommRingCat.ofHom (algebraMap k H)))
SchemeTheory.HopfGroupLike.CharacterLattice.finiteType
Source context 18 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.AlgebraicGeometry
open _root_.CategoryTheory
open _root_.Coalgebra
open scoped TensorProduct
open scoped Coalgebra.TensorProduct
universe u v
namespace CharacterLattice
section Plumbing
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [Algebra k H] (h : ℕ)
  (hsm : RingHom.Locally (RingHom.IsStandardSmoothOfRelativeDimension h) (algebraMap k H))
include hsm
theorem finiteType : Algebra.FiniteType k H
SchemeTheory.HopfGroupLike.CharacterLattice.isReduced
Source context 18 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.AlgebraicGeometry
open _root_.CategoryTheory
open _root_.Coalgebra
open scoped TensorProduct
open scoped Coalgebra.TensorProduct
universe u v
namespace CharacterLattice
section Plumbing
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [Algebra k H] (h : ℕ)
  (hsm : RingHom.Locally (RingHom.IsStandardSmoothOfRelativeDimension h) (algebraMap k H))
include hsm
theorem isReduced : IsReduced H
SchemeTheory.HopfGroupLike.CharacterLattice.ringKrullDim_le
Source context 18 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.AlgebraicGeometry
open _root_.CategoryTheory
open _root_.Coalgebra
open scoped TensorProduct
open scoped Coalgebra.TensorProduct
universe u v
namespace CharacterLattice
section Plumbing
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [Algebra k H] (h : ℕ)
  (hsm : RingHom.Locally (RingHom.IsStandardSmoothOfRelativeDimension h) (algebraMap k H))
include hsm
theorem ringKrullDim_le : ringKrullDim H ≤ h
SchemeTheory.HopfGroupLike.CharacterLattice.linearIndependent_pow_of_orderOf
Source context 17 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.AlgebraicGeometry
open _root_.CategoryTheory
open _root_.Coalgebra
open scoped TensorProduct
open scoped Coalgebra.TensorProduct
universe u v
namespace CharacterLattice
section Hopf
variable {k : Type u} [Field k] {H : Type v} [CommRing H] [HopfAlgebra k H]
theorem linearIndependent_pow_of_orderOf (g : GroupLike k H) :
    LinearIndependent k (fun i : Fin (orderOf g) => (g ^ (i : ℕ)).val) := by
  have hinj : Function.Injective (fun i : Fin (orderOf g) => g ^ (i : ℕ)) := by
    intro i j hij
    apply Fin.ext
    have := pow_inj_mod.mp hij
    rwa [Nat.mod_eq_of_lt i.2, Nat.mod_eq_of_lt j.2] at this
  exact (linearIndep_groupLikeVal (R := k) (A := H)).comp _ hinj
SchemeTheory.HopfGroupLike.CharacterLattice.orderOf_ne_of_cast_eq_zero
Source context 17 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.AlgebraicGeometry
open _root_.CategoryTheory
open _root_.Coalgebra
open scoped TensorProduct
open scoped Coalgebra.TensorProduct
universe u v
namespace CharacterLattice
section Hopf
variable {k : Type u} [Field k] {H : Type v} [CommRing H] [HopfAlgebra k H]
theorem orderOf_ne_of_cast_eq_zero [IsReduced H] (g : GroupLike k H) {q : ℕ} (hq : q.Prime)
    (hqk : (q : k) = 0) : orderOf g ≠ q
SchemeTheory.HopfGroupLike.CharacterLattice.orderOf_ne_of_cast_ne_zero
Source context 17 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.AlgebraicGeometry
open _root_.CategoryTheory
open _root_.Coalgebra
open scoped TensorProduct
open scoped Coalgebra.TensorProduct
universe u v
namespace CharacterLattice
section Hopf
variable {k : Type u} [Field k] {H : Type v} [CommRing H] [HopfAlgebra k H]
theorem orderOf_ne_of_cast_ne_zero [ConnectedSpace (PrimeSpectrum H)] (g : GroupLike k H) {q : ℕ}
    (hq : q.Prime) (hqk : (q : k) ≠ 0) : orderOf g ≠ q
SchemeTheory.HopfGroupLike.CharacterLattice.groupLike_eq_one_of_pow_eq_one
Source context 17 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.AlgebraicGeometry
open _root_.CategoryTheory
open _root_.Coalgebra
open scoped TensorProduct
open scoped Coalgebra.TensorProduct
universe u v
namespace CharacterLattice
section Hopf
variable {k : Type u} [Field k] {H : Type v} [CommRing H] [HopfAlgebra k H]
theorem groupLike_eq_one_of_pow_eq_one [IsReduced H] [ConnectedSpace (PrimeSpectrum H)]
    (g : GroupLike k H) {n : ℕ} (hn : 0 < n) (hg : g ^ n = 1) : g = 1
SchemeTheory.HopfGroupLike.CharacterLattice.isMulTorsionFree
Source context 17 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.AlgebraicGeometry
open _root_.CategoryTheory
open _root_.Coalgebra
open scoped TensorProduct
open scoped Coalgebra.TensorProduct
universe u v
namespace CharacterLattice
section Hopf
variable {k : Type u} [Field k] {H : Type v} [CommRing H] [HopfAlgebra k H]
theorem isMulTorsionFree [IsReduced H] [ConnectedSpace (PrimeSpectrum H)] :
    IsMulTorsionFree (GroupLike k H)
SchemeTheory.HopfGroupLike.CharacterLattice.CharLat

The additive character lattice of group-like elements.

Source context 17 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.AlgebraicGeometry
open _root_.CategoryTheory
open _root_.Coalgebra
open scoped TensorProduct
open scoped Coalgebra.TensorProduct
universe u v
namespace CharacterLattice
section GroupAlgebra
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [HopfAlgebra k H]
abbrev CharLat : Type u
SchemeTheory.HopfGroupLike.CharacterLattice.gl

The underlying Hopf-algebra element of a character.

Source context 18 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.AlgebraicGeometry
open _root_.CategoryTheory
open _root_.Coalgebra
open scoped TensorProduct
open scoped Coalgebra.TensorProduct
universe u v
namespace CharacterLattice
section GroupAlgebra
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [HopfAlgebra k H]
variable {k H} in
def gl (m : CharLat k H) : H
SchemeTheory.HopfGroupLike.CharacterLattice.inclHom

The canonical inclusion of group-like elements with additive tags removed.

Source context 18 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.AlgebraicGeometry
open _root_.CategoryTheory
open _root_.Coalgebra
open scoped TensorProduct
open scoped Coalgebra.TensorProduct
universe u v
namespace CharacterLattice
section GroupAlgebra
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [HopfAlgebra k H]
variable {k H} in
def inclHom : Multiplicative (CharLat k H) →* H
SchemeTheory.HopfGroupLike.CharacterLattice.φ

The group-algebra map induced by the character lattice.

Source context 18 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.AlgebraicGeometry
open _root_.CategoryTheory
open _root_.Coalgebra
open scoped TensorProduct
open scoped Coalgebra.TensorProduct
universe u v
namespace CharacterLattice
section GroupAlgebra
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [HopfAlgebra k H]
variable {k H} in
def φ : AddMonoidAlgebra k (CharLat k H) →ₐ[k] H
SchemeTheory.HopfGroupLike.CharacterLattice.isGroupLikeElem_gl
Source context 19 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.AlgebraicGeometry
open _root_.CategoryTheory
open _root_.Coalgebra
open scoped TensorProduct
open scoped Coalgebra.TensorProduct
universe u v
namespace CharacterLattice
section GroupAlgebra
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [HopfAlgebra k H]
variable {k H} in
variable {k H}
theorem isGroupLikeElem_gl (m : CharLat k H) : IsGroupLikeElem k (gl m)
SchemeTheory.HopfGroupLike.CharacterLattice.gl_add
Source context 19 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.AlgebraicGeometry
open _root_.CategoryTheory
open _root_.Coalgebra
open scoped TensorProduct
open scoped Coalgebra.TensorProduct
universe u v
namespace CharacterLattice
section GroupAlgebra
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [HopfAlgebra k H]
variable {k H} in
variable {k H}
theorem gl_add (m n : CharLat k H) : gl (m + n) = gl m * gl n
SchemeTheory.HopfGroupLike.CharacterLattice.gl_zero
Source context 19 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.AlgebraicGeometry
open _root_.CategoryTheory
open _root_.Coalgebra
open scoped TensorProduct
open scoped Coalgebra.TensorProduct
universe u v
namespace CharacterLattice
section GroupAlgebra
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [HopfAlgebra k H]
variable {k H} in
variable {k H}
theorem gl_zero : gl (0 : CharLat k H) = 1
SchemeTheory.HopfGroupLike.CharacterLattice.gl_neg
Source context 19 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.AlgebraicGeometry
open _root_.CategoryTheory
open _root_.Coalgebra
open scoped TensorProduct
open scoped Coalgebra.TensorProduct
universe u v
namespace CharacterLattice
section GroupAlgebra
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [HopfAlgebra k H]
variable {k H} in
variable {k H}
theorem gl_neg (m : CharLat k H) : gl (-m) = HopfAlgebra.antipode k (gl m)
SchemeTheory.HopfGroupLike.CharacterLattice.φ_single
Source context 19 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.AlgebraicGeometry
open _root_.CategoryTheory
open _root_.Coalgebra
open scoped TensorProduct
open scoped Coalgebra.TensorProduct
universe u v
namespace CharacterLattice
section GroupAlgebra
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [HopfAlgebra k H]
variable {k H} in
variable {k H}
theorem φ_single (m : CharLat k H) (c : k) :
    φ k H (AddMonoidAlgebra.single m c) = c • gl m
SchemeTheory.HopfGroupLike.CharacterLattice.φ_apply
Source context 19 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.AlgebraicGeometry
open _root_.CategoryTheory
open _root_.Coalgebra
open scoped TensorProduct
open scoped Coalgebra.TensorProduct
universe u v
namespace CharacterLattice
section GroupAlgebra
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [HopfAlgebra k H]
variable {k H} in
variable {k H}
theorem φ_apply (f : AddMonoidAlgebra k (CharLat k H)) :
    φ k H f = f.coeff.sum fun m c => c • gl m := by
  rw [φ, AddMonoidAlgebra.lift_apply]
  rfl
SchemeTheory.HopfGroupLike.CharacterLattice.φ_injective
Source context 19 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.AlgebraicGeometry
open _root_.CategoryTheory
open _root_.Coalgebra
open scoped TensorProduct
open scoped Coalgebra.TensorProduct
universe u v
namespace CharacterLattice
section GroupAlgebra
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [HopfAlgebra k H]
variable {k H} in
variable {k H}
theorem φ_injective : Function.Injective (φ k H)
SchemeTheory.HopfGroupLike.CharacterLattice.K

The subalgebra spanned by group-like elements.

Source context 20 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.AlgebraicGeometry
open _root_.CategoryTheory
open _root_.Coalgebra
open scoped TensorProduct
open scoped Coalgebra.TensorProduct
universe u v
namespace CharacterLattice
section GroupAlgebra
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [HopfAlgebra k H]
variable {k H} in
variable {k H}
variable (k H)
def K : Subalgebra k H
SchemeTheory.HopfGroupLike.CharacterLattice.mem_K_iff
Source context 21 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.AlgebraicGeometry
open _root_.CategoryTheory
open _root_.Coalgebra
open scoped TensorProduct
open scoped Coalgebra.TensorProduct
universe u v
namespace CharacterLattice
section GroupAlgebra
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [HopfAlgebra k H]
variable {k H} in
variable {k H}
variable (k H)
variable {k H}
theorem mem_K_iff (x : H) : x ∈ K k H ↔ ∃ f : AddMonoidAlgebra k (CharLat k H), φ k H f = x
SchemeTheory.HopfGroupLike.CharacterLattice.gl_mem
Source context 21 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.AlgebraicGeometry
open _root_.CategoryTheory
open _root_.Coalgebra
open scoped TensorProduct
open scoped Coalgebra.TensorProduct
universe u v
namespace CharacterLattice
section GroupAlgebra
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [HopfAlgebra k H]
variable {k H} in
variable {k H}
variable (k H)
variable {k H}
theorem gl_mem (m : CharLat k H) : gl m ∈ K k H
SchemeTheory.HopfGroupLike.CharacterLattice.comul_mem
Source context 21 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.AlgebraicGeometry
open _root_.CategoryTheory
open _root_.Coalgebra
open scoped TensorProduct
open scoped Coalgebra.TensorProduct
universe u v
namespace CharacterLattice
section GroupAlgebra
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [HopfAlgebra k H]
variable {k H} in
variable {k H}
variable (k H)
variable {k H}
theorem comul_mem (x : H) (hx : x ∈ K k H) :
    comul (R := k) x ∈ Submodule.span k
      {t : H ⊗[k] H | ∃ a ∈ K k H, ∃ b ∈ K k H, t = a ⊗ₜ[k] b}
SchemeTheory.HopfGroupLike.CharacterLattice.antipode_mem
Source context 21 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.AlgebraicGeometry
open _root_.CategoryTheory
open _root_.Coalgebra
open scoped TensorProduct
open scoped Coalgebra.TensorProduct
universe u v
namespace CharacterLattice
section GroupAlgebra
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [HopfAlgebra k H]
variable {k H} in
variable {k H}
variable (k H)
variable {k H}
theorem antipode_mem (x : H) (hx : x ∈ K k H) : HopfAlgebra.antipode k x ∈ K k H
SchemeTheory.HopfGroupLike.CharacterLattice.faithfullyFlat_K
Source context 21 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.AlgebraicGeometry
open _root_.CategoryTheory
open _root_.Coalgebra
open scoped TensorProduct
open scoped Coalgebra.TensorProduct
universe u v
namespace CharacterLattice
section GroupAlgebra
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [HopfAlgebra k H]
variable {k H} in
variable {k H}
variable (k H)
variable {k H}
theorem faithfullyFlat_K [Algebra.FiniteType k H] : Module.FaithfullyFlat (K k H) H
SchemeTheory.HopfGroupLike.CharacterLattice.augI

The augmentation ideal generated by a chosen set of characters.

Source context 21 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.AlgebraicGeometry
open _root_.CategoryTheory
open _root_.Coalgebra
open scoped TensorProduct
open scoped Coalgebra.TensorProduct
universe u v
namespace CharacterLattice
section GroupAlgebra
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [HopfAlgebra k H]
variable {k H} in
variable {k H}
variable (k H)
variable {k H}
def augI (S : Set (CharLat k H)) : Ideal H
SchemeTheory.HopfGroupLike.CharacterLattice.augI_mono
Source context 21 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.AlgebraicGeometry
open _root_.CategoryTheory
open _root_.Coalgebra
open scoped TensorProduct
open scoped Coalgebra.TensorProduct
universe u v
namespace CharacterLattice
section GroupAlgebra
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [HopfAlgebra k H]
variable {k H} in
variable {k H}
variable (k H)
variable {k H}
theorem augI_mono {S T : Set (CharLat k H)} (h : S ⊆ T) : augI S ≤ augI T
SchemeTheory.HopfGroupLike.CharacterLattice.sub_one_mem_augI
Source context 21 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.AlgebraicGeometry
open _root_.CategoryTheory
open _root_.Coalgebra
open scoped TensorProduct
open scoped Coalgebra.TensorProduct
universe u v
namespace CharacterLattice
section GroupAlgebra
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [HopfAlgebra k H]
variable {k H} in
variable {k H}
variable (k H)
variable {k H}
theorem sub_one_mem_augI {S : Set (CharLat k H)} {m : CharLat k H} (hm : m ∈ S) :
    gl m - 1 ∈ augI S
SchemeTheory.HopfGroupLike.CharacterLattice.glK

A character as an element of the group-like subalgebra.

Source context 21 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.AlgebraicGeometry
open _root_.CategoryTheory
open _root_.Coalgebra
open scoped TensorProduct
open scoped Coalgebra.TensorProduct
universe u v
namespace CharacterLattice
section GroupAlgebra
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [HopfAlgebra k H]
variable {k H} in
variable {k H}
variable (k H)
variable {k H}
def glK (m : CharLat k H) : K k H
SchemeTheory.HopfGroupLike.CharacterLattice.augJ

The character augmentation ideal inside the group-like subalgebra.

Source context 21 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.AlgebraicGeometry
open _root_.CategoryTheory
open _root_.Coalgebra
open scoped TensorProduct
open scoped Coalgebra.TensorProduct
universe u v
namespace CharacterLattice
section GroupAlgebra
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [HopfAlgebra k H]
variable {k H} in
variable {k H}
variable (k H)
variable {k H}
def augJ (S : Set (CharLat k H)) : Ideal (K k H)
SchemeTheory.HopfGroupLike.CharacterLattice.map_augJ
Source context 21 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.AlgebraicGeometry
open _root_.CategoryTheory
open _root_.Coalgebra
open scoped TensorProduct
open scoped Coalgebra.TensorProduct
universe u v
namespace CharacterLattice
section GroupAlgebra
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [HopfAlgebra k H]
variable {k H} in
variable {k H}
variable (k H)
variable {k H}
theorem map_augJ (S : Set (CharLat k H)) :
    (augJ S).map (algebraMap (K k H) H) = augI S
SchemeTheory.HopfGroupLike.CharacterLattice.ψ

The quotient character map induced by a lattice quotient.

Source context 21 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.AlgebraicGeometry
open _root_.CategoryTheory
open _root_.Coalgebra
open scoped TensorProduct
open scoped Coalgebra.TensorProduct
universe u v
namespace CharacterLattice
section GroupAlgebra
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [HopfAlgebra k H]
variable {k H} in
variable {k H}
variable (k H)
variable {k H}
def ψ (N : Submodule ℤ (CharLat k H)) :
    K k H →ₐ[k] AddMonoidAlgebra k (CharLat k H ⧸ N)
SchemeTheory.HopfGroupLike.CharacterLattice.ψ_glK
Source context 21 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.AlgebraicGeometry
open _root_.CategoryTheory
open _root_.Coalgebra
open scoped TensorProduct
open scoped Coalgebra.TensorProduct
universe u v
namespace CharacterLattice
section GroupAlgebra
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [HopfAlgebra k H]
variable {k H} in
variable {k H}
variable (k H)
variable {k H}
theorem ψ_glK (N : Submodule ℤ (CharLat k H)) (m : CharLat k H) :
    ψ N (glK m) = AddMonoidAlgebra.single (N.mkQ m) 1
SchemeTheory.HopfGroupLike.CharacterLattice.augJ_le_ker
Source context 21 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.AlgebraicGeometry
open _root_.CategoryTheory
open _root_.Coalgebra
open scoped TensorProduct
open scoped Coalgebra.TensorProduct
universe u v
namespace CharacterLattice
section GroupAlgebra
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [HopfAlgebra k H]
variable {k H} in
variable {k H}
variable (k H)
variable {k H}
theorem augJ_le_ker (N : Submodule ℤ (CharLat k H)) :
    augJ (N : Set (CharLat k H)) ≤ RingHom.ker (ψ N)
SchemeTheory.HopfGroupLike.CharacterLattice.mem_of_sub_one_mem_augI
Source context 21 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.AlgebraicGeometry
open _root_.CategoryTheory
open _root_.Coalgebra
open scoped TensorProduct
open scoped Coalgebra.TensorProduct
universe u v
namespace CharacterLattice
section GroupAlgebra
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [HopfAlgebra k H]
variable {k H} in
variable {k H}
variable (k H)
variable {k H}
theorem mem_of_sub_one_mem_augI [Algebra.FiniteType k H] (N : Submodule ℤ (CharLat k H))
    (m : CharLat k H) (hm : gl m - 1 ∈ augI (N : Set (CharLat k H))) : m ∈ N
SchemeTheory.HopfGroupLike.CharacterLattice.moduleFinite_charLat
Source context 21 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.AlgebraicGeometry
open _root_.CategoryTheory
open _root_.Coalgebra
open scoped TensorProduct
open scoped Coalgebra.TensorProduct
universe u v
namespace CharacterLattice
section GroupAlgebra
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [HopfAlgebra k H]
variable {k H} in
variable {k H}
variable (k H)
variable {k H}
theorem moduleFinite_charLat [Algebra.FiniteType k H] : Module.Finite ℤ (CharLat k H)
SchemeTheory.HopfGroupLike.CharacterLattice.ringKrullDim_K
Source context 21 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.AlgebraicGeometry
open _root_.CategoryTheory
open _root_.Coalgebra
open scoped TensorProduct
open scoped Coalgebra.TensorProduct
universe u v
namespace CharacterLattice
section GroupAlgebra
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [HopfAlgebra k H]
variable {k H} in
variable {k H}
variable (k H)
variable {k H}
theorem ringKrullDim_K [Module.Free ℤ (CharLat k H)] [Module.Finite ℤ (CharLat k H)] :
    ringKrullDim (K k H) = Module.finrank ℤ (CharLat k H)
SchemeTheory.HopfGroupLike.CharacterLattice.finrank_le_ringKrullDim
Source context 21 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace SchemeTheory.HopfGroupLike
open _root_.AlgebraicGeometry
open _root_.CategoryTheory
open _root_.Coalgebra
open scoped TensorProduct
open scoped Coalgebra.TensorProduct
universe u v
namespace CharacterLattice
section GroupAlgebra
variable (k : Type u) [Field k] (H : Type u) [CommRing H] [HopfAlgebra k H]
variable {k H} in
variable {k H}
variable (k H)
variable {k H}
theorem finrank_le_ringKrullDim [Algebra.FiniteType k H] [Module.Free ℤ (CharLat k H)]
    [Module.Finite ℤ (CharLat k H)] :
    (Module.finrank ℤ (CharLat k H) : WithBot ℕ∞) ≤ ringKrullDim H
HopfAlgebra.free_and_finite_and_finrank_groupLike_le_of_locally_isStandardSmoothOfRelativeDimension
Source context 11 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace HopfAlgebra
universe u v w
open SchemeTheory.HopfGroupLike
open SchemeTheory.HopfGroupLike.CharacterLattice
theorem free_and_finite_and_finrank_groupLike_le_of_locally_isStandardSmoothOfRelativeDimension
    (k : Type u) [Field k] (H : Type u) [CommRing H] [HopfAlgebra k H]
    [ConnectedSpace (PrimeSpectrum H)] (h : ℕ)
    (hsm : RingHom.Locally (RingHom.IsStandardSmoothOfRelativeDimension h) (algebraMap k H)) :
    Module.Free ℤ (Additive (GroupLike k H)) ∧ Module.Finite ℤ (Additive (GroupLike k H)) ∧
      Module.finrank ℤ (Additive (GroupLike k H)) ≤ h