Skip to content

Lean formalization of the Riemann Hypothesis (Alpöge, 2026-11-20) being cleaned up by members of the Lean community.

Python

Spell out the affine map and the tame cocycle equality

Grativy6c719361a3e8e
diff --git a/src/New/Congruences/Selmer/Untied.lean b/src/New/Congruences/Selmer/Untied.lean
index f0c99937762..2fa9329f804 100644
--- a/src/New/Congruences/Selmer/Untied.lean
+++ b/src/New/Congruences/Selmer/Untied.lean
@@ -82,9 +82,10 @@ lemma affineAction_pow_eq_one (hc : ∀ g h : Gal(Ω/E), c (g * h) = c g + ρ g
exact Equiv.ext fun u ↦ by
simp [affineAction_pow_apply hc hg, hα, TauCeti.pow_eq_one_of_geom_sum_eq_zero hα]
-/-- Suppose the affine inertia at `A` is killed by `q`, a unit at `A`. A Frobenius of norm `k`
-(or its inverse) commutes with the affine action of `γ` precisely when `k` is one modulo the
-order of that particular action. -/
+/-- Let `c` be a locally constant cocycle and let `ρ` be trivial on inertia at `A` near `1`.
+Suppose each inertial `g` acts by the affine map `u ↦ c g + ρ g • u` (`affineAction`) of exponent
+dividing `q`, with `q` prime to `A`. A Frobenius of norm `k` or its inverse commutes with the
+affine map of an inertial `γ` at `A` exactly when `k` is one modulo the order of that map. -/
lemma commute_affineAction_iff (hc : ∀ g h : Gal(Ω/E), c (g * h) = c g + ρ g • c h)
{A : ClosurePlace} {v : FinPlace E} (hA : IsPlaceOver A v) (hc_lc : IsLocallyConstant c)
(h_open : ∀ᶠ g : Gal(Ω/E) in nhds 1, g ∈ inertiaGroup Gal(Ω/E) A → ρ g = 1) {q k : ℕ}
@@ -102,9 +103,10 @@ lemma commute_affineAction_iff (hc : ∀ g h : Gal(Ω/E), c (g * h) = c g + ρ g
have at_frob {σ : Gal(Ω/E)} (hf : IsFrob A k σ) :
Commute (f σ) (f γ) ↔ k ≡ 1 [MOD orderOf (f γ)] := by
have conjugate := (hA.tame_inertia f h_near hq h_pow ⟨γ, hγ⟩).right k σ hf
- change f (σ * γ * σ⁻¹) = (f γ)^k at conjugate
+ change f (σ * γ * σ⁻¹) = (f γ) ^ k at conjugate
rw [map_mul, map_mul, map_inv] at conjugate
rw [← pow_eq_pow_iff_modEq, pow_one, ← conjugate, mul_inv_eq_iff_eq_mul]
+ -- `Commute` unfolds to equality of the two affine products.
rfl
rcases hφ with hf | hf
· exact at_frob hf
@@ -120,9 +122,9 @@ lemma sub_one_smul_eq_of_commute (hc : ∀ g h : Gal(Ω/E), c (g * h) = c g + ρ
rw [sub_smul, sub_smul, one_smul, one_smul]
linear_combination (norm := abel) h_swap
-/-- If the affine inertia at `A` is killed by `q` prime to `A`, the cocycle equation at an
-inertial `γ` and a Frobenius `φ` (or its inverse) is symmetric whenever the norm is one
-modulo the order of the affine action of `γ`. -/
+/-- Suppose the affine action of inertia at `A` is killed by `q` prime to `A`. For inertial `γ`
+and a Frobenius `φ` or its inverse, the cocycle satisfies `(φ - 1) c(γ) = (γ - 1) c(φ)`
+whenever the norm is one modulo the order of the affine map of `γ`. -/
lemma sub_one_smul_eq_of_tame (hc : ∀ g h : Gal(Ω/E), c (g * h) = c g + ρ g • c h)
{A : ClosurePlace} {v : FinPlace E} (hA : IsPlaceOver A v) (hc_lc : IsLocallyConstant c)
(h_open : ∀ᶠ g : Gal(Ω/E) in nhds 1, g ∈ inertiaGroup Gal(Ω/E) A → ρ g = 1) {q k : ℕ}