Module

SupportedIdelePrescribedH2.lean

Nyll.ClassFieldTheory.GlobalClassFieldTheory.Cohomology.SupportedIdelePrescribedH2
12 declarations indexed from sourceView source ↗

Prescribed local degree-two classes and the idèle class quotient

Finite and archimedean tensor classes specify a supported idèle class in cohomology. The quotient induces the corresponding class with coefficients in C_L. For the Herbrand support, exactness identifies the kernel with the image from the actual extension-field S-units.

Declarations

Source context 11 commands

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

@[expose] public section
open CategoryTheory NumberField IsDedekindDomain
open CyclicCohomology.ProfiniteCohomology.Herbrand RelativeIdeleGroup.Cohomology
open ClassFieldTower.Martinet.Shafarevich AlgebraicNumberTheory.Valuations HilbertRamification
open scoped NumberField TensorProduct
noncomputable section
namespace GlobalClassFieldTheory.Cohomology
variable (K L : Type) [Field K] [NumberField K] [Field L] [NumberField L]
  [Algebra K L] [FiniteDimensional K L] [IsGalois K L]
  (S : Finset (HeightOneSpectrum (𝓞 K)))
local notation "J" => relativeIdeleLocalTensorDecompositionSupportedSubgroup (K := K) (L := L) S
local notation "Cₗ" => RelativeIdeleGroup.ClassGroup K L
local notation "U" => SUnitGroup (K := L) (finitePlacesAbove (K := K) (L := L) S)
instance : MulDistribMulAction Gal(L/K) J
Source context 12 commands

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

@[expose] public section
open CategoryTheory NumberField IsDedekindDomain
open CyclicCohomology.ProfiniteCohomology.Herbrand RelativeIdeleGroup.Cohomology
open ClassFieldTower.Martinet.Shafarevich AlgebraicNumberTheory.Valuations HilbertRamification
open scoped NumberField TensorProduct
noncomputable section
namespace GlobalClassFieldTheory.Cohomology
variable (K L : Type) [Field K] [NumberField K] [Field L] [NumberField L]
  [Algebra K L] [FiniteDimensional K L] [IsGalois K L]
  (S : Finset (HeightOneSpectrum (𝓞 K)))
local notation "J" => relativeIdeleLocalTensorDecompositionSupportedSubgroup (K := K) (L := L) S
local notation "Cₗ" => RelativeIdeleGroup.ClassGroup K L
local notation "U" => SUnitGroup (K := L) (finitePlacesAbove (K := K) (L := L) S)
local instance : MulDistribMulAction Gal(L/K) J :=
  relativeIdeleLocalTensorDecompositionSupportedSubgroupAction (K := K) (L := L) S
instance : MulDistribMulAction Gal(L/K) Cₗ
Source context 13 commands

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

@[expose] public section
open CategoryTheory NumberField IsDedekindDomain
open CyclicCohomology.ProfiniteCohomology.Herbrand RelativeIdeleGroup.Cohomology
open ClassFieldTower.Martinet.Shafarevich AlgebraicNumberTheory.Valuations HilbertRamification
open scoped NumberField TensorProduct
noncomputable section
namespace GlobalClassFieldTheory.Cohomology
variable (K L : Type) [Field K] [NumberField K] [Field L] [NumberField L]
  [Algebra K L] [FiniteDimensional K L] [IsGalois K L]
  (S : Finset (HeightOneSpectrum (𝓞 K)))
local notation "J" => relativeIdeleLocalTensorDecompositionSupportedSubgroup (K := K) (L := L) S
local notation "Cₗ" => RelativeIdeleGroup.ClassGroup K L
local notation "U" => SUnitGroup (K := L) (finitePlacesAbove (K := K) (L := L) S)
local instance : MulDistribMulAction Gal(L/K) J :=
  relativeIdeleLocalTensorDecompositionSupportedSubgroupAction (K := K) (L := L) S
