The Shafarevich–Tate group of a Galois module
DefinitionRank2Sha_ContCohomologyShaLet be a field with absolute Galois group , let be a topological abelian group with a continuous action of , and let be a family of field extensions of indexed by an arbitrary set . Fix .
For each the inclusion induces a restriction map on continuous cohomology
where acts on through . The Shafarevich–Tate group of in degree with respect to the family is
When is a global field, its set of places and the completions, this is the group of cohomology classes that are locally trivial everywhere.
Formalization Note The coefficient module is the same module at every ; it is not replaced by a module of points over . The code is copied without change from formal-conjectures, which copied it from Mathlib pull request 43529; the file is absent from the Mathlib revision of this environment.
/-
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
-/
import Mathlib.FieldTheory.IsSepClosed
import Definitions.Def_Rank2Sha_AbsoluteGaloisGroup
import Mathlib.RepresentationTheory.Homological.ContCohomology.Functoriality
/-!
# The 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](https://github.com/leanprover-community/mathlib4/pull/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
* [Neukirch–Schmidt–Wingberg, *Cohomology of Number Fields*](https://link.springer.com/book/10.1007/978-3-540-37889-1)
* [Milne, *Arithmetic Duality Theorems*](https://www.jmilne.org/math/Books/ADTnot.pdf)
* [Flach, *A finiteness theorem for the symmetric square of an elliptic curve*](https://link.springer.com/article/10.1007/BF01232029)
-/
universe u v
variable {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 CategoryTheory
namespace ContinuousCohomology
/-- The 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.ker
lemma tateShafarevich_eq_iInf : tateShafarevich f A n =
⨅ v : V, (ContinuousCohomology.map
(Field.absoluteGaloisGroup.map (algebraMap K (f v))) (𝟙 _) n).hom.toAddMonoidHom.ker := rfl
lemma 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 := by
ext; simp [tateShafarevich_eq_iInf, funext_iff]
@[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 := by
simp [tateShafarevich_eq_iInf]
end ContinuousCohomology
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Conventions used below. For a field , is Mathlib's fixed algebraic closure of and is its group of -algebra automorphisms with the Krull topology, as in the read-back of Def_Rank2Sha_AbsoluteGaloisGroup. For a ring homomorphism of fields, denotes the continuous group homomorphism Field.absoluteGaloisGroup.map of that file: it is defined using one specific -algebra embedding (with a -algebra through ) produced by Mathlib's choice-based IsAlgClosed.lift, and it is characterised by for , .
Topological representations. For a topological group , an object of TopRep ℤ G consists of an abelian group with a topology making it a topological group (it is a -module, with given its standard discrete topology, and scalar multiplication is continuous), together with a group homomorphism from to the monoid of continuous -linear endomorphisms of . Each is continuous on ; continuity of the action map in both variables is not required. For a continuous homomorphism , is the same topological group with acting as .
Continuous cohomology (Mathlib). denotes Mathlib's continuousCohomology n A. It is defined as follows. Put and , the group of continuous maps with the compact-open topology and -action . The maps are and . The cochain complex has the -invariant elements of in degree , with differential induced by , and is its -th cohomology, a topological -module; the definitions in this file use only its underlying abelian group. For a continuous homomorphism , the map
is the map on cohomology induced by the cochain map that sends to the composite of with the corresponding map at the previous level, starting from the identity of at level ; at the level of cochains it is precomposition with in every variable. The coefficient group is unchanged.
Variables of the file. Throughout:
- is a field in a universe ;
- is an arbitrary type in a universe (it may be empty, finite or infinite);
- for each , is a field in the same universe as , equipped with a -algebra structure, that is, an arbitrary ring homomorphism . Nothing relates to completions of ; for example or is allowed;
- is an object of
TopRep ℤ G_Kas described above; - is a natural number, including .
Write and
Each depends on the specific embedding fixed by Mathlib's choice. The coefficient module at is itself with acting through ; no module attached to appears.
ContinuousCohomology.tateShafarevich. This is the additive subgroup of
the infimum, in the lattice of additive subgroups, of the kernels of the group homomorphisms . When is empty it is all of . An attribute on the definition generates rewriting lemmas restating it; they add no content.
tateShafarevich_eq_iInf. For all data as above, the subgroup tateShafarevich equals . This holds by definition.
tateShafarevich_eq_ker_pi. For all data as above, the subgroup tateShafarevich equals the kernel of the single group homomorphism
into the full (unrestricted) product.
mem_tateShafarevich. For all data as above and every class , lies in tateShafarevich if and only if in for every . This is registered as a simplification lemma.