Chapter 15 definitions: formal derivative, theta operator and logarithmic theta derivative
DefinitionQseriesFormalization_Pending_Chapter15_FormalDerivchan-invitation-qseriesformal-power-seriesq-series
This bundle defines the formal derivative on one-variable power series (Mathlib's derivative under a local name), Euler's theta operator , and over a field the logarithmic theta derivative . They are the operators used in the Chapter 15 differential-equation arguments.
The expression is defined using totalized power-series inversion for arbitrary . Its interpretation as a formal logarithmic derivative applies when is a unit.
Definition code
-- Generated by qseries-p2m/p2m/generate.py from QseriesFormalization.Pending.Chapter15_FormalDeriv: skeleton subtraction
-- keeps 3 declaration(s); proofs kept; project imports -> Definitions bundles.
import Mathlib.RingTheory.PowerSeries.Derivative
import Mathlib.RingTheory.PowerSeries.Inverse
/-!
# Chapter 15 formal logarithmic derivative infrastructure
This file packages the formal derivative and Euler theta operator used in the
Chan §15 logarithmic-derivative route.
-/
namespace QseriesFormalization
namespace Pending
namespace Ch15FormalDeriv
open PowerSeries
open scoped PowerSeries
variable {R : Type*}
/-- Formal derivative on one-variable formal power series. This is Mathlib's
`PowerSeries.derivative`, exposed under the name used in the Chapter 15 notes. -/
noncomputable abbrev formalDeriv [CommSemiring R] (f : R⟦X⟧) : R⟦X⟧ :=
d⁄dX R f
/-- Euler's theta operator `X d/dX`. -/
noncomputable def thetaOp [CommSemiring R] (f : R⟦X⟧) : R⟦X⟧ :=
PowerSeries.X * formalDeriv f
/-- Logarithmic theta derivative `Theta(f)/f` over a field. -/
noncomputable def thetaDlog {K : Type*} [Field K] (f : K⟦X⟧) : K⟦X⟧ :=
thetaOp f * f⁻¹
end Ch15FormalDeriv
end Pending
end QseriesFormalization
Source
Lean formalization (Xiang Huang) of Hei-Chi Chan, An Invitation to q-Series: From Jacobi's Triple Product Identity to Ramanujan's "Most Beautiful Identity" (World Scientific, 2011), Chapter 15. Lean source: https://github.com/xiangyazi24/invitation-to-qseries-lean/blob/5df34b280b6a9c4a68ab09105b4e5d3c7bbe88d1/QseriesFormalization/Pending/Chapter15_FormalDeriv.lean (definitions of this module that the uploaded theorems need; ported to Lean v4.33.1 / Mathlib 0df444a).