local instance : MulDistribMulAction Gal(L/K) Cₗ := ideleClassMulDistribMulAction K L
instance : MulDistribMulAction Gal(L/K) U
Source context 16 commands

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

@[expose] public section
open CategoryTheory NumberField IsDedekindDomain
open CyclicCohomology.ProfiniteCohomology.Herbrand RelativeIdeleGroup.Cohomology
open ClassFieldTower.Martinet.Shafarevich AlgebraicNumberTheory.Valuations HilbertRamification
open scoped NumberField TensorProduct
noncomputable section
namespace GlobalClassFieldTheory.Cohomology
variable (K L : Type) [Field K] [NumberField K] [Field L] [NumberField L]
  [Algebra K L] [FiniteDimensional K L] [IsGalois K L]
  (S : Finset (HeightOneSpectrum (𝓞 K)))
local notation "J" => relativeIdeleLocalTensorDecompositionSupportedSubgroup (K := K) (L := L) S
local notation "Cₗ" => RelativeIdeleGroup.ClassGroup K L
local notation "U" => SUnitGroup (K := L) (finitePlacesAbove (K := K) (L := L) S)
local instance : MulDistribMulAction Gal(L/K) J :=
  relativeIdeleLocalTensorDecompositionSupportedSubgroupAction (K := K) (L := L) S
local instance : MulDistribMulAction Gal(L/K) Cₗ := ideleClassMulDistribMulAction K L
local instance : MulDistribMulAction Gal(L/K) U :=
  sUnitMulDistribMulAction K L (finitePlacesAbove (K := K) (L := L) S)
    (finitePlacesAbove_isGaloisStable (K := K) (L := L) S)
local notation "A_f" => (fun v : {v : HeightOneSpectrum (𝓞 K) // v ∈ S} ↦
  (HeightOneSpectrum.adicCompletion K (Subtype.val v) ⊗[K] L)ˣ)
local notation "A_∞" => (fun v : InfinitePlace K ↦ (InfinitePlace.Completion v ⊗[K] L)ˣ)
instance (v : HeightOneSpectrum (𝓞 K)) :
    MulDistribMulAction Gal(L/K) (v.adicCompletion K ⊗[K] L)ˣ
Source context 17 commands

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

@[expose] public section
open CategoryTheory NumberField IsDedekindDomain
open CyclicCohomology.ProfiniteCohomology.Herbrand RelativeIdeleGroup.Cohomology
open ClassFieldTower.Martinet.Shafarevich AlgebraicNumberTheory.Valuations HilbertRamification
open scoped NumberField TensorProduct
noncomputable section
namespace GlobalClassFieldTheory.Cohomology
variable (K L : Type) [Field K] [NumberField K] [Field L] [NumberField L]
  [Algebra K L] [FiniteDimensional K L] [IsGalois K L]
  (S : Finset (HeightOneSpectrum (𝓞 K)))
local notation "J" => relativeIdeleLocalTensorDecompositionSupportedSubgroup (K := K) (L := L) S
local notation "Cₗ" => RelativeIdeleGroup.ClassGroup K L
local notation "U" => SUnitGroup (K := L) (finitePlacesAbove (K := K) (L := L) S)
local instance : MulDistribMulAction Gal(L/K) J :=
  relativeIdeleLocalTensorDecompositionSupportedSubgroupAction (K := K) (L := L) S
local instance : MulDistribMulAction Gal(L/K) Cₗ := ideleClassMulDistribMulAction K L
local instance : MulDistribMulAction Gal(L/K) U :=
  sUnitMulDistribMulAction K L (finitePlacesAbove (K := K) (L := L) S)
    (finitePlacesAbove_isGaloisStable (K := K) (L := L) S)
local notation "A_f" => (fun v : {v : HeightOneSpectrum (𝓞 K) // v ∈ S} ↦
  (HeightOneSpectrum.adicCompletion K (Subtype.val v) ⊗[K] L)ˣ)
local notation "A_∞" => (fun v : InfinitePlace K ↦ (InfinitePlace.Completion v ⊗[K] L)ˣ)
local instance (v : HeightOneSpectrum (𝓞 K)) :
    MulDistribMulAction Gal(L/K) (v.adicCompletion K ⊗[K] L)ˣ :=
  scalarTensorUnitsAction (K := K) (L := L) (A := v.adicCompletion K)
instance (v : InfinitePlace K) : MulDistribMulAction Gal(L/K) (A_∞ v)
GlobalClassFieldTheory.Cohomology.supportedIdeleClassShortComplex

The actual supported-idele sequence S-units → supported ideles → C_L in the category of integer representations.

Source context 19 commands

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

@[expose] public section
open CategoryTheory NumberField IsDedekindDomain
open CyclicCohomology.ProfiniteCohomology.Herbrand RelativeIdeleGroup.Cohomology
open ClassFieldTower.Martinet.Shafarevich AlgebraicNumberTheory.Valuations HilbertRamification
open scoped NumberField TensorProduct
noncomputable section
namespace GlobalClassFieldTheory.Cohomology
variable (K L : Type) [Field K] [NumberField K] [Field L] [NumberField L]
  [Algebra K L] [FiniteDimensional K L] [IsGalois K L]
  (S : Finset (HeightOneSpectrum (𝓞 K)))
local notation "J" => relativeIdeleLocalTensorDecompositionSupportedSubgroup (K := K) (L := L) S
local notation "Cₗ" => RelativeIdeleGroup.ClassGroup K L
local notation "U" => SUnitGroup (K := L) (finitePlacesAbove (K := K) (L := L) S)
local instance : MulDistribMulAction Gal(L/K) J :=
  relativeIdeleLocalTensorDecompositionSupportedSubgroupAction (K := K) (L := L) S
local instance : MulDistribMulAction Gal(L/K) Cₗ := ideleClassMulDistribMulAction K L
local instance : MulDistribMulAction Gal(L/K) U :=
  sUnitMulDistribMulAction K L (finitePlacesAbove (K := K) (L := L) S)
    (finitePlacesAbove_isGaloisStable (K := K) (L := L) S)
local notation "A_f" => (fun v : {v : HeightOneSpectrum (𝓞 K) // v ∈ S} ↦
  (HeightOneSpectrum.adicCompletion K (Subtype.val v) ⊗[K] L)ˣ)
local notation "A_∞" => (fun v : InfinitePlace K ↦ (InfinitePlace.Completion v ⊗[K] L)ˣ)
local instance (v : HeightOneSpectrum (𝓞 K)) :
    MulDistribMulAction Gal(L/K) (v.adicCompletion K ⊗[K] L)ˣ :=
  scalarTensorUnitsAction (K := K) (L := L) (A := v.adicCompletion K)
local instance (v : InfinitePlace K) : MulDistribMulAction Gal(L/K) (A_∞ v) :=
  scalarTensorUnitsAction (K := K) (L := L) (A := v.Completion)
include S in
def supportedIdeleClassShortComplex : ShortComplex (Rep ℤ Gal(L/K))
GlobalClassFieldTheory.Cohomology.supportedIdeleClassShortComplex_shortExact

Supported and principal idèles that generate all idèles give a short exact coefficient sequence.

Source context 19 commands

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

@[expose] public section
open CategoryTheory NumberField IsDedekindDomain
open CyclicCohomology.ProfiniteCohomology.Herbrand RelativeIdeleGroup.Cohomology
open ClassFieldTower.Martinet.Shafarevich AlgebraicNumberTheory.Valuations HilbertRamification
open scoped NumberField TensorProduct
noncomputable section
namespace GlobalClassFieldTheory.Cohomology
variable (K L : Type) [Field K] [NumberField K] [Field L] [NumberField L]
  [Algebra K L] [FiniteDimensional K L] [IsGalois K L]
  (S : Finset (HeightOneSpectrum (𝓞 K)))
local notation "J" => relativeIdeleLocalTensorDecompositionSupportedSubgroup (K := K) (L := L) S
local notation "Cₗ" => RelativeIdeleGroup.ClassGroup K L
local notation "U" => SUnitGroup (K := L) (finitePlacesAbove (K := K) (L := L) S)
local instance : MulDistribMulAction Gal(L/K) J :=
  relativeIdeleLocalTensorDecompositionSupportedSubgroupAction (K := K) (L := L) S
local instance : MulDistribMulAction Gal(L/K) Cₗ := ideleClassMulDistribMulAction K L
local instance : MulDistribMulAction Gal(L/K) U :=
  sUnitMulDistribMulAction K L (finitePlacesAbove (K := K) (L := L) S)
    (finitePlacesAbove_isGaloisStable (K := K) (L := L) S)
local notation "A_f" => (fun v : {v : HeightOneSpectrum (𝓞 K) // v ∈ S} ↦
  (HeightOneSpectrum.adicCompletion K (Subtype.val v) ⊗[K] L)ˣ)
local notation "A_∞" => (fun v : InfinitePlace K ↦ (InfinitePlace.Completion v ⊗[K] L)ˣ)
local instance (v : HeightOneSpectrum (𝓞 K)) :
    MulDistribMulAction Gal(L/K) (v.adicCompletion K ⊗[K] L)ˣ :=
  scalarTensorUnitsAction (K := K) (L := L) (A := v.adicCompletion K)
local instance (v : InfinitePlace K) : MulDistribMulAction Gal(L/K) (A_∞ v) :=
  scalarTensorUnitsAction (K := K) (L := L) (A := v.Completion)
omit [IsGalois K L] in
theorem supportedIdeleClassShortComplex_shortExact
    (hSP : J ⊔ RelativeIdeleGroup.principalSubgroup K L = ⊤) :
    (supportedIdeleClassShortComplex K L S).ShortExact
GlobalClassFieldTheory.Cohomology.supportedIdeleClassShortComplex_shortExact_herbrandSupport

The canonical arithmetic support makes the actual coefficient sequence short exact.

Source context 19 commands

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

@[expose] public section
open CategoryTheory NumberField IsDedekindDomain
open CyclicCohomology.ProfiniteCohomology.Herbrand RelativeIdeleGroup.Cohomology
open ClassFieldTower.Martinet.Shafarevich AlgebraicNumberTheory.Valuations HilbertRamification
open scoped NumberField TensorProduct
noncomputable section
namespace GlobalClassFieldTheory.Cohomology
variable (K L : Type) [Field K] [NumberField K] [Field L] [NumberField L]
  [Algebra K L] [FiniteDimensional K L] [IsGalois K L]
  (S : Finset (HeightOneSpectrum (𝓞 K)))
local notation "J" => relativeIdeleLocalTensorDecompositionSupportedSubgroup (K := K) (L := L) S
local notation "Cₗ" => RelativeIdeleGroup.ClassGroup K L
local notation "U" => SUnitGroup (K := L) (finitePlacesAbove (K := K) (L := L) S)
local instance : MulDistribMulAction Gal(L/K) J :=
  relativeIdeleLocalTensorDecompositionSupportedSubgroupAction (K := K) (L := L) S
local instance : MulDistribMulAction Gal(L/K) Cₗ := ideleClassMulDistribMulAction K L
local instance : MulDistribMulAction Gal(L/K) U :=
  sUnitMulDistribMulAction K L (finitePlacesAbove (K := K) (L := L) S)
    (finitePlacesAbove_isGaloisStable (K := K) (L := L) S)
local notation "A_f" => (fun v : {v : HeightOneSpectrum (𝓞 K) // v ∈ S} ↦
  (HeightOneSpectrum.adicCompletion K (Subtype.val v) ⊗[K] L)ˣ)
local notation "A_∞" => (fun v : InfinitePlace K ↦ (InfinitePlace.Completion v ⊗[K] L)ˣ)
local instance (v : HeightOneSpectrum (𝓞 K)) :
    MulDistribMulAction Gal(L/K) (v.adicCompletion K ⊗[K] L)ˣ :=
  scalarTensorUnitsAction (K := K) (L := L) (A := v.adicCompletion K)
local instance (v : InfinitePlace K) : MulDistribMulAction Gal(L/K) (A_∞ v) :=
  scalarTensorUnitsAction (K := K) (L := L) (A := v.Completion)
omit [IsGalois K L] in
theorem supportedIdeleClassShortComplex_shortExact_herbrandSupport :
    (supportedIdeleClassShortComplex K L
      (ideleClassHerbrandSupport (K := K) (L := L))).ShortExact
GlobalClassFieldTheory.Cohomology.supportedIdeleClassH2_exact_herbrandSupport

On the canonical support, the kernel of the map to C_L in degree two is the image of the actual S-unit cohomology.

Source context 19 commands

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

@[expose] public section
open CategoryTheory NumberField IsDedekindDomain
open CyclicCohomology.ProfiniteCohomology.Herbrand RelativeIdeleGroup.Cohomology
open ClassFieldTower.Martinet.Shafarevich AlgebraicNumberTheory.Valuations HilbertRamification
open scoped NumberField TensorProduct
noncomputable section
namespace GlobalClassFieldTheory.Cohomology
variable (K L : Type) [Field K] [NumberField K] [Field L] [NumberField L]
  [Algebra K L] [FiniteDimensional K L] [IsGalois K L]
  (S : Finset (HeightOneSpectrum (𝓞 K)))
local notation "J" => relativeIdeleLocalTensorDecompositionSupportedSubgroup (K := K) (L := L) S
local notation "Cₗ" => RelativeIdeleGroup.ClassGroup K L
local notation "U" => SUnitGroup (K := L) (finitePlacesAbove (K := K) (L := L) S)
local instance : MulDistribMulAction Gal(L/K) J :=
  relativeIdeleLocalTensorDecompositionSupportedSubgroupAction (K := K) (L := L) S
local instance : MulDistribMulAction Gal(L/K) Cₗ := ideleClassMulDistribMulAction K L
local instance : MulDistribMulAction Gal(L/K) U :=
  sUnitMulDistribMulAction K L (finitePlacesAbove (K := K) (L := L) S)
    (finitePlacesAbove_isGaloisStable (K := K) (L := L) S)
local notation "A_f" => (fun v : {v : HeightOneSpectrum (𝓞 K) // v ∈ S} ↦
  (HeightOneSpectrum.adicCompletion K (Subtype.val v) ⊗[K] L)ˣ)
local notation "A_∞" => (fun v : InfinitePlace K ↦ (InfinitePlace.Completion v ⊗[K] L)ˣ)
local instance (v : HeightOneSpectrum (𝓞 K)) :
    MulDistribMulAction Gal(L/K) (v.adicCompletion K ⊗[K] L)ˣ :=
  scalarTensorUnitsAction (K := K) (L := L) (A := v.adicCompletion K)
local instance (v : InfinitePlace K) : MulDistribMulAction Gal(L/K) (A_∞ v) :=
  scalarTensorUnitsAction (K := K) (L := L) (A := v.Completion)
omit [IsGalois K L] in
theorem supportedIdeleClassH2_exact_herbrandSupport :
    (groupCohomology.mapShortComplex₂
      (supportedIdeleClassShortComplex K L
        (ideleClassHerbrandSupport (K := K) (L := L))) 2).Exact
GlobalClassFieldTheory.Cohomology.SupportedLocalH2

The actual degree-two tensor cohomology at the finite places in S and all archimedean places.

Source context 18 commands

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

@[expose] public section
open CategoryTheory NumberField IsDedekindDomain
open CyclicCohomology.ProfiniteCohomology.Herbrand RelativeIdeleGroup.Cohomology
open ClassFieldTower.Martinet.Shafarevich AlgebraicNumberTheory.Valuations HilbertRamification
open scoped NumberField TensorProduct
noncomputable section
namespace GlobalClassFieldTheory.Cohomology
variable (K L : Type) [Field K] [NumberField K] [Field L] [NumberField L]
  [Algebra K L] [FiniteDimensional K L] [IsGalois K L]
  (S : Finset (HeightOneSpectrum (𝓞 K)))
local notation "J" => relativeIdeleLocalTensorDecompositionSupportedSubgroup (K := K) (L := L) S
local notation "Cₗ" => RelativeIdeleGroup.ClassGroup K L
local notation "U" => SUnitGroup (K := L) (finitePlacesAbove (K := K) (L := L) S)
local instance : MulDistribMulAction Gal(L/K) J :=
  relativeIdeleLocalTensorDecompositionSupportedSubgroupAction (K := K) (L := L) S
local instance : MulDistribMulAction Gal(L/K) Cₗ := ideleClassMulDistribMulAction K L
local instance : MulDistribMulAction Gal(L/K) U :=
  sUnitMulDistribMulAction K L (finitePlacesAbove (K := K) (L := L) S)
    (finitePlacesAbove_isGaloisStable (K := K) (L := L) S)
local notation "A_f" => (fun v : {v : HeightOneSpectrum (𝓞 K) // v ∈ S} ↦
  (HeightOneSpectrum.adicCompletion K (Subtype.val v) ⊗[K] L)ˣ)
local notation "A_∞" => (fun v : InfinitePlace K ↦ (InfinitePlace.Completion v ⊗[K] L)ˣ)
local instance (v : HeightOneSpectrum (𝓞 K)) :
    MulDistribMulAction Gal(L/K) (v.adicCompletion K ⊗[K] L)ˣ :=
  scalarTensorUnitsAction (K := K) (L := L) (A := v.adicCompletion K)
local instance (v : InfinitePlace K) : MulDistribMulAction Gal(L/K) (A_∞ v) :=
  scalarTensorUnitsAction (K := K) (L := L) (A := v.Completion)
abbrev SupportedLocalH2 : Type
GlobalClassFieldTheory.Cohomology.prescribedSupportedIdeleClassH2

On a support containing the ramified places, prescribed local tensor classes give an additive map to the cohomology of the actual idèle class group.

Source context 18 commands

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

@[expose] public section
open CategoryTheory NumberField IsDedekindDomain
open CyclicCohomology.ProfiniteCohomology.Herbrand RelativeIdeleGroup.Cohomology
open ClassFieldTower.Martinet.Shafarevich AlgebraicNumberTheory.Valuations HilbertRamification
open scoped NumberField TensorProduct
noncomputable section
namespace GlobalClassFieldTheory.Cohomology
variable (K L : Type) [Field K] [NumberField K] [Field L] [NumberField L]
  [Algebra K L] [FiniteDimensional K L] [IsGalois K L]
  (S : Finset (HeightOneSpectrum (𝓞 K)))
local notation "J" => relativeIdeleLocalTensorDecompositionSupportedSubgroup (K := K) (L := L) S
local notation "Cₗ" => RelativeIdeleGroup.ClassGroup K L
local notation "U" => SUnitGroup (K := L) (finitePlacesAbove (K := K) (L := L) S)
local instance : MulDistribMulAction Gal(L/K) J :=
  relativeIdeleLocalTensorDecompositionSupportedSubgroupAction (K := K) (L := L) S
local instance : MulDistribMulAction Gal(L/K) Cₗ := ideleClassMulDistribMulAction K L
local instance : MulDistribMulAction Gal(L/K) U :=
  sUnitMulDistribMulAction K L (finitePlacesAbove (K := K) (L := L) S)
    (finitePlacesAbove_isGaloisStable (K := K) (L := L) S)
local notation "A_f" => (fun v : {v : HeightOneSpectrum (𝓞 K) // v ∈ S} ↦
  (HeightOneSpectrum.adicCompletion K (Subtype.val v) ⊗[K] L)ˣ)
local notation "A_∞" => (fun v : InfinitePlace K ↦ (InfinitePlace.Completion v ⊗[K] L)ˣ)
local instance (v : HeightOneSpectrum (𝓞 K)) :
    MulDistribMulAction Gal(L/K) (v.adicCompletion K ⊗[K] L)ˣ :=
  scalarTensorUnitsAction (K := K) (L := L) (A := v.adicCompletion K)
local instance (v : InfinitePlace K) : MulDistribMulAction Gal(L/K) (A_∞ v) :=
  scalarTensorUnitsAction (K := K) (L := L) (A := v.Completion)
def prescribedSupportedIdeleClassH2
    (hfin : ∀ v : HeightOneSpectrum (𝓞 K), v ∉ S →
      ChosenFinitePlaceIsUnramified (K := K) (L := L) v) :
    SupportedLocalH2 K L S →+ groupCohomology (standardIdeleClassRep K L) 2
GlobalClassFieldTheory.Cohomology.prescribedHerbrandSupportIdeleClassH2

The canonical support supplies the unramified condition in the prescribed class map. Its input is the family of actual tensor cohomology coordinates.

Source context 18 commands

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

@[expose] public section
open CategoryTheory NumberField IsDedekindDomain
open CyclicCohomology.ProfiniteCohomology.Herbrand RelativeIdeleGroup.Cohomology
open ClassFieldTower.Martinet.Shafarevich AlgebraicNumberTheory.Valuations HilbertRamification
open scoped NumberField TensorProduct
noncomputable section
namespace GlobalClassFieldTheory.Cohomology
variable (K L : Type) [Field K] [NumberField K] [Field L] [NumberField L]
  [Algebra K L] [FiniteDimensional K L] [IsGalois K L]
  (S : Finset (HeightOneSpectrum (𝓞 K)))
local notation "J" => relativeIdeleLocalTensorDecompositionSupportedSubgroup (K := K) (L := L) S
local notation "Cₗ" => RelativeIdeleGroup.ClassGroup K L
local notation "U" => SUnitGroup (K := L) (finitePlacesAbove (K := K) (L := L) S)
local instance : MulDistribMulAction Gal(L/K) J :=
  relativeIdeleLocalTensorDecompositionSupportedSubgroupAction (K := K) (L := L) S
local instance : MulDistribMulAction Gal(L/K) Cₗ := ideleClassMulDistribMulAction K L
local instance : MulDistribMulAction Gal(L/K) U :=
  sUnitMulDistribMulAction K L (finitePlacesAbove (K := K) (L := L) S)
    (finitePlacesAbove_isGaloisStable (K := K) (L := L) S)
local notation "A_f" => (fun v : {v : HeightOneSpectrum (𝓞 K) // v ∈ S} ↦
  (HeightOneSpectrum.adicCompletion K (Subtype.val v) ⊗[K] L)ˣ)
local notation "A_∞" => (fun v : InfinitePlace K ↦ (InfinitePlace.Completion v ⊗[K] L)ˣ)
local instance (v : HeightOneSpectrum (𝓞 K)) :
    MulDistribMulAction Gal(L/K) (v.adicCompletion K ⊗[K] L)ˣ :=
  scalarTensorUnitsAction (K := K) (L := L) (A := v.adicCompletion K)
local instance (v : InfinitePlace K) : MulDistribMulAction Gal(L/K) (A_∞ v) :=
  scalarTensorUnitsAction (K := K) (L := L) (A := v.Completion)
abbrev prescribedHerbrandSupportIdeleClassH2 :
    SupportedLocalH2 K L (ideleClassHerbrandSupport (K := K) (L := L)) →+
      groupCohomology (standardIdeleClassRep K L) 2