Odd real functions of period one
DefinitionProofsInTheBook_Chapter24analysisbook-chapter-26lean4proofs-from-the-book
For a function , the predicate HerglotzClass(f) consists of the two requirements
This class imposes periodicity and oddness only. Continuity, doubling functional equations, and prescribed values are not part of this definition.
Definition code
import Mathlib
/-!
# Chapter 24: Cotangent and the Herglotz trick
From "Proofs from THE BOOK":
**Herglotz trick**: The partial fraction expansion
π·cot(πx) = 1/x + ∑_{n=1}^∞ (1/(x+n) + 1/(x-n))
is proved by showing both sides satisfy the same functional equation
f(x) + f(1-x) = ... and f(x+1) = f(x), with matching initial conditions.
Applications include the Basel problem (Chapter 8) and evaluation of
the Riemann zeta function at even integers.
-/
namespace ProofsInTheBook.Chapter24
open scoped BigOperators
/--
Abstract Herglotz class: functions satisfying period-one and oddness conditions.
The Herglotz trick shows that any two such functions that agree at `1/2`
must be identical.
-/
structure HerglotzClass (f : ℝ → ℝ) : Prop where
periodic : ∀ x, f (x + 1) = f x
odd : ∀ x, f (-x) = -f x
end ProofsInTheBook.Chapter24
Source
Mathematical definitions: https://github.com/xiangyazi24/proof_in_the_book/blob/88d88d141768cded75e782c525ef1bf04b8fe220/ProofsInTheBook/Chapter24.lean#L79. Topic: Martin Aigner and Günter M. Ziegler, Proofs from THE BOOK, 6th edition, Springer, 2018, Chapter 26, “Cotangent and the Herglotz trick” (https://doi.org/10.1007/978-3-662-57265-8_26). The repository citation specifies the definitions retained here.