Lean source
Lib.ClassField.LocalDuality.RealPlaceSymbols
Its 22 declarations
IsLocalGalois.lemma, lines 28–50mem_zmultiples_of_resH2_eq_zero IsLocalGalois.lemma, lines 55–72isClassOfInv_classOfInv IsLocalGalois.lemma, lines 77–88pairMapH2_classOfInv resH2_classOfInvlemma, lines 93–96IsLocalGalois.lemma, lines 98–99resH2_classOfInv_eq_zero IsLocalGalois.lemma, lines 106–111classOfInv_bijective IsLocalGalois.lemma, lines 115–117exists_resH2_classOfInv_eq IsLocalGalois.lemma, lines 125–136card_kummer_cocycles IsLocalGalois.lemma, lines 141–149finite_Z1_local IsLocalArtin.lemma, lines 155–162exists_frob_of_isUniformiser char_eq_zero_of_cyclicClass_eq_zerolemma, lines 173–176DiscreteModule.lemma, lines 181–194HoldsCorestrictions. pairingAnnihilator_le card_mul_card_le_of_orthogonallemma, lines 202–229DiscreteModule.lemma, lines 237–250local_duality_card_dvd isTotallyPositive_of_isTotallyComplexlemma, lines 258–259isReal_comp_algebraMaplemma, lines 261–262exists_isComplexConjlemma, lines 265–267IsComplexConj.lemma, lines 270–271mul_self IsTotallyPositive.lemma, lines 275–281exists_resH2_cyclicClass_eq_zero IsComplexConj.lemma, lines 283–284false_of_isTotallyComplex IsComplexConj.lemma, lines 287–290cycCharMod_eq_neg_one IsComplexConj.lemma, lines 295–297cycChar_eq_neg_one
import Lib.Adelic.Cartan.ProjectiveModulesimport Lib.ClassField.GaloisCohomology.CyclicNormimport Lib.ClassField.Places.TameInertiaimport Lib.ClassField.Places.DecompositionLocal/-! Part of: Local Tate duality in degree 1, as an upper bound for orthogonal groups of cocycles(known result; see Lib.ClassField.LocalDuality.CrystallineDuality).Part of: Local class field theory: invariant of the Brauer group, Artin map, norms, tame symbol(known result; see Lib.ClassField.Local.ArtinMapAtPlace).This file: Invariant map Br(k) ≅ Q/Z of a henselian local field and its functoriality. Number ofKummer cocycles; finiteness of local 1-cocycles of finite modules. The local Artin map sendsuniformisers to geometric Frobenius elements. Order bound for orthogonal cocycle groups, theinequality for local Tate duality. Complex conjugations; symbol of a totally positive element dieskeeping real places real. -/namespace IsLocalGaloisopen Function DiscreteModule Subgroup QZChar QuotientGroup QZ Classical DiscreteUnits AddMonoidHomvariable {Γ k Ω : Type} [Group Γ] [TopologicalSpace Γ] [Field k] [Field Ω] [Algebra k Ω] [MulSemiringAction Γ Ω] (V : OpenSubgroup Γ) {A : ValuationSubring Ω} [L : IsLocalGalois Γ k A]attribute [-simp] map_smul/-- Over a local field k, let V be open normal in Γ and β in H²(Γ, Ω^×) die on V, with nβ = 0 onlyfor n divisible by [Γ : V]. Then every class that dies on V is a multiple of β. -/lemma mem_zmultiples_of_resH2_eq_zero [V.Normal] {β x} (b : (unitsModule Γ).resH2 V β = 0) (H : ∀ n, n • β = 0 → V.index ∣ n) (a : resH2 _ V x = 0) : x ∈ AddSubgroup.zmultiples β := by wlog h : Fact V.index.Prime · exact mem_of_prime_step _ a fun U W _ hU v hl s m e ↦ let V' := (V.comap _ (subgroupIncl U).2).comap _ (subgroupIncl W).2 (this W (L := (of_finite _).1) ((map_nsmul ..).trans (index_smul_eq_zero_of_resH2 V' (resH2_swap congr(resH2 _ _ $(resH2_swap (congrArg _ b)))))) (fun n h ↦ by erw [← mul_dvd_mul_iff_left (a := V'.index * U.index) (by simp), mul_right_comm, relIndex_mul_index v, relIndex_mul_index hU, mul_right_comm] apply H; simpa [mul_nsmul] using index_smul_eq_zero_of_resH2 U (by simpa)) e ⟨hl⟩).elim fun j e ↦ ⟨s + j • V'.index • β, by bound, by simpa [← sub_sub] using! e.symm⟩ obtain ⟨⟨F⟩, ⟨⟩, ψ, rfl⟩ := of_finite V, V, exists_ker_eq_of_isCyclic V (isCyclic_of_prime_card (hp := h) rfl) rw [(cyclicClass_spec ψ).1] at * obtain ⟨⟨y, rfl⟩, ⟨x, rfl⟩, e⟩ := b, a, cokerKerIndex_local_units F (ker ψ).index topEquiv.toAdditive let f := lift (map _ ⊤) ((cyclicClass _ ψ).comp (ofBase Γ Ω)).toMultiplicativeRight fun _ ⟨_, _, e⟩ ↦ (cyclicClass_eq_zero_iff_norm _).2 ⟨_, e⟩ exact (f.map_zpowers y).le ⟨x, mem_zpowers_of_prime_card (hp := h) (pow_left_injective h.1.pred_pos.ne' (by qify; erw [← mul_left_inj' e.1, ← index, ← relIndex_top_right, tate_index_formula_norm (index _)] <;> simp [*, finrank_fixedFieldOf, Ne, ↓cokerKerIndex_local_units L _ topEquiv.toAdditive, mul_pow, ← mul_assoc, pow_sub_one_mul NeZero.out])) (h.1.not_dvd_one <| H 1 <| by simpa using! congrArg f ·), rfl⟩/-- For a local field k, the map c = `classOfInv` from ℚ/ℤ to H²(Γ, Ω^×) is injective, andthe symbol (χ, w) equals n·c(χ(φ)) for unramified χ, any Frobenius φ and any Γ-invariant wof order n. -/lemma isClassOfInv_classOfInv : IsClassOfInv Γ k A (classOfInv Γ k A) := epsilon_spec (by have hp := L.exists_isUniformiser.choose_spec.ordRat_eq_one L; set p := ofBase (K := k) Γ Ω _ choose c hc hu using existsUnique_unramified_char L.frobenius_spec.1.choose_spec have d {χ} (u : inertiaGroup Γ A ≤ QZChar.ker χ) w (n : ℤ) (e : ordRat k A w.1 = n) h : ↑(ker χ).index ∣ n := (((cyclicClass_spec χ).2 w).1 h).elim fun y h ↦ (exists_ordRat_eq_intCast (y.2 ⟨·, u ·⟩)).imp fun j hj ↦ by qify; erw [← e, ← h, corestrictH0, LinearMap.sum_apply, map_sum, Finset.sum_eq_card_nsmul (b := ↑j)] <;> simp [index, Fintype.card_eq_nat_card, ← hj, eq_iff, ↓L.ordRat_eq_zero, decompGroup.val_smul, L.4] use ((cyclicClass _).flip p).comp (.mk' c fun a b ↦ (hu _ _ (by simp_all)).symm), .of_ker _ fun r h ↦ (hc r).2 ▸ (index_eq_one.1 (Nat.dvd_one.1 (mod_cast d (hc r).1 p 1 hp h))).ge ⟨⟩, fun χ u φ f w n hn ↦ ?_ have s w := ((ofBase_bijective Γ).2 w).choose_spec ▸ ((cyclicClass_spec χ).1 _).2 ⟨_, rfl⟩ obtain ⟨j, e⟩ := mem_zmultiples_of_resH2_eq_zero _ (s p) (fun n _ ↦ by zify; simp [d u (n • p), *]) (s w) simp [← hu (χ.1 φ) χ ⟨u, (toHom χ).eq_iff.2 (u _ (f.inv_mul (choose_spec _)))⟩, ← e, ← addOrderOf_dvd_sub_iff_zsmul_eq_zsmul] grw [addOrderOf_dvd_of_nsmul_eq_zero (index_smul_eq_zero_of_resH2 _ (s p)), d u (j • p - w)] <;> simp [*])/-- Let k, k' be local, j : Ω → Ω' equivariant along φ : Γ' → Γ, j⁻¹A' = A, q' = q^f, and ord w= 1, ord' j(w) = e for a Γ-fixed w. Then (φ, j) sends the class in H²(Γ, Ω^×) of invariant rto that of invariant ef·r. -/lemma pairMapH2_classOfInv {Γ' k' Ω' : Type} [Group Γ'] [TopologicalSpace Γ'] [Field k'] [Field Ω'] [Algebra k' Ω'] [MulSemiringAction Γ' Ω'] {A'} [L' : IsLocalGalois Γ' k' A'] (φ : Γ' →ₜ* Γ) (j : Ω →+* Ω') (hA : A'.comap j = A) (H : ∀ g x, j (φ g • x) = g • j x) {e f : ℕ} {w : (unitsModule Γ).H0} (he : ordRat k A w = 1 ∧ ordRat k' A' ((Units.map j).toAdditive w.1) = e) (hf : residueCard k' A' = residueCard k A ^ f) r : (pairMapH2 φ (Units.map j).toAdditive.toIntLinearMap) (classOfInv Γ k A r) = classOfInv _ k' A' ((e * f) • r) := by obtain ⟨rfl, ⟨_, s⟩, _, t⟩ := hA, L.frobenius_spec.1, L'.frobenius_spec.1 obtain ⟨χ, ⟨⟨c, rfl⟩⟩⟩ := existsUnique_unramified_char s r rw [mul_smul, map_nsmul, ← (isClassOfInv_classOfInv.2 _ c _ s _ 1 he.1).trans (one_zsmul _)] convert! isClassOfInv_classOfInv.2 (comap φ χ) (fun _ ↦ c _ ∘ .map H) _ t ⟨_, _⟩ e he.2 exacts [congr(⟦⟨fun _ ↦ $(map_zsmul ..), _⟩⟧), (map_pow ..).symm.trans ((toHom χ).eq_iff.2 (c _ ((hf ▸ t.map H).inv_mul (s.pow f)))), fun g ↦ ext (H .. ▸ congr(j $(w.2 _).1):)]/-- Restriction multiplies the invariant by the degree: for k local and V open in Γ with fixedfield k'', the Brauer class `classOfInv` of r ∈ ℚ/ℤ for k restricts to the class of[Γ:V]·r for k''. -/lemma _root_.resH2_classOfInv {r} : (unitsModule Γ).resH2 V (classOfInv Γ k A r) = classOfInv _ (fixedFieldOf V.1) A (V.index • r) := have p := L.exists_isUniformiser.choose_spec.ordRat_eq_one L; (of_finite V).rec fun _ ⟨⟨_, _, ⟨h, q, _⟩, _⟩, _⟩ ↦ h ▸ pairMapH2_classOfInv _ (.id _) rfl (by tauto) ⟨p, by simp [*]⟩ q _lemma resH2_classOfInv_eq_zero {r} (h : V.index • r = 0) : (unitsModule Γ).resH2 V (classOfInv Γ k A r) = 0 := resH2_classOfInv V ▸ h ▸ map_zero _/-- Brauer group of a local field, ℚ/ℤ ≅ Br(k): for a henselian local field k of characteristic0 with absolute Galois group Γ, the map `classOfInv` from ℚ/ℤ to H²(Γ, Ω^×) is bijective.Known result: Local class field theory: invariant of the Brauer group, Artin map, norms, tamesymbol. -/lemma classOfInv_bijective : Bijective (classOfInv Γ k A) := ⟨isClassOfInv_classOfInv.1, Quot.ind fun ⟨_, c, q⟩ ↦ (exists_openNormalSubgroup_apply_eq (c.comp continuous_swap)).elim fun W w ↦ (range _).zmultiples_le_of_mem ⟨@ofZMod W.index ⟨by simp⟩ 1, rfl⟩ (mem_zmultiples_of_resH2_eq_zero _ (resH2_classOfInv_eq_zero _ (by simp [← map_nsmul])) (by simp [← map_nsmul, map_eq_zero_iff, isClassOfInv_classOfInv.1, ZMod.natCast_eq_zero_iff]) ((Submodule.ker_mkQ _).ge ⟨_, continuous_const, fun g k ↦ (w k k.2 g).trans (by simpa using! q g 1 1)⟩))⟩/-- For a local field k and an open subgroup V of its Galois group Γ, every class in H²(V, Ω^×)is the restriction of the class in H²(Γ, Ω^×) with invariant r, for some r in ℚ/ℤ. -/lemma exists_resH2_classOfInv_eq y : ∃ r, (unitsModule Γ).resH2 V (classOfInv Γ k A r) = y := ((of_finite V).1.classOfInv_bijective.2.comp (DivisibleBy.surjective_smul _ ℤ (by simp)) y).imp fun _ ↦ (resH2_classOfInv V).transopen Nat HasEnoughRootsOfUnity NeZero LinearMap CommGroup Idealvariable {A : ValuationSubring Ω} [h : IsLocalGalois Γ k A]include h/-- Kummer theory: for a local field k with integers O and n ≥ 1, the continuous 1-cocycles Γ →Ω^× killed by n, that is Z¹(Γ, μ_n), form a finite group of order n²·#(O/n). -/lemma card_kummer_cocycles (n : ℕ) [NeZero n] : let c := .card (n : Module.End ℤ (Z1 (unitsModule Γ).ρ)).ker 0 < c ∧ c = n ^ 2 * .card (_ ⧸ span {(n : valRingBelow k A)}) := by have s : Surjective (unitsModule Γ).coboundary := (hilbert90_unitsRep · |>.imp (by aesop)) have ⟨a, b⟩ := cokerKerIndex_local_units h n (.symm (.ofBijective _ (DiscreteUnits.ofBase_bijective Γ))) have H := cokerKerIndex_mul_of_exact _ _ (Submodule.subtype_injective _) (by simp [Exact, Subtype.ext_iff, funext_iff]) s a erw [b, cokerKerIndex, cokerKerIndex, LinearMap.range_eq_top.2 (·.exists_nsmul out), LinearMap.range_eq_top.2 (.of_comp ((funext (map_nsmul _ n)).subst (s.comp (·.exists_nsmul out)))), natCard_rootsOfUnity] at H qify [card_unique] at *; grind/-- If k is a local field with absolute Galois group Γ (`IsLocalGalois`), then for every finitediscrete Γ-module M over a commutative ring R, the module Z¹(Γ, M) of continuous 1-cocyclesis finite. -/lemma finite_Z1_local ⦃R⦄ [CommRing R] (M : DiscreteModule R Γ) [Finite M] : Finite (Z1 M.ρ) := by have ⟨⟨U, _⟩, w⟩ := exists_openNormalSubgroup_apply_eq M.cartierDual.continuous have e := equivFinOfCardPos ((of_finite U).1.card_kummer_cocycles (.card M)).1.ne' refine .of_injective (fun ⟨z, _, d⟩ ↦ ((z ·.out : _ ⧸ U.1 → _), fun f : _ →+ _ ↦ e ⟨⟨(f <| z ·), by fun_prop, fun g h ↦ by simpa [d] using! congr($(w _ g.2 f) (M.ρ g _)).symm⟩, by ext; simp [← map_nsmul]⟩)) ?_ rintro ⟨_, _, a⟩ ⟨_, _, b⟩ h; ext g; have ⟨u, v⟩ := QuotientGroup.mk_out_eq_mul U g simpa [a, b, v, Equiv.injective _ ((forall_apply_eq_apply_iff (Multiplicative M)).1 (congr($(e.injective congr($h.2 ·.toAdditiveRight)).1.1 u)))] using congr($h.1 g)end IsLocalGaloisopen QuotientGroup Units QZChar Complex NeZero NumberField DiscreteUnitslemma IsLocalArtin.exists_frob_of_isUniformiser {Γ k Ω : Type} [Group Γ] [TopologicalSpace Γ] [Field k] [Field Ω] [Algebra k Ω] [MulSemiringAction Γ Ω] {A : ValuationSubring Ω} [L : IsLocalGalois Γ k A] {π : kˣ} {F} (hF : IsLocalArtin Γ k A F) (h : IsUniformiser A π.1) : ∃ φ : Γ, IsFrob A (residueCard k A) φ ∧ F π = φ⁻¹ := L.frobenius_spec.1.elim fun φ f ↦ (QZChar.mem_of_forall_abelianLift (continuous_mk.isClosedMap _ isClosed_inertiaGroup) (H := .map (mk' _) (inertiaGroup Γ A)) (φ⁻¹ / F π) fun _ _ ↦ Multiplicative.ext (L.isClassOfInv_classOfInv.1 (by simp_all [IsLocalArtin, h.ordRat_eq_one, L.isClassOfInv_classOfInv.2 _ _ _ f _ 1]))).rec fun _ e ↦ ⟨_, by simpa using f.mul_iff.2 e.1, by aesop⟩sectionopen DiscreteUnits DFunLike DiscreteModule QZChar NeZero QZ Ideal AddSubgroup IsLocalGalois Nat Functionvariable {Γ k Ω : Type} [Group Γ] [TopologicalSpace Γ] [Field k] [Field Ω] [Algebra k Ω] [MulSemiringAction Γ Ω] {A : ValuationSubring Ω} [J : IsLocalGalois Γ k A] {l r : ℕ} [Fact l.Prime] {R S} [CommRing R] [CommRing S] {M : DiscreteModule R Γ} {N : DiscreteModule S Γ}lemma char_eq_zero_of_cyclicClass_eq_zero {χ} (h : ∀ w : Additive kˣ, cyclicClass _ χ (ofBase Γ Ω w) = 0) g : χ.1 g = 0 := isClassOfInv_classOfInv.1 ((((cyclicClass_spec χ).1 _).1 (resH2_classOfInv_eq_zero _ (by simpa using! (ker χ).pow_index_mem g))).choose_spec.trans (by simp [h]))/-- Let k be local, b : M × N → Ω^× equivariant, i·[Γ:U] act as the identity on M, and X, Ycontain the coboundaries and a corestriction of each cocycle of X', Y'. If X' contains thecup product annihilator of Y' over U, then X contains that of Y. -/lemma DiscreteModule.HoldsCorestrictions.pairingAnnihilator_le {U X X' Y Y'} {i : ℤ} (g : HoldsCorestrictions U X' X) (h : HoldsCorestrictions U Y' Y) (c : ∀ m : M, i • U.index • m = m) {b} e (a : pairingAnnihilator (cupProduct (unitsModule _) _ _ b (e ·)).flip Y' ≤ X') : pairingAnnihilator (cupProduct (unitsModule Γ) M N b e).flip Y ≤ X := fun z hz ↦ (g.2 ((pairMapZ1 _ .id) z) (a fun y hy ↦ (h.2 _ hy).rec fun F ⟨f, o⟩ ↦ (exists_resH2_classOfInv_eq U (shapiroH2 U (cupProduct _ _ (N.funModule _) (.mk' (b · |>.compLeft _) (by bound)) (by simp [funext_iff, e]) z F))).elim fun _ s ↦ (s.trans congr(⟦⟨fun _ ↦ b _ $(f ▸ funModule_apply_one ..), _⟩⟧)).symm.trans (resH2_classOfInv_eq_zero U (isClassOfInv_classOfInv.1 (by rw [map_zero, ← hz _ o, map_nsmul, ← mapH2_sum_eq_index_smul U _ _ s] exact congr(⟦$(by simp [← (sum ..).isIntertwining]; simp [sum])⟧)))))).rec fun F ⟨f, o⟩ ↦ by have ⟨n, e⟩ := shapiro_H1 U (F - (const ..).mapZ1 z) 0 (by simpa using! congr($f.1 ·)) convert zsmul_mem (sub_mem o (g.1 (M.sum _ n))) i ext g; rw [← c (z.1 g), index_smul_eq_sum_const] simpa [← (sum ..).isIntertwining] using! congr(i • M.sum _ (F.1 g - $(e g)))/-- Let k be local, #(O/l) = l^d, and M finite, killed by l^r and fixed by Q, every g havingsome g^(l^i) in Q. Then groups X ⊂ Z¹(Hom(M, Ω^×)) and W ⊂ Z¹(M), orthogonal under the cupproduct, have #X·#W ≤ (#M)^(2+d).Known result: Local Tate duality in degree 1, as an upper bound for orthogonal groups ofcocycles. -/lemma card_mul_card_le_of_orthogonal {d} Q (hd : .card (_ ⧸ span {(l : valRingBelow k A)}) = l ^ d) (c : FiniteKilledFixedInj (l ^ r) Q 1 0 M) (p : ∀ g, ∃ i, g ^ l ^ i ∈ Q) : have := c.1; ∀ X W, X ≤ pairingAnnihilator M.evalCup.flip W → Nat.card X * .card W ≤ .card M ^ (2 + d) := by obtain ⟨⟨⟨⟩, b⟩⟩ := (J.card_kummer_cocycles l).imp_left card_pos_iff.1, J.finite_Z1_local, (unitsModule Γ).continuous refine M.devissage_induction rfl ⊤ Q (by simpa) (fun M _ ⟨_, c, t, _⟩ X W h ↦ have := AddCommGroup.zmodModule c have e := Module.finBasis (ZMod l) M; ?_) (fun {_ _ _ ι π} s c H G X W h ↦ ?_) c grw [card_le_of_le h, card_pairingAnnihilator_mul_card _ (.ofBijective _ classOfInv_bijective), card_eq_one.2 (bot_unique fun y hy ↦ Subtype.ext (funext ?_)), mul_one, card_congr e.equivFun.toEquiv, card_fun, card_zmod, pow_right_comm, pow_add, ← hd, ← b, ← card_fun] exact card_le_card_of_injective (fun z j ↦ ⟨pairMapZ1 (.id _) ⟨⟨(· (e j)), by simp⟩, by simp⟩ (by simp [t]) z, by ext; simp [← map_nsmul, c]⟩) fun x y h ↦ by ext g : 3; exact (((((x.1 g).eqLocus _).toZModSubmodule l).eq_top_iff_forall_basis_mem e).2 fun j ↦ congr(($h j).1.1 g)).ge ⟨⟩ exact (eq_zero_of_forall_hom_eq_zero <| (bijective_ofZMod_comp c).2.forall.2 fun j ↦ char_eq_zero_of_cyclicClass_eq_zero (χ := ofZModCocycle l ⟨j ∘ y.1, y.2.imp (by fun_prop) (by simp_all)⟩) (fun x ↦ (exists_nsmul _ out).rec fun a u ↦ neg_eq_zero.1 ((kummer_cup_eq_neg_cyclicClass u _ _ (by simp [t])).symm.trans (ext_iff.1 hy.1 ⟨fun g ↦ .mk' (fun m ↦ (j m).val • (unitsRep g a - a)) (by simp [ZMod.val_add, add_smul, ← nsmul_eq_mod_nsmul, smul_sub l, ← map_nsmul, u, DiscreteUnits.ext_iff]), .congr (by simp; fun_prop) (leftInverse_invFun coe_injective ∘' _), by simp [ext_iff, t, smul_sub]⟩))) ·) obtain ⟨⟨⟩, ⟨⟩, ⟨⟩⟩ := c, c.of_isShortExact s grw [(π.cartierDualMap.card_eq_card_comap_mul_card_map (π := ι.cartierDualMap) ?_ (.of_comp_of_mem_range ?_ (.imp (fun _ ↦ DFunLike.ext _ _) ∘ exists_extend _ · ∘ ?_)) X).trans (mul_comm ..), ι.card_eq_card_comap_mul_card_map s.1 s.2.1 W, mul_mul_mul_comm, G, H, s.card_eq_mul, mul_pow] <;> simp [s.2.2.forall, s.2.1 _, Injective, ext_iff, LE.le, (s.2.1 _).2, funext_iff, pairingAnnihilator, -Subtype.forall, -Subtype.exists] <;> exact fun _ o _ m ↦ .trans congr(⟦$(by simp [ι.isIntertwining, π.isIntertwining])⟧) (h o _ m)/-- Local field, M finite, [Γ:U] prime to #M. Let X' ⊂ Z¹(U, M^*), W' ⊂ Z¹(U, M) be orthogonalwith #X'·#W' maximal among orthogonal pairs; let X, W contain the coboundaries and acorestriction of each member. Then #L^⊥·#L divides #W·#X for all L ⊂ Z¹(Γ, M^*).Known result: Local Tate duality in degree 1, as an upper bound for orthogonal groups ofcocycles. -/lemma DiscreteModule.local_duality_card_dvd [Finite M] {U X W X' W'} (hX : M.cartierDual.HoldsCorestrictions U X' X) (hW : M.HoldsCorestrictions U W' W) (c : (Nat.card M).Coprime U.index) (o : W' ≤ pairingAnnihilator (M.restrictTo U).evalCup X') (H : ∀ Y Z, Y ≤ pairingAnnihilator (M.restrictTo U).evalCup.flip Z → Nat.card Y * .card Z ≤ .card X' * .card W') L : Nat.card (pairingAnnihilator M.evalCup L) * .card L ∣ .card W * .card X := by obtain ⟨e, k⟩ := AddEquiv.ofBijective _ J.classOfInv_bijective, (nsmulCoprime c).left_inv, (of_finite U).1.finite_Z1_local grw [card_pairingAnnihilator_mul_card _ e, card_dvd_of_le (inf_le_of_left_le (le_inf le_rfl fun x e ↦ hX.pairingAnnihilator_le hW (fun m ↦ DFunLike.ext _ _ (by simpa using congr(m $(k ·)))) (by simp) (eq_of_le_of_card_ge (by tauto) (le_of_mul_le_mul_right (H _ _ le_rfl) card_pos)).ge fun _ _ ↦ ext_iff.1 e _)), ← card_pairingAnnihilator_mul_card _ e, card_dvd_of_le fun w e ↦ hW.pairingAnnihilator_le hX k (by simp) (fun w e ↦ (eq_of_le_of_card_ge o (le_of_mul_le_mul_left (H _ _ (by tauto)) (@card_pos X' _ _))).ge (neg_eq_zero.1 <| (cupProduct_flip ..).symm.trans <| e · ·)) ((cupProduct_flip ..).trans <| by simpa using e · ·)]endvariable {Γ K : Type} [Group Γ] [TopologicalSpace Γ] [Field K] {K' : Type} [Field K'] [t : IsTotallyComplex K'] (x : K') {c : Γ} [Algebra K Ω] [MulSemiringAction Γ Ω] [G : IsProGalois Γ K Ω]lemma isTotallyPositive_of_isTotallyComplex : IsTotallyPositive x := (absurd (by ext; simp) <| t.complexEmbedding_not_isReal <| ofRealHom.comp ·)lemma isReal_comp_algebraMap {j} (h : ∀ x, j (c • x) = star (j x)) : ComplexEmbedding.IsReal (.comp j (algebraMap K Ω)) := by ext; simp [← h, ← star_def]variable (Γ) inlemma exists_isComplexConj [NumberField K] {w : InfinitePlace K} (h : w.IsReal) : ∃ c : Γ, IsComplexConj c := (exists_smul_emb_eq Γ (ComplexEmbedding.lift Ω w.embedding) (star _) (by aesop)).rec (⟨·, _, ·⟩)include K inlemma IsComplexConj.mul_self (h : IsComplexConj c) : c * c = 1 := h.rec (G.faithful.1 <| by simp [mul_smul, ← ·.injective.eq_iff, ·])/-- For x ∈ K^× totally positive and a character χ, the symbol (χ, x) ∈ H²(Γ, Ω^×) restricts tozero on some open subgroup containing all complex conjugations. -/lemma IsTotallyPositive.exists_resH2_cyclicClass_eq_zero {χ} {x : Kˣ} (p : IsTotallyPositive x.1) : ∃ U : OpenSubgroup Γ, (∀ c, IsComplexConj c → c ∈ U) ∧ (unitsModule Γ).resH2 U (cyclicClass _ χ (ofBase Γ Ω (.ofMul x))) = 0 := (exists_nsmul _ out).elim (⟨⟨_, G.6 ·.toMul.1⟩ ⊓ ⟨_, isOpen_ker (χ + χ)⟩, fun c h@⟨j, hj⟩ ↦ ⟨j.injective (by simpa [*, conj_eq_iff_im, ← sq_nonneg_iff, ← zero_le_real, ← map_pow, ← val_pow_eq_pow_val, ← toMul_nsmul] using (p (isReal_comp_algebraMap hj).embedding).le), map_mul_eq_one (toHom χ) h.mul_self⟩, DiscreteModule.resH2_cyclicClass_eq_zero · (·.2.imp DiscreteUnits.ext (two_nsmul _).trans)⟩)lemma IsComplexConj.false_of_isTotallyComplex (h : IsComplexConj c) [t : IsTotallyComplex K] : False := t.complexEmbedding_not_isReal _ (isReal_comp_algebraMap h.choose_spec)omit [TopologicalSpace Γ] inlemma IsComplexConj.cycCharMod_eq_neg_one (h : IsComplexConj c) {N} [NeZero N] : _root_.cycCharMod Ω N c = -1 := h.rec fun j _ ↦ Units.ext (.trans (cycCharMod_eq_iff.2 fun ζ e ↦ left_inv_eq_right_inv (j.injective (by simp_all [conj_mul', ← map_pow, norm_eq_one_of_pow_eq_one _ (ne N)])) (e ▸ mul_pow_sub_one out _)) (by simp [pos]))omit [TopologicalSpace Γ] in/-- If σ ∈ Γ acts as a complex conjugation on the algebraically closed field Ω of characteristiczero, then the ℓ-adic cyclotomic character takes the value −1 at σ. -/lemma IsComplexConj.cycChar_eq_neg_one (h : IsComplexConj c) l [Fact (Nat.Prime l)] : _root_.cycChar Ω l c = -1 := Units.ext (PadicInt.ext_of_toZModPow.1 (by simpa [cycCharMod_prime_pow_eq, ← val_inj] using h.cycCharMod_eq_neg_one (N := l ^ ·)))