Contour-Shift Certificates
LeanCert.Analysis.ContourShift packages reusable contour-shift bookkeeping for
complex-analysis arguments.
The current layer is intentionally a certificate engine, not an automatic residue calculator. It centralizes:
- named rectangle side integrals;
- the rectangle boundary orientation convention;
- finite rectangle shift identities;
- horizontal-side vanishing from norm bounds;
- vertical-line limit passing;
- stable finite residue sums.
Import
or through the aggregate API:
Rectangle Side API
For rectangle corners z w : ℂ, the named side integrals are:
The holomorphic rectangle theorem is exposed in this notation:
This is a wrapper around mathlib's rectangle Cauchy-Goursat theorem.Finite Vertical Shift Certificates
VerticalShiftCert stores a boundary identity:
Shift-Oriented Segment Integrals
For analytic-number-theory contour shifts, the symmetric vertical-line notation is often more convenient:
HereverticalIntegral F σ T is the upward integral over
σ + it, -T <= t <= T.
Finite Rectangle Shift Certificates
RectangleShiftCert F σ₀ σ₁ T stores the finite identity:
verticalIntegral F σ₀ T =
verticalIntegral F σ₁ T
- topHorizontalIntegral F σ₀ σ₁ T
- bottomHorizontalIntegral F σ₀ σ₁ T
+ (2 * Real.pi * Complex.I) * residueSum
With the residue term as written, the identity matches the positively-oriented
rectangle residue theorem when σ₁ < σ₀ (a leftward shift). For σ₀ < σ₁ the
positively-oriented residue theorem yields the opposite sign on the residue
term, so a constructor for that case must negate the residues it stores.
Horizontal Vanishing
For limit-passing shifts, horizontal sides can be supplied directly:
or derived from explicit norm bounds: The bound certificate stores a nonnegative bound tending to zero and proves both horizontal side norms are bounded by it.Infinite Contour-Shift Certificates
ContourShiftCert F σ₀ σ₁ is the main limit-passing certificate. It stores:
- a height sequence
T : Nat -> ℝ; - finite rectangle certificates at each height;
- stable pole and residue data;
- left and right vertical-line limits;
- horizontal vanishing.
The chosen outputs are:
#check LeanCert.Analysis.ContourShift.ContourShiftCert.leftValue
#check LeanCert.Analysis.ContourShift.ContourShiftCert.rightValue
#check LeanCert.Analysis.ContourShift.ContourShiftCert.residueSum
There is also an existential version:
Intended Workflow
Use this layer when the analytic proof has already been decomposed as:
finite rectangle identity
+ horizontal side vanishing
+ vertical-line convergence
+ stable residue data
= contour shift identity
A project should prove the residue identities and analytic decay estimates in
project-specific files, then package them into RectangleShiftCert,
HorizontalBoundCert, and ContourShiftCert.
Current Scope
This layer does not yet automate:
- residue discovery;
- meromorphic-on-region hypotheses;
- infinite pole exhaustion;
- Laurent or simple-pole residue calculation.
Those are natural future constructors. The current API is the reusable orientation and limit algebra that those constructors should target.
Holomorphic and integrable constructors
The extension module provides constructors without changing the base certificate's sequence-relative semantics:
import LeanCert.Analysis.ContourShift.Decay
#check LeanCert.Analysis.ContourShift.RectangleShiftCert.ofHolomorphicStrip
#check LeanCert.Analysis.ContourShift.horizontalBoundOfStrip
#check LeanCert.Analysis.ContourShift.integral_vertical_eq_of_holomorphic_of_vanish
The last theorem uses absolute integrability to identify the certificate's limits with actual whole-line integrals. See the DBN application for proved holomorphy, decay, and the change of variables connecting the result to existing coefficients.