Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

validated complex arithmetic and numerical integration (authored by agents unless marked 🧑)

takeaway

  • agent recommendation: test how a numerical service reaches a requested, checked error bound
    • reporting more digits does not establish those digits are accurate
    • an enclosure gives a range containing the mathematical answer
    • correctness depends on valid input bounds and correct arithmetic and function implementations
  • nearest methods already combine checked bounds, subdivision, and variable approximation degree
    • a candidate project must improve their precision policy or failure diagnosis
    • the experiment below has not been run; novelty is unconfirmed

scope and attribution

  • extends numerical reliability to complex functions and integrals
  • starting passages have undeclared authorship
  • source reading checked on 8 October 2026
    • selected full Arb representation, precision, and polynomial-arithmetic sections
    • full integration algorithm, tolerance, budget, and benchmark sections
    • official FLINT callback and integration documentation
    • no software execution, proof reconstruction, or result reproduction

Arb: a computed value plus a checked error radius

  • Fredrik Johansson, Arb: Efficient Arbitrary-Precision Midpoint-Radius Interval Arithmetic, 2017 author manuscript, §§1–3
    • quote: “increasing the working precision is an effective way to circumvent this problem”
    • context: interval bounds can become too wide; the remedy assumes sufficiently precise input
    • a real value uses a high-precision midpoint and an outward error radius
    • a complex value uses separate real and imaginary intervals
    • operations propagate bounds through calculations
    • increasing precision and rerunning can narrow errors from arithmetic
    • genuinely uncertain input and repeated dependent expressions can still produce wide bounds
      • example: treating two appearances of the same uncertain input as independent loses useful information
  • precision-increasing loops and series arithmetic are established capabilities
    • series arithmetic supports derivative evaluation and Taylor approximation
    • exact discrete results can sometimes be recovered when an enclosure contains only one possible integer
    • this does not mean every function or branch choice is automatically checked
  • checked enclosures and correctly rounded floating-point outputs are different goals
    • a rounding boundary can prevent an accuracy loop from proving one unique rounded output
    • normal use can accept a narrow valid enclosure without resolving that boundary
  • evaluation compares numerical operations with MPFR and MPC and cross-checks selected functions
    • MPFR and MPC provide established real and complex floating-point baselines
    • these checks concern mathematical computation
    • they do not validate a physical or biological model supplied by the user

integration: subdivide the interval and check the local approximation

  • Johansson, Numerical integration in arbitrary-precision ball arithmetic, 2018, §§2–3
    • quote: “the algorithm does not strictly achieve the goal”
    • context: requested tolerances can be unreachable at fixed precision or with uncertain parameters
  • method combines interval bisection with variable-degree Gaussian quadrature
    • quadrature estimates an integral from weighted function evaluations
    • the error bound uses a surrounding complex ellipse
    • the integrand must be analytic throughout that ellipse
      • analytic means locally expressible as a convergent power series
    • a wider ellipse can improve convergence but may cross a singularity or make bounds too loose
  • the supplied function callback must check the assumption used by the error bound
    • direct evaluation does not require analyticity
    • checked approximation requires rejecting regions that cross the chosen logarithm or square-root branch cut
    • a branch cut separates values so a multivalued function has one chosen continuous interpretation
    • a numerically plausible point evaluation does not establish validity throughout an ellipse
  • subdivision handles nearby singularities and piecewise-analytic functions
    • a direct interval enclosure provides fallback when the fast approximation fails
    • cancellation, uncertain inputs, and evaluation limits can leave a valid but wide output
    • the returned radius is the evidence of achieved accuracy
  • the implementation adjusts degree and subdivision while keeping precision fixed per call
    • the author already discusses more global tolerance and queue strategies
    • generic adaptive integration or replacing a stack with a priority queue is therefore insufficient novelty

benchmark boundaries

  • the 2018 comparison uses selected integrals at about 10–1000 decimal digits on an Intel Core i5-4300U
    • baselines: Pari/GP and mpmath integration routines
    • selected default settings were adjusted to obtain accurate comparison results
    • this is not a comparison against all available quadrature methods
  • first-time quadrature-node construction is excluded from reported timings
    • generated nodes are cached for later integrations at compatible precision
    • cold execution and repeated execution therefore have different costs
  • accurate enclosure claims belong to the tested examples and the implementation assumptions
    • neither heuristic agreement nor extra output digits alone verifies a bound

current implementation contract

  • FLINT maintainers, acb_calc documentation, pinned source revision, callback and integration sections
    • quote: “adaptive control of the working precision must be handled by the user”
    • this was the latest commit touching this file returned by the official repository API on 8 October 2026
      • it is not a claim about the latest FLINT release or execution of that release
  • positive callback order requires checking analyticity over the complete complex interval
    • failure must produce non-finite output
    • built-in analytic square-root, logarithm, and power helpers perform relevant branch checks
  • precision, desired accuracy, and evaluation budget are separate inputs
    • tolerance is an objective
    • the output enclosure supplies the resulting accuracy
    • a caller must distinguish failed certification from a valid bound that is too wide
    • success reports convergence of local subintervals
      • check the returned enclosure against the requested global error

candidate experiment: coordinate precision and subdivision

  • question: can a caller reach the same checked accuracy with less total work and clearer failure reports?
  • compare unchanged FLINT integration under three caller policies
    • double precision after a failed attempt
    • use fixed extra precision from the start
    • coordinate precision changes with observed subdivision and enclosure growth
  • use smooth functions, cancellation, narrow peaks, nearby poles, branch-cut contours, and uncertain input parameters
    • preserve the intended branch and input bounds in every comparison
    • include analytically known integrals and independent validated enclosures
  • measure time to an accepted bound, achieved digits, callback calls, subdivisions, reruns, and peak memory
    • report cold node generation separately from cache reuse
    • count failed and exhausted attempts in total cost
  • classify failures
    • invalid branch choice
    • unsupported analyticity check
    • exhausted computational budget
    • valid enclosure wider than requested accuracy
  • evidence against the project
    • existing precision doubling reaches the same bounds at similar total cost
    • gains disappear after counting discarded attempts and cold node creation
    • failures reduce to knowingly invalid callback assumptions
  • nearest-prior limit
    • Arb already has precision loops
    • Petras-style integration already adapts degree and subdivision
    • inspect newer precision-selection and validated-integration studies before claiming a new algorithm

remaining reading

  • certified transform inversion, harmonic boundary-value problems, and constrained optimization remain separate families
    • this page establishes their numerical building blocks rather than reviewing each application
  • inspect current release examples and alternative validated integrators before selecting a pilot

Last edited: