Current task: —

← Session 22 — ii′-1: liCoeff pairing fix + residue machinery

#1037 assistant 2026-08-22 04:44:12.181 UTC · 14913→16203 tok open ⤢
thinking (40424 chars)
The EF proof is the full-line contour identity — not directly a moment-extraction machine. The β2 route (reuse EF) would require a limiting argument with test functions approaching the moment kernels — delicate. Let me now think carefully about the β1 route (direct) with a fresh eye, focusing on what's REALLY needed and what Mathlib provides. **Target (a-form, k ≥ 1):** c_{k−1} = (−1)^k(a_k + σ_k) + (−1)^{k−1} Equivalently, via the three-coefficient reading: - c_{k−1} = lcoeff (k−1) = Taylor coeff of hLi at 1 (PROVED machinery). - The identity needed: coefficient of s^{k−1} in ξ′/ξ(s+1) equals (−1)^{k−1} σ_k. **KEY REALIZATION — maybe I can bypass the global Hadamard product using the CRUX identity numerics we already verified, in reverse.** Hmm, no — the crux was numerically verified but needs proof. Let me think about what (4.1)/Lemma 4.1 needs minimally. The claim: near s = 0, −ξ′/ξ(s) = Σ_{m≥0} σ_{m+1} s^m. Both sides are determined by: - LHS: the Taylor series of the meromorphic function −ξ′/ξ at 0 (analytic at 0 since ξ(0) ≠ 0). - RHS: the power series with coefficients σ_{m+1} — converges for |s| < 14 (first zero height) since |σ_m| ≤ Σ mult/|ρ|^m ≤ C·14^{2−m}·Σ mult/|ρ|² — converges for |s| < 14.13 ✓. The identity of two analytic functions on a disk: enough to prove it as... hmm, the content is exactly "log ξ(s) = log ξ(0) − Σ_{m≥1} σ_m s^m/m on |s| < 14" (integrate) i.e. ξ(s) = ξ(0)·exp(−Σ σ_m s^m/m) — i.e. ξ(s)·exp(Σ_{m≥2} σ_m s^m/m + σ₁ s)... — the product form without saying "product": ξ(s) = ξ(0)·Π_ρ [(1−s/ρ)e^{s/ρ}]^{mult} on |s| < 14 — the LOCAL version: the infinite product Π_ρ (1−s/ρ)e^{s/ρ} converges locally uniformly on |s| < 14 (since Σ |ρ|^{−2} < ∞: each factor 1 + O(1/|ρ|²) for |s| bounded: log((1−s/ρ)e^{s/ρ}) = O(s²/ρ²) ✓) to an analytic function Z(s) whose zeros in |s| < 14 are exactly the ρ's with multiplicities. Then ξ/Z is a zero-free... on the disk — not globally — the quotient on the disk is analytic zero-free, hence exp of something: ξ/Z = e^{g}, g analytic on the (simply connected) disk. Then ξ = Z·e^g on the disk. Take logDeriv: ξ′/ξ = Z′/Z + g′. And Z′/Z = Σ_ρ mult·[−1/(ρ−s)·... let me compute: Z = Π f_ρ, f_ρ = (1−s/ρ)e^{s/ρ}: logDeriv Z = Σ logDeriv f_ρ = Σ mult·[f'_ρ/f_ρ] = Σ mult·[−1/ρ/(1−s/ρ)·... f' = −(1/ρ)e^{s/ρ} + (1−s/ρ)(1/ρ)e^{s/ρ} = (e^{s/ρ}/ρ)(−1 + 1 − s/ρ) = −(s/ρ²)e^{s/ρ}. So f'/f = −(s/ρ²)/(1−s/ρ) = −s/(ρ²(1−s/ρ)) = −s/(ρ(ρ−s)). So Z′/Z(s) = −s Σ_ρ mult/(ρ(ρ−s)). At s = 0: Z′/Z(0) = 0. Derivatives at 0: (Z′/Z)^{(m)}(0) = −Σ mult·[s/(ρ(ρ−s))]^{(m)} at 0: s/(ρ(ρ−s)) = (1/ρ)·(s/(ρ−s)) = (1/ρ)·(−1 + ρ/(ρ−s)) = −1/ρ + 1/(ρ−s). So s/(ρ(ρ−s)) = 1/(ρ−s) − 1/ρ. Then (d/ds)^m [1/(ρ−s)] = m!/(ρ−s)^{m+1}; at s = 0: m!/ρ^{m+1}. So (Z′/Z)^{(m)}(0) = −Σ mult·m!/ρ^{m+1} = −m!·σ_{m+1} for m ≥ 1 (for m = 0: Z′/Z(0) = −Σ mult·(1/ρ − 1/ρ) = 0... wait: s/(ρ(ρ−s)) at s=0 = 0 ✓ (not −1/ρ+1/ρ=0 ✓ same)). Hmm interesting — so Z′/Z's Taylor coefficients at 0 are exactly −σ_{m+1} (m ≥ 1) and 0 at m = 0. Meanwhile −ξ′/ξ = −Z′/Z − g′ — and its Taylor coefficients are σ_{m+1} ⟺ g′ has Taylor coefficients: m = 0: −(ξ′/ξ)(0) = σ₁ + g′(0) — i.e. g′(0) = −σ₁ − ξ′/ξ(0)... and for m ≥ 1: g′⁽ᵐ⁾(0) = 0 — i.e. g′ is CONSTANT: g′(s) = g′(0) for the coefficients to match... no wait — we need −ξ′/ξ(s) = Σ σ_{m+1}s^m = −Z′/Z(s) + σ₁ (since −Z′/Z = Σ_{m≥1} σ_{m+1}s^m and adding σ₁ gives the full series). So we need g′(s) = −σ₁ for all s in the disk: g′ constant = −σ₁. So the WHOLE content of Lemma 4.1 (given the product Z) is: **g′ ≡ −σ₁ on the disk**, where ξ = Z·e^g. And THAT is where A = −σ₁ comes in — Lagarias's "*-convergent rearrangement" — the evaluation A = −σ₁ uses the SYMMETRY ρ ↔ 1−ρ̄ of the zero set (the *-convergence). So even the local version needs: (i) the product Z converges and ξ/Z = e^g with g' constant... hmm no — g need not have constant derivative a priori! The claim A = −σ₁ is a REAL content: the derivative of log(ξ/Z) at 0 equals −σ₁. And higher derivatives of g must vanish — NO wait: I computed Z′/Z's coefficients directly from the product — they're −σ_{m+1}. And ξ′/ξ = Z′/Z + g′. The claim −ξ′/ξ = Σ σ_{m+1}s^m = −Z′/Z + σ₁ ⟺ g′ ≡ −σ₁ ⟺ ALL derivatives of g′ vanish: g⁽ᵐ⁾(0) = 0 for m ≥ 2 and g′(0) = −σ₁. That's NOT automatic from the product's existence — it's the Hadamard content (g linear: g(s) = A s + B with A = −σ₁). Hmm — so the local-on-a-disk version is INSUFFICIENT: the product Z on the disk |s| < 14 doesn't determine g (the quotient ξ/Z is e^g with g analytic on the disk — arbitrary!). The GLOBAL Hadamard theorem is what forces g linear — via the order-1 growth of ξ bounding the order of the canonical product's quotient. So the full strength is needed. The moment identity is genuinely "the Taylor coefficients of log ξ at 0 are the negative power sums" — global rigidity. Wait — is that true though? Let me recheck: Z is THE product over ALL zeros — it converges on all of ℂ (canonical product, genus 1, since Σ|ρ|^{−2} < ∞ — locally uniform on compacts). Z is ENTIRE with zeros exactly the ρ's (with mult). THEN ξ/Z is entire NONVANISHING ⟹ ξ/Z = e^g with g entire (ℂ simply connected). Hadamard: order of ξ is 1, order of Z is ≤ 1 (canonical product genus) ⟹ order of e^g ≤ 1 ⟹ g is a polynomial of degree ≤ 1 (order of e^g = deg g for polynomials; e^g has integer order iff g polynomial). So g(s) = A + Bs — global. THEN ξ′/ξ = Z′/Z + B and at s = 0: ξ′/ξ(0) = Z′/Z(0) + B = 0 + B (Z′/Z(0) = 0 as computed) — so B = ξ′/ξ(0) = −σ₁?? — the LAST bit: B = −σ₁ is Lagarias's "A = −σ₁ by *-convergent rearrangement" — hmm in my computation Z′/Z(0) = 0 — because the product Z = Π(1−s/ρ)e^{s/ρ} has logDeriv at 0 equal to Σ mult·[−1/ρ + 1/ρ] = 0 — WAIT: f_ρ'/f_ρ at 0: f_ρ = (1−s/ρ)e^{s/ρ}, log f_ρ = log(1−s/ρ) + s/ρ, (log f_ρ)′ = −1/ρ·1/(1−s/ρ) + 1/ρ → at s = 0: −1/ρ + 1/ρ = 0 ✓ so Z′/Z(0) = Σ 0 = 0 (the e^{s/ρ} factors are exactly what makes this 0 AND makes the product converge). So B = ξ′/ξ(0). And the claim B = −σ₁ i.e. ξ′/ξ(0) = −σ₁ — this is NOT from the product — it's a SEPARATE fact (the *-convergence/symmetry argument)! Hmm right — Lagarias: "One can also deduce by a ∗-convergent rearrangement that A = −Σ′ 1/ρ = −σ₁". His A (the e^{As+B} constant) = our B (derivative of g). So the fact ξ′/ξ(0) = −σ₁ is the functional-equation/symmetry content: ξ(s) = ξ(1−s) ⟹ ξ′/ξ(s) = −ξ′/ξ(1−s) ⟹ at s = 0: ξ′/ξ(0) = −ξ′/ξ(1). And ξ′/ξ(1)... pole of ζ at 1 ⟹ ξ′/ξ has a pole at 1?? No — ξ is entire with ξ(1) = 1/2 ≠ 0 — hmm ξ′/ξ is analytic at 1. The relation ξ′/ξ(0) = −σ₁: from the *-symmetry: the zeros come in pairs ρ ↔ 1−ρ̄ (the * map), and σ₁ = Σ′ 1/ρ with the *-grouping = Σ pairs (1/ρ + 1/(1−ρ̄))/2... Actually the cleanest derivation of ξ′/ξ(0) = −σ₁: ξ(s)/ξ(0) = Π_ρ [(1−s/ρ)e^{s/ρ}]^{mult}·e^{Bs} — take s → hmm. Standard: the pairing ρ, 1−ρ̄: group the product factors: f_ρ(s)·f_{1−ρ̄}(s) and use ξ(s) = ξ(1−s) to compare... The constant B: ξ′/ξ(0) = −ξ′/ξ(1) (FE). And via the OTHER representation at 1: ξ′/ξ(1) = ... hmm. OK — stepping back. This is ALL the classical Hadamard-theory content and it's a genuine formalization lift: 1. Canonical product Z = Π (1−s/ρ)e^{s/ρ}·mult converges locally uniformly (needs: Weierstrass M-test for products — Mathlib has `HasProd` machinery + locally uniform convergence of products? There IS `TendstoLocallyUniformly` for sums; for products via exp/log: log Z = Σ [log(1−s/ρ) + s/ρ] — a SUM of analytic functions, locally uniformly absolutely summable (|log(1−w)+w| ≤ C|w|² for |w| ≤ 1/2 ✓ + Σ|ρ|^{-2} < ∞ ✓) — so log Z exists as a locally-uniformly-convergent series of analytic functions ⟹ analytic (Weierstrass: locally uniform limit of analytic is analytic — Mathlib: `TendstoLocallyUniformlyOn` + analytic ⟹ analytic? — there's `AnalyticOnNhd` preservation under locally uniform limits — hmm — actually for HOLOMORPHIC functions Mathlib has `TendstoLocallyUniformlyOn.differentiableOn`? or via Morera? Let me check — this is a key infrastructure question.) 2. ξ/Z = e^g entire (zero-free quotient ⟹ exp of entire — needs: on ℂ simply connected, zero-free analytic = exp of analytic — Mathlib: `AnalyticAt.exists_...`? There's `Complex.log` of nonvanishing analytic on simply connected — does Mathlib have it? `DifferentiableOn... log`? — hmm — Mathlib has `AnalyticOnNhd.exists_log`? not sure.) 3. g linear from order-1 growth (Hadamard's estimate: Re g(s) ≤ C|s|^{1+ε} ⟹ g linear — via the Borel–Carathéodory/Liouville for the real part — Mathlib has borelCaratheodory ✓ (mentioned in D-064 R3) and the "polynomial from growth" — Liouville-type: if |e^g| = e^{Re g} has order ≤ 1 then... Re g ≤ C(1+|s|)^{1+ε} for all ε ⟹ g is a polynomial of degree ≤ 1 — this is a known Liouville refinement — Mathlib? probably NOT directly. Hmm — the order-of-ξ-is-1 fact: ξ entire with |ξ(s)| ≤ exp(C|s|log|s|)-ish (order 1) — needs the growth estimate of ξ — from the FE + polynomial bound in strips — doable but work.) 4. B = −σ₁ (the *-symmetry rearrangement). 5. Convergence/identity principle bookkeeping. This is a BIG lift — D-064 estimated 2–4 sessions for ii′-3 via β2-first. The β1 direct-Hadamard is the "heavy but self-contained" option. Given the freeze protocol and that this is the LONG POLE, the design note D-066 must map this precisely. **Now — the β2 route (EF reuse) more carefully.** The EF gives: for k ∈ C²_c(ℝ), h(z) = ∫ k(u)e^{izu}du: Σ_ρ mult·h(γ_ρ) = h(i/2) + h(−i/2) − Σ_n Λ(n)/√n·(k(log n) + k(−log n)) + (1/2π)∫ h(r)γBracket(r)dr. The moment σ_k = Σ mult·(1/2+iγ)^{-k}. As noted, (1/2+iz)^{-k} is not entire. BUT: consider the test function h_t(z) = e^{itz}-type oscillatory... no. What about extracting the moments via INTEGRALS against the EF: ∫ (something) × EF? Hmm. Alternatively — (4.1) is equivalent to: ξ′/ξ(s) + Σ_m σ_{m+1}s^m... — Lagarias proves it from Hadamard. There's ANOTHER classical route to the power-sum identities: the GUI­NAND–WEIL "explicit formula at the boundary": test functions h(z) = e^{izx} (not compactly supported k — but the EF extends to k(x) = e^{...}... The exponential test function corresponds to k = delta — the Cramér formula Σ_ρ mult·e^{iγx}... for x ≠ 0 these converge conditionally to explicit prime/gamma expressions — the "Cramér–Guinand" formula. From the Cramér function V(x) = Σ_{Im ρ > 0} e^{ρ x}... There IS a classical exact formula: Σ_ρ (1/ρ + 1/(1−ρ))... = 2 + γ/2 − ... — the σ₁ value — provable by contour integration of s^{-1}·ξ′/ξ or (s(s−1))^{-1}ξ′/ξ... hmm. Actually — here's the cleanest classical route to the MOMENT identities σ_k = explicit: integrate w^{−k}·ξ′/ξ(w) around a contour! For k ≥ 2 (absolute convergence): (1/2πi)∮ w^{−k} ξ′/ξ(w) dw = Σ_ρ mult·ρ^{−k} + [contribution from w = 0: w^{−k}ξ′/ξ has a pole of order k at 0 — residue = (ξ′/ξ Taylor coefficient)] — take the contour = large rectangle/circle avoiding zeros, show it → 0 as it expands (needs |ξ′/ξ| controlled — on the RIGHT the line Re = 2: ξ′/ξ = logDeriv of the Euler product — explicit series Σ Λ(n)... — the classical proof: on Re w = 2, ξ′/ξ(w) = ΓR'/ΓR + ζ′/ζ + 1/w + 1/(w−1) — all explicit; on the other three sides use the FE to reflect to the right + the order-1 estimate for ξ′/ξ = Σ_{|γ−t|<2} 1/(w−ρ) + O(log t) — the D-036/D-056 R-bound machinery!). The contour → 0 as T → ∞ (w^{−k} decays), leaving: σ_k = −[Residue of w^{−k}ξ′/ξ at 0] = −(Taylor coeff of ξ′/ξ at 0 of order k−1) = −(1/(k−1)!)·(ξ′/ξ)^{(k−1)}(0). And (ξ′/ξ)^{(k−1)}(0) is EXPLICIT from the decomposition (4.2): ξ′/ξ = 1/s + 1/(s−1) + ΓR′/ΓR + ζ′/ζ: (ξ′/ξ)^{(k−1)}(0) = [1/s]^{(k−1)}(0)?? — 1/s is singular at 0!! Hmm — ξ′/ξ at 0: 1/s term — wait ξ has a ZERO at... no! ξ(0) = 1/2 — but ξ(s) = (1/2)s(s−1)ΓR(s)ζ(s): the s factor gives a zero, ΓR(0) has a pole (Γ(0)), ζ(0) = −1/2 finite: so s·ΓR(s) = s·π^{−s/2}Γ(s/2) → s·(2/s + O(1)) = 2 at 0 — so ξ(0) = (1/2)·(−1)·2·(−1/2)·... = 1/2 ✓ finite nonzero — so 1/s + 1/(s−1) + Γ′R/ΓR(s) + ζ′/ζ(s) — each of 1/s and Γ′R/ΓR(s) ~ 2/s... — the SUM is analytic at 0 (ξ′/ξ is, since ξ(0) ≠ 0). So when integrating w^{−k}ξ′/ξ, the residue at 0 is the (k−1)-th Taylor coefficient of the ANALYTIC function ξ′/ξ — fine — but for the EXPLICIT evaluation I use the decomposition, where individual terms are singular — the (k−1)-th Taylor coefficient of ξ′/ξ at 0 = sum of coefficients of the pieces (the singular parts' Laurent coefficients at the right orders): coeff of s^{k−1} in ξ′/ξ(s) at 0 = [from 1/s: coefficient of s^{k−1} in 1/s's Laurent — that's s^{−1}: contributes only to k = 0; for k ≥ 2: 1/s contributes 0 to s^{k−1} coefficient?? NO — the Taylor coefficient of the analytic function is well-defined; the piecewise extraction: 1/s has Laurent series 1/s — its s^{k−1} coefficient (k ≥ 1) is 0 for k ≥ 1 (only s^{−1}) ✓. 1/(s−1) = −Σ s^j: coefficient of s^{k−1}: −1. Γ′R/ΓR(s) at 0: Γ′R/ΓR(s) = −(log π)/2 + (1/2)ψ(s/2) — ψ(s/2) = −2/s − γ + ... — the Laurent: coefficient of s^{k−1}: (1/2)ψ(s/2)'s — from ψ(s) = −1/s − γ + Σ... the full Laurent of ψ at 0: ψ(s) = −1/s − γ + Σ_{j≥1} (−1)^{j+1}ζ(j+1) s^j — CLASSICAL: ψ(1+s) = −γ + Σ_{j≥2} (−1)^j ζ(j) s^{j−1}; ψ(s) = ψ(1+s) − 1/s (recurrence!) — so ψ(s) = −1/s − γ + Σ_{j≥2} (−1)^j ζ(j) s^{j−1}. At s/2: ψ(s/2) = −2/s − γ + Σ_{j≥2} (−1)^j ζ(j) (s/2)^{j−1}. So Γ′R/ΓR(s) = −(log π)/2 + (1/2)[−2/s − γ + Σ_{j≥2} (−1)^j ζ(j) 2^{−(j−1)} s^{j−1}]. Coefficient of s^{k−1} (k ≥ 2): (1/2)(−1)^k ζ(k) 2^{−(k−1)} = (−1)^k 2^{−k} ζ(k). ζ′/ζ(s) at 0: analytic (ζ(0) = −1/2 ≠ 0, ζ analytic at 0) — its Taylor coefficients at 0 — the values (ζ′/ζ)^{(m)}(0) — NOT elementary!! ζ′/ζ(0) = log 2π (classical — from the FE). Higher derivatives of ζ′/ζ at 0 involve ζ(−1), ζ′(−1)... — hmm — ζ′/ζ^{(m)}(0) relates to ζ(0), ζ′(0), ζ″(0)... — ζ′(0) = −(1/2)log(2π) classical; higher ζ^{(m)}(0) via the FE relate to ζ^{(j)}(1) — the Laurent coefficients of ζ at 1 = Stieltjes constants γ_j! So ζ′/ζ's Taylor coefficients at 0 are combinations of Stieltjes constants — and the c_j (Laurent of −ζ′/ζ at 1) are ALSO Stieltjes combinations. This is getting circular-ish but it should be consistent — the identity (4.10) is exactly the consistency relation. Hmm wait — but this contour approach computes σ_k = −(1/(k−1)!)(ξ′/ξ)^{(k−1)}(0) as a CLOSED FORM involving the pieces — and the (4.10) identity is then the coefficient comparison — but I still need the RELATION between (ξ′/ξ)^{(k−1)}(0) and the c's/a's — which is exactly (I)+(II)+(III) again. The contour approach doesn't avoid computing the Taylor coefficients of ξ′/ξ at 0 in terms of the archimedean + ζ pieces — it DERIVES the σ-side. Hmm — actually YES this is exactly the right structure! Let me re-lay-out: **The contour route to (I)** (the moment identity as closed form): for k ≥ 2: σ_k + (1/(k−1)!)·(ξ′/ξ)^{(k−1)}(0)·(−1)... — sign bookkeeping — = 0, i.e. σ_k = −(ξ′/ξ)^{(k−1)}(0)/(k−1)! — WAIT but that makes σ_k equal to a Taylor coefficient of ξ′/ξ at 0 — and (4.1) at s=0 says −ξ′/ξ(s) = Σ σ_{m+1} s^m i.e. σ_{m+1} = −(ξ′/ξ)^{(m)}(0)/m! — SAME THING ✓ consistent (m = k−1). So the contour identity IS (4.1) at 0. And (4.1) at 0 follows from the contour ∮ w^{−k}ξ′/ξ → 0. So the architecture could be: (I') For k ≥ 2: σ_k = −(ξ′/ξ)^{(k−1)}(0)/(k−1)! — via contour integration of w^{−k}ξ′/ξ (the rectangle machinery we HAVE — residueTheorem_finset/rectangleIntegral'_mul_logDeriv family!) with the expanding-contour limit → 0. (I'') k = 1: σ₁ = −ξ′/ξ(0) — needs a separate argument (the series Σ 1/ρ only converges paired; the contour with w^{−1} gives Σ′ 1/ρ conditionally...). Hmm — k = 1 is the Davenport value σ₁ = 1 + γ/2 − ½log 4π — needed for the crux! (k = 1 in (4.10)-a-form: c₀ = −(a₁ + σ₁) + 1 — check: c₀ = −γ; a₁ = (log4π+γ)/2; σ₁ = 1+γ/2−½log4π: −(a₁+σ₁)+1 = −(log4π+γ)/2 − 1 − γ/2 + ½log4π + 1 = −γ ✓.) So k = 1 is essential (it's inside every ResW1 = Σ_{j=1}^n C(n,j)c_{j−1} via c₀). (II) Taylor coefficients of −ζ′/ζ at 1: c's ✓ free (LiResidue). (III) Taylor coefficients of ΓR′/ΓR at 1: (−1)^k a_k — the digamma piece. (IV) The logDeriv decomposition ✓ algebra. (V) The bridge: (ξ′/ξ)^{(k−1)}(0) via FE: ξ′/ξ(s) = −ξ′/ξ(1−s) — so (ξ′/ξ)^{(k−1)}(0) = −(−1)^{k−1}(ξ′/ξ)^{(k−1)}(1)·... wait: d/ds [−ξ′/ξ(1−s)] = +(ξ′/ξ)'(1−s)... let me compute: g(s) := ξ′/ξ(s); FE: g(s) = −g(1−s). g^{(m)}(s) = −(−1)^m g^{(m)}(1−s) = (−1)^{m+1} g^{(m)}(1−s). At s = 0: g^{(m)}(0) = (−1)^{m+1} g^{(m)}(1). So (ξ′/ξ)^{(k−1)}(0) = (−1)^k (ξ′/ξ)^{(k−1)}(1)·... (−1)^{(k−1)+1} = (−1)^k ✓. So σ_k = −(−1)^k g^{(k−1)}(1)/(k−1)! = (−1)^{k+1} g^{(k−1)}(1)/(k−1)!. And g(1+s) = ξ′/ξ(1+s) = 1/(s+1) + 1/s + Γ′R/ΓR(1+s) + ζ′/ζ(1+s) — its Taylor coefficients at s = 0: coefficient of s^{k−1} in g(1+s): from 1/(1+s) = Σ(−1)^j s^j: (−1)^{k−1}; from 1/s + ζ′/ζ(1+s) = 1/s − (1/s + Σ c_j s^j) = −Σ c_j s^j: coefficient −c_{k−1}; from Γ′R/ΓR(1+s): τ_{k−1}. So g^{(k−1)}(1)/(k−1)! = (−1)^{k−1} − c_{k−1} + τ_{k−1}. Then: σ_k = (−1)^{k+1}[(−1)^{k−1} − c_{k−1} + τ_{k−1}] = (−1)^{2k}·... let me just: (−1)^{k+1}(−1)^{k−1} = (−1)^{2k} = 1... wait (−1)^{k+1+k−1} = (−1)^{2k} = 1. So σ_k = 1·(1) + (−1)^{k+1}(−c_{k−1}) + (−1)^{k+1}τ_{k−1} = 1 + (−1)^k c_{k−1} + (−1)^{k+1}τ_{k−1}. Solve for c_{k−1}: (−1)^k c_{k−1} = σ_k − 1 − (−1)^{k+1}τ_{k−1} = σ_k − 1 + (−1)^k τ_{k−1}; c_{k−1} = (−1)^k σ_k − (−1)^k + τ_{k−1}. With τ_{k−1} = (−1)^k a_k: c_{k−1} = (−1)^k σ_k + (−1)^k a_k − (−1)^k = (−1)^k(a_k + σ_k) − (−1)^k = (−1)^k(a_k + σ_k) + (−1)^{k−1} ✓✓✓ THE TARGET. So the identity chain is EXACTLY: (I) the moment/contour identity σ_k = −g^{(k−1)}(0)/(k−1)! [k ≥ 2] + the k=1 case; (V) the FE reflection to s = 1; (IV)+(II)+(III) the coefficient split at 1. Now — the pieces by difficulty: - (II): free (LiResidue). - (IV): logDeriv product algebra ✓ easy-ish (needs completedRiemannZeta = product form in Mathlib: `completedRiemannZeta s = (s*(s−1)/2)·Gammaℝ(s)·ζ(s)`? — Mathlib def: completedRiemannZeta s = (s * (s - 1)) / 2 * (Complex.Gammaℝ s) * riemannZeta s? Let me check the exact def — `completedRiemannZeta s = (s * (s - 1)) / 2 * (Real.Gamma... no — Complex.Gammaℝ s * riemannZeta s`? I'll check. The XiLogDeriv.lean file in Zeta23 HAS `logDeriv_completedZeta : logDeriv completedRiemannZeta s = logDeriv Gammaℝ s + logDeriv riemannZeta s + ...`? From Main.lean line 75-80: `logDeriv_completedZeta _ h1 hζ hpos : logDeriv completedRiemannZeta s = logDeriv Complex.Gammaℝ s + logDeriv riemannZeta s` — WAIT that's missing the s(s−1)/2 factor? — because logDeriv of s(s−1)/2 = 1/s + 1/(s−1) — the displayed split in Main.lean has only two terms — so their logDeriv_completedZeta must handle the polynomial factor separately or completedRiemannZeta's def there differs. Let me look at XiLogDeriv.lean's statement. - (III): digamma coefficients — MODERATE (needs ψ's Laurent at 0/1 + the odd-zeta identification; or the polygamma values at 1/2). - (V): FE for ξ — Mathlib HAS `completedRiemannZeta_one_sub : completedRiemannZeta (1−s) = completedRiemannZeta s` ✓ (the functional equation IS in Mathlib!). So (V) is a deriv-comp computation ✓ EASY. - (I): the contour moment identity — THE HEAVY PIECE. Needs: (a) the rectangle contour argument for w^{−k}ξ′/ξ with zeros+pole residues; (b) the expanding limit: contour integral → 0 as T → ∞ — needs |ξ′/ξ| bounds on the contour sides — the RIGHT side (Re = 2 or so): explicit via Euler product (|ζ′/ζ| ≤ Σ Λ(n)n^{−2} convergent ✓ + Gamma part O(log)); LEFT side: via FE reflection to the right ✓; TOP/BOTTOM (Im = ±T): the hard part — need |ξ′/ξ(σ+iT)| = o(T^k) — the classical bound: ξ′/ξ = Σ_{|γ−T|<1} 1/(w−ρ) + O(log T) (the D-036 R-bound = D-056 reference-point bound!) and the zero-avoiding choice of T (gap ≥ δ) makes the sum ≤ (#zeros)·(1/δ) = O(log T)·O(log T) — wait # zeros in unit interval ~ C₀ log T ✓ so the sum is O(log²T) with the δ-clearance — killing w^{−k} for k ≥ 2 requires... the top side contributes ~ T^{−k}·O(log²T)·T (length) = O(log²T/T^{k−1}) → 0 for k ≥ 2 ✓✓. This is EXACTLY the D-036/D-056 machinery (R-bound A = 10.5, B₀ = 48 + zero-avoiding T via pigeonhole C₀) — which is ii′-4/ii′-5's Lean content ANYWAY (the R-bound route R3!). Hmm — so (I) needs the R-bound in Lean first — that's ii′-5's content. Interesting — the contour moment identity shares machinery with ii′-4/5. Also (I) for k = 1: the contour with w^{−1} doesn't decay enough (top side ~ log²T/T·T = log²T — diverges!). The classical fix: k=1 via the SYMMETRY: σ₁ = Σ′ 1/ρ = (1/2)Σ(1/ρ + 1/(1−ρ̄))... or use w^{−1}ξ′/ξ with the FE-symmetrized kernel 1/(2)(1/w + 1/(1−w))... The kernel K(w) = (1/2)(1/w + 1/(1−w))·... hmm: 1/w + 1/(1−w) = 1/(w(1−w)) — decays like 1/w² ✓! So integrate (1/2)ξ′/ξ(w)/(w(1−w))·... wait: the paired sum: Σ_ρ mult·(1/2)(1/ρ + 1/(1−ρ̄))... hmm the zero set's symmetry: 1−ρ̄ is a zero with same mult (Zeta23: reflect_zero/mult_reflect ✓ in the seam). And my sigmaP 1 is the CONJUGATE-paired sum: (mult/2)(1/ρ + 1/ρ̄). Is Σ (mult/2)(1/ρ + 1/ρ̄) = Σ (mult/2)(1/ρ + 1/(1−ρ))? Different pairings — but BOTH converge absolutely (paired forms ~ re/|ρ|²) and... the conj-pairing vs the reflect-pairing — as absolutely convergent sums over a multiset closed under BOTH maps (conj and reflect), the rearrangements: Σ_ρ mult·(1/2)(1/ρ + 1/ρ̄) — is this equal to Σ mult·(1/2)(1/ρ + 1/(1−ρ))? Hmm — by absolute convergence both equal Σ mult·Re(1/ρ)... no wait: (1/2)(1/ρ + 1/ρ̄) = Re(1/ρ) = re/|ρ|². And (1/2)(1/ρ + 1/(1−ρ)): NOT the same pointwise. But summed: Σ_ρ mult·1/(1−ρ) = Σ_{ρ'} mult·1/ρ' via ρ' = 1−ρ (reflection is a mult-preserving bijection of the zero set — wait is 1−ρ a zero? YES: FE symmetry — Zeta23's reflect is 1−ρ̄: reflect_zero says IsNontrivialZero (1 − ρ̄)... hmm — actually the reflection that preserves the zero SET: ρ ↦ 1−ρ̄ (the * map) AND ρ ↦ ρ̄ (conjugation) — composing: ρ ↦ 1−ρ is also a symmetry (since both conj and * preserve the set with mult: conj: Mathlib riemannZeta (conj s) = conj (riemannZeta s) ⟹ zero set conj-invariant; mult preservation needs work but standard). So Σ mult/(1−ρ) — is 1−ρ a zero with mult? 1−ρ = reflect(conj ρ)... anyway with absolute convergence, Σ_ρ mult·(1/2)(1/ρ + 1/(1−ρ)) — reindex the second: Σ_ρ mult(ρ)/(1−ρ) = Σ_{ρ'} mult(1−ρ')/ρ' [ρ' = 1−ρ] = Σ mult(ρ')/ρ' (mult preserved) — so the reflect-paired sum = Σ mult/ρ — the UNPAIRED sum — which is NOT absolutely convergent... circular. Never mind — the point: my sigmaP 1 (conj-paired) is well-defined and absolutely summable ✓ and that's what appears in liCoeff_eq_sum_sigma ✓. The k=1 moment identity: σ₁ = 1 + γ/2 − ½log 4π — for sigmaP 1. The contour proof for k=1: integrate K(w)ξ′/ξ(w) with K(w) = (1/2)(1/w + 1/(1−w)) = 1/(2w(1−w)): residues at zeros: mult·(1/2)(1/ρ + 1/(1−ρ)) — the REFLECT-paired sum — equal to the conj-paired sigmaP 1? As argued: both equal Σ mult·Re(1/ρ)?? reflect-pair: (1/2)(1/ρ + 1/(1−ρ)) — its real part is (1/2)(re/|ρ|² + Re(1/(1−ρ))) — Re(1/(1−ρ)) = (1−re)/|1−ρ|² — different from re/|ρ|² pointwise. The SUMS: Σ mult·Re(1/(1−ρ)) = Σ mult·re/|ρ|²?? by the reflect reindexing: Σ_ρ mult(ρ)·Re(1/(1−ρ)) = Σ_{ρ'} mult(1−ρ')·Re(1/ρ') [ρ' := 1−ρ] — need mult(1−ρ') = mult(ρ') and 1−ρ a zero iff ρ is: the map ρ ↦ 1−ρ sends zeros to zeros (composition of conj and reflect ✓) with mult preserved ✓ so yes Σ mult Re(1/(1−ρ)) = Σ mult Re(1/ρ) ✓ equal! So reflect-paired = conj-paired as REAL sums (both absolutely convergent): Σ (mult/2)(1/ρ + 1/(1−ρ)) = (1/2)Σ mult/ρ + (1/2)Σ mult/(1−ρ) — careful: Σ mult/ρ doesn't converge... but Σ (mult/2)(1/ρ + 1/(1−ρ)) = Σ mult·(1/2)·(1/(ρ(1−ρ)))... — 1/ρ + 1/(1−ρ) = 1/(ρ(1−ρ)) ✓ EXACT — and |1/(ρ(1−ρ))| ~ 1/|ρ|² — absolutely convergent ✓✓. And its relation to sigmaP 1: sigmaP 1 = Σ (mult/2)(1/ρ + 1/ρ̄) = Σ mult·Re(1/ρ) — real. The reflect-paired: Σ mult/(2ρ(1−ρ)) — is it real? 1/(ρ(1−ρ)) under conj: 1/(ρ̄(1−ρ̄)) = conj of it ✓ set conj-invariant so the sum is real ✓. Equality of the two sums: Σ mult/(2ρ(1−ρ)) vs Σ mult·re/|ρ|²: 1/(2ρ(1−ρ)) vs re/|ρ|² = (1/2)(1/ρ + 1/ρ̄). Take real parts of the first: Re[1/(2ρ(1−ρ))] = (1/2)·Re(1/ρ + 1/(1−ρ))·... hmm: 1/(2ρ(1−ρ)) = (1/2)(1/ρ + 1/(1−ρ)) ✓ algebra. Re: (1/2)(re/|ρ|² + (1−re)/|1−ρ|²). Sum over zeros: Σ (mult/2)(re/|ρ|² + (1−re)/|1−ρ|²) = (1/2)Σ mult·re/|ρ|² + (1/2)Σ mult·(1−re)/|1−ρ|². Second sum: reindex ρ ↦ 1−ρ (bijection, mult-preserving, ABSOLUTE convergence OK): Σ_ρ mult(ρ)·(1−re(ρ))/|1−ρ|² = Σ_{ρ'} mult(1−ρ')·(1−re(1−ρ'))/|ρ'|² = Σ_{ρ'} mult(ρ')·re(ρ')/|ρ'|² (mult preserved, re(1−ρ') = 1−re(ρ')) ✓. So the reflect-paired sum = (1/2)Σ + (1/2)Σ = Σ mult·re/|ρ|² = sigmaP 1 ✓✓ — REAL equalities, all absolutely convergent, fine. So k = 1: sigmaP 1 = Σ mult/(2ρ(1−ρ)) = −[residues of 1/(2w(1−w))·ξ′/ξ at 0]... wait the kernel 1/(2w(1−w)) has poles at 0 AND 1 — ξ′/ξ is analytic at both (ξ(0) = ξ(1) = 1/2 ≠ 0)! So the integrand has simple poles at 0 and 1 with residues ξ′/ξ(0)/2 and −ξ′/ξ(1)/2... 1/(2w(1−w)) at w=0: residue 1/2·ξ′/ξ(0); at w = 1: 1/(2w(1−w)) = −1/(2w(w−1)): residue −ξ′/ξ(1)/2. Hmm — so the contour identity: Σ_ρ mult/(2ρ(1−ρ)) + ξ′/ξ(0)/2 − ξ′/ξ(1)/2 = 0 (contour → 0 needs |ξ′/ξ| = o(T) on top — with the R-bound + zero-avoidance: O(log²T)/T²·T → 0 ✓ since kernel ~ 1/T² ✓✓). So sigmaP 1 = (ξ′/ξ(1) − ξ′/ξ(0))/2. And via FE g(1) = −g(0): = (−g(0) − g(0))/2 = −g(0) ✓ = −ξ′/ξ(0) ✓ consistent with the m=0 case of (I) ✓. And −ξ′/ξ(0): from (IV)+(V): g(0) = −g(1), and g(1+s) coefficients at s=0: g(1) = [1/(1+s)]_{s=0} + [1/s + ζ′/ζ(1+s)]_{s=0} + Γ′R/ΓR(1) = 1 + (−c_{-1}??) — careful: 1/s + ζ′/ζ(1+s) at s = 0: ζ′/ζ(1+s) = −1/s − Σ c_j s^j — so 1/s + ζ′/ζ(1+s) = −Σ c_j s^j = −c₀ − c₁s − ... at s = 0: −c₀ ✓ finite (the 1/s cancels ✓). So g(1) = 1 − c₀ + τ₀. σ₁ = −g(0) = g(1)·... σ₁ = −g(0) and g(0) = −g(1) ⟹ σ₁ = g(1) = 1 − c₀ + τ₀ ✓ — the k=1 identity: σ₁ = 1 − c₀ + τ₀ ⟺ c₀ = 1 + τ₀ − σ₁ ⟺ c₀ = 1 − a₁ − σ₁ (τ₀ = −a₁) — check vs a-form k=1: c₀ = (−1)(a₁+σ₁) + 1 = 1 − a₁ − σ₁ ✓✓. So EVERYTHING reduces to the same coefficient pieces + the contour moment identities (I) for k ≥ 1 (k=1 via the ρ(1−ρ) kernel, k ≥ 2 via w^{−k}). Hmm — WAIT. But (I) for k ≥ 2 via the contour also needs the Taylor-coefficient evaluation of ξ′/ξ at 0 — no no — (I) IS σ_k = −g^{(k−1)}(0)/(k−1)! — and then (V) moves to 1, and (II)(III)(IV) split. The contour content is (I) only. The contour identity (I) needs: (i) The residue theorem for w^{−k}·ξ′/ξ on rectangles (poles at 0 of order k; zeros of ξ = zeros of ξ... ξ's zeros = nontrivial zeros ✓ (Gammaℝ never zero, s(s−1)/2 zeros at 0,1 killed by ζ's pole at 1 and... wait ξ's zeros: completedRiemannZeta's zeros = nontrivial zeros of ζ ✓ Zeta23 CountByIntegral.lean:66: completedRiemannZeta s = 0 ↔ IsNontrivialZero s ✓ PROVED in Zeta23!). We have the machinery: residueTheorem_finset (simple poles) + higher-order pole at 0 via the ppart-subtraction trick (ii′-1b(ii) machinery generalizes!) — or via rectangleIntegral'_mul_logDeriv_of_poles (handles poles of f and zeros with orders and a WEIGHT g: ∮ g·f'/f = Σ ord·g(ρ) − Σ m_p·g(p) — with f = ξ, g = w^{−k}: EXACTLY!! rectangleIntegral'_mul_logDeriv_of_poles: RectangleIntegral' (g·logDeriv f) = Σ_ρ ord·g(ρ) − Σ_p m_p·g(p) — with f := completedRiemannZeta, g := fun w => w^{−k}: g must be analytic on the rectangle — w^{−k} is NOT analytic at 0 (if 0 is inside the rectangle). Choose the rectangle to EXCLUDE 0 — e.g. Re from −something... no wait — 0 must be OUTSIDE or handled as a pole. The vendored theorem needs g analytic on nhd of every rectangle point. If 0 ∉ rectangle: fine! Take rectangle Re ∈ [−2, 2], |Im| ≤ T: 0 IS inside (Re 0 ∈ [−2,2], Im 0). Hmm — 0 is a "pole" of the WEIGHT not of f. The vendored theorem doesn't allow that. BUT: subtract the principal part of w^{−k} at 0 first (the ppart trick — EXACTLY what ii′-1b(ii) built: rectInt'_ppart for (w−1)^{−i}-sums — here (w−0)^{−i} — same machinery, or generalize). Alternatively shift: use the kernel 1/(w(w−1))... for k ≥ 2 the kernel w^{−k} has pole only at 0 — handle via: split g·logDeriv f = w^{−k}·ξ′/ξ — its poles: zeros of ξ (simple-ish, residue ord·ρ^{−k}) and 0 (order k, residue = the (k−1)-th Taylor coefficient of ξ′/ξ at 0 /(k−1)! — the "ppart" of the whole integrand at 0 = Taylor principal part of ξ′/ξ times w^{−k} — a finite sum Σ_{i=1}^{k} c'_i w^{−i} — the SAME ppart machinery (ii′-1b(ii)'s rectInt'_ppart is written for the point 1 with Acoeff — generalize to 0 with the ξ′/ξ Taylor coefficients — mechanical port). So the residue computation is fully within the machinery we've built. The REAL work in (I): - The expanding-contour limit: rectangle Re ∈ [−2, 2]?? wait — for the LEFT side to be bounded via FE-reflection... ξ′/ξ on Re = −2: FE: ξ′/ξ(s) = −ξ′/ξ(1−s) — at Re = −2: 1−s has Re = 3 ✓ right half-plane — the Euler-product side: |ζ′/ζ(3+it)| ≤ Σ Λ(n)n^{−3} ✓ explicit; |ΓR′/ΓR(3+it)| ~ (1/2)log|t| ✓; 1/s, 1/(s−1) small ✓. So |ξ′/ξ(−2+it)| = O(log(2+|t|)) ✓. Right side Re = 3: same ✓. Top/bottom (Im = ±T, T zero-avoiding): |ξ′/ξ(σ±iT)| ≤ O(log²T) via the R-bound (ξ′/ξ = Σ_{|γ∓T|<1}1/(w−ρ) + O(log T) — the R-bound IS for ζ′/ζ; for ξ′/ζ add the Gamma O(log T) + trivial terms ✓; the sum over |γ−T|<1 with T in a gap of width ≥ δ: each |1/(w−ρ)| ≤ 1/δ = O(log T) (pigeonhole gives δ ~ 1/(3C₀ log T)); # terms ~ C₀ log T — so O(log²T) ✓). Then top side: |∫_{−2}^{3} w^{−k}ξ′/ξ dσ| ≤ 5·T^{−k}·C log²T → 0 for k ≥ 2 ✓; bottom same ✓. Left/right sides as T → ∞: |∫_{right}| ≤ ∫_{−T}^{T} |ξ′/ξ(3+it)|·|3+it|^{−k}dt ≤ C∫_{−T}^T log(2+|t|)·(3+|t|)^{−k}dt — CONVERGES as T → ∞ for k ≥ 2 (∫ log t·t^{−k} dt converges for k ≥ 2 ✓) — to a FIXED LIMIT (the full vertical line integral) — NOT ZERO!! Hmm — so the contour integral doesn't → 0; the vertical sides survive. RIGHT — the classical proof: the vertical line integrals EVALUATE to the explicit expressions (the Euler-product series for ζ′/ζ gives the prime terms... wait — but we're proving a identity about σ_k vs the Taylor coefficient of ξ′/ξ at 0 — where do the vertical-line integrals go? Let me redo the classical calculation. Hmm — actually NO. The point of the moment identity σ_k = −g^{(k−1)}(0)/(k−1)! is NOT proved by expanding contour to ∞ in the naive way — Lagarias's (4.1) is proved via HADAMARD. The contour approach computes σ_k = Σ mult ρ^{−k} in terms of VERTICAL LINE INTEGRALS of w^{−k}ξ′/ξ — which then evaluate to prime-side sums + gamma terms — that's the EXPLICIT-FORMULA-flavored identity (σ_k = explicit archimedean+prime expression). And (4.10) then follows by identifying those expressions with the a's and c's... Let me sanity-check with k = 2: σ₂ = Σ ρ^{−2} — known value: σ₂ = 1 − π²/8 + ... hmm I recall Σ 1/ρ² = 1 − (π/... let me not. The point: the contour gives σ_k = [vertical line integrals of explicit functions] − [residue at 0]. The vertical line integrals: ∫_{Re=3} w^{−k}(ΓR′/ΓR + ζ′/ζ + 1/w + 1/(w−1))dw — the ζ′/ζ part: ∫ (3+it)^{−k}·(−Σ Λ(n)n^{−3−it})dt — termwise: Σ Λ(n)n^{−3}∫ (3+it)^{−k}n^{−it}dt — these integrals are computable (Fourier/Laplace: ∫_{−∞}^∞ (3+it)^{−k} n^{−it}dt = 2π·(log n)^{k−1}/(k−1)!·n^{−3}·[n ≥ 1?] — the standard ∫ (a+it)^{−k}e^{−itx}dt = 2π x^{k−1}e^{−a x}/(k−1)!·1_{x>0}-ish — SO the vertical line gives Σ Λ(n)(log n)^{k−1}/n^{...}/(k−1)! — the PRIME-SIDE moment! And the gamma part: ∫ (3+it)^{−k}ΓR′/ΓR(3+it)dt — the digamma integral — evaluates to... the Hurwitz-type sums. So the contour route gives σ_k = (prime-sum expression) + (gamma expression) + (pole-at-0 residue) + (1/(w−1) piece) — and (4.10) becomes the identification of this with (−1)^k(a_k...)... — WAIT — but (4.10) in a-form has NO prime sums! c_{k−1} = (−1)^k(a_k + σ_k) + (−1)^{k−1} — the c's (Laurent of −ζ′/ζ at 1) CONTAIN the prime information implicitly (η_j = the von-Mangoldt limits (4.14)!). So if I go the contour route, I get σ_k = prime/gamma/pole expression; and I ALSO need c_{k−1} = ... the c's are DEFINED as iteratedDeriv of hLi — their evaluation as prime sums is ANOTHER identity (Lagarias's η_j formula (4.14)). The a-form (4.10) miraculously cancels all prime content. So the contour route computes both σ_k and (via (4.14)-style) c_{k−1}... NO — (4.10) is what RELATES them; I can't use it. Hmm hmm. So the contour route to the moment identity gives σ_k = [stuff involving primes], and the a-form (4.10) would need the same for c_{k−1} and the cancellation — MORE work, not less. The HADAMARD route (Lagarias's own) is the direct one for (4.10) as a coefficient identity: it directly says −ξ′/ξ(s) = Σ σ_{m+1}s^m near 0 — no primes. Let me reconsider the Hadamard route's Lean cost honestly: (H1) The canonical product Z(s) = Π_ρ [(1−s/ρ)e^{s/ρ}]^{mult(ρ)} — as a limit of finite products; convergence locally uniform (Σ mult/|ρ|² < ∞ ✓ zero_sum_inv_sq; the factor estimate |log((1−w)e^w)| ≤ C|w|² for |w| ≤ 1/2 — elementary complex analysis: log((1−w)e^w) = log(1−w) + w = −Σ_{n≥2}w^n/n, |...| ≤ |w|²·Σ|w|^{n−2}/n ≤ 2|w|² for |w| ≤ 1/2 ✓). In Lean: define Z via the series: Z := exp(Σ_ρ mult·(log(1−s/ρ) + s/ρ))?? — NO — exp of the log-series only works where the series converges — it converges EVERYWHERE (for s not a zero... conditionally?? the series Σ mult·(log(1−s/ρ)+s/ρ): |log(1−s/ρ)+s/ρ| ≤ 2|s/ρ|² for |s/ρ| ≤ 1/2 i.e. |ρ| ≥ 2|s| — the finitely many small zeros handled separately — so the series converges ABSOLUTELY for all s (each term eventually ≤ 2|s|²/|ρ|², Σ mult/|ρ|² < ∞) — but the LOG BRANCH: log(1−s/ρ) — need 1−s/ρ ∉ (−∞, 0] for the principal log — for REAL s/ρ... 1 − s/ρ is negative real when s/ρ real > 1 — possible for finitely many ρ's? s/ρ real ⟺ s·ρ̄/|ρ|² real ⟺ s·ρ̄ real — for real s: s·ρ̄ real ⟺ ρ̄ real or s = 0 — ρ not real (nontrivial zeros non-real — WAIT is that known in Lean? IsNontrivialZero has 0 < re < 1 and ζ ρ = 0 — a real ρ ∈ (0,1) with ζ = 0 — ζ has no real zeros in (0,1) (ζ(s) < 0 there — Mathlib? hmm). Ugh — branch issues. AVOID logs: define Z as the limit of partial products over expanding finite sets? The "prod over zeros" needs an enumeration (the zero set is countable — `Countable` instance + an enumeration via `Countable.exists...`? messy) OR use `HasProd`-free: define Z via Weierstrass elementary factors with a telescoping... Honestly the cleanest Lean encoding: Z(s) := ∏' over the subtype via `tsum` of logs — branch-managed: use Complex.log with the convention log(1−w) analytic in w for |w| < 1: for |s| ≤ R and |ρ| > 2R: 1 − s/ρ ∈ ball(1, 1/2) ⊆ right half-plane ✓ principal log analytic ✓; for the finitely many |ρ| ≤ 2R: finitely many EXCEPTIONAL factors (1−s/ρ)e^{s/ρ} kept as explicit factors. So Z(s) = [Π_{ρ ∈ finite bad set} (1−s/ρ)^{mult}e^{mult·s/ρ}]·exp(Σ_{good} mult·(log(1−s/ρ)+s/ρ)) — the finite set depends on R — but Z is well-defined independent... For the TAYLOR COEFFICIENTS at 0: only the behavior near 0 matters! The bad set for R = 7 (say): zeros with |ρ| ≤ 14 — possibly EMPTY (first zero at 14.13 — but that fact is NOT in Lean...). Hmm — use R such that the disk is zero-free: need SOME zero-free disk around 0 — is ξ ≠ 0 on |s| ≤ 1 known? ξ(s) = 0 ⟺ IsNontrivialZero (CountByIntegral:66 ✓ PROVED) — and IsNontrivialZero ⟹ 0 < re < 1 — so zeros have re > 0 — NOT enough for a disk around 0... |ρ| ≥ re > 0 — no positive lower bound without more. ζ ≠ 0 for re ≥ 1 and... hmm: is there a Lean-provable zero-free disk at 0? completedRiemannZeta is continuous and completedRiemannZeta 0 = 1/2 ≠ 0 ⟹ nonzero on a neighborhood ✓ TRIVIALLY by continuity! |ξ(s)| ≥ 1/4 on |s| ≤ δ for some δ — no explicit δ needed (continuity gives existence) ✓✓. So: take the disk D := ball 0 δ with ξ ≠ 0 on it (exists by continuity of ξ at 0 with ξ(0) = 1/2). On D: NO zeros — the product's factors all have |ρ| > δ — hmm but I need |ρ| ≥ 2|s| for the log-branch... |s| < δ and |ρ| > δ: s/ρ could still approach 1... no: |s/ρ| < δ/δ = 1 — hmm |s/ρ| < 1 needed for 1−s/ρ near 1... |s/ρ| ≤ |s|/δ < 1 ✓ (|ρ| > δ — from zero-free on the CLOSED ball? continuity gives a neighborhood — take closed ball inside ✓). So for s ∈ ball(0, δ/2) and all zeros ρ (|ρ| ≥ δ... need |ρ| ≥ δ on closed ball — zeros avoid the OPEN nhd U; pick δ with closedBall 0 (3δ/4) ⊆ U ✓): |s/ρ| ≤ (δ/2)/δ = 1/2 ✓ log-branch fine ✓ |log(1−s/ρ)+s/ρ| ≤ 2|s/ρ|² ≤ (δ²/2)/|ρ|²·... ✓ absolutely summable uniformly on ball(0, δ/2) ✓✓. So on the small disk: logZ(s) := Σ_ρ mult·(log(1−s/ρ) + s/ρ) — uniformly absolutely convergent on the small disk — analytic (each term analytic on the disk — the log is analytic since 1−s/ρ ∈ right half-plane... 1−s/ρ ∈ ball(1, 1/2) ✓ Complex.log analytic there ✓) and locally uniformly convergent ⟹ analytic — Mathlib: locally uniform limit of analytic functions is analytic — DOES MATHLIB HAVE THIS? `TendstoLocallyUniformlyOn` + `AnalyticOnNhd`: I recall there IS `AnalyticOnNhd` preservation... hmm — there might be only `DifferentiableOn` preservation: `TendstoLocallyUniformlyOn.differentiableOn`? or via Morera `is...`? This is a KEY infrastructure check. If missing, proving it = Morera's theorem (rectangle integrals vanish + pass to limit — WE HAVE the rectangle vanishing machinery: `HolomorphicOn.vanishesOnRectangle` (used in residueTheorem_finset's empty case!) — Morera: if ∫_rect f = 0 for all rectangles in a convex open set then f holomorphic — Mathlib: `Complex.differentiableOn_of...`? Morera in Mathlib? not sure). Hmm OK — this is exactly the kind of inventory the design note needs. Let me check Mathlib for: (a) locally-uniform-limit-of-analytic, (b) Morera, (c) exp-of-zero-free-analytic (logarithm existence), (d) Liouville/order-1 ⟹ linear, (e) digamma Laurent/polygamma at 1/2, (f) completedRiemannZeta exact definition + one_sub FE + ξ(0) = 1/2. Actually — WAIT. Before drowning in (H1)-(H5): for the COEFFICIENT IDENTITY at a single point, do I even need the global product/exp/linear story?? Let me re-examine. The claim: −ξ′/ξ(s) = Σ_{m≥0} σ_{m+1} s^m on the small disk. Equivalent: the function E(s) := ξ′/ξ(s) + Σ_{m≥0} σ_{m+1} s^m ≡ 0 on the disk. Both sides analytic on the disk (LHS: ξ zero-free there ✓; RHS: converges for |s| < 14 ⊇ small disk ✓). To prove E ≡ 0: identity principle — enough: E vanishes to infinite order at 0?? NO — that's the statement itself. Enough: E = 0 on a sequence accumulating at 0? No handle. Alternatively — E ≡ 0 on the disk ⟺ for the analytic function G(s) := log ξ(s) − log ξ(0) + Σ_{m≥1} σ_m s^m/m on the disk (log ξ exists: ξ zero-free on simply connected disk ⟹ log exists — needs the log-existence infrastructure!), G' ≡ 0... same issue. There's no shortcut: the identity genuinely encodes the global zero distribution. It's the Hadamard content. The contour route makes the primes explicit instead. EITHER WAY there's a real lift. Hmm, hold on, let me reconsider the CONTOUR route once more — maybe I misjudged. The identity to prove: c_{k−1} = (−1)^k(a_k + σ_k) + (−1)^{k−1}. Rearranged: (−1)^k σ_k = c_{k−1} − (−1)^k a_k − (−1)^{k−1} = c_{k−1} + (−1)^{k+1}a_k + (−1)^k. What if I prove the CRUX directly by a SINGLE contour computation per n, skipping the per-k identities?! The crux: S_∞(n) + 1 − λ_n = ResW1(n). Using the proved swaps: λ_n = Σ_j (−1)^{j+1}C(n,j)σ_j [PROVED], S_∞ = Σ_j (−1)^j C(n,j) a_j [PROVED], ResW1 = Σ_j C(n,j)c_{j−1} [PROVED]. The crux ⟺ Σ_j C(n,j)[(−1)^j a_j + (−1)^{j+1}σ_j − c_{j−1}] = −1 ⟺ Σ_j C(n,j)[c_{j−1} + (−1)^j σ_j... — hmm as computed: need Σ_{j=1}^n C(n,j)[c_{j−1} − (−1)^j(a_j + σ_j) − (−1)^{j−1}] = 0. The bracketed = 0 per-term IS (4.10)-a-form. A summed version without per-term: no — the sums are finite and independent; no cancellation available except per-term. Per-term it is. OK so — the design must choose β1 (Hadamard-coefficient route) vs β3 (contour moment route) vs β2 (EF-limit route). Let me now inventory the Mathlib infrastructure to cost them. Key checks: (a) locally uniform limit of analytic functions (Weierstrass convergence theorem) (b) logarithm of zero-free analytic function on a simply connected domain / disk (c) "order ≤ 1 ⟹ linear" for e^g (Hadamard's little argument): |e^{g(s)}| ≤ exp(C|s|^{1+ε}) ∀ε ⟹ g linear — via: Re g(s) ≤ C|s|^{1+ε} ⟹ g polynomial (Borel–Carathéodory + Cauchy estimates — Mathlib has borelCaratheodory ✓ and the "polynomial from growth": a entire function with |f(z)| ≤ C(1+|z|)^k is a polynomial of degree ≤ k — `Differentiable... polynomial_of_...`? there might be `Complex... ` hmm) (d) digamma machinery: Complex.digamma exists; its Laurent at 0/1? polygamma values? Let me grep. (e) completedRiemannZeta facts: def, one_sub (FE), zero iff IsNontrivialZero (Zeta23 ✓), ξ(0) = 1/2 (Mathlib: `completedRiemannZeta_zero`? or via residue), zero-free small disk at 0 (continuity + value ≠ 0 ✓ trivial). Let me grep for (a)-(e) quickly.
The EF proof is a full-line contour identity — no direct moment extraction. The route comparison needs a Mathlib infrastructure inventory. Checking the key pieces for the Hadamard/direct route.
tool: Bash
input
{
  "command": "cd \"D:/Python/Quantum/zeta-23-lean/.lake/packages/mathlib\" && grep -rn \"tendstoLocallyUniformly.*analytic\\|TendstoLocallyUniformlyOn.*[Aa]nalytic\\|tendsto_locally_uniformly.*holomorphic\" Mathlib/Analysis/ --include=\"*.lean\" -il | head -5; echo ===MORERA===; grep -rln \"Morera\\|morera\" Mathlib/Analysis/ | head -3; echo ===LOG===; grep -rn \"exists_log\\|log_of_nonvanishing\\|exists_analytic_log\" Mathlib/Analysis/Complex/ Mathlib/Analysis/SpecialFunctions/Complex/ 2>/dev/null --include=\"*.lean\" -l | head -5",
  "description": "Inventory: Weierstrass convergence, Morera, log existence"
}
raw content_json (database row)
[{"type":"thinking","thinking":"The EF proof is the full-line contour identity — not directly a moment-extraction machine. The β2 route (reuse EF) would require a limiting argument with test functions approaching the moment kernels — delicate.\n\nLet me now think carefully about the β1 route (direct) with a fresh eye, focusing on what's REALLY needed and what Mathlib provides.\n\n**Target (a-form, k ≥ 1):** c_{k−1} = (−1)^k(a_k + σ_k) + (−1)^{k−1}\n\nEquivalently, via the three-coefficient reading:\n- c_{k−1} = lcoeff (k−1) = Taylor coeff of hLi at 1 (PROVED machinery).\n- The identity needed: coefficient of s^{k−1} in ξ′/ξ(s+1) equals (−1)^{k−1} σ_k.\n\n**KEY REALIZATION — maybe I can bypass the global Hadamard product using the CRUX identity numerics we already verified, in reverse.** Hmm, no — the crux was numerically verified but needs proof.\n\nLet me think about what (4.1)/Lemma 4.1 needs minimally. The claim: near s = 0, −ξ′/ξ(s) = Σ_{m≥0} σ_{m+1} s^m. Both sides are determined by:\n- LHS: the Taylor series of the meromorphic function −ξ′/ξ at 0 (analytic at 0 since ξ(0) ≠ 0).\n- RHS: the power series with coefficients σ_{m+1} — converges for |s| < 14 (first zero height) since |σ_m| ≤ Σ mult/|ρ|^m ≤ C·14^{2−m}·Σ mult/|ρ|² — converges for |s| < 14.13 ✓.\n\nThe identity of two analytic functions on a disk: enough to prove it as... hmm, the content is exactly \"log ξ(s) = log ξ(0) − Σ_{m≥1} σ_m s^m/m on |s| < 14\" (integrate) i.e. ξ(s) = ξ(0)·exp(−Σ σ_m s^m/m) — i.e. ξ(s)·exp(Σ_{m≥2} σ_m s^m/m + σ₁ s)... — the product form without saying \"product\": ξ(s) = ξ(0)·Π_ρ [(1−s/ρ)e^{s/ρ}]^{mult} on |s| < 14 — the LOCAL version: the infinite product Π_ρ (1−s/ρ)e^{s/ρ} converges locally uniformly on |s| < 14 (since Σ |ρ|^{−2} < ∞: each factor 1 + O(1/|ρ|²) for |s| bounded: log((1−s/ρ)e^{s/ρ}) = O(s²/ρ²) ✓) to an analytic function Z(s) whose zeros in |s| < 14 are exactly the ρ's with multiplicities. Then ξ/Z is a zero-free... on the disk — not globally — the quotient on the disk is analytic zero-free, hence exp of something: ξ/Z = e^{g}, g analytic on the (simply connected) disk. Then ξ = Z·e^g on the disk. Take logDeriv: ξ′/ξ = Z′/Z + g′. And Z′/Z = Σ_ρ mult·[−1/(ρ−s)·... let me compute: Z = Π f_ρ, f_ρ = (1−s/ρ)e^{s/ρ}: logDeriv Z = Σ logDeriv f_ρ = Σ mult·[f'_ρ/f_ρ] = Σ mult·[−1/ρ/(1−s/ρ)·... f' = −(1/ρ)e^{s/ρ} + (1−s/ρ)(1/ρ)e^{s/ρ} = (e^{s/ρ}/ρ)(−1 + 1 − s/ρ) = −(s/ρ²)e^{s/ρ}. So f'/f = −(s/ρ²)/(1−s/ρ) = −s/(ρ²(1−s/ρ)) = −s/(ρ(ρ−s)). So Z′/Z(s) = −s Σ_ρ mult/(ρ(ρ−s)). At s = 0: Z′/Z(0) = 0. Derivatives at 0: (Z′/Z)^{(m)}(0) = −Σ mult·[s/(ρ(ρ−s))]^{(m)} at 0: s/(ρ(ρ−s)) = (1/ρ)·(s/(ρ−s)) = (1/ρ)·(−1 + ρ/(ρ−s)) = −1/ρ + 1/(ρ−s). So s/(ρ(ρ−s)) = 1/(ρ−s) − 1/ρ. Then (d/ds)^m [1/(ρ−s)] = m!/(ρ−s)^{m+1}; at s = 0: m!/ρ^{m+1}. So (Z′/Z)^{(m)}(0) = −Σ mult·m!/ρ^{m+1} = −m!·σ_{m+1} for m ≥ 1 (for m = 0: Z′/Z(0) = −Σ mult·(1/ρ − 1/ρ) = 0... wait: s/(ρ(ρ−s)) at s=0 = 0 ✓ (not −1/ρ+1/ρ=0 ✓ same)).\n\nHmm interesting — so Z′/Z's Taylor coefficients at 0 are exactly −σ_{m+1} (m ≥ 1) and 0 at m = 0. Meanwhile −ξ′/ξ = −Z′/Z − g′ — and its Taylor coefficients are σ_{m+1} ⟺ g′ has Taylor coefficients: m = 0: −(ξ′/ξ)(0) = σ₁ + g′(0) — i.e. g′(0) = −σ₁ − ξ′/ξ(0)... and for m ≥ 1: g′⁽ᵐ⁾(0) = 0 — i.e. g′ is CONSTANT: g′(s) = g′(0) for the coefficients to match... no wait — we need −ξ′/ξ(s) = Σ σ_{m+1}s^m = −Z′/Z(s) + σ₁ (since −Z′/Z = Σ_{m≥1} σ_{m+1}s^m and adding σ₁ gives the full series). So we need g′(s) = −σ₁ for all s in the disk: g′ constant = −σ₁.\n\nSo the WHOLE content of Lemma 4.1 (given the product Z) is: **g′ ≡ −σ₁ on the disk**, where ξ = Z·e^g. And THAT is where A = −σ₁ comes in — Lagarias's \"*-convergent rearrangement\" — the evaluation A = −σ₁ uses the SYMMETRY ρ ↔ 1−ρ̄ of the zero set (the *-convergence). So even the local version needs: (i) the product Z converges and ξ/Z = e^g with g' constant... hmm no — g need not have constant derivative a priori! The claim A = −σ₁ is a REAL content: the derivative of log(ξ/Z) at 0 equals −σ₁. And higher derivatives of g must vanish — NO wait: I computed Z′/Z's coefficients directly from the product — they're −σ_{m+1}. And ξ′/ξ = Z′/Z + g′. The claim −ξ′/ξ = Σ σ_{m+1}s^m = −Z′/Z + σ₁ ⟺ g′ ≡ −σ₁ ⟺ ALL derivatives of g′ vanish: g⁽ᵐ⁾(0) = 0 for m ≥ 2 and g′(0) = −σ₁. That's NOT automatic from the product's existence — it's the Hadamard content (g linear: g(s) = A s + B with A = −σ₁).\n\nHmm — so the local-on-a-disk version is INSUFFICIENT: the product Z on the disk |s| < 14 doesn't determine g (the quotient ξ/Z is e^g with g analytic on the disk — arbitrary!). The GLOBAL Hadamard theorem is what forces g linear — via the order-1 growth of ξ bounding the order of the canonical product's quotient. So the full strength is needed. The moment identity is genuinely \"the Taylor coefficients of log ξ at 0 are the negative power sums\" — global rigidity.\n\nWait — is that true though? Let me recheck: Z is THE product over ALL zeros — it converges on all of ℂ (canonical product, genus 1, since Σ|ρ|^{−2} < ∞ — locally uniform on compacts). Z is ENTIRE with zeros exactly the ρ's (with mult). THEN ξ/Z is entire NONVANISHING ⟹ ξ/Z = e^g with g entire (ℂ simply connected). Hadamard: order of ξ is 1, order of Z is ≤ 1 (canonical product genus) ⟹ order of e^g ≤ 1 ⟹ g is a polynomial of degree ≤ 1 (order of e^g = deg g for polynomials; e^g has integer order iff g polynomial). So g(s) = A + Bs — global. THEN ξ′/ξ = Z′/Z + B and at s = 0: ξ′/ξ(0) = Z′/Z(0) + B = 0 + B (Z′/Z(0) = 0 as computed) — so B = ξ′/ξ(0) = −σ₁?? — the LAST bit: B = −σ₁ is Lagarias's \"A = −σ₁ by *-convergent rearrangement\" — hmm in my computation Z′/Z(0) = 0 — because the product Z = Π(1−s/ρ)e^{s/ρ} has logDeriv at 0 equal to Σ mult·[−1/ρ + 1/ρ] = 0 — WAIT: f_ρ'/f_ρ at 0: f_ρ = (1−s/ρ)e^{s/ρ}, log f_ρ = log(1−s/ρ) + s/ρ, (log f_ρ)′ = −1/ρ·1/(1−s/ρ) + 1/ρ → at s = 0: −1/ρ + 1/ρ = 0 ✓ so Z′/Z(0) = Σ 0 = 0 (the e^{s/ρ} factors are exactly what makes this 0 AND makes the product converge). So B = ξ′/ξ(0). And the claim B = −σ₁ i.e. ξ′/ξ(0) = −σ₁ — this is NOT from the product — it's a SEPARATE fact (the *-convergence/symmetry argument)!\n\nHmm right — Lagarias: \"One can also deduce by a ∗-convergent rearrangement that A = −Σ′ 1/ρ = −σ₁\". His A (the e^{As+B} constant) = our B (derivative of g). So the fact ξ′/ξ(0) = −σ₁ is the functional-equation/symmetry content: ξ(s) = ξ(1−s) ⟹ ξ′/ξ(s) = −ξ′/ξ(1−s) ⟹ at s = 0: ξ′/ξ(0) = −ξ′/ξ(1). And ξ′/ξ(1)... pole of ζ at 1 ⟹ ξ′/ξ has a pole at 1?? No — ξ is entire with ξ(1) = 1/2 ≠ 0 — hmm ξ′/ξ is analytic at 1. The relation ξ′/ξ(0) = −σ₁: from the *-symmetry: the zeros come in pairs ρ ↔ 1−ρ̄ (the * map), and σ₁ = Σ′ 1/ρ with the *-grouping = Σ pairs (1/ρ + 1/(1−ρ̄))/2... \n\nActually the cleanest derivation of ξ′/ξ(0) = −σ₁: ξ(s)/ξ(0) = Π_ρ [(1−s/ρ)e^{s/ρ}]^{mult}·e^{Bs} — take s → hmm. Standard: the pairing ρ, 1−ρ̄: group the product factors: f_ρ(s)·f_{1−ρ̄}(s) and use ξ(s) = ξ(1−s) to compare... The constant B: ξ′/ξ(0) = −ξ′/ξ(1) (FE). And via the OTHER representation at 1: ξ′/ξ(1) = ... hmm.\n\nOK — stepping back. This is ALL the classical Hadamard-theory content and it's a genuine formalization lift:\n1. Canonical product Z = Π (1−s/ρ)e^{s/ρ}·mult converges locally uniformly (needs: Weierstrass M-test for products — Mathlib has `HasProd` machinery + locally uniform convergence of products? There IS `TendstoLocallyUniformly` for sums; for products via exp/log: log Z = Σ [log(1−s/ρ) + s/ρ] — a SUM of analytic functions, locally uniformly absolutely summable (|log(1−w)+w| ≤ C|w|² for |w| ≤ 1/2 ✓ + Σ|ρ|^{-2} < ∞ ✓) — so log Z exists as a locally-uniformly-convergent series of analytic functions ⟹ analytic (Weierstrass: locally uniform limit of analytic is analytic — Mathlib: `TendstoLocallyUniformlyOn` + analytic ⟹ analytic? — there's `AnalyticOnNhd` preservation under locally uniform limits — hmm — actually for HOLOMORPHIC functions Mathlib has `TendstoLocallyUniformlyOn.differentiableOn`? or via Morera? Let me check — this is a key infrastructure question.)\n2. ξ/Z = e^g entire (zero-free quotient ⟹ exp of entire — needs: on ℂ simply connected, zero-free analytic = exp of analytic — Mathlib: `AnalyticAt.exists_...`? There's `Complex.log` of nonvanishing analytic on simply connected — does Mathlib have it? `DifferentiableOn... log`? — hmm — Mathlib has `AnalyticOnNhd.exists_log`? not sure.)\n3. g linear from order-1 growth (Hadamard's estimate: Re g(s) ≤ C|s|^{1+ε} ⟹ g linear — via the Borel–Carathéodory/Liouville for the real part — Mathlib has borelCaratheodory ✓ (mentioned in D-064 R3) and the \"polynomial from growth\" — Liouville-type: if |e^g| = e^{Re g} has order ≤ 1 then... Re g ≤ C(1+|s|)^{1+ε} for all ε ⟹ g is a polynomial of degree ≤ 1 — this is a known Liouville refinement — Mathlib? probably NOT directly. Hmm — the order-of-ξ-is-1 fact: ξ entire with |ξ(s)| ≤ exp(C|s|log|s|)-ish (order 1) — needs the growth estimate of ξ — from the FE + polynomial bound in strips — doable but work.)\n4. B = −σ₁ (the *-symmetry rearrangement).\n5. Convergence/identity principle bookkeeping.\n\nThis is a BIG lift — D-064 estimated 2–4 sessions for ii′-3 via β2-first. The β1 direct-Hadamard is the \"heavy but self-contained\" option. Given the freeze protocol and that this is the LONG POLE, the design note D-066 must map this precisely.\n\n**Now — the β2 route (EF reuse) more carefully.** The EF gives: for k ∈ C²_c(ℝ), h(z) = ∫ k(u)e^{izu}du:\n  Σ_ρ mult·h(γ_ρ) = h(i/2) + h(−i/2) − Σ_n Λ(n)/√n·(k(log n) + k(−log n)) + (1/2π)∫ h(r)γBracket(r)dr.\n\nThe moment σ_k = Σ mult·(1/2+iγ)^{-k}. As noted, (1/2+iz)^{-k} is not entire. BUT: consider the test function h_t(z) = e^{itz}-type oscillatory... no. What about extracting the moments via INTEGRALS against the EF: ∫ (something) × EF? Hmm.\n\nAlternatively — (4.1) is equivalent to: ξ′/ξ(s) + Σ_m σ_{m+1}s^m... — Lagarias proves it from Hadamard. There's ANOTHER classical route to the power-sum identities: the GUI­NAND–WEIL \"explicit formula at the boundary\": test functions h(z) = e^{izx} (not compactly supported k — but the EF extends to k(x) = e^{...}... The exponential test function corresponds to k = delta — the Cramér formula Σ_ρ mult·e^{iγx}... for x ≠ 0 these converge conditionally to explicit prime/gamma expressions — the \"Cramér–Guinand\" formula. From the Cramér function V(x) = Σ_{Im ρ > 0} e^{ρ x}... There IS a classical exact formula: Σ_ρ (1/ρ + 1/(1−ρ))... = 2 + γ/2 − ... — the σ₁ value — provable by contour integration of s^{-1}·ξ′/ξ or (s(s−1))^{-1}ξ′/ξ... hmm.\n\nActually — here's the cleanest classical route to the MOMENT identities σ_k = explicit: integrate w^{−k}·ξ′/ξ(w) around a contour! For k ≥ 2 (absolute convergence): \n(1/2πi)∮ w^{−k} ξ′/ξ(w) dw = Σ_ρ mult·ρ^{−k} + [contribution from w = 0: w^{−k}ξ′/ξ has a pole of order k at 0 — residue = (ξ′/ξ Taylor coefficient)] — take the contour = large rectangle/circle avoiding zeros, show it → 0 as it expands (needs |ξ′/ξ| controlled — on the RIGHT the line Re = 2: ξ′/ξ = logDeriv of the Euler product — explicit series Σ Λ(n)... — the classical proof: on Re w = 2, ξ′/ξ(w) = ΓR'/ΓR + ζ′/ζ + 1/w + 1/(w−1) — all explicit; on the other three sides use the FE to reflect to the right + the order-1 estimate for ξ′/ξ = Σ_{|γ−t|<2} 1/(w−ρ) + O(log t) — the D-036/D-056 R-bound machinery!). The contour → 0 as T → ∞ (w^{−k} decays), leaving:\n  σ_k = −[Residue of w^{−k}ξ′/ξ at 0] = −(Taylor coeff of ξ′/ξ at 0 of order k−1) = −(1/(k−1)!)·(ξ′/ξ)^{(k−1)}(0).\nAnd (ξ′/ξ)^{(k−1)}(0) is EXPLICIT from the decomposition (4.2): ξ′/ξ = 1/s + 1/(s−1) + ΓR′/ΓR + ζ′/ζ:\n  (ξ′/ξ)^{(k−1)}(0) = [1/s]^{(k−1)}(0)?? — 1/s is singular at 0!! Hmm — ξ′/ξ at 0: 1/s term — wait ξ has a ZERO at... no! ξ(0) = 1/2 — but ξ(s) = (1/2)s(s−1)ΓR(s)ζ(s): the s factor gives a zero, ΓR(0) has a pole (Γ(0)), ζ(0) = −1/2 finite: so s·ΓR(s) = s·π^{−s/2}Γ(s/2) → s·(2/s + O(1)) = 2 at 0 — so ξ(0) = (1/2)·(−1)·2·(−1/2)·... = 1/2 ✓ finite nonzero — so 1/s + 1/(s−1) + Γ′R/ΓR(s) + ζ′/ζ(s) — each of 1/s and Γ′R/ΓR(s) ~ 2/s... — the SUM is analytic at 0 (ξ′/ξ is, since ξ(0) ≠ 0). So when integrating w^{−k}ξ′/ξ, the residue at 0 is the (k−1)-th Taylor coefficient of the ANALYTIC function ξ′/ξ — fine — but for the EXPLICIT evaluation I use the decomposition, where individual terms are singular — the (k−1)-th Taylor coefficient of ξ′/ξ at 0 = sum of coefficients of the pieces (the singular parts' Laurent coefficients at the right orders):\n  coeff of s^{k−1} in ξ′/ξ(s) at 0 = [from 1/s: coefficient of s^{k−1} in 1/s's Laurent — that's s^{−1}: contributes only to k = 0; for k ≥ 2: 1/s contributes 0 to s^{k−1} coefficient?? NO — the Taylor coefficient of the analytic function is well-defined; the piecewise extraction: 1/s has Laurent series 1/s — its s^{k−1} coefficient (k ≥ 1) is 0 for k ≥ 1 (only s^{−1}) ✓. 1/(s−1) = −Σ s^j: coefficient of s^{k−1}: −1. Γ′R/ΓR(s) at 0: Γ′R/ΓR(s) = −(log π)/2 + (1/2)ψ(s/2) — ψ(s/2) = −2/s − γ + ... — the Laurent: coefficient of s^{k−1}: (1/2)ψ(s/2)'s — from ψ(s) = −1/s − γ + Σ... the full Laurent of ψ at 0: ψ(s) = −1/s − γ + Σ_{j≥1} (−1)^{j+1}ζ(j+1) s^j — CLASSICAL: ψ(1+s) = −γ + Σ_{j≥2} (−1)^j ζ(j) s^{j−1}; ψ(s) = ψ(1+s) − 1/s (recurrence!) — so ψ(s) = −1/s − γ + Σ_{j≥2} (−1)^j ζ(j) s^{j−1}. At s/2: ψ(s/2) = −2/s − γ + Σ_{j≥2} (−1)^j ζ(j) (s/2)^{j−1}. So Γ′R/ΓR(s) = −(log π)/2 + (1/2)[−2/s − γ + Σ_{j≥2} (−1)^j ζ(j) 2^{−(j−1)} s^{j−1}]. Coefficient of s^{k−1} (k ≥ 2): (1/2)(−1)^k ζ(k) 2^{−(k−1)} = (−1)^k 2^{−k} ζ(k).\n  ζ′/ζ(s) at 0: analytic (ζ(0) = −1/2 ≠ 0, ζ analytic at 0) — its Taylor coefficients at 0 — the values (ζ′/ζ)^{(m)}(0) — NOT elementary!! ζ′/ζ(0) = log 2π (classical — from the FE). Higher derivatives of ζ′/ζ at 0 involve ζ(−1), ζ′(−1)... — hmm — ζ′/ζ^{(m)}(0) relates to ζ(0), ζ′(0), ζ″(0)... — ζ′(0) = −(1/2)log(2π) classical; higher ζ^{(m)}(0) via the FE relate to ζ^{(j)}(1) — the Laurent coefficients of ζ at 1 = Stieltjes constants γ_j! So ζ′/ζ's Taylor coefficients at 0 are combinations of Stieltjes constants — and the c_j (Laurent of −ζ′/ζ at 1) are ALSO Stieltjes combinations. This is getting circular-ish but it should be consistent — the identity (4.10) is exactly the consistency relation.\n\nHmm wait — but this contour approach computes σ_k = −(1/(k−1)!)(ξ′/ξ)^{(k−1)}(0) as a CLOSED FORM involving the pieces — and the (4.10) identity is then the coefficient comparison — but I still need the RELATION between (ξ′/ξ)^{(k−1)}(0) and the c's/a's — which is exactly (I)+(II)+(III) again. The contour approach doesn't avoid computing the Taylor coefficients of ξ′/ξ at 0 in terms of the archimedean + ζ pieces — it DERIVES the σ-side. Hmm — actually YES this is exactly the right structure! Let me re-lay-out:\n\n**The contour route to (I)** (the moment identity as closed form): for k ≥ 2:\n  σ_k + (1/(k−1)!)·(ξ′/ξ)^{(k−1)}(0)·(−1)... — sign bookkeeping — = 0, i.e. σ_k = −(ξ′/ξ)^{(k−1)}(0)/(k−1)! — WAIT but that makes σ_k equal to a Taylor coefficient of ξ′/ξ at 0 — and (4.1) at s=0 says −ξ′/ξ(s) = Σ σ_{m+1} s^m i.e. σ_{m+1} = −(ξ′/ξ)^{(m)}(0)/m! — SAME THING ✓ consistent (m = k−1). So the contour identity IS (4.1) at 0. And (4.1) at 0 follows from the contour ∮ w^{−k}ξ′/ξ → 0.\n\nSo the architecture could be:\n(I') For k ≥ 2: σ_k = −(ξ′/ξ)^{(k−1)}(0)/(k−1)! — via contour integration of w^{−k}ξ′/ξ (the rectangle machinery we HAVE — residueTheorem_finset/rectangleIntegral'_mul_logDeriv family!) with the expanding-contour limit → 0.\n(I'') k = 1: σ₁ = −ξ′/ξ(0) — needs a separate argument (the series Σ 1/ρ only converges paired; the contour with w^{−1} gives Σ′ 1/ρ conditionally...). Hmm — k = 1 is the Davenport value σ₁ = 1 + γ/2 − ½log 4π — needed for the crux! (k = 1 in (4.10)-a-form: c₀ = −(a₁ + σ₁) + 1 — check: c₀ = −γ; a₁ = (log4π+γ)/2; σ₁ = 1+γ/2−½log4π: −(a₁+σ₁)+1 = −(log4π+γ)/2 − 1 − γ/2 + ½log4π + 1 = −γ ✓.) So k = 1 is essential (it's inside every ResW1 = Σ_{j=1}^n C(n,j)c_{j−1} via c₀).\n(II) Taylor coefficients of −ζ′/ζ at 1: c's ✓ free (LiResidue).\n(III) Taylor coefficients of ΓR′/ΓR at 1: (−1)^k a_k — the digamma piece.\n(IV) The logDeriv decomposition ✓ algebra.\n(V) The bridge: (ξ′/ξ)^{(k−1)}(0) via FE: ξ′/ξ(s) = −ξ′/ξ(1−s) — so (ξ′/ξ)^{(k−1)}(0) = −(−1)^{k−1}(ξ′/ξ)^{(k−1)}(1)·... wait: d/ds [−ξ′/ξ(1−s)] = +(ξ′/ξ)'(1−s)... let me compute: g(s) := ξ′/ξ(s); FE: g(s) = −g(1−s). g^{(m)}(s) = −(−1)^m g^{(m)}(1−s) = (−1)^{m+1} g^{(m)}(1−s). At s = 0: g^{(m)}(0) = (−1)^{m+1} g^{(m)}(1). So (ξ′/ξ)^{(k−1)}(0) = (−1)^k (ξ′/ξ)^{(k−1)}(1)·... (−1)^{(k−1)+1} = (−1)^k ✓. So σ_k = −(−1)^k g^{(k−1)}(1)/(k−1)! = (−1)^{k+1} g^{(k−1)}(1)/(k−1)!.\n  And g(1+s) = ξ′/ξ(1+s) = 1/(s+1) + 1/s + Γ′R/ΓR(1+s) + ζ′/ζ(1+s) — its Taylor coefficients at s = 0: coefficient of s^{k−1} in g(1+s): from 1/(1+s) = Σ(−1)^j s^j: (−1)^{k−1}; from 1/s + ζ′/ζ(1+s) = 1/s − (1/s + Σ c_j s^j) = −Σ c_j s^j: coefficient −c_{k−1}; from Γ′R/ΓR(1+s): τ_{k−1}. So g^{(k−1)}(1)/(k−1)! = (−1)^{k−1} − c_{k−1} + τ_{k−1}. Then:\n  σ_k = (−1)^{k+1}[(−1)^{k−1} − c_{k−1} + τ_{k−1}] = (−1)^{2k}·... let me just: (−1)^{k+1}(−1)^{k−1} = (−1)^{2k} = 1... wait (−1)^{k+1+k−1} = (−1)^{2k} = 1. So σ_k = 1·(1) + (−1)^{k+1}(−c_{k−1}) + (−1)^{k+1}τ_{k−1} = 1 + (−1)^k c_{k−1} + (−1)^{k+1}τ_{k−1}.\n  Solve for c_{k−1}: (−1)^k c_{k−1} = σ_k − 1 − (−1)^{k+1}τ_{k−1} = σ_k − 1 + (−1)^k τ_{k−1}; c_{k−1} = (−1)^k σ_k − (−1)^k + τ_{k−1}.\n  With τ_{k−1} = (−1)^k a_k: c_{k−1} = (−1)^k σ_k + (−1)^k a_k − (−1)^k = (−1)^k(a_k + σ_k) − (−1)^k = (−1)^k(a_k + σ_k) + (−1)^{k−1} ✓✓✓ THE TARGET.\n\nSo the identity chain is EXACTLY: (I) the moment/contour identity σ_k = −g^{(k−1)}(0)/(k−1)! [k ≥ 2] + the k=1 case; (V) the FE reflection to s = 1; (IV)+(II)+(III) the coefficient split at 1.\n\nNow — the pieces by difficulty:\n- (II): free (LiResidue).\n- (IV): logDeriv product algebra ✓ easy-ish (needs completedRiemannZeta = product form in Mathlib: `completedRiemannZeta s = (s*(s−1)/2)·Gammaℝ(s)·ζ(s)`? — Mathlib def: completedRiemannZeta s = (s * (s - 1)) / 2 * (Complex.Gammaℝ s) * riemannZeta s? Let me check the exact def — `completedRiemannZeta s = (s * (s - 1)) / 2 * (Real.Gamma... no — Complex.Gammaℝ s * riemannZeta s`? I'll check. The XiLogDeriv.lean file in Zeta23 HAS `logDeriv_completedZeta : logDeriv completedRiemannZeta s = logDeriv Gammaℝ s + logDeriv riemannZeta s + ...`? From Main.lean line 75-80: `logDeriv_completedZeta _ h1 hζ hpos : logDeriv completedRiemannZeta s = logDeriv Complex.Gammaℝ s + logDeriv riemannZeta s` — WAIT that's missing the s(s−1)/2 factor? — because logDeriv of s(s−1)/2 = 1/s + 1/(s−1) — the displayed split in Main.lean has only two terms — so their logDeriv_completedZeta must handle the polynomial factor separately or completedRiemannZeta's def there differs. Let me look at XiLogDeriv.lean's statement.\n- (III): digamma coefficients — MODERATE (needs ψ's Laurent at 0/1 + the odd-zeta identification; or the polygamma values at 1/2).\n- (V): FE for ξ — Mathlib HAS `completedRiemannZeta_one_sub : completedRiemannZeta (1−s) = completedRiemannZeta s` ✓ (the functional equation IS in Mathlib!). So (V) is a deriv-comp computation ✓ EASY.\n- (I): the contour moment identity — THE HEAVY PIECE. Needs: (a) the rectangle contour argument for w^{−k}ξ′/ξ with zeros+pole residues; (b) the expanding limit: contour integral → 0 as T → ∞ — needs |ξ′/ξ| bounds on the contour sides — the RIGHT side (Re = 2 or so): explicit via Euler product (|ζ′/ζ| ≤ Σ Λ(n)n^{−2} convergent ✓ + Gamma part O(log)); LEFT side: via FE reflection to the right ✓; TOP/BOTTOM (Im = ±T): the hard part — need |ξ′/ξ(σ+iT)| = o(T^k) — the classical bound: ξ′/ξ = Σ_{|γ−T|<1} 1/(w−ρ) + O(log T) (the D-036 R-bound = D-056 reference-point bound!) and the zero-avoiding choice of T (gap ≥ δ) makes the sum ≤ (#zeros)·(1/δ) = O(log T)·O(log T) — wait # zeros in unit interval ~ C₀ log T ✓ so the sum is O(log²T) with the δ-clearance — killing w^{−k} for k ≥ 2 requires... the top side contributes ~ T^{−k}·O(log²T)·T (length) = O(log²T/T^{k−1}) → 0 for k ≥ 2 ✓✓. This is EXACTLY the D-036/D-056 machinery (R-bound A = 10.5, B₀ = 48 + zero-avoiding T via pigeonhole C₀) — which is ii′-4/ii′-5's Lean content ANYWAY (the R-bound route R3!). Hmm — so (I) needs the R-bound in Lean first — that's ii′-5's content. Interesting — the contour moment identity shares machinery with ii′-4/5.\n  \n  Also (I) for k = 1: the contour with w^{−1} doesn't decay enough (top side ~ log²T/T·T = log²T — diverges!). The classical fix: k=1 via the SYMMETRY: σ₁ = Σ′ 1/ρ = (1/2)Σ(1/ρ + 1/(1−ρ̄))... or use w^{−1}ξ′/ξ with the FE-symmetrized kernel 1/(2)(1/w + 1/(1−w))... The kernel K(w) = (1/2)(1/w + 1/(1−w))·... hmm: 1/w + 1/(1−w) = 1/(w(1−w)) — decays like 1/w² ✓! So integrate (1/2)ξ′/ξ(w)/(w(1−w))·... wait: the paired sum: Σ_ρ mult·(1/2)(1/ρ + 1/(1−ρ̄))... hmm the zero set's symmetry: 1−ρ̄ is a zero with same mult (Zeta23: reflect_zero/mult_reflect ✓ in the seam). And my sigmaP 1 is the CONJUGATE-paired sum: (mult/2)(1/ρ + 1/ρ̄). Is Σ (mult/2)(1/ρ + 1/ρ̄) = Σ (mult/2)(1/ρ + 1/(1−ρ))? Different pairings — but BOTH converge absolutely (paired forms ~ re/|ρ|²) and... the conj-pairing vs the reflect-pairing — as absolutely convergent sums over a multiset closed under BOTH maps (conj and reflect), the rearrangements: Σ_ρ mult·(1/2)(1/ρ + 1/ρ̄) — is this equal to Σ mult·(1/2)(1/ρ + 1/(1−ρ))? Hmm — by absolute convergence both equal Σ mult·Re(1/ρ)... no wait: (1/2)(1/ρ + 1/ρ̄) = Re(1/ρ) = re/|ρ|². And (1/2)(1/ρ + 1/(1−ρ)): NOT the same pointwise. But summed: Σ_ρ mult·1/(1−ρ) = Σ_{ρ'} mult·1/ρ' via ρ' = 1−ρ (reflection is a mult-preserving bijection of the zero set — wait is 1−ρ a zero? YES: FE symmetry — Zeta23's reflect is 1−ρ̄: reflect_zero says IsNontrivialZero (1 − ρ̄)... hmm — actually the reflection that preserves the zero SET: ρ ↦ 1−ρ̄ (the * map) AND ρ ↦ ρ̄ (conjugation) — composing: ρ ↦ 1−ρ is also a symmetry (since both conj and * preserve the set with mult: conj: Mathlib riemannZeta (conj s) = conj (riemannZeta s) ⟹ zero set conj-invariant; mult preservation needs work but standard). So Σ mult/(1−ρ) — is 1−ρ a zero with mult? 1−ρ = reflect(conj ρ)... anyway with absolute convergence, Σ_ρ mult·(1/2)(1/ρ + 1/(1−ρ)) — reindex the second: Σ_ρ mult(ρ)/(1−ρ) = Σ_{ρ'} mult(1−ρ')/ρ' [ρ' = 1−ρ] = Σ mult(ρ')/ρ' (mult preserved) — so the reflect-paired sum = Σ mult/ρ — the UNPAIRED sum — which is NOT absolutely convergent... circular. Never mind — the point: my sigmaP 1 (conj-paired) is well-defined and absolutely summable ✓ and that's what appears in liCoeff_eq_sum_sigma ✓. The k=1 moment identity: σ₁ = 1 + γ/2 − ½log 4π — for sigmaP 1. The contour proof for k=1: integrate K(w)ξ′/ξ(w) with K(w) = (1/2)(1/w + 1/(1−w)) = 1/(2w(1−w)): residues at zeros: mult·(1/2)(1/ρ + 1/(1−ρ)) — the REFLECT-paired sum — equal to the conj-paired sigmaP 1? As argued: both equal Σ mult·Re(1/ρ)?? reflect-pair: (1/2)(1/ρ + 1/(1−ρ)) — its real part is (1/2)(re/|ρ|² + Re(1/(1−ρ))) — Re(1/(1−ρ)) = (1−re)/|1−ρ|² — different from re/|ρ|² pointwise. The SUMS: Σ mult·Re(1/(1−ρ)) = Σ mult·re/|ρ|²?? by the reflect reindexing: Σ_ρ mult(ρ)·Re(1/(1−ρ)) = Σ_{ρ'} mult(1−ρ')·Re(1/ρ') [ρ' := 1−ρ] — need mult(1−ρ') = mult(ρ') and 1−ρ a zero iff ρ is: the map ρ ↦ 1−ρ sends zeros to zeros (composition of conj and reflect ✓) with mult preserved ✓ so yes Σ mult Re(1/(1−ρ)) = Σ mult Re(1/ρ) ✓ equal! So reflect-paired = conj-paired as REAL sums (both absolutely convergent): Σ (mult/2)(1/ρ + 1/(1−ρ)) = (1/2)Σ mult/ρ + (1/2)Σ mult/(1−ρ) — careful: Σ mult/ρ doesn't converge... but Σ (mult/2)(1/ρ + 1/(1−ρ)) = Σ mult·(1/2)·(1/(ρ(1−ρ)))... — 1/ρ + 1/(1−ρ) = 1/(ρ(1−ρ)) ✓ EXACT — and |1/(ρ(1−ρ))| ~ 1/|ρ|² — absolutely convergent ✓✓. And its relation to sigmaP 1: sigmaP 1 = Σ (mult/2)(1/ρ + 1/ρ̄) = Σ mult·Re(1/ρ) — real. The reflect-paired: Σ mult/(2ρ(1−ρ)) — is it real? 1/(ρ(1−ρ)) under conj: 1/(ρ̄(1−ρ̄)) = conj of it ✓ set conj-invariant so the sum is real ✓. Equality of the two sums: Σ mult/(2ρ(1−ρ)) vs Σ mult·re/|ρ|²: 1/(2ρ(1−ρ)) vs re/|ρ|² = (1/2)(1/ρ + 1/ρ̄). Take real parts of the first: Re[1/(2ρ(1−ρ))] = (1/2)·Re(1/ρ + 1/(1−ρ))·... hmm: 1/(2ρ(1−ρ)) = (1/2)(1/ρ + 1/(1−ρ)) ✓ algebra. Re: (1/2)(re/|ρ|² + (1−re)/|1−ρ|²). Sum over zeros: Σ (mult/2)(re/|ρ|² + (1−re)/|1−ρ|²) = (1/2)Σ mult·re/|ρ|² + (1/2)Σ mult·(1−re)/|1−ρ|². Second sum: reindex ρ ↦ 1−ρ (bijection, mult-preserving, ABSOLUTE convergence OK): Σ_ρ mult(ρ)·(1−re(ρ))/|1−ρ|² = Σ_{ρ'} mult(1−ρ')·(1−re(1−ρ'))/|ρ'|² = Σ_{ρ'} mult(ρ')·re(ρ')/|ρ'|² (mult preserved, re(1−ρ') = 1−re(ρ')) ✓. So the reflect-paired sum = (1/2)Σ + (1/2)Σ = Σ mult·re/|ρ|² = sigmaP 1 ✓✓ — REAL equalities, all absolutely convergent, fine.\n\n  So k = 1: sigmaP 1 = Σ mult/(2ρ(1−ρ)) = −[residues of 1/(2w(1−w))·ξ′/ξ at 0]... wait the kernel 1/(2w(1−w)) has poles at 0 AND 1 — ξ′/ξ is analytic at both (ξ(0) = ξ(1) = 1/2 ≠ 0)! So the integrand has simple poles at 0 and 1 with residues ξ′/ξ(0)/2 and −ξ′/ξ(1)/2... 1/(2w(1−w)) at w=0: residue 1/2·ξ′/ξ(0); at w = 1: 1/(2w(1−w)) = −1/(2w(w−1)): residue −ξ′/ξ(1)/2. Hmm — so the contour identity: Σ_ρ mult/(2ρ(1−ρ)) + ξ′/ξ(0)/2 − ξ′/ξ(1)/2 = 0 (contour → 0 needs |ξ′/ξ| = o(T) on top — with the R-bound + zero-avoidance: O(log²T)/T²·T → 0 ✓ since kernel ~ 1/T² ✓✓). So sigmaP 1 = (ξ′/ξ(1) − ξ′/ξ(0))/2. And via FE g(1) = −g(0): = (−g(0) − g(0))/2 = −g(0) ✓ = −ξ′/ξ(0) ✓ consistent with the m=0 case of (I) ✓. And −ξ′/ξ(0): from (IV)+(V): g(0) = −g(1), and g(1+s) coefficients at s=0: g(1) = [1/(1+s)]_{s=0} + [1/s + ζ′/ζ(1+s)]_{s=0} + Γ′R/ΓR(1) = 1 + (−c_{-1}??) — careful: 1/s + ζ′/ζ(1+s) at s = 0: ζ′/ζ(1+s) = −1/s − Σ c_j s^j — so 1/s + ζ′/ζ(1+s) = −Σ c_j s^j = −c₀ − c₁s − ... at s = 0: −c₀ ✓ finite (the 1/s cancels ✓). So g(1) = 1 − c₀ + τ₀. σ₁ = −g(0) = g(1)·... σ₁ = −g(0) and g(0) = −g(1) ⟹ σ₁ = g(1) = 1 − c₀ + τ₀ ✓ — the k=1 identity: σ₁ = 1 − c₀ + τ₀ ⟺ c₀ = 1 + τ₀ − σ₁ ⟺ c₀ = 1 − a₁ − σ₁ (τ₀ = −a₁) — check vs a-form k=1: c₀ = (−1)(a₁+σ₁) + 1 = 1 − a₁ − σ₁ ✓✓.\n\nSo EVERYTHING reduces to the same coefficient pieces + the contour moment identities (I) for k ≥ 1 (k=1 via the ρ(1−ρ) kernel, k ≥ 2 via w^{−k}).\n\nHmm — WAIT. But (I) for k ≥ 2 via the contour also needs the Taylor-coefficient evaluation of ξ′/ξ at 0 — no no — (I) IS σ_k = −g^{(k−1)}(0)/(k−1)! — and then (V) moves to 1, and (II)(III)(IV) split. The contour content is (I) only.\n\nThe contour identity (I) needs:\n(i) The residue theorem for w^{−k}·ξ′/ξ on rectangles (poles at 0 of order k; zeros of ξ = zeros of ξ... ξ's zeros = nontrivial zeros ✓ (Gammaℝ never zero, s(s−1)/2 zeros at 0,1 killed by ζ's pole at 1 and... wait ξ's zeros: completedRiemannZeta's zeros = nontrivial zeros of ζ ✓ Zeta23 CountByIntegral.lean:66: completedRiemannZeta s = 0 ↔ IsNontrivialZero s ✓ PROVED in Zeta23!). We have the machinery: residueTheorem_finset (simple poles) + higher-order pole at 0 via the ppart-subtraction trick (ii′-1b(ii) machinery generalizes!) — or via rectangleIntegral'_mul_logDeriv_of_poles (handles poles of f and zeros with orders and a WEIGHT g: ∮ g·f'/f = Σ ord·g(ρ) − Σ m_p·g(p) — with f = ξ, g = w^{−k}: EXACTLY!! rectangleIntegral'_mul_logDeriv_of_poles: RectangleIntegral' (g·logDeriv f) = Σ_ρ ord·g(ρ) − Σ_p m_p·g(p) — with f := completedRiemannZeta, g := fun w => w^{−k}: g must be analytic on the rectangle — w^{−k} is NOT analytic at 0 (if 0 is inside the rectangle). Choose the rectangle to EXCLUDE 0 — e.g. Re from −something... no wait — 0 must be OUTSIDE or handled as a pole. The vendored theorem needs g analytic on nhd of every rectangle point. If 0 ∉ rectangle: fine! Take rectangle Re ∈ [−2, 2], |Im| ≤ T: 0 IS inside (Re 0 ∈ [−2,2], Im 0). Hmm — 0 is a \"pole\" of the WEIGHT not of f. The vendored theorem doesn't allow that. BUT: subtract the principal part of w^{−k} at 0 first (the ppart trick — EXACTLY what ii′-1b(ii) built: rectInt'_ppart for (w−1)^{−i}-sums — here (w−0)^{−i} — same machinery, or generalize). Alternatively shift: use the kernel 1/(w(w−1))... for k ≥ 2 the kernel w^{−k} has pole only at 0 — handle via: split g·logDeriv f = w^{−k}·ξ′/ξ — its poles: zeros of ξ (simple-ish, residue ord·ρ^{−k}) and 0 (order k, residue = the (k−1)-th Taylor coefficient of ξ′/ξ at 0 /(k−1)! — the \"ppart\" of the whole integrand at 0 = Taylor principal part of ξ′/ξ times w^{−k} — a finite sum Σ_{i=1}^{k} c'_i w^{−i} — the SAME ppart machinery (ii′-1b(ii)'s rectInt'_ppart is written for the point 1 with Acoeff — generalize to 0 with the ξ′/ξ Taylor coefficients — mechanical port).\n\nSo the residue computation is fully within the machinery we've built. The REAL work in (I):\n- The expanding-contour limit: rectangle Re ∈ [−2, 2]?? wait — for the LEFT side to be bounded via FE-reflection... ξ′/ξ on Re = −2: FE: ξ′/ξ(s) = −ξ′/ξ(1−s) — at Re = −2: 1−s has Re = 3 ✓ right half-plane — the Euler-product side: |ζ′/ζ(3+it)| ≤ Σ Λ(n)n^{−3} ✓ explicit; |ΓR′/ΓR(3+it)| ~ (1/2)log|t| ✓; 1/s, 1/(s−1) small ✓. So |ξ′/ξ(−2+it)| = O(log(2+|t|)) ✓. Right side Re = 3: same ✓. Top/bottom (Im = ±T, T zero-avoiding): |ξ′/ξ(σ±iT)| ≤ O(log²T) via the R-bound (ξ′/ξ = Σ_{|γ∓T|<1}1/(w−ρ) + O(log T) — the R-bound IS for ζ′/ζ; for ξ′/ζ add the Gamma O(log T) + trivial terms ✓; the sum over |γ−T|<1 with T in a gap of width ≥ δ: each |1/(w−ρ)| ≤ 1/δ = O(log T) (pigeonhole gives δ ~ 1/(3C₀ log T)); # terms ~ C₀ log T — so O(log²T) ✓). Then top side: |∫_{−2}^{3} w^{−k}ξ′/ξ dσ| ≤ 5·T^{−k}·C log²T → 0 for k ≥ 2 ✓; bottom same ✓. Left/right sides as T → ∞: |∫_{right}| ≤ ∫_{−T}^{T} |ξ′/ξ(3+it)|·|3+it|^{−k}dt ≤ C∫_{−T}^T log(2+|t|)·(3+|t|)^{−k}dt — CONVERGES as T → ∞ for k ≥ 2 (∫ log t·t^{−k} dt converges for k ≥ 2 ✓) — to a FIXED LIMIT (the full vertical line integral) — NOT ZERO!! Hmm — so the contour integral doesn't → 0; the vertical sides survive. RIGHT — the classical proof: the vertical line integrals EVALUATE to the explicit expressions (the Euler-product series for ζ′/ζ gives the prime terms... wait — but we're proving a identity about σ_k vs the Taylor coefficient of ξ′/ξ at 0 — where do the vertical-line integrals go? Let me redo the classical calculation.\n\nHmm — actually NO. The point of the moment identity σ_k = −g^{(k−1)}(0)/(k−1)! is NOT proved by expanding contour to ∞ in the naive way — Lagarias's (4.1) is proved via HADAMARD. The contour approach computes σ_k = Σ mult ρ^{−k} in terms of VERTICAL LINE INTEGRALS of w^{−k}ξ′/ξ — which then evaluate to prime-side sums + gamma terms — that's the EXPLICIT-FORMULA-flavored identity (σ_k = explicit archimedean+prime expression). And (4.10) then follows by identifying those expressions with the a's and c's... Let me sanity-check with k = 2: σ₂ = Σ ρ^{−2} — known value: σ₂ = 1 − π²/8 + ... hmm I recall Σ 1/ρ² = 1 − (π/... let me not. The point: the contour gives σ_k = [vertical line integrals of explicit functions] − [residue at 0]. The vertical line integrals: ∫_{Re=3} w^{−k}(ΓR′/ΓR + ζ′/ζ + 1/w + 1/(w−1))dw — the ζ′/ζ part: ∫ (3+it)^{−k}·(−Σ Λ(n)n^{−3−it})dt — termwise: Σ Λ(n)n^{−3}∫ (3+it)^{−k}n^{−it}dt — these integrals are computable (Fourier/Laplace: ∫_{−∞}^∞ (3+it)^{−k} n^{−it}dt = 2π·(log n)^{k−1}/(k−1)!·n^{−3}·[n ≥ 1?] — the standard ∫ (a+it)^{−k}e^{−itx}dt = 2π x^{k−1}e^{−a x}/(k−1)!·1_{x>0}-ish — SO the vertical line gives Σ Λ(n)(log n)^{k−1}/n^{...}/(k−1)! — the PRIME-SIDE moment! And the gamma part: ∫ (3+it)^{−k}ΓR′/ΓR(3+it)dt — the digamma integral — evaluates to... the Hurwitz-type sums.\n\nSo the contour route gives σ_k = (prime-sum expression) + (gamma expression) + (pole-at-0 residue) + (1/(w−1) piece) — and (4.10) becomes the identification of this with (−1)^k(a_k...)... — WAIT — but (4.10) in a-form has NO prime sums! c_{k−1} = (−1)^k(a_k + σ_k) + (−1)^{k−1} — the c's (Laurent of −ζ′/ζ at 1) CONTAIN the prime information implicitly (η_j = the von-Mangoldt limits (4.14)!). So if I go the contour route, I get σ_k = prime/gamma/pole expression; and I ALSO need c_{k−1} = ... the c's are DEFINED as iteratedDeriv of hLi — their evaluation as prime sums is ANOTHER identity (Lagarias's η_j formula (4.14)). The a-form (4.10) miraculously cancels all prime content. So the contour route computes both σ_k and (via (4.14)-style) c_{k−1}... NO — (4.10) is what RELATES them; I can't use it.\n\nHmm hmm. So the contour route to the moment identity gives σ_k = [stuff involving primes], and the a-form (4.10) would need the same for c_{k−1} and the cancellation — MORE work, not less. The HADAMARD route (Lagarias's own) is the direct one for (4.10) as a coefficient identity: it directly says −ξ′/ξ(s) = Σ σ_{m+1}s^m near 0 — no primes.\n\nLet me reconsider the Hadamard route's Lean cost honestly:\n(H1) The canonical product Z(s) = Π_ρ [(1−s/ρ)e^{s/ρ}]^{mult(ρ)} — as a limit of finite products; convergence locally uniform (Σ mult/|ρ|² < ∞ ✓ zero_sum_inv_sq; the factor estimate |log((1−w)e^w)| ≤ C|w|² for |w| ≤ 1/2 — elementary complex analysis: log((1−w)e^w) = log(1−w) + w = −Σ_{n≥2}w^n/n, |...| ≤ |w|²·Σ|w|^{n−2}/n ≤ 2|w|² for |w| ≤ 1/2 ✓). In Lean: define Z via the series: Z := exp(Σ_ρ mult·(log(1−s/ρ) + s/ρ))?? — NO — exp of the log-series only works where the series converges — it converges EVERYWHERE (for s not a zero... conditionally?? the series Σ mult·(log(1−s/ρ)+s/ρ): |log(1−s/ρ)+s/ρ| ≤ 2|s/ρ|² for |s/ρ| ≤ 1/2 i.e. |ρ| ≥ 2|s| — the finitely many small zeros handled separately — so the series converges ABSOLUTELY for all s (each term eventually ≤ 2|s|²/|ρ|², Σ mult/|ρ|² < ∞) — but the LOG BRANCH: log(1−s/ρ) — need 1−s/ρ ∉ (−∞, 0] for the principal log — for REAL s/ρ... 1 − s/ρ is negative real when s/ρ real > 1 — possible for finitely many ρ's? s/ρ real ⟺ s·ρ̄/|ρ|² real ⟺ s·ρ̄ real — for real s: s·ρ̄ real ⟺ ρ̄ real or s = 0 — ρ not real (nontrivial zeros non-real — WAIT is that known in Lean? IsNontrivialZero has 0 < re < 1 and ζ ρ = 0 — a real ρ ∈ (0,1) with ζ = 0 — ζ has no real zeros in (0,1) (ζ(s) < 0 there — Mathlib? hmm). Ugh — branch issues. AVOID logs: define Z as the limit of partial products over expanding finite sets? The \"prod over zeros\" needs an enumeration (the zero set is countable — `Countable` instance + an enumeration via `Countable.exists...`? messy) OR use `HasProd`-free: define Z via Weierstrass elementary factors with a telescoping... Honestly the cleanest Lean encoding: Z(s) := ∏' over the subtype via `tsum` of logs — branch-managed: use Complex.log with the convention log(1−w) analytic in w for |w| < 1: for |s| ≤ R and |ρ| > 2R: 1 − s/ρ ∈ ball(1, 1/2) ⊆ right half-plane ✓ principal log analytic ✓; for the finitely many |ρ| ≤ 2R: finitely many EXCEPTIONAL factors (1−s/ρ)e^{s/ρ} kept as explicit factors. So Z(s) = [Π_{ρ ∈ finite bad set} (1−s/ρ)^{mult}e^{mult·s/ρ}]·exp(Σ_{good} mult·(log(1−s/ρ)+s/ρ)) — the finite set depends on R — but Z is well-defined independent... For the TAYLOR COEFFICIENTS at 0: only the behavior near 0 matters! The bad set for R = 7 (say): zeros with |ρ| ≤ 14 — possibly EMPTY (first zero at 14.13 — but that fact is NOT in Lean...). Hmm — use R such that the disk is zero-free: need SOME zero-free disk around 0 — is ξ ≠ 0 on |s| ≤ 1 known? ξ(s) = 0 ⟺ IsNontrivialZero (CountByIntegral:66 ✓ PROVED) — and IsNontrivialZero ⟹ 0 < re < 1 — so zeros have re > 0 — NOT enough for a disk around 0... |ρ| ≥ re > 0 — no positive lower bound without more. ζ ≠ 0 for re ≥ 1 and... hmm: is there a Lean-provable zero-free disk at 0? completedRiemannZeta is continuous and completedRiemannZeta 0 = 1/2 ≠ 0 ⟹ nonzero on a neighborhood ✓ TRIVIALLY by continuity! |ξ(s)| ≥ 1/4 on |s| ≤ δ for some δ — no explicit δ needed (continuity gives existence) ✓✓. So: take the disk D := ball 0 δ with ξ ≠ 0 on it (exists by continuity of ξ at 0 with ξ(0) = 1/2). On D: NO zeros — the product's factors all have |ρ| > δ — hmm but I need |ρ| ≥ 2|s| for the log-branch... |s| < δ and |ρ| > δ: s/ρ could still approach 1... no: |s/ρ| < δ/δ = 1 — hmm |s/ρ| < 1 needed for 1−s/ρ near 1... |s/ρ| ≤ |s|/δ < 1 ✓ (|ρ| > δ — from zero-free on the CLOSED ball? continuity gives a neighborhood — take closed ball inside ✓). So for s ∈ ball(0, δ/2) and all zeros ρ (|ρ| ≥ δ... need |ρ| ≥ δ on closed ball — zeros avoid the OPEN nhd U; pick δ with closedBall 0 (3δ/4) ⊆ U ✓): |s/ρ| ≤ (δ/2)/δ = 1/2 ✓ log-branch fine ✓ |log(1−s/ρ)+s/ρ| ≤ 2|s/ρ|² ≤ (δ²/2)/|ρ|²·... ✓ absolutely summable uniformly on ball(0, δ/2) ✓✓. \n\nSo on the small disk: logZ(s) := Σ_ρ mult·(log(1−s/ρ) + s/ρ) — uniformly absolutely convergent on the small disk — analytic (each term analytic on the disk — the log is analytic since 1−s/ρ ∈ right half-plane... 1−s/ρ ∈ ball(1, 1/2) ✓ Complex.log analytic there ✓) and locally uniformly convergent ⟹ analytic — Mathlib: locally uniform limit of analytic functions is analytic — DOES MATHLIB HAVE THIS? `TendstoLocallyUniformlyOn` + `AnalyticOnNhd`: I recall there IS `AnalyticOnNhd` preservation... hmm — there might be only `DifferentiableOn` preservation: `TendstoLocallyUniformlyOn.differentiableOn`? or via Morera `is...`? This is a KEY infrastructure check. If missing, proving it = Morera's theorem (rectangle integrals vanish + pass to limit — WE HAVE the rectangle vanishing machinery: `HolomorphicOn.vanishesOnRectangle` (used in residueTheorem_finset's empty case!) — Morera: if ∫_rect f = 0 for all rectangles in a convex open set then f holomorphic — Mathlib: `Complex.differentiableOn_of...`? Morera in Mathlib? not sure).\n\nHmm OK — this is exactly the kind of inventory the design note needs. Let me check Mathlib for: (a) locally-uniform-limit-of-analytic, (b) Morera, (c) exp-of-zero-free-analytic (logarithm existence), (d) Liouville/order-1 ⟹ linear, (e) digamma Laurent/polygamma at 1/2, (f) completedRiemannZeta exact definition + one_sub FE + ξ(0) = 1/2.\n\nActually — WAIT. Before drowning in (H1)-(H5): for the COEFFICIENT IDENTITY at a single point, do I even need the global product/exp/linear story?? Let me re-examine. The claim: −ξ′/ξ(s) = Σ_{m≥0} σ_{m+1} s^m on the small disk. Equivalent: the function E(s) := ξ′/ξ(s) + Σ_{m≥0} σ_{m+1} s^m ≡ 0 on the disk. Both sides analytic on the disk (LHS: ξ zero-free there ✓; RHS: converges for |s| < 14 ⊇ small disk ✓). To prove E ≡ 0: identity principle — enough: E vanishes to infinite order at 0?? NO — that's the statement itself. Enough: E = 0 on a sequence accumulating at 0? No handle.\n\nAlternatively — E ≡ 0 on the disk ⟺ for the analytic function G(s) := log ξ(s) − log ξ(0) + Σ_{m≥1} σ_m s^m/m on the disk (log ξ exists: ξ zero-free on simply connected disk ⟹ log exists — needs the log-existence infrastructure!), G' ≡ 0... same issue.\n\nThere's no shortcut: the identity genuinely encodes the global zero distribution. It's the Hadamard content. The contour route makes the primes explicit instead. EITHER WAY there's a real lift.\n\nHmm, hold on, let me reconsider the CONTOUR route once more — maybe I misjudged. The identity to prove: c_{k−1} = (−1)^k(a_k + σ_k) + (−1)^{k−1}. Rearranged: (−1)^k σ_k = c_{k−1} − (−1)^k a_k − (−1)^{k−1} = c_{k−1} + (−1)^{k+1}a_k + (−1)^k. \n\nWhat if I prove the CRUX directly by a SINGLE contour computation per n, skipping the per-k identities?! The crux: S_∞(n) + 1 − λ_n = ResW1(n). Using the proved swaps: λ_n = Σ_j (−1)^{j+1}C(n,j)σ_j [PROVED], S_∞ = Σ_j (−1)^j C(n,j) a_j [PROVED], ResW1 = Σ_j C(n,j)c_{j−1} [PROVED]. The crux ⟺ Σ_j C(n,j)[(−1)^j a_j + (−1)^{j+1}σ_j − c_{j−1}] = −1 ⟺ Σ_j C(n,j)[c_{j−1} + (−1)^j σ_j... — hmm as computed: need Σ_{j=1}^n C(n,j)[c_{j−1} − (−1)^j(a_j + σ_j) − (−1)^{j−1}] = 0. The bracketed = 0 per-term IS (4.10)-a-form. A summed version without per-term: no — the sums are finite and independent; no cancellation available except per-term. Per-term it is.\n\nOK so — the design must choose β1 (Hadamard-coefficient route) vs β3 (contour moment route) vs β2 (EF-limit route). Let me now inventory the Mathlib infrastructure to cost them. Key checks:\n(a) locally uniform limit of analytic functions (Weierstrass convergence theorem)\n(b) logarithm of zero-free analytic function on a simply connected domain / disk\n(c) \"order ≤ 1 ⟹ linear\" for e^g (Hadamard's little argument): |e^{g(s)}| ≤ exp(C|s|^{1+ε}) ∀ε ⟹ g linear — via: Re g(s) ≤ C|s|^{1+ε} ⟹ g polynomial (Borel–Carathéodory + Cauchy estimates — Mathlib has borelCaratheodory ✓ and the \"polynomial from growth\": a entire function with |f(z)| ≤ C(1+|z|)^k is a polynomial of degree ≤ k — `Differentiable... polynomial_of_...`? there might be `Complex... ` hmm)\n(d) digamma machinery: Complex.digamma exists; its Laurent at 0/1? polygamma values? Let me grep.\n(e) completedRiemannZeta facts: def, one_sub (FE), zero iff IsNontrivialZero (Zeta23 ✓), ξ(0) = 1/2 (Mathlib: `completedRiemannZeta_zero`? or via residue), zero-free small disk at 0 (continuity + value ≠ 0 ✓ trivial).\n\nLet me grep for (a)-(e) quickly.","signature":""},{"type":"text","text":"The EF proof is a full-line contour identity — no direct moment extraction. The route comparison needs a Mathlib infrastructure inventory. Checking the key pieces for the Hadamard/direct route."},{"type":"tool_use","id":"Bash_166","name":"Bash","input":{"command":"cd \"D:/Python/Quantum/zeta-23-lean/.lake/packages/mathlib\" && grep -rn \"tendstoLocallyUniformly.*analytic\\|TendstoLocallyUniformlyOn.*[Aa]nalytic\\|tendsto_locally_uniformly.*holomorphic\" Mathlib/Analysis/ --include=\"*.lean\" -il | head -5; echo ===MORERA===; grep -rln \"Morera\\|morera\" Mathlib/Analysis/ | head -3; echo ===LOG===; grep -rn \"exists_log\\|log_of_nonvanishing\\|exists_analytic_log\" Mathlib/Analysis/Complex/ Mathlib/Analysis/SpecialFunctions/Complex/ 2>/dev/null --include=\"*.lean\" -l | head -5","description":"Inventory: Weierstrass convergence, Morera, log existence"},"extra_content":null}]