The Darboux–Halphen systems and Ramanujan's differential system
DefinitionSDYM_DarbouxHalphenRamanujanFour predicates for the first-order systems appearing in the Darboux–Halphen reduction of the self-dual Yang–Mills equations, and in Ramanujan's 1916 work on Eisenstein series.
The classical Darboux–Halphen system (eq. (52) with ) is
The generalized Darboux–Halphen system (eqs. (52)–(53)) adds to each right-hand side and couples in the three equations , , . In the Lean text the are written to keep them apart from the independent variable.
Ramanujan's system in the nome (eq. (78)) is
written with the derivatives as explicit companion functions and the factor kept on the left, so that no division by occurs and the origin needs no special treatment.
Ramanujan's system in the additive variable (eq. (79)), obtained from the previous one by , is
import Mathlib
namespace SDYM
/-- The classical Darboux–Halphen system, Ablowitz–Chakravarty–Halburd eq. (52) with
`τ² = 0`:
`ω₁' = ω₂ω₃ - ω₁(ω₂ + ω₃)`, and its two cyclic images. -/
def IsClassicalDHSolution (s : Set ℂ) (w₁ w₂ w₃ : ℂ → ℂ) : Prop :=
(∀ t ∈ s, HasDerivAt w₁ (w₂ t * w₃ t - w₁ t * (w₂ t + w₃ t)) t) ∧
(∀ t ∈ s, HasDerivAt w₂ (w₃ t * w₁ t - w₂ t * (w₃ t + w₁ t)) t) ∧
(∀ t ∈ s, HasDerivAt w₃ (w₁ t * w₂ t - w₃ t * (w₁ t + w₂ t)) t)
/-- The generalized Darboux–Halphen system, Ablowitz–Chakravarty–Halburd eqs. (52)–(53),
with `τ² = τ₁² + τ₂² + τ₃²`:
`ω₁' = ω₂ω₃ - ω₁(ω₂ + ω₃) + τ²` (and cyclic), together with
`τ₁' = -τ₁(ω₂ + ω₃)` (and cyclic).
Here `x₁, x₂, x₃` denote `τ₁, τ₂, τ₃`. -/
def IsGeneralizedDHSolution (s : Set ℂ) (w₁ w₂ w₃ x₁ x₂ x₃ : ℂ → ℂ) : Prop :=
(∀ t ∈ s, HasDerivAt w₁
(w₂ t * w₃ t - w₁ t * (w₂ t + w₃ t) + (x₁ t ^ 2 + x₂ t ^ 2 + x₃ t ^ 2)) t) ∧
(∀ t ∈ s, HasDerivAt w₂
(w₃ t * w₁ t - w₂ t * (w₃ t + w₁ t) + (x₁ t ^ 2 + x₂ t ^ 2 + x₃ t ^ 2)) t) ∧
(∀ t ∈ s, HasDerivAt w₃
(w₁ t * w₂ t - w₃ t * (w₁ t + w₂ t) + (x₁ t ^ 2 + x₂ t ^ 2 + x₃ t ^ 2)) t) ∧
(∀ t ∈ s, HasDerivAt x₁ (-(x₁ t) * (w₂ t + w₃ t)) t) ∧
(∀ t ∈ s, HasDerivAt x₂ (-(x₂ t) * (w₃ t + w₁ t)) t) ∧
(∀ t ∈ s, HasDerivAt x₃ (-(x₃ t) * (w₁ t + w₂ t)) t)
/-- Ramanujan's 1916 differential system in the nome `q`,
Ablowitz–Chakravarty–Halburd eq. (78):
`q dP/dq = (P² - Q)/12`, `q dQ/dq = (PQ - R)/3`, `q dR/dq = (PR - Q²)/2`.
The functions `Pd, Qd, Rd` are the `q`-derivatives of `P, Q, R`. -/
def IsRamanujanQSolution (s : Set ℂ) (P Q R Pd Qd Rd : ℂ → ℂ) : Prop :=
(∀ q ∈ s, HasDerivAt P (Pd q) q) ∧
(∀ q ∈ s, HasDerivAt Q (Qd q) q) ∧
(∀ q ∈ s, HasDerivAt R (Rd q) q) ∧
(∀ q ∈ s, q * Pd q = (P q ^ 2 - Q q) / 12) ∧
(∀ q ∈ s, q * Qd q = (P q * Q q - R q) / 3) ∧
(∀ q ∈ s, q * Rd q = (P q * R q - Q q ^ 2) / 2)
/-- Ramanujan's system in the additive variable `τ` (with `q = exp (2iτ)`),
Ablowitz–Chakravarty–Halburd eq. (79):
`dP/dτ = i(P² - Q)/6`, `dQ/dτ = 2i(PQ - R)/3`, `dR/dτ = i(PR - Q²)`. -/
def IsRamanujanTauSolution (s : Set ℂ) (P Q R : ℂ → ℂ) : Prop :=
(∀ z ∈ s, HasDerivAt P (Complex.I * (P z ^ 2 - Q z) / 6) z) ∧
(∀ z ∈ s, HasDerivAt Q (2 * Complex.I * (P z * Q z - R z) / 3) z) ∧
(∀ z ∈ s, HasDerivAt R (Complex.I * (P z * R z - Q z ^ 2)) z)
end SDYM
Read-back
What the Lean code literally says, in plain math · Aristotle (Harmonic)
Disclosure — non-blind read-back. This read-back was written by the same agent that drafted the Lean statement it describes, with full knowledge of the source paper and of the intended meaning. It is therefore not independent testimony and must not be mistaken for an audit: the point of a read-back is that a blind reader, given only the code, renders back what the code literally says, so that any gap between intent and code becomes visible. That safeguard is absent here. A reviewer should obtain a genuinely blind read-back before relying on this item.
This bundle introduces four predicates in a namespace SDYM, all over the complex numbers, all of the same shape: a set together with some complex-valued functions on , and a conjunction of pointwise differentiability-with-prescribed-derivative assertions holding at every point of . In every case differentiability is complex differentiability at the individual point, in the whole plane and not relative to ; nothing is asserted at points outside ; and is arbitrary, so it may be empty, in which case the predicate holds vacuously for any choice of functions.
First predicate (three functions ). For every :
each read as "the function is differentiable at and its derivative there equals the displayed expression". The three equations are exact cyclic images of one another under . Constant solutions: taking satisfies it, so the predicate is satisfiable and not merely vacuous.
Second predicate (six functions ). Writing , it asserts for every the three equations above with appended to each right-hand side — the same in all three — together with
Note that is the sum of the squares of the , not of their absolute values; over it may vanish without the vanishing, and setting all three identically zero recovers the first predicate exactly.
Third predicate (six functions ). For every it asserts that , and are differentiable at with derivatives , , respectively, and in addition the three scalar identities
The factor multiplies the derivative on the left; there is no division by anywhere. Because of this, the point is not excluded from , and if the three identities degenerate there into the algebraic constraints , and , with the values then constrained only by being the derivatives.
Fourth predicate (three functions ). For every : is differentiable at with derivative ; is differentiable at with derivative ; and is differentiable at with derivative . Here is the imaginary unit, and these are three genuine derivative assertions with no auxiliary derivative functions.
No predicate in this bundle mentions series, Eisenstein series, modularity, or any specific solution; each is purely a system of pointwise derivative identities.