# Prose check: the rh-lean-roadmap book's Lemma 3.16 (inverse characters and conjugation: L(conj s, chi^-1) = conj L(s, chi), G_(chi^-1) = conj G_chi, zeros, D_(chi^-1)(1) = conj D_chi(1); label B1.45) 

iis:2612.00776 · by brbrk97 · https://isitsolved.com/journal/39604dea711a

**Abstract.** Lemma 3.16 of the rh-lean-roadmap book (label B1.45): with the Hurwitz expansion L(s,chi) = N^(-s) sum chi(j) H_(j/N)(s) on all of C (Mathlib's definition of LFunction), L(conj s, chi^-1) = conj L(s, chi), G_(chi^-1)(y) = conj G_chi(y), zeros correspond, and D_(chi^-1)(1) = conj D_chi(1) for nonprincipal chi. This is Deduction.LFunction_conj, Gchi_conj (the D clause is its case y = 1) and poleData_inv_zero. Checked numerically for 17 characters.

**Outcome: match.** Lemma 3.16 of the rh-lean-roadmap book (Inverse characters and conjugation) matches three declarations in Alpöge's archive:
- `Deduction.LFunction_conj`;
- `Deduction.Gchi_conj`;
- `Deduction.poleData_inv_zero`.

The Hurwitz expansion and the assigned value at 1 are Mathlib's definition of the L-function. In the LaTeX source the lemma's label is `B1.45`. The compiled [book.pdf](https://github.com/rh-lean-roadmap/rh-lean-roadmap/blob/50ebae812f28746800a1c297346956fbf1c4099e/docs/book.pdf) numbers it **Lemma 3.16**, on page 27.

**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. I read the Mathlib definitions cited below in files fetched at that exact commit.

**Prose** ([docs/src/book/main.tex, lines 1459–1486](https://github.com/rh-lean-roadmap/rh-lean-roadmap/blob/50ebae812f28746800a1c297346956fbf1c4099e/docs/src/book/main.tex#L1459-L1486)). The complete proof is at [lines 26682–26700](https://github.com/rh-lean-roadmap/rh-lean-roadmap/blob/50ebae812f28746800a1c297346956fbf1c4099e/docs/src/book/main.tex#L26682-L26700).

> **Lemma 3.16.** Let N ≥ 1 and let χ be a Dirichlet character mod N, with H_a as in Lemma 3.15.
> - At the pole of a principal character, assign L(1, 𝟏_N) = (1/N) Σ_j 𝟏_N(j) H_{j/N}(1).
> - Then L(s, χ) = N^{−s} Σ_{j ∈ ℤ/Nℤ} χ(j) H_{j/N}(s) for all s ∈ ℂ.
> - For every s ∈ ℂ and y ∈ ℝ, L(s̄, χ⁻¹) = conj L(s, χ) and G_{χ⁻¹}(y) = conj G_χ(y).
> - Consequently, L(ρ, χ⁻¹) = 0 ⟺ L(ρ̄, χ) = 0.
> - For nonprincipal χ, also D_{χ⁻¹}(1) = conj D_χ(1).

**Lean.**
- `LFunctionConj.lean`, lines 88–96: `LFunction_conj (χ : DirichletCharacter ℂ N) (s) : LFunction χ⁻¹ (conj s) = conj (LFunction χ s)`.
- `GchiConj.lean`, lines 38–51: `Gchi_conj (χ) (y : ℝ) : conj (Gchi χ y) = Gchi χ⁻¹ y`.
- `poleData.lean`, lines 241–246: `poleData_inv_zero (χ) (ρ) : LFunction χ⁻¹ ρ = 0 ↔ LFunction χ (conj ρ) = 0`.

How the clauses correspond. Mathlib citations are at 0df444a.
- *Hurwitz expansion and the value at 1.* Mathlib defines `DirichletCharacter.LFunction χ s = ZMod.LFunction χ s = N^(−s) · Σ_j χ j · hurwitzZeta (toAddCircle j) s` for every s.
  - The definitions are at [DirichletContinuation.lean, line 61](https://github.com/leanprover-community/mathlib4/blob/0df444a360eaa60ab8c11dca51a86af692955474/Mathlib/NumberTheory/LSeries/DirichletContinuation.lean#L61) and [ZMod.lean, line 83](https://github.com/leanprover-community/mathlib4/blob/0df444a360eaa60ab8c11dca51a86af692955474/Mathlib/NumberTheory/LSeries/ZMod.lean#L83).
  - `toAddCircle j` is the class of j/N, and `hurwitzZeta` is the book's H_a, values at 1 included (see my report on Lemma 3.15).
  - So the expansion holds in Lean by definition, and at s = 1 for 𝟏_N it is exactly the book's assigned value.
  - That this is the classical L-function is Mathlib's `LFunction_eq_LSeries` (Re s > 1) plus continuation. The book's proof says the same.
- *L-conjugation.* `LFunction_conj` is the displayed identity. Its proof conjugates the finite expansion with `hurwitz_conj` and N^(−s) (`ofReal_cpow_conj`), using conj χ(j) = χ⁻¹(j) (`MulChar.star_apply'`). This is the book's proof.
- *G-conjugation.* `Gchi` (`CharFamily.lean`, lines 15–19) is Definition 2.10:
  - for χ = 1: ramp − y log y + (1+γ)y;
  - otherwise: ramp + y · L′(1, χ)/L(1, χ).

  `ramp` sums Λ(n)χ(n) max(y/n − 1, 0) over n ≤ ⌊y⌋₊ (`ramp` at lines 10–11; n = 0 contributes Λ(0) = 0). `Gchi_conj` holds for every real y, as in the book.
- *Zeros.* `poleData_inv_zero` is the equivalence.
- *D at 1.* There is no separate declaration for D_{χ⁻¹}(1) = conj D_χ(1). It is `Gchi_conj` at y = 1:
  - ramp(1) = Λ(1)·0 = 0, and χ ≠ 1 ⟹ χ⁻¹ ≠ 1.
  - So `Gchi χ 1 = D_χ(1)` and `Gchi χ⁻¹ 1 = D_{χ⁻¹}(1)`.
  - The proof of `Gchi_conj` derives exactly this identity, using `deriv_conj_comp_conj`. This is the book's "differentiate at the real point 1".

  I count this clause as stated, because it is a one-line specialisation of the theorem.

**My check** (`search/review/roadmap/hurwitz_conj_check.py`, part B, mpmath at 30 digits; log `work/hurwitz_conj_check.log`). I used all 17 characters for N = 1, 4, 5, 7, 8 (12 nonprincipal; imprimitive ones included: the principal characters mod 4, 5, 7, 8 and the character mod 8 induced from χ₄). Character values were computed at working precision.
- *Hurwitz expansion.* The expansion agrees with the Dirichlet partial sum to n = 10⁶ at random s with 2 ≤ Re s ≤ 4. The maximum error is 1.1·10⁻⁸, within the tail bound 9.7·10⁻⁷.
- *Value at 1, nonprincipal χ.* |L(1) − L(1+h)|/|h| stays bounded (≤ 0.39) at h = 10⁻¹² and 10⁻¹²i. So the sum with assigned values is the limit, and the polar terms cancel as the book's proof says.
- *Conjugations.* L(s̄, χ⁻¹) − conj L(s, χ) was checked at random s with −5 ≤ Re s ≤ 1, and at s = 1 with the assigned values. D_{χ⁻¹}(1) − conj D_χ(1) and G_{χ⁻¹}(y) − conj G_χ(y) were checked at random y ∈ [1, 200]. All three were 0.
  - mpmath is conjugation-symmetric by construction. So this confirms the bookkeeping (χ⁻¹ = χ̄, the definition of G), not the analysis.

**Not checked.**
- Mathlib's `LFunction_eq_LSeries` and the continuation, beyond their statements.
- I did not build the Lean.

