Skip to content

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

Python

chore: fix an unnecessarySimpa and an unusedSimpArgs linter warning

sangxsh0d672b0ab3ef
diff --git a/src/Lib/General/Algebra/BlockFittingBound.lean b/src/Lib/General/Algebra/BlockFittingBound.lean
index a962b735c4f..a60a433910c 100644
--- a/src/Lib/General/Algebra/BlockFittingBound.lean
+++ b/src/Lib/General/Algebra/BlockFittingBound.lean
@@ -91,7 +91,7 @@ lemma exists_injective_quotSpan_torsionBy {X : Type} [AddCommGroup X] [Module O
obtain ⟨c, rfl⟩ : a ∣ b := (ValuationRing.dvd_total a b).resolve_right fun h ↦ hz ((hb a).2 h)
have hc : c ≠ 0 := by
rintro rfl
- simpa [hb] using h_tors
+ simp [hb] at h_tors
-- The element `w = c z` is killed exactly by the multiples of `a`, so `t ↦ t w` embeds `O / a`.
let w : torsionBy O X a := ⟨c • z, by simp [smul_smul, hb]⟩
let mulW : O →ₗ[O] torsionBy O X a := LinearMap.toSpanSingleton O _ w
diff --git a/src/New/OneLift/ComparisonOperator/ProductsSpan.lean b/src/New/OneLift/ComparisonOperator/ProductsSpan.lean
index 64c81026f91..34ae1337322 100644
--- a/src/New/OneLift/ComparisonOperator/ProductsSpan.lean
+++ b/src/New/OneLift/ComparisonOperator/ProductsSpan.lean
@@ -709,7 +709,7 @@ theorem exists_choiceFn_approx : ∃ (F₀ : GInf D.E (D.signsW j) → ℂ) (C :
simp [ι, G.sum, Pi.mul_def, ← map_mul]
rw [sum_eq, h_point, sub_eq_iff_eq_add,
← MeasureTheory.integral_add diff_int (F₀_bound (ι h)).1]
- simp [A, F₀, φ, m₁, ← add_mul, ← mul_add]
+ simp [A, φ, m₁, ← add_mul, ← mul_add]
have norm_one : ‖F₀ 1‖ = J * (‖φ g₁‖ * ‖cP 1 1‖) := by simp [F₀_one, abs_of_pos J_pos]
calc ‖∑ i, c i * choiceFn j i (g * (h, 1)) - F₀ h‖
_ ≤ 2 * ‖φ g₁‖ * ε * D.b ^ nStar D * J := by rwa [h_diff]