/-
Copyright 2026 The Formal Conjectures Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-/
/-
The copied Mathlib source carries the following attribution:
Copyright (c) 2026 Edison Xie. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Edison Xie, David Kurniadi Angdinata
-/
module
public import Mathlib.FieldTheory.IsSepClosed
public import FormalConjecturesForMathlib.FieldTheory.AbsoluteGaloisGroup
public import Mathlib.RepresentationTheory.Homological.ContCohomology.FunctorialityThe Tate–Shafarevich group of a Galois module
This file defines a general notion of a Tate–Shafarevich group of a Galois module (i.e. an abelian
group A equipped with a continuous action of the absolute Galois group G_K of a field K), as
the intersection of the kernels of the maps Hⁿ(G_K, A) → Hⁿ(G_Kᵥ, A), induced by the map
G_Kᵥ → G_K, where Kᵥ is a field extension of K for each v in an arbitrary indexing set V.
These definitions were introduced in Mathlib by Edison Xie and David Kurniadi Angdinata's
pull request #43529.
They are absent from this repository's Mathlib v4.33.1 dependency. The added code is copied
verbatim from Mathlib.RepresentationTheory.Homological.ContCohomology.Sha at commit
a4c43ae1f99cb19aabfa62308b3ea75a340e470f, except that Mathlib.FieldTheory.AbsoluteGaloisGroup
is replaced by this repository's copy, which supplies Field.absoluteGaloisGroup.map.
Main definitions
ContinuousCohomology.tateShafarevich: the Tate–Shafarevich group of a Galois module.
TODOs
Add a notation for ContinuousCohomology.tateShafarevich.
Prove that ContinuousCohomology.tateShafarevich of a discrete Galois module is torsion.
Define the classical Tate–Shafarevich group in Mathlib/AlgebraicGeometry/EllipticCurve.
Implementation notes
Mathematicians seem to use "Tate–Shafarevich group" in at least three distinct contexts. They have
in common the set-up that K is a global field, A is a discrete G_K-module, V is the set of
places of K, and Kᵥ is the completion of K at a place v in V.
The first context is when A is finite. This is used, for example, in the statement of global
Poitou-Tate duality. In this theorem, the Tate–Shafarevich group is defined exactly as in this file.
It agrees with Definition 8.6.2 of [Neukirch–Schmidt–Wingberg].
The second context is when A is the Kˢ-valued points of a group scheme J such as an abelian
variety. Then the Tate–Shafarevich group is usually defined as the intersection of the kernels of
the maps H¹(G_K, J(Kˢ)) → H¹(G_Kᵥ, J(Kᵥˢ)). Note that in particular the module changes as well as
the group, so technically this is not quite what is happening in this definition. However the
inclusion H¹(G_Kᵥ, J(Kᵥˢ)) → H¹(G_Kᵥ, J(Kˢ)) is an isomorphism by the Greenberg approximation
theorem, so the definition in this file is still mathematically correct.
See Remark I.3.10 of [Milne].
The third context is when A is the quotient of a p-adic G_K-module by a G_K-invariant
lattice, which is different from the definition in this PR. See Section 1 of [Flach].
References
@[expose] public sectionuniverse u vvariable {K : Type u} {V : Type v} [Field K] (f : V → Type u) [∀ v, Field (f v)]
[∀ v, Algebra K (f v)] (A : TopRep ℤ (Field.absoluteGaloisGroup K)) (n : ℕ)open CategoryTheorynamespace ContinuousCohomologyThe Tate–Shafarevich group of a Galois module.
@[simps!]
noncomputable def tateShafarevich : AddSubgroup (continuousCohomology n A) :=
⨅ v, (map (Field.absoluteGaloisGroup.map (algebraMap K (f v))) (𝟙 _) n).hom.toAddMonoidHom.kerlemma tateShafarevich_eq_iInf : tateShafarevich f A n =
⨅ v : V, (ContinuousCohomology.map
(Field.absoluteGaloisGroup.map (algebraMap K (f v))) (𝟙 _) n).hom.toAddMonoidHom.ker := rfllemma tateShafarevich_eq_ker_pi : tateShafarevich f A n =
(AddMonoidHom.pi fun v : V ↦ (ContinuousCohomology.map
(Field.absoluteGaloisGroup.map (algebraMap K (f v))) (𝟙 _) n).hom.toAddMonoidHom).ker := K:Type uV:Type vinst✝²:Field Kf:V → Type uinst✝¹:(v : V) → Field (f v)inst✝:(v : V) → Algebra K (f v)A:TopRep ℤ (Field.absoluteGaloisGroup K)n:ℕ⊢ tateShafarevich f A n =
(AddMonoidHom.pi fun v ↦
(↑(TopModuleCat.Hom.hom
(map (Field.absoluteGaloisGroup.map (algebraMap K (f v)))
(𝟙 (TopRep.res (↑(Field.absoluteGaloisGroup.map (algebraMap K (f v)))) A)) n))).toAddMonoidHom).ker
K:Type uV:Type vinst✝²:Field Kf:V → Type uinst✝¹:(v : V) → Field (f v)inst✝:(v : V) → Algebra K (f v)A:TopRep ℤ (Field.absoluteGaloisGroup K)n:ℕx✝:↑(continuousCohomology n A).toModuleCat⊢ x✝ ∈ tateShafarevich f A n ↔
x✝ ∈
(AddMonoidHom.pi fun v ↦
(↑(TopModuleCat.Hom.hom
(map (Field.absoluteGaloisGroup.map (algebraMap K (f v)))
(𝟙 (TopRep.res (↑(Field.absoluteGaloisGroup.map (algebraMap K (f v)))) A)) n))).toAddMonoidHom).ker; All goals completed! 🐙@[simp]
lemma mem_tateShafarevich (x : continuousCohomology n A) : x ∈ tateShafarevich f A n ↔
∀ v : V, (ContinuousCohomology.map
(Field.absoluteGaloisGroup.map (algebraMap K (f v))) (𝟙 _) n).hom x = 0 := K:Type uV:Type vinst✝²:Field Kf:V → Type uinst✝¹:(v : V) → Field (f v)inst✝:(v : V) → Algebra K (f v)A:TopRep ℤ (Field.absoluteGaloisGroup K)n:ℕx:↑(continuousCohomology n A).toModuleCat⊢ x ∈ tateShafarevich f A n ↔
∀ (v : V),
(TopModuleCat.Hom.hom
(map (Field.absoluteGaloisGroup.map (algebraMap K (f v)))
(𝟙 (TopRep.res (↑(Field.absoluteGaloisGroup.map (algebraMap K (f v)))) A)) n))
x =
0
All goals completed! 🐙end ContinuousCohomology