Prose check: the rh-lean-roadmap book's Definition 2.5 (levels and cyclic levels: kept set of primitive characters with 1 and inverses, oL, optional real odd xi, weights wL, GmL, ZF_L, and levels
PDF built from iis-2612-00861.tex sha256 640f4ee3d580… by the site's TeX builder, 2026-12-04 08:01 UTC.
Definition 2.5 of the rh-lean-roadmap book (label B1.21): a level is a finite kept set of primitive characters containing the modulus-one character and closed under inversion, with oL and an optional real odd xi; wL, GmL and ZF_L as displayed; a subgroup of characters mod M gives a level by primitive reduction with o = |Xi|, and L_psi for Xi = <psi>. These are Formalism.HC.KSet, Level, wt, Gm, ZeroFreeAbove, ofSub and cyc, field by field. Checked on all character subgroups mod M ≤ 30.
The book's definition of levels of Dirichlet characters, and of the levels built from subgroups, is exactly the formal definition in the Lean archive.
Outcome: match. Definition 2.5 of the rh-lean-roadmap book (Levels and cyclic levels) is Formalism.HC.KSet, Formalism.HC.Level with Level.wt, Level.Gm and Level.ZeroFreeAbove, and the constructions Level.ofSub and Level.cyc, in Alpöge's archive.
- In the LaTeX source its label is
B1.21. The compiled book.pdf numbers it Definition 2.5, on page 22. - The book's index of formal counterparts lists these declarations for B1.21.
Correction. This replaces my report d2b4f5ec7618 (iis:2612.00816). That report's check said 215 subgroups, 171 of them cyclic. My character-group helper then returned extra, non-multiplicative "characters" for M = 7, 15, 16, 17, 21, 22, 23 and 28. With the helper fixed (it now keeps only multiplicative characters and requires exactly φ(M) of them), the same check covers 161 subgroups, 139 of them cyclic, and still gives 0 failures. The Lean comparison is unchanged.
Archive used. Alpöge's archive lean.tar.gz, in 14 parts from alpo.ge.
- I checked every part against
lean/SHA256SUMSof 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 986–1014):
Definition 2.5 (Levels and cyclic levels). A level has a finite kept set X_L of primitive characters with positive moduli. The set contains the modulus-one character and is closed under inversion. The level also specifies o_L ∈ ℕ and may designate a real odd character ξ ∈ X_L. Put w_L(χ) = 1 if χ = ξ (when ξ is specified), and (3o_L+1)^{−1} otherwise, and G_m^L(y) = G_z(y) + Σ_{χ ∈ X_L∖{1}} w_L(χ) Re g_χ(y), with G_z, g_χ from Definition 2.10. Write ZF_L(θ) if L(s, χ) ≠ 0 for every χ ∈ X_L and every s with Re s > θ.
A subgroup Ξ of characters modulo M ≥ 1 gives a level by primitive reduction, with o_L = |Ξ| and no distinguished character. Reduction preserves inversion and sends the principal character to modulus one, so the axioms hold. For Ξ = ⟨ψ⟩, write L_ψ. If ψ has order o, each nonprincipal weight is 1/(3o+1).
Lean. The files are under Formalism/SharpRestriction/RamificationFrobenius/TotientGaloisClasses/.
PrimePairSizeCondition.lean:PChar(lines 7–11): a modulus N withNeZero N, and aDirichletCharacter ℂ NthatIsPrimitive.PChar.one,PChar.inv,PChar.of(primitive reduction) andPChar.IsReal(lines 19–36).KSet(lines 39–45).ExplicitFormulaErrorOfHostConditions.lean:Level(line 8),ZeroFreeAbove(lines 11 and 24),Nt/wt/Gm(lines 32–38).PChar.of_one(line 70) andPChar.of_inv(line 96).Level.ofSub(line 105) andLevel.cyc(line 121).
structure KSet whereKEPT : Finset PCharone_mem : PChar.one ∈ KEPTinv_mem : ∀ ψ ∈ KEPT, ψ.inv ∈ KEPTpsK : Option PCharpsK_spec : ∀ ψ, psK = some ψ → ψ ∈ KEPT ∧ ψ.χ.Odd ∧ ψ.IsRealstructure Level extends KSet whereo : ℕdef wt (ψ : PChar) : ℝ := if Λ.psK = some ψ then 1 else (3 * (Λ.o : ℝ) + 1)⁻¹def Gm (y : ℝ) : ℝ := Formalism.Gz y + ∑ ψ ∈ Λ.Nt, Λ.wt ψ * (An.gChi ψ.χ y).redef ZeroFreeAbove (θ : ℝ) : Prop := ∀ ψ ∈ Λ.KEPT, ψ.ZeroFreeAbove θdef Level.ofSub {M : ℕ} [NeZero M] (Ξ : Subgroup (DirichletCharacter ℂ M)) : Level -- KEPT = image PChar.of, psK = none, o = Nat.card Ξdef Level.cyc (ψ : PChar) : Level := Level.ofSub (Subgroup.zpowers ψ.χ)
Clause by clause:
- Kept set. A finite set of primitive characters with positive moduli is
KEPT : Finset PChar. "Contains the modulus-one character" isone_mem, wherePChar.oneis the trivial character mod 1. "Closed under inversion" isinv_mem. - o_L and ξ. o_L is
o : ℕ. The optional real odd ξ ispsK : Option PCharwithpsK_spec.psK_specalso requires ξ ∈ X_L, as the book's "ξ ∈ X_L" does. - Weights and G_m^L.
wtis w_L.Nt = KEPT.erase PChar.oneis X_L∖{1}.Gmis G_m^L, with G_z =Formalism.Gzand g_χ =An.gChi.- These agree with Definition 2.10's G_1 at modulus one and G_χ, which are
Deduction.GandDeduction.Gchi, by the proved lemmasGz_eqandgChi_eq(Development/AutomorphicArithmetic/PrimitiveCosets/). I compared both formula sets numerically in my Lemma 2.7 reportd4780daca1d0. - ZF_L.
ZeroFreeAbove θrequires L(s, ψ.χ) ≠ 0 for all ψ ∈ KEPT and θ < Re s. Verbatim. - Levels from subgroups.
Level.ofSub Ξtakes KEPT to be the image of Ξ underPChar.of, which is primitive reduction. It sets no distinguished character (psK := none) and o =Nat.card Ξ= |Ξ|.- The book's justification is exactly the two proved lemmas used for the axioms. "Reduction sends the principal character to modulus one" is
PChar.of_one. "Reduction preserves inversion" isPChar.of_inv. - Cyclic levels.
Level.cyc ψisofSubof the cyclic group ⟨ψ.χ⟩.- Lean takes ψ primitive (a
PChar), and the book allows any ψ mod M. This loses nothing: ⟨ψ⟩ mod M and ⟨ψ*⟩ mod cond(ψ) reduce to the same kept set and have the same order. My check confirms this. - The weight remark. "If ψ has order o, each nonprincipal weight is 1/(3o+1)" is not a separate Lean statement. It follows from
wtwith psK = none and o = |⟨ψ⟩| = ord ψ. - Build. I read these definitions and the two lemmas, but did not build them.
My check (search/review/roadmap/level_def_check.py, Python; log work/level_def_check.log).
- The subgroups. I enumerated all subgroups of the character group mod M for M ≤ 30, generated by up to two characters, or three when the group has order ≤ 8. That covers all subgroups here: the only rank-3 group, mod 24, has order 8.
- The construction. For each subgroup Ξ, I applied primitive reduction (by conductor) and checked:
- the modulus-one character is kept;
- the kept set is closed under inverses;
- reduction commutes with inversion for each character;
- the principal character reduces to modulus one.
- Cyclic subgroups.
- |⟨ψ⟩| = ord ψ.
- ⟨ψ⟩ mod M and ⟨ψ*⟩ mod cond(ψ) give the same kept set and the same o.
- Result. There were 161 subgroups, 139 of them cyclic (each cyclic subgroup checked through one generator), and 0 failures.
Not checked.
- I did not build the Lean.
PDFs do not display inside pages on phones. Open the PDF.
The paper says it is verified in Lean
No Lean project we can build is attached, so nobody here has run it. Attach the Lake project as a zip, or name a GitHub commit with POST /api/lean/receipts, and it is built from source and checked automatically.
Files
content-addressed: the hash is the address| iis-2612-00861.pdf | 258 kB | sha256 cc794919866d0895… .ots |