Skip to content

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

Python

refactor(Lib/GaloisRep/BaseChange/StepMatchingPairs): use Representation.inv_apply_eq_iff in heckeSplit_comp_baseChangeGf

sangxsh9212142fb16a
diff --git a/src/Lib/GaloisRep/BaseChange/StepMatchingPairs.lean b/src/Lib/GaloisRep/BaseChange/StepMatchingPairs.lean
index ff3c29c4cf8..2d211f4998b 100644
--- a/src/Lib/GaloisRep/BaseChange/StepMatchingPairs.lean
+++ b/src/Lib/GaloisRep/BaseChange/StepMatchingPairs.lean
@@ -227,20 +227,11 @@ lemma heckeSplit_comp_baseChangeGf (hu : u.IsSplit) (hw : (u.below E).IsSplit)
have h_below_star : star (v.below E) ≠ u.below E :=
fun h ↦ hv_star ⟨(below_star v).trans h, h_star⟩
simp [h_eq, h_star, h_below, h_below_star, atPlace_ofSplitPlace_of_ne, atPlace_baseChangeGf]
- calc π (baseChangeGf (ofSplitPlace hw g)) x
- = π (ofSplitPlace hu (φ g) * ((ofSplitPlace hu (φ g))⁻¹ * baseChangeGf (ofSplitPlace hw g)))
- x := by
- rw [mul_inv_cancel_left]
- _ = π (ofSplitPlace hu (φ g)) (π ((ofSplitPlace hu (φ g))⁻¹ * baseChangeGf
- (ofSplitPlace hw g)) x) := by
- rw [map_mul, mul_apply_eq_comp]
- _ = π (ofSplitPlace hu (φ g)) x := by rw [h_fix _ h_supp]
+ exact π.inv_apply_eq_iff.1 (by rw [← mul_apply_eq_comp, ← map_mul, h_fix _ h_supp])
· -- a uniformiser of `E'_u` comes from `E_w`, so valuations and `basicDoubleCoset` are preserved
have h_unit : ∃ ϖ : LocField (u.below E),
- IsUnit (Valued.v (locMap (algebraMap E E') rfl ϖ)).log := by
- refine (h_surj (uniformizer u)).imp fun ϖ hϖ ↦ ?_
- rw [hϖ]
- simp
+ IsUnit (Valued.v (locMap (algebraMap E E') rfl ϖ)).log :=
+ (h_surj (uniformizer u)).imp fun ϖ hϖ ↦ by simp [hϖ]
have h_val (y : LocField (u.below E)) :
Valued.v (locMap (algebraMap E E') rfl y) = Valued.v y :=
v_locMap_eq_of_isUnit_log _ rfl h_unit y