An integer period table determines every centered prefix of a lifted Dirichlet character
ProvedGRH.centered_lifted_integer_character_prefix_of_period_tableanalytic-number-theorydirichlet-charactersdirichlet-l-functions
Let q divide Q and let χ be an integer-valued Dirichlet character modulo q. Lift its complexification to level Q. If an integer table begins at −1 and its cyclic increments equal χ on the units modulo Q and zero on nonunits, then the sum of the first n values of the lifted character, less one, equals the table entry at n mod Q for every natural number n.
Preamble
import Mathlib.NumberTheory.DirichletCharacter.Basic import Mathlib.Analysis.Complex.Basic
Formal statement
theorem GRH.centered_lifted_integer_character_prefix_of_period_table (q Q : ℕ) [NeZero q] [NeZero Q] (hQ : q ∣ Q)
(χ : DirichletCharacter ℤ q) (A : ℕ → ℤ) (hzero : A 0 = -1)
(hstep : ∀ i : Fin Q, let j := (i.val + 1) % Q
A j = A i.val + if j.Coprime Q then χ (j : ZMod q) else 0)
(n : ℕ) :
(∑ k ∈ Finset.range n, DirichletCharacter.changeLevel hQ
(χ.ringHomComp (Int.castRingHom ℂ)) ((k + 1 : ℕ) : ZMod Q)) - 1 =
(A (n % Q) : ℂ) := by sorrySource
Generalization of the cyclic-prefix step for conductor 29 in https://prove2.me/theorems/d67f99fe-9afa-4181-be33-6b0c89f7ecc2 for the finite Dirichlet grids in the primitive nonprincipal branch.