Lean formalization of the Riemann Hypothesis (Alpöge, 2026-11-20) being cleaned up by members of the Lean community.
Python
refactor(New/Determinant/Chain): delete the unused exists_modulus_chainCommutes
sangxsh1002652ac53e
diff --git a/src/New/Determinant/Chain/TriangleNorms.lean b/src/New/Determinant/Chain/TriangleNorms.leanindex c95d60877b5..e999d802d12 100644--- a/src/New/Determinant/Chain/TriangleNorms.lean+++ b/src/New/Determinant/Chain/TriangleNorms.lean@@ -28,8 +28,6 @@ and `d` stands for the adjoint of the map that adds the least element.* `New.exists_card_parabolic_blockNumber_eq`: the order of the group of block triangular matrices`New.parabolic (New.blockNumber j)`.-* `New.Exchange.exists_modulus_chainCommutes`: square moduli and nonzero weights suffice for- commutation along a chain, without the remaining triangle axioms.The triangle, weighted chain and Gram form theorems are in`TauCeti.Analysis.InnerProductSpace.ArrowTriangle`.@@ -129,25 +127,4 @@ lemma weightedChain_eq_compUpTo (t : I) (i n : ℕ) :| zero => ext y; simp [compUpTo_zero_apply]| succ n ih => ext y; simp [compUpTo_succ_apply, ih]-/-- Take weights `w t n ≠ 0`, arrows `a t i n : F i n → F i (n + 1)` and maps-`d t i n : F i (n + 1) → F (i + 1) n`, with a parameter `t : I`. Suppose that the relation `M c f`,-read "`c` has modulus `f`", is unital and multiplicative and that for `i + n + 2 ≤ m` the square-`w n • a ∘ d = (w (n + 2) / conj β') • d ∘ a` on `F i (n + 1)` holds with some `β'` of modulus-`L (i + 1) (i + n + 2)` (part of `HasSquareModuli`). Let `X i n` be the weighted composite of the-first `n` arrows of row `i`. For `i + n < m` some `β` whose modulus is the product of the-`L (i + 1) k` over `i + 1 < k ≤ i + 1 + n` satisfies-`X (i + 1) n ∘ d ∘ a = (w (n + 1) / (w 1 * w 0 * conj β)) • d ∘ X i (n + 1)` (`ChainCommutes`). -/-lemma exists_modulus_chainCommutes (hw : ∀ t n, w t n ≠ 0)- (h_moduli : HasSquareModuli m w M L a d) (i n : ℕ) (hi : i + n < m) :- ∃ β : I → ℂ, M β (∏ k ∈ Ioc (i + 1) (i + 1 + n), L (i + 1) k) ∧ ChainCommutes w a d i n β := by- induction n with- | zero => exact ⟨1, by simpa [Ioc_self] using h_moduli.modulus_one, chainCommutes_zero hw i⟩- | succ n ih =>- obtain ⟨β, hβ, h_chain⟩ := ih (by lia)- obtain ⟨β', hβ', h_square⟩ := h_moduli.exists_modulus_commutes i n hi- refine ⟨β * β', ?_, h_chain.succ h_square⟩- -- The product of the moduli gains the factor of the new square.- rw [← add_assoc, prod_Ioc_succ_top (by lia)]- exact h_moduli.modulus_mul hβ hβ'-end New.Exchange