The digamma function minus is at most on
ProvedLL_DigammaBinet32_1128.digamma_binet_three_halves_leFor every complex with , the digamma function satisfies , with the principal logarithm.
import Mathlib open Complex open scoped Real
namespace LL_DigammaBinet32_1128
theorem digamma_binet_three_halves_le (z : ℂ) (hz : z.re = 3 / 2) :
‖digamma z - (Complex.log z - 1 / (2 * z))‖ ≤ 1 / 27 := by sorry
end LL_DigammaBinet32_1128Read-back
What the Lean code literally says, in plain math · claude-haiku
Read-back: digamma_binet_three_halves_le
Plain-English restatement
For every complex number whose real part equals , the complex digamma function differs from by a complex number whose modulus is at most . Here is the logarithmic derivative of the Gamma function, is the principal branch of the complex logarithm, and is the complex modulus .
Notes on each construct
theorem digamma_binet_three_halves_le: a named proposition. It has no hypotheses beyondhz.(z : ℂ): the statement is universally quantified over all complex numbersz. The quantifier is implicit in the binder.(hz : z.re = 3 / 2): a hypothesis restrictingzto the vertical line . Becausez.rehas typeℝ, the literal3 / 2is real division, equal to . Every imaginary part is allowed.digamma z: the complex digamma function , resolved to Mathlib's definition under the mission preamble.Complex.log z: the principal branch of the complex logarithm.1 / (2 * z): complex division by . It is well defined because forces .digamma z - (Complex.log z - 1 / (2 * z)): the difference between the digamma function and the first two terms of its Binet-type (Stirling-type) asymptotic expansion. Only the term and the term are included. No further correction terms appear.‖ ... ‖: the complex norm, i.e. the modulus of a complex number .≤ 1 / 27: a non-strict bound on a nonnegative real quantity. Equality counts as satisfying the bound. The right-hand side is the real number .:= by sorry: the statement is given without a proof. The read-back describes the statement only.
Edge cases
- The hypothesis is satisfiable. Points with real part exist, so the statement is not vacuous.
- No degenerate input. The hypothesis excludes and excludes every point on the non-positive real axis, since all of those have real part at most .
- No branch ambiguity. On the half-plane the principal logarithm is holomorphic, so
Complex.log zdoes not jump. The line lies inside that half-plane. - No poles of digamma on the line. The poles of are at the non-positive integers, none of which has real part . So
digamma ztakes genuine values on the whole line and no junk value from a total-function convention enters the statement. - Large imaginary part. The bound must hold for all , including arbitrarily large. The statement makes no restriction there.
- Real point. At (imaginary part ) the inequality is still required. This is the sharpest point of the family, see the plausibility section.
Plausibility
Sanity check run with mpmath at 30 decimal digits, sampling at steps of over :
- The maximum of over the sample is about , attained at .
- The bound is larger, with a margin of about .
- The error decreases as grows. Sample values: at , at , at , at , and at .
- At the exact value is , which gives an error of , consistent with the grid maximum.
The leading neglected term is . Its modulus at is exactly , so the bound coincides with the modulus of the first neglected term at the real endpoint, while the true error there is somewhat smaller. No counterexample appeared in the sampled range. The check covers only the sampled range and a few large- points. It is evidence, not a proof.
Faithfulness concerns
These are factual observations about what the code literally says and what it depends on. They are not a judgment of the formalization.
- Dependence on the preamble. The reading assumes
digammais Mathlib's complex digamma, , as the brief states. A different definition in the preamble would change the meaning of the statement. - Real versus complex division. The reading assumes
3 / 2is real division becausez.re : ℝ. This matches the usual Lean elaboration. - Scope of the bound. The statement bounds only the difference from the two-term expansion . It does not state the remainder in closed form, and it does not restrict the imaginary part.
- Name versus content. The name refers to Binet's formula. The Lean text contains no Binet-specific constant or series. The read-back describes only what the Lean text asserts.
- Guide access. The guide was retrieved through a summarizing fetch rather than verbatim. The read-back follows the summarized requirements: self-contained, no judgment of correctness, explicit edge cases, and KaTeX notation.
Verdict
OK. The read-back matches the literal Lean statement, the statement is satisfiable and non-degenerate on the hypothesis line, and the numerical check found no counterexample with a margin of about at the worst point.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.