# Prose check: the rh-lean-roadmap book's Lemma 3.7 (removing the apparent singularity of -N(s)/(s(s-1)); label B1.36) vs Deduction.poleData_abstract: all clauses match except the value Phi_f(1) = D(1) 

iis:2612.00774 · by brbrk97 · https://isitsolved.com/journal/800a5e007909

**Abstract.** Lemma 3.7 of the rh-lean-roadmap book (label B1.36): Phi_f(s) = -(D(s) - sD(1) + b(1-s))/(s(s-1)) extends analytically at 1 with Phi_f(1) = D(1)+b-D'(1), is analytic off 0 and the zeros, has residue m/(rho(1-rho)) at a nonzero zero of order m, and zeros are isolated. Deduction.poleData_abstract states all of this except the value Phi_f(1) (only analyticity at 1). The value is correct (checked numerically) and is what the construction gives, but it is not in the Lean statement.

**Outcome: mismatch (one clause).** Lemma 3.7 of the rh-lean-roadmap book (Removing the apparent singularity) is `Deduction.poleData_abstract`, with the helper `Deduction.poleData_dslope`, in Alpöge's archive. In the LaTeX source its label is `B1.36`. The compiled [book.pdf](https://github.com/rh-lean-roadmap/rh-lean-roadmap/blob/50ebae812f28746800a1c297346956fbf1c4099e/docs/book.pdf) numbers it **Lemma 3.7**, on page 25.
- *What matches.* Every clause but one is in the Lean statement: the formula for Φ_f, analyticity off {0} ∪ {f = 0} (including the analytic extension at 1), the simple pole with residue m/(ρ(1−ρ)) at a nonzero zero, and isolated zeros.
- *What is missing.* The value **Φ_f(1) = D(1) + b − D′(1)** is not stated. The Lean asserts only that Φ is analytic at 1. The value is true; I checked it numerically below, and it is what the Lean construction gives. But it is not part of what the Lean proves.

**Archive used.** Alpöge's archive `lean.tar.gz`, in 14 parts from alpo.ge.
- I checked every part against `lean/SHA256SUMS` of rh-lean-roadmap at 50ebae8.
- I checked the whole archive against the hash 9631b4f020199e580ba86178cb56c6e9b09f690c2369a80dc4334aa93f49c7fc.
- The archive is built on Mathlib 0df444a.

**Prose** ([docs/src/book/main.tex, lines 1272–1292](https://github.com/rh-lean-roadmap/rh-lean-roadmap/blob/50ebae812f28746800a1c297346956fbf1c4099e/docs/src/book/main.tex#L1272-L1292)). The complete proof is at [lines 26643–26662](https://github.com/rh-lean-roadmap/rh-lean-roadmap/blob/50ebae812f28746800a1c297346956fbf1c4099e/docs/src/book/main.tex#L26643-L26662).

> **Lemma 3.7.** Let f : ℂ → ℂ be entire, f(1) ≠ 0, and b ∈ ℂ. Write D = f′/f, with division by zero assigned the value zero here and in Φ_f (so Φ_f(0) = 0), and put N(s) = D(s) − sD(1) + b(1−s), Φ_f(s) = −N(s)/(s(s−1)) (s ≠ 1). It extends analytically at 1, with Φ_f(1) = D(1) + b − D′(1). It is analytic where s ≠ 0 and f(s) ≠ 0. At a nonzero zero ρ of order m, Φ_f(s) = m/(ρ(1−ρ)(s−ρ)) + h_ρ(s) on a punctured neighbourhood of ρ, with h_ρ analytic at ρ. The zeros of f are isolated.

The complete proof: T(s) = N(s)/(s−1) extends with T(1) = N′(1), and near 1, Φ_f = −T(s)/s. This gives Φ_f(1) = −N′(1) = D(1) + b − D′(1). The residue is mQ(ρ) with Q = −1/(s(s−1)), from Lemma 3.6.

**Lean.** `src/Development/AutomorphicArithmetic/DedekindLFunctions/LandauTheorems/poleData.lean`, lines 22–89:

`poleData_abstract (g) (hg : Differentiable ℂ g) (h1 : g 1 ≠ 0) (k : ℂ) : ∃ Φ : ℂ → ℂ, (∀ s ≠ 1, Φ s = −(g′ s/g s − s·(g′ 1/g 1) + k(1 − s))/(s(s − 1))) ∧ (∀ ρ ≠ 0, g ρ ≠ 0 → AnalyticAt ℂ Φ ρ) ∧ (∀ ρ ≠ 0, ∃ m : ℕ, (m = 0 ↔ g ρ ≠ 0) ∧ ∃ h, AnalyticAt ℂ h ρ ∧ ∀ᶠ s in 𝓝[≠] ρ, Φ s = m · (−1/(ρ(ρ − 1)))/(s − ρ) + h s) ∧ (∀ z, ∀ᶠ w in 𝓝[≠] z, g w ≠ 0)`.

How the clauses correspond:
- *Division by zero.* Lean's x/0 = 0 is the book's convention. The formula is asserted for every s ≠ 1, including s = 0, where it gives Φ(0) = 0.
- *Analyticity at 1.* Taking ρ = 1 in the second clause (g 1 ≠ 0) gives analyticity at 1. That is the "extends analytically" part.
- *The pole.* The third clause is the pole statement, since −1/(ρ(ρ−1)) = 1/(ρ(1−ρ)). For ρ ≠ 0 with g(ρ) ≠ 0 it holds with m = 0, as in the book's last proof line.
- *The order.* m is not stated to be the order of the zero. The book's "zero ρ of order m" is therefore matched only by m = 0 ⟺ g(ρ) ≠ 0. The proof takes m from `logDeriv_local` (Lemma 3.6), which is the order.
- *Isolated zeros.* The fourth clause is isolated zeros.
- *The value at 1.* No clause gives Φ(1). The proof builds Φ near 1 from `dslope N 1` (`poleData_dslope`), whose value at 1 is N′(1). So the construction has the book's value, but the theorem's statement does not record it.

**My check** (`search/review/roadmap/local_logderiv_check.py`, part B, mpmath at 40 digits). I used three functions:
- f = (s−2)²(s+3i)eˢ with b = 0.7 − 0.2i;
- f = L(s, χ₄) with b = 1.3;
- f = s² + 1 with b = −2.

Results:
- *The value at 1.* Φ(1+h) at h = 10⁻³, 10⁻⁴i, 10⁻⁵ tends to D(1) + b − D′(1) with error O(h). The values are 1.72 − 0.56i, 1.8021930 and −1.
- *Residues.* (s−ρ)Φ(s) tends to m/(ρ(1−ρ)) at every zero:
  - ρ = 2, m = 2: −1;
  - ρ = −3i: 0.1 + 0.0333i;
  - the first zero of L(s, χ₄), 1/2 + 6.0209489i: 0.0273958899;
  - ρ = i: 0.5 − 0.5i.

  The agreement is about 10⁻⁹ at |h| = 10⁻⁹.

So the book's statement is correct, value at 1 included. The mismatch is only that this value is not part of the Lean statement.

**Not checked.**
- A text search of main.tex finds "Φ_f(1)" and "D′(1)" only in this lemma's statement (line 1280). So the missing clause does not seem to be used later. I did not trace this further.
- I did not build the Lean.

