ModuleCharZeroLocal.lean
Nyll.SchemeTheory.GroupSchemes.HopfAlgebra.CharZeroLocal
25 declarations indexed from sourceView source ↗ Module documentation
Local domains in characteristic-zero Hopf algebras
Use the augmentation filtration and a homogeneous Taylor expansion to prove that localizations at rational points of a finite-type Hopf algebra over a characteristic-zero field are domains.
Imports10
- Mathlib.LinearAlgebra.FiniteDimensional.Basic
- Mathlib.RingTheory.Filtration
- Mathlib.RingTheory.FiniteType
- Mathlib.RingTheory.Flat.Basic
- Mathlib.RingTheory.Localization.AtPrime.Basic
- Mathlib.RingTheory.Localization.Submodule
- Mathlib.Algebra.Ring.Hom.InjSurj
- Mathlib.RingTheory.MvPolynomial.EulerIdentity
- Mathlib.Tactic.Ring
- Nyll.SchemeTheory.GroupSchemes.HopfAlgebra.Basic
Imported by2
Declarations
AbelianVarieties.NOSProofs.CartierFiltration.CartierHopf.kwCartier68a_augIdeal
DocumentationAugmentation ideal of the coordinate Hopf algebra.
Source context 9 commands
Surrounding namespaces, section variables, and local commands at this declaration.
@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_HopfAlgebra_mul_not_mem_ker_counitAlgHom_pow_succ_of_lift_basis_charZero.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.
Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.CartierFiltration
noncomputable section
open TensorProduct Bialgebra Coalgebra MvPolynomial
universe u v w
namespace CartierHopf
section Filtration
variable (k : Type u) [Field k] (A : Type v) [CommRing A] [HopfAlgebra k A]
AbelianVarieties.NOSProofs.CartierFiltration.CartierHopf.kwCartier68a_rTensor_counit_comulDefect
Source context 10 commands
Surrounding namespaces, section variables, and local commands at this declaration.
@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_HopfAlgebra_mul_not_mem_ker_counitAlgHom_pow_succ_of_lift_basis_charZero.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.
Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.CartierFiltration
noncomputable section
open TensorProduct Bialgebra Coalgebra MvPolynomial
universe u v w
namespace CartierHopf
section Filtration
variable (k : Type u) [Field k] (A : Type v) [CommRing A] [HopfAlgebra k A]
variable {k A}
AbelianVarieties.NOSProofs.CartierFiltration.CartierHopf.kwCartier68a_lTensor_counit_comulDefect
Source context 10 commands
Surrounding namespaces, section variables, and local commands at this declaration.
@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_HopfAlgebra_mul_not_mem_ker_counitAlgHom_pow_succ_of_lift_basis_charZero.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.
Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.CartierFiltration
noncomputable section
open TensorProduct Bialgebra Coalgebra MvPolynomial
universe u v w
namespace CartierHopf
section Filtration
variable (k : Type u) [Field k] (A : Type v) [CommRing A] [HopfAlgebra k A]
variable {k A}
AbelianVarieties.NOSProofs.CartierFiltration.CartierHopf.kwCartier68c_augProj
DocumentationProjection onto the augmentation ideal along the scalars.
Source context 9 commands
Surrounding namespaces, section variables, and local commands at this declaration.
@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_HopfAlgebra_mul_not_mem_ker_counitAlgHom_pow_succ_of_lift_basis_charZero.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.
Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.CartierFiltration
noncomputable section
open TensorProduct Bialgebra Coalgebra MvPolynomial
universe u v w
namespace CartierHopf
section AugProj
variable (k : Type u) [Field k] (A : Type v) [CommRing A] [HopfAlgebra k A]
AbelianVarieties.NOSProofs.CartierFiltration.CartierHopf.kwCartier68c_augProj_apply
Source context 10 commands
Surrounding namespaces, section variables, and local commands at this declaration.
@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_HopfAlgebra_mul_not_mem_ker_counitAlgHom_pow_succ_of_lift_basis_charZero.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.
Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.CartierFiltration
noncomputable section
open TensorProduct Bialgebra Coalgebra MvPolynomial
universe u v w
namespace CartierHopf
section AugProj
variable (k : Type u) [Field k] (A : Type v) [CommRing A] [HopfAlgebra k A]
variable {k A}
AbelianVarieties.NOSProofs.CartierFiltration.CartierHopf.kwCartier68c_augProj_mem_augIdeal
Source context 10 commands
Surrounding namespaces, section variables, and local commands at this declaration.
@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_HopfAlgebra_mul_not_mem_ker_counitAlgHom_pow_succ_of_lift_basis_charZero.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.
Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.CartierFiltration
noncomputable section
open TensorProduct Bialgebra Coalgebra MvPolynomial
universe u v w
namespace CartierHopf
section AugProj
variable (k : Type u) [Field k] (A : Type v) [CommRing A] [HopfAlgebra k A]
variable {k A}
AbelianVarieties.NOSProofs.CartierFiltration.CartierHopf.kwCartier68c_augProj_lTensor_comulDefect
Source context 10 commands
Surrounding namespaces, section variables, and local commands at this declaration.
@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_HopfAlgebra_mul_not_mem_ker_counitAlgHom_pow_succ_of_lift_basis_charZero.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.
Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.CartierFiltration
noncomputable section
open TensorProduct Bialgebra Coalgebra MvPolynomial
universe u v w
namespace CartierHopf
section AugProj
variable (k : Type u) [Field k] (A : Type v) [CommRing A] [HopfAlgebra k A]
variable {k A}
AbelianVarieties.NOSProofs.CartierFiltration.CartierHopf.kwCartier68c_augProj_rTensor_comulDefect
Source context 10 commands
Surrounding namespaces, section variables, and local commands at this declaration.
@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_HopfAlgebra_mul_not_mem_ker_counitAlgHom_pow_succ_of_lift_basis_charZero.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.
Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.CartierFiltration
noncomputable section
open TensorProduct Bialgebra Coalgebra MvPolynomial
universe u v w
namespace CartierHopf
section AugProj
variable (k : Type u) [Field k] (A : Type v) [CommRing A] [HopfAlgebra k A]
variable {k A}
AbelianVarieties.NOSProofs.CartierFiltration.CartierHopf.kwCartier68c_augProj_tmul_augProj_comulDefect
Source context 10 commands
Surrounding namespaces, section variables, and local commands at this declaration.
@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_HopfAlgebra_mul_not_mem_ker_counitAlgHom_pow_succ_of_lift_basis_charZero.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.
Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.CartierFiltration
noncomputable section
open TensorProduct Bialgebra Coalgebra MvPolynomial
universe u v w
namespace CartierHopf
section AugProj
variable (k : Type u) [Field k] (A : Type v) [CommRing A] [HopfAlgebra k A]
variable {k A}
AbelianVarieties.NOSProofs.CartierFiltration.CartierHopf.kwCartier68c_comulDefect_mem_map_includeRight
Source context 9 commands
Surrounding namespaces, section variables, and local commands at this declaration.
@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_HopfAlgebra_mul_not_mem_ker_counitAlgHom_pow_succ_of_lift_basis_charZero.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.
Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.CartierFiltration
noncomputable section
open TensorProduct Bialgebra Coalgebra MvPolynomial
universe u v w
namespace CartierHopf
section ComulDefectMap
variable {k : Type u} [Field k] {A : Type v} [CommRing A] [HopfAlgebra k A]
AbelianVarieties.NOSProofs.CartierFiltration.CartierHopf.kwCartier68c_comulDefect_mem_map_includeLeft
Source context 9 commands
Surrounding namespaces, section variables, and local commands at this declaration.
@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_HopfAlgebra_mul_not_mem_ker_counitAlgHom_pow_succ_of_lift_basis_charZero.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.
Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.CartierFiltration
noncomputable section
open TensorProduct Bialgebra Coalgebra MvPolynomial
universe u v w
namespace CartierHopf
section ComulDefectMap
variable {k : Type u} [Field k] {A : Type v} [CommRing A] [HopfAlgebra k A]
AbelianVarieties.NOSProofs.CartierFiltration.CartierHopf.kwCartier68e_comul_mem_sup_map
Source context 9 commands
Surrounding namespaces, section variables, and local commands at this declaration.
@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_HopfAlgebra_mul_not_mem_ker_counitAlgHom_pow_succ_of_lift_basis_charZero.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.
Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.CartierFiltration
noncomputable section
open TensorProduct Bialgebra Coalgebra MvPolynomial
universe u v w
namespace CartierHopf
section ComulFiltered
variable {k : Type u} [Field k] {A : Type v} [CommRing A] [HopfAlgebra k A]
AbelianVarieties.NOSProofs.CartierFiltration.CartierHopf.kwCartier68e_sup_pow_succ_le_of_sq_eq_bot
Source context 9 commands
Surrounding namespaces, section variables, and local commands at this declaration.
@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_HopfAlgebra_mul_not_mem_ker_counitAlgHom_pow_succ_of_lift_basis_charZero.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.
Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.CartierFiltration
noncomputable section
open TensorProduct Bialgebra Coalgebra MvPolynomial
universe u v w
namespace CartierHopf
section NilpotentSup
variable {S : Type v} [CommRing S]
AbelianVarieties.NOSProofs.CartierFiltration.CartierHopf.kwCartier68e_Ψ
DocumentationComultiplication truncated in the augmentation filtrations of the two factors.
Source context 9 commands
Surrounding namespaces, section variables, and local commands at this declaration.
@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_HopfAlgebra_mul_not_mem_ker_counitAlgHom_pow_succ_of_lift_basis_charZero.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.
Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.CartierFiltration
noncomputable section
open TensorProduct Bialgebra Coalgebra MvPolynomial
universe u v w
namespace CartierHopf
section PsiKill
variable (k : Type u) [Field k] (A : Type v) [CommRing A] [HopfAlgebra k A] (n : ℕ)
AbelianVarieties.NOSProofs.CartierFiltration.CartierHopf.kwCartier68e_Ψ_apply_eq_zero_of_mem_pow_succ
Source context 10 commands
Surrounding namespaces, section variables, and local commands at this declaration.
@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_HopfAlgebra_mul_not_mem_ker_counitAlgHom_pow_succ_of_lift_basis_charZero.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.
Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.CartierFiltration
noncomputable section
open TensorProduct Bialgebra Coalgebra MvPolynomial
universe u v w
namespace CartierHopf
section PsiKill
variable (k : Type u) [Field k] (A : Type v) [CommRing A] [HopfAlgebra k A] (n : ℕ)
variable {k A n}
AbelianVarieties.NOSProofs.CartierFiltration.CartierHopf.kwCartier68e_aeval_add_of_sq_eq_zero
Source context 10 commands
Surrounding namespaces, section variables, and local commands at this declaration.
@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_HopfAlgebra_mul_not_mem_ker_counitAlgHom_pow_succ_of_lift_basis_charZero.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.
Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.CartierFiltration
noncomputable section
open TensorProduct Bialgebra Coalgebra MvPolynomial
universe u v w
namespace CartierHopf
section SqZeroTaylor
variable {k : Type u} [CommRing k] {S : Type v} [CommRing S] [Algebra k S]
variable {ι : Type w} [Fintype ι]
AbelianVarieties.NOSProofs.CartierFiltration.CartierHopf.kwCartier68e_eq_zero_of_sum_tmul_linearIndependent
Source context 10 commands
Surrounding namespaces, section variables, and local commands at this declaration.
@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_HopfAlgebra_mul_not_mem_ker_counitAlgHom_pow_succ_of_lift_basis_charZero.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.
Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.CartierFiltration
noncomputable section
open TensorProduct Bialgebra Coalgebra MvPolynomial
universe u v w
namespace CartierHopf
section TmulLinIndep
variable {k : Type u} [Field k] {V : Type v} [AddCommGroup V] [Module k V]
variable {W : Type w} [AddCommGroup W] [Module k W] {ι : Type*} [Fintype ι]
AbelianVarieties.NOSProofs.CartierFiltration.CartierHopf.kwCartier68e_aeval_homogeneous_mem_augIdeal_pow
Source context 10 commands
Surrounding namespaces, section variables, and local commands at this declaration.
@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_HopfAlgebra_mul_not_mem_ker_counitAlgHom_pow_succ_of_lift_basis_charZero.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.
Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.CartierFiltration
noncomputable section
open TensorProduct Bialgebra Coalgebra MvPolynomial
universe u v w
namespace CartierHopf
section Main
variable {k : Type u} [Field k] {A : Type v} [CommRing A] [HopfAlgebra k A]
variable {ι : Type w}
AbelianVarieties.NOSProofs.CartierFiltration.CartierHopf.kwCartier68e_aeval_homogeneous_not_mem_augIdeal_pow_succ
Source context 11 commands
Surrounding namespaces, section variables, and local commands at this declaration.
@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_HopfAlgebra_mul_not_mem_ker_counitAlgHom_pow_succ_of_lift_basis_charZero.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.
Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.CartierFiltration
noncomputable section
open TensorProduct Bialgebra Coalgebra MvPolynomial
universe u v w
namespace CartierHopf
section Main
variable {k : Type u} [Field k] {A : Type v} [CommRing A] [HopfAlgebra k A]
variable {ι : Type w}
variable [Finite ι] [CharZero k]
Lean source · full declarationtheorem kwCartier68e_aeval_homogeneous_not_mem_augIdeal_pow_succ
{ξ : ι → A} (hξI : ∀ i, ξ i ∈ kwCartier68a_augIdeal k A)
(hξli : LinearIndependent k
(fun i => Ideal.Quotient.mk ((kwCartier68a_augIdeal k A) ^ 2) (ξ i)))
{n : ℕ} {p : MvPolynomial ι k} (hp : p.IsHomogeneous n) (hp0 : p ≠ 0) :
aeval ξ p ∉ (kwCartier68a_augIdeal k A) ^ (n + 1) := by
classical
let _ : Fintype ι := Fintype.ofFinite ι
set I := kwCartier68a_augIdeal k A with hI
induction n using Nat.strong_induction_on generalizing p with
| _ n IH =>
intro hmem
rcases Nat.eq_zero_or_pos n with hn0 | hnpos
· subst hn0
have hpC : p = C (p.coeff 0) := by
rw [← totalDegree_zero_iff_isHomogeneous] at hp
exact (totalDegree_eq_zero_iff_eq_C.mp hp)
have hc0 : p.coeff 0 ≠ 0 := fun h => hp0 (by rw [hpC, h, map_zero])
rw [hpC, aeval_C, pow_one] at hmem
have heps : (counitAlgHom k A) (algebraMap k A (p.coeff 0)) = 0 := hmem
rw [AlgHom.commutes] at heps
exact hc0 heps
let πn := Ideal.Quotient.mkₐ k (I ^ n)
let π2 := Ideal.Quotient.mkₐ k (I ^ 2)
let Rng := (A ⧸ I ^ n) ⊗[k] (A ⧸ I ^ 2)
let Ψ := kwCartier68e_Ψ k A n
let aL : ι → Rng := fun i => πn (ξ i) ⊗ₜ[k] 1
let bR : ι → Rng := fun i => Ψ (ξ i) - aL i
let K : Ideal Rng :=
(I.map π2.toRingHom).map
(Algebra.TensorProduct.includeRight (R := k) (A := A ⧸ I ^ n)).toRingHom
have hK2 : K ^ 2 = ⊥ := by
rw [← Ideal.map_pow, ← Ideal.map_pow,
show (I ^ 2).map π2.toRingHom = ⊥ from
(Ideal.map_eq_bot_iff_le_ker _).mpr
(by rw [← RingHom.ker_coe_toRingHom]; exact Ideal.mk_ker.ge),
Ideal.map_bot]
have hcommR :
(Algebra.TensorProduct.map πn π2).toRingHom.comp
(Algebra.TensorProduct.includeRight (R := k) (A := A)).toRingHom
= (Algebra.TensorProduct.includeRight (R := k)
(A := A ⧸ I ^ n)).toRingHom.comp π2.toRingHom := by
ext a
simp only [RingHom.comp_apply, AlgHom.toRingHom_eq_coe, AlgHom.coe_toRingHom,
Algebra.TensorProduct.includeRight_apply, Algebra.TensorProduct.map_tmul, map_one]
have hcommL :
(Algebra.TensorProduct.map πn π2).toRingHom.comp
(Algebra.TensorProduct.includeLeft (R := k) (S := k) (B := A)).toRingHom
= (Algebra.TensorProduct.includeLeft (R := k) (S := k)
(B := A ⧸ I ^ 2)).toRingHom.comp πn.toRingHom := by
ext a
simp only [RingHom.comp_apply, AlgHom.toRingHom_eq_coe, AlgHom.coe_toRingHom,
Algebra.TensorProduct.includeLeft_apply, Algebra.TensorProduct.map_tmul, map_one]
have hΨi : ∀ i, Ψ (ξ i)
= πn (ξ i) ⊗ₜ[k] (1 : A ⧸ I ^ 2) + (1 : A ⧸ I ^ n) ⊗ₜ[k] π2 (ξ i)
+ (Algebra.TensorProduct.map πn π2)
((Coalgebra.comul (R := k) (ξ i)) - (ξ i) ⊗ₜ[k] 1 - 1 ⊗ₜ[k] (ξ i)) := by
intro i
change (Algebra.TensorProduct.map πn π2) (comulAlgHom k A (ξ i)) = _
have hc : (comulAlgHom k A) (ξ i)
= (ξ i) ⊗ₜ[k] (1 : A) + (1 : A) ⊗ₜ[k] (ξ i)
+ ((Coalgebra.comul (R := k) (ξ i)) - (ξ i) ⊗ₜ[k] 1 - 1 ⊗ₜ[k] (ξ i)) := by
change (Coalgebra.comul (R := k) (ξ i)) = _; ring
rw [hc, map_add, map_add, Algebra.TensorProduct.map_tmul,
Algebra.TensorProduct.map_tmul, map_one, map_one]
have hbR_eq : ∀ i, bR i = (1 : A ⧸ I ^ n) ⊗ₜ[k] π2 (ξ i)
+ (Algebra.TensorProduct.map πn π2)
((Coalgebra.comul (R := k) (ξ i)) - (ξ i) ⊗ₜ[k] 1 - 1 ⊗ₜ[k] (ξ i)) := by
intro i
have : bR i = Ψ (ξ i) - aL i := rfl
rw [this, hΨi i]; simp only [aL]; ring
have hbK : ∀ i, bR i ∈ K := by
intro i
rw [hbR_eq i]
refine Ideal.add_mem _ ?_ ?_
· exact Ideal.mem_map_of_mem _ (Ideal.mem_map_of_mem _ (hξI i))
· have hy := kwCartier68c_comulDefect_mem_map_includeRight (k := k) (hξI i)
have hmem := Ideal.mem_map_of_mem (Algebra.TensorProduct.map πn π2).toRingHom hy
rwa [Ideal.map_map, hcommR, ← Ideal.map_map] at hmem
let iL' : (A ⧸ I ^ n) →ₐ[k] Rng :=
Algebra.TensorProduct.includeLeft (R := k) (S := k) (B := A ⧸ I ^ 2)
have haLbR : aL + bR = fun i => Ψ (ξ i) := funext fun i => by
change aL i + (Ψ (ξ i) - aL i) = Ψ (ξ i)
exact add_sub_cancel _ _
have haevaL : ∀ q : MvPolynomial ι k, aeval aL q = iL' (πn (aeval ξ q)) := fun q => by
have heq : (aeval aL : MvPolynomial ι k →ₐ[k] Rng) = (iL'.comp πn).comp (aeval ξ) :=
MvPolynomial.algHom_ext fun i => by
simp only [aeval_X, AlgHom.comp_apply]; rfl
exact DFunLike.congr_fun heq q
have haevΨ : ∀ q : MvPolynomial ι k,
(aeval (fun i => Ψ (ξ i)) : MvPolynomial ι k →ₐ[k] Rng) q = Ψ (aeval ξ q) := fun q => by
have heq : (aeval (fun i => Ψ (ξ i)) : MvPolynomial ι k →ₐ[k] Rng) = Ψ.comp (aeval ξ) :=
MvPolynomial.algHom_ext fun i => by simp only [aeval_X, AlgHom.comp_apply]
exact DFunLike.congr_fun heq q
have hTaylor := kwCartier68e_aeval_add_of_sq_eq_zero hK2 aL bR hbK p
rw [haLbR, haevΨ] at hTaylor
have hΨz : Ψ (aeval ξ p) = 0 :=
kwCartier68e_Ψ_apply_eq_zero_of_mem_pow_succ hmem
have haLz : aeval aL p = 0 := by
rw [haevaL]
have : πn (aeval ξ p) = 0 := Ideal.Quotient.eq_zero_iff_mem.mpr
(Ideal.pow_le_pow_right (Nat.le_succ n) hmem)
rw [this, map_zero]
rw [hΨz, haLz, zero_add] at hTaylor
have hdefect : ∀ i, aeval aL (pderiv i p) * bR i
= πn (aeval ξ (pderiv i p)) ⊗ₜ[k] π2 (ξ i) := by
intro i
rw [haevaL, show iL' (πn (aeval ξ (pderiv i p)))
= πn (aeval ξ (pderiv i p)) ⊗ₜ[k] (1 : A ⧸ I ^ 2) from rfl,
hbR_eq i, mul_add, Algebra.TensorProduct.tmul_mul_tmul, one_mul, mul_one]
convert add_zero _
have hdp : aeval ξ (pderiv i p) ∈ I ^ (n - 1) :=
kwCartier68e_aeval_homogeneous_mem_augIdeal_pow hξI hp.pderiv
have hyL := kwCartier68c_comulDefect_mem_map_includeLeft (k := k) (hξI i)
have hwL : (Algebra.TensorProduct.map πn π2)
((Coalgebra.comul (R := k) (ξ i)) - (ξ i) ⊗ₜ[k] 1 - 1 ⊗ₜ[k] (ξ i)) ∈
(I.map πn.toRingHom).map
(Algebra.TensorProduct.includeLeft (R := k) (S := k)
(B := A ⧸ I ^ 2)).toRingHom := by
have hmem := Ideal.mem_map_of_mem (Algebra.TensorProduct.map πn π2).toRingHom hyL
rwa [Ideal.map_map, hcommL, ← Ideal.map_map] at hmem
have hleft : πn (aeval ξ (pderiv i p)) ⊗ₜ[k] (1 : A ⧸ I ^ 2) ∈
((I ^ (n - 1)).map πn.toRingHom).map
(Algebra.TensorProduct.includeLeft (R := k) (S := k)
(B := A ⧸ I ^ 2)).toRingHom :=
Ideal.mem_map_of_mem _ (Ideal.mem_map_of_mem _ hdp)
have hnil : (I ^ (n - 1)).map πn.toRingHom * I.map πn.toRingHom = ⊥ := by
rw [← Ideal.map_mul, ← pow_succ, Nat.sub_add_cancel hnpos]
exact (Ideal.map_eq_bot_iff_le_ker _).mpr
(by rw [← RingHom.ker_coe_toRingHom]; exact Ideal.mk_ker.ge)
have hprod := Ideal.mul_mem_mul hleft hwL
rw [← Ideal.map_mul, hnil, Ideal.map_bot, Ideal.mem_bot] at hprod
exact hprod
rw [Finset.sum_congr rfl fun i _ => hdefect i] at hTaylor
have hcoef : ∀ i, πn (aeval ξ (pderiv i p)) = 0 :=
fun i => kwCartier68e_eq_zero_of_sum_tmul_linearIndependent hξli hTaylor.symm i
have hpderiv0 : ∀ i, pderiv i p = 0 := by
intro i
by_contra hne
have hmemn : aeval ξ (pderiv i p) ∈ I ^ n :=
Ideal.Quotient.eq_zero_iff_mem.mp (hcoef i)
have hrw : I ^ n = I ^ (n - 1 + 1) := by rw [Nat.sub_add_cancel hnpos]
rw [hrw] at hmemn
exact IH (n - 1) (Nat.sub_lt hnpos one_pos) hp.pderiv hne hmemn
have heuler := hp.sum_X_mul_pderiv
simp only [hpderiv0, mul_zero, Finset.sum_const_zero] at heuler
have hnp : (n : MvPolynomial ι k) * p = 0 := by
have h := heuler.symm; rwa [nsmul_eq_mul] at h
have hncast : (n : MvPolynomial ι k) ≠ 0 := by
rw [show (n : MvPolynomial ι k) = C (n : k) from (map_natCast _ _).symm]
exact fun h => (Nat.cast_ne_zero.mpr hnpos.ne') (C_injective ι k (by rwa [map_zero]))
exact hp0 ((mul_eq_zero.mp hnp).resolve_left hncast)
AbelianVarieties.NOSProofs.CartierFiltration.CartierHopf.kwCartier68e_exists_homogeneous_aeval_congr_of_mem_pow
Source context 10 commands
Surrounding namespaces, section variables, and local commands at this declaration.
@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_HopfAlgebra_mul_not_mem_ker_counitAlgHom_pow_succ_of_lift_basis_charZero.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.
Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.CartierFiltration
noncomputable section
open TensorProduct Bialgebra Coalgebra MvPolynomial
universe u v w
namespace CartierHopf
section Surj
variable {k : Type u} [Field k] {A : Type v} [CommRing A] [HopfAlgebra k A]
variable {ι : Type w} [Fintype ι]
AbelianVarieties.NOSProofs.CartierFiltration.CartierHopf.kwCartier68e_mul_not_mem_pow_of_not_mem_pow
Source context 11 commands
Surrounding namespaces, section variables, and local commands at this declaration.
@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_HopfAlgebra_mul_not_mem_ker_counitAlgHom_pow_succ_of_lift_basis_charZero.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.
Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.CartierFiltration
noncomputable section
open TensorProduct Bialgebra Coalgebra MvPolynomial
universe u v w
namespace CartierHopf
section Surj
variable {k : Type u} [Field k] {A : Type v} [CommRing A] [HopfAlgebra k A]
variable {ι : Type w} [Fintype ι]
variable [CharZero k]
HopfAlgebra.mul_not_mem_ker_counitAlgHom_pow_succ_of_lift_basis_charZero
Source context 7 commands
Surrounding namespaces, section variables, and local commands at this declaration.
@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_HopfAlgebra_mul_not_mem_ker_counitAlgHom_pow_succ_of_lift_basis_charZero.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.
Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.CartierFiltration
noncomputable section
open TensorProduct Bialgebra Coalgebra MvPolynomial
universe u v w
open CartierHopf in
HopfAlgebra.exists_fin_lift_basis_ker_counitAlgHom_sq_of_finiteType
Source context 5 commands
Surrounding namespaces, section variables, and local commands at this declaration.
@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_HopfAlgebra_exists_fin_lift_basis_ker_counitAlgHom_sq_of_finiteType.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.
Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.CartierCotangentBasis
open Bialgebra Coalgebra
noncomputable section
Lean source · full declarationtheorem _root_.HopfAlgebra.exists_fin_lift_basis_ker_counitAlgHom_sq_of_finiteType
(K : Type*) [Field K]
(A : Type*) [CommRing A] [HopfAlgebra K A] [Algebra.FiniteType K A] :
∃ (n : ℕ) (ξ : Fin n → A),
(∀ i, ξ i ∈ RingHom.ker (Bialgebra.counitAlgHom K A).toRingHom) ∧
LinearIndependent K
(fun i ↦ Ideal.Quotient.mk
((RingHom.ker (Bialgebra.counitAlgHom K A).toRingHom) ^ 2) (ξ i)) ∧
(∀ a ∈ RingHom.ker (Bialgebra.counitAlgHom K A).toRingHom,
∃ c : Fin n → K,
a - ∑ i, c i • ξ i ∈ (RingHom.ker (Bialgebra.counitAlgHom K A).toRingHom) ^ 2) := by
classical
set I := RingHom.ker (Bialgebra.counitAlgHom K A).toRingHom with hI
have haugProj_mem : ∀ a : A, a - algebraMap K A (Coalgebra.counit (R := K) a) ∈ I := by
intro a
change Coalgebra.counit (R := K) (a - algebraMap K A (Coalgebra.counit (R := K) a)) = 0
have hε1 : Coalgebra.counit (R := K) (algebraMap K A (Coalgebra.counit (R := K) a))
= Coalgebra.counit (R := K) a := (Bialgebra.counitAlgHom K A).commutes _
rw [map_sub, hε1, sub_self]
have : IsNoetherianRing A := Algebra.FiniteType.isNoetherianRing K A
obtain ⟨s, hs⟩ := (IsNoetherian.noetherian I : I.FG)
let Q := Ideal.Quotient.mk (I ^ 2)
have hspanA : ∀ a ∈ I, Q a ∈ Submodule.span K (Q '' (↑s : Set A)) := by
intro a ha
have ha' : a ∈ Submodule.span A (↑s : Set A) := hs ▸ ha
rw [Finsupp.mem_span_iff_linearCombination] at ha'
obtain ⟨r, rfl⟩ := ha'
rw [Finsupp.linearCombination_apply, Finsupp.sum, map_sum]
refine Submodule.sum_mem _ fun j hj => ?_
have hsmul : (r j • (↑j : A)) = r j * ↑j := rfl
have hdecomp : r j * (↑j : A)
= algebraMap K A (Coalgebra.counit (R := K) (r j)) * (↑j : A)
+ (r j - algebraMap K A (Coalgebra.counit (R := K) (r j))) * (↑j : A) := by ring
have hjI : (↑j : A) ∈ I := hs ▸ Ideal.subset_span j.2
have hI2 : (r j - algebraMap K A (Coalgebra.counit (R := K) (r j))) * (↑j : A) ∈ I ^ 2 := by
rw [pow_two]
exact Ideal.mul_mem_mul (haugProj_mem (r j)) hjI
rw [hsmul, hdecomp, map_add, Ideal.Quotient.eq_zero_iff_mem.mpr hI2, add_zero, map_mul]
rw [show Q (algebraMap K A (Coalgebra.counit (R := K) (r j)))
= algebraMap K (A ⧸ I^2) (Coalgebra.counit (R := K) (r j)) from rfl,
← Algebra.smul_def]
exact Submodule.smul_mem _ _ (Submodule.subset_span ⟨↑j, j.2, rfl⟩)
let V : Submodule K (A ⧸ I ^ 2) := Submodule.span K (Q '' (↑s : Set A))
have : Module.Finite K V := Module.Finite.span_of_finite K (s.finite_toSet.image _)
let B := Module.Free.chooseBasis K V
have : Fintype (Module.Free.ChooseBasisIndex K V) := inferInstance
have hVsub : ∀ v ∈ V, ∃ a ∈ I, Q a = v := by
intro v hv
refine Submodule.span_induction ?_ ?_ ?_ ?_ hv
· rintro _ ⟨g, hg, rfl⟩; exact ⟨g, hs ▸ Ideal.subset_span hg, rfl⟩
· exact ⟨0, I.zero_mem, map_zero Q⟩
· rintro x y _ _ ⟨a, haI, rfl⟩ ⟨b, hbI, rfl⟩
exact ⟨a + b, I.add_mem haI hbI, map_add Q a b⟩
· rintro c x _ ⟨a, haI, rfl⟩
refine ⟨c • a, ?_, map_smul (Ideal.Quotient.mkₐ K (I^2)) c a⟩
rw [Algebra.smul_def]; exact I.mul_mem_left _ haI
choose ξ' hξ'I hξ'Q using fun j => hVsub (B j).1 (B j).2
let e := (Fintype.equivFin (Module.Free.ChooseBasisIndex K V)).symm
let n := Fintype.card (Module.Free.ChooseBasisIndex K V)
refine ⟨n, fun i => ξ' (e i), fun i => hξ'I (e i), ?_, ?_⟩
· have hBli' : LinearIndependent K (fun j => ((B j : V) : A ⧸ I^2)) :=
B.linearIndependent.map' V.subtype (Submodule.ker_subtype V)
have hQξ' : (fun j => Q (ξ' j)) = (fun j => ((B j : V) : A ⧸ I^2)) := funext hξ'Q
have : LinearIndependent K (fun j => Q (ξ' j)) := hQξ' ▸ hBli'
exact this.comp e e.injective
· intro a haI
have haV : Q a ∈ V := hspanA a haI
set v : V := ⟨Q a, haV⟩
refine ⟨fun i => B.repr v (e i), ?_⟩
rw [← Ideal.Quotient.eq_zero_iff_mem, map_sub, map_sum]
have hsubv : V.subtype v = ∑ j, B.repr v j • (B j : A ⧸ I^2) := by
conv_lhs => rw [← B.sum_repr v]
simp only [map_sum, map_smul, Submodule.coe_subtype]
have hsumeq : Q a = ∑ i : Fin n, B.repr v (e i) • Q (ξ' (e i)) := by
rw [show Q a = V.subtype v from rfl, hsubv, ← e.sum_comp]
exact Finset.sum_congr rfl fun j _ => by rw [hξ'Q (e j)]
rw [hsumeq]
refine sub_eq_zero.mpr (Finset.sum_congr rfl fun i _ => ?_)
exact (map_smul (Ideal.Quotient.mkₐ K (I^2)) (B.repr v (e i)) (ξ' (e i))).symm
HopfAlgebra.isDomain_localization_atPrime_ker_counitAlgHom_of_finiteType_of_charZero
Source context 5 commands
Surrounding namespaces, section variables, and local commands at this declaration.
@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_HopfAlgebra_isDomain_localization_atPrime_ker_counitAlgHom_of_finiteType_of_charZero.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.
Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.CartierLocalDomain
open Bialgebra
noncomputable section
HopfAlgebra.isDomain_localization_atPrime_ker_algHom_of_finiteType_of_charZero
Source context 4 commands
Surrounding namespaces, section variables, and local commands at this declaration.
@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license 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_isDomain_localization_atPrime_ker_algHom_of_finiteType_of_charZero.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.
Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties.NOSProofs.CartierRationalPoint
open Bialgebra