Alphabeta Math
AlgorithmAlgorithm: AI-adaptedProof: Not applicablePipeline-generatedprecheck pending
How statement and proof provenance work

The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.

  • Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
  • AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
  • AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.

These labels describe origin, not correctness: citations and verification chips remain separate evidence.

Certified range evaluation for elementary real and complex functions

Definition

Input: a finite, well-formed, typed expression DAG with one or more designated output nodes; finite real interval or complex rectangle assignments for its input nodes; exact dyadic constants or constants supplied with certified enclosing intervals/rectangles; a finite dyadic format (p,emin⁡,emax⁡) with p≥2 and emin⁡≤emax⁡; and an integer truncation index N≥1. Input interval endpoints and supplied constant enclosures use this format. All constants, including every Machin enclosure of π, use the same fixed N and format throughout a call. Real nodes support input and constant nodes and the operations +,−,×,÷,x,exp⁡,ln⁡,arctan⁡,sin⁡,cos⁡,tan⁡. Complex nodes support input and constant nodes and +,−,×,÷,exp⁡,Log⁡. Each operation has homogeneous real or complex inputs of its stated type; no implicit conversion between real and complex nodes is performed. Unsupported node types, arities, or type combinations return inconclusive with the offending node.

Output: a finite interval/rectangle enclosure for every designated output node, or one of empty, entire, domain-error, split-domain, overflow, or inconclusive with the node and unresolved domain piece. If any supplied input is empty, return empty. No value from a system libm routine is treated as a certified endpoint. Each DAG node is evaluated once; shared nodes reuse their interval/rectangle enclosure and do not preserve correlations between distinct paths.

  1. Check that node identifiers are unique, all references resolve, every designated output is a node, and the supported node types and arities above hold. Use each supplied input enclosure as its node value. For an exact real dyadic constant c, use [rd⁡(c),ru⁡(c)] in the selected format. For an exact complex dyadic constant, do this to each coordinate. A finite subnormal endpoint remains a valid endpoint; if a coordinate conversion overflows, return overflow with that constant node. Use a supplied certified constant enclosure as given. Construct a topological order by repeatedly removing a node whose predecessors have already been removed, breaking ties by lexicographically smallest node identifier. If no such node exists before all nodes are ordered, return inconclusive with a node in the cycle. Evaluate nodes in this order and store each finite enclosure for its successors. Arithmetic nodes use Outward-rounded interval, rectangle and ball operations; if an operation returns a non-finite status, propagate it immediately with its node and unresolved piece. For X require X⊆[0,∞) and for ln⁡X require X⊆(0,∞); otherwise return domain-error rather than silently discarding points.

  2. For a real exponential node, set s=max⁡(0,emax⁡+2) using the format in Dyadic floating-point format and directed rounding. Since Nmax⁡<2emax⁡+1, exact comparison gives Nmax⁡/2s<1/2. For its input interval X, form the exact dyadic interval U=2−sX without storage rounding. Evaluate the degree-N exponential polynomial and add the symmetric tail from Range-reduced exponential, logarithm and arctangent series have certified tails, using max⁡u∈U∣u∣<1/2, by exact rational interval arithmetic. Round only the resulting interval endpoints outward, then square that interval s times. If its lower endpoint is not positive or an endpoint overflows, return inconclusive or overflow with the node and input interval.

For a real logarithm node, first require X⊆(0,∞). List all integers j for which Xj=X∩[2j,2j+1] is nonempty; exact endpoint comparisons find this finite list because X has positive finite endpoints. On each piece form Y=2−jXj⊆[1,2] and V=(Y−1)/(Y+1) by exact rational endpoint formulas without storage rounding, so V⊆[0,1/3]. Evaluate the logarithm polynomial and its tail determined by max⁡∣V∣ by exact rational interval arithmetic, round the result outward, and form jln⁡2+ln⁡Y by outward arithmetic. Compute the fixed enclosure for ln⁡2 once by the same series and tail at y=2, hence v=1/3, and reuse it in every bin. If any piece cannot be evaluated finitely, propagate its status and that piece. Otherwise take the interval hull of all piece enclosures as the node enclosure.

  1. Partition a real arctangent input at the fixed breakpoints −3,−1,−1/2,1/2,1,3 into nonempty closed pieces, allowing shared endpoints. On pieces in [−1/2,1/2], evaluate its alternating power series. For positive pieces in [1/2,1], use arctan⁡t=π/4−arctan⁡((1−t)/(1+t)); in [1,3], use arctan⁡t=π/4+arctan⁡((t−1)/(t+1)); for t≥3, use arctan⁡t=π/2−arctan⁡(1/t). Evaluate negative pieces by odd symmetry. Form each reduced interval by exact rational endpoint formulas and evaluate its polynomial and symmetric tail by exact rational interval arithmetic before outward conversion; every reduced argument lies in [−1/2,1/2]. Combine the converted enclosure with the fixed π enclosure by outward arithmetic. Enclose π using Machin's identity and the alternating series at 1/5 and 1/239, forming rational partial sums and tail endpoints exactly before final outward conversion. If every piece is finite, take the interval hull of all piece enclosures. If any branch test or piece is unresolved, return its non-finite status with that piece and do not use a partial hull.

  2. For each sine or cosine node, first compute one outward Machin interval PN for π using the same N and format, combining the rational series endpoints exactly before final outward conversion. If PN is non-finite or its lower endpoint is not positive, return inconclusive. For finite input X=[a,b], put MX=max⁡(∣a∣,∣b∣), p−:=inf⁡(PN)>0, and K=⌈2MX/p−⌉+1, with the ceiling computed by exact rational comparisons. If the width of X is at least 2sup⁡(PN), outward-round the exact endpoints −1 and 1; if either conversion overflows, return overflow with the node and input interval, and otherwise return the resulting interval. Otherwise examine the finite candidate list k=−K,…,K for the canonical cells [kπ/2−π/4,kπ/2+π/4]. For each candidate form the exact rational interval enclosure Ck=kPN/2+[−1/4,1/4]PN of its canonical cell. For k>K, the exact left endpoint (2k−1)π/4 of cell k is at least (2k−1)p−/4>MX; for k<−K, its exact right endpoint −(2∣k∣−1)π/4 is at most −(2∣k∣−1)p−/4<−MX. Thus no omitted exact cell can intersect X. Include each candidate whose Ck intersects X; exclude only candidates whose intersection is empty by exact comparison. Let Xk be the exact interval hull of X∩Ck, without rounding these endpoints, and form the residual enclosure Rk=Xk−kPN/2. Certify Rk⊆[−1,1], evaluate the sine polynomial through degree 2N+1 or the cosine polynomial through degree 2N, and add the corresponding explicit geometric tail from Trigonometric identities, Machin's formula and reduced Taylor tails by exact rational interval arithmetic. For j∈{0,1,2,3} the quarter-period map for a sine node is respectively sin⁡r,cos⁡r,−sin⁡r,−cos⁡r, and for a cosine node it is respectively cos⁡r,−sin⁡r,−cos⁡r,sin⁡r, where j is the least nonnegative residue of k modulo 4. For a negative sign, negate the interval and reverse its endpoints. Intersect each mapped enclosure with [−1,1]. Round the final endpoints outward and take the hull over every included cell. If no candidate is included, a cell cannot be certified in the reduced interval, or any candidate endpoint overflows, return inconclusive or overflow with the cell; never omit that piece from a finite hull.

For tangent, form the same finite canonical-cell list even when the input width meets the wide-input shortcut; do not use that shortcut. For each included cell k, form its reduced input interval Rk as above and evaluate sine and cosine on that cell. Divide their enclosures only when the cosine enclosure excludes zero. Otherwise, for odd k, form the exact dyadic pole enclosure Kk=kPN/2. If Kk is contained in the cell's input intersection, then kπ/2 lies in that cell and is a cosine zero, so return split-domain with the cell. If the cosine enclosure contains zero but this pole test does not certify a zero, return inconclusive with the cell. Take the interval hull of tangent enclosures only when every piece is finite.

  1. For complex exponential on X+iY, evaluate real exp⁡(X), cos⁡(Y), and sin⁡(Y) and combine their enclosures by rectangle operations. For principal Log⁡, first require a rectangle excluding zero and every point of the negative real branch cut; otherwise return domain-error. Compute an outward Machin interval PN for π using this call's N and format; if it is non-finite or its lower endpoint is not positive, return inconclusive. Split each coordinate interval into its nonempty strictly negative and strictly positive portions, plus the singleton {0} when it contains zero. Use the closures of the strictly signed portions as interval enclosures; form their Cartesian products for the quadrant pieces, and handle products with an axis singleton separately. Omit empty pieces. These finitely many pieces cover the rectangle, with quadrant closures allowed to overlap their axis pieces. On a quadrant where the denominator interval excludes zero, use Arg⁡(x+iy)={arctan⁡(y/x),x>0, y>0,−arctan⁡((−y)/x),x>0, y<0,π−arctan⁡(y/(−x)),x<0, y>0,−π+arctan⁡((−y)/(−x)),x<0, y<0. Write this call's fixed interval as PN=[p−,p+] and form the exact dyadic sector intervals SI=[0,p+/2],SII=[p−/2,p+],SIII=[−p+,−p−/2],SIV=[−p+/2,0]. For every ratio-based quadrant piece, obtain its finite real arctangent enclosure by the real rules above; propagate any non-finite result. Form the full argument interval A in the displayed quadrant formula by exact rational endpoint arithmetic, using this same PN for each occurrence of π. Before final outward conversion or hull formation, replace A by J=A∩Sq, where q is that piece's quadrant. Compute the intersection by exact endpoint maxima and minima. If it is empty, return inconclusive with the piece and status empty-argument-intersection; do not omit the piece. If the denominator interval has a zero endpoint, use J=Sq instead of a ratio formula.

For an interval J=[a,b] produced by either branch, apply the same final conversion H(J)=[rd⁡(a),ru⁡(b)] in the selected format. Perform this conversion after intersection for a ratio branch and after selecting Sq for a coarse branch. Finite subnormal endpoints are accepted; an overflow returns overflow with the piece. On the positive imaginary axis use H(PN/2), on the negative imaginary axis use H(−PN/2), and on the positive real axis use H([0,0]). The initial domain check excludes the origin and negative real axis, so these are all remaining axis cases.

On each piece enclose ln⁡X2+Y2 using the real operations and evaluator, and combine it with the converted argument interval into a rectangle. If every piece is finite, take the coordinatewise hull of all piece rectangles. If any piece, conversion or branch is unresolved, return its status and piece without forming a partial hull.

Depends on

Used by

Dependency tree · two levels

20 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.

Sources