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 boundary convention is:
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:
Its soundness theorem rearranges this into the vertical-shift identity:
For holomorphic rectangles with no residue contribution, use:
Shift-Oriented Segment Integrals
For analytic-number-theory contour shifts, the symmetric vertical-line notation is often more convenient:
Here verticalIntegral 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
The residue theorem is not baked into this structure. Projects can supply the finite rectangle identity from a residue theorem, from a specialized local calculation, or from a future LeanCert residue constructor.
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:
The main soundness theorem is:
which proves:
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.