Manuscript Offprint
arXiv:2610.39650Witnessed Boolean Contracts: Sound Local Distance Guarantees for Approximate Implicit CSG
Abstract
Hard min/max operations preserve the sign of exact implicit solids but generally destroy signed-distance semantics. A value-error budget alone cannot repair the problem: arbitrarily small, sign-preserving perturbations can rotate the normalized gradient by nearly a right angle and move a gradient-projected boundary witness by a finite amount. We formalize this obstruction as the absence of a value-only stability modulus for witness projection.
We then introduce a witnessed Boolean contract. At each query, the contract checks five items: the value error, the gradient error, positive reach, separation of the active branch, and a Lipschitz visibility margin at the approximate witness. A sharp normalization lemma turns the gradient-error bound into a bound on the normal direction. We enlarge the local neighborhood so that the inactive operand can be checked at the true foot point as well as at the approximate witness. Under the stated analytic and domain assumptions, passing these checks proves that the selected branch gives a true point on the union boundary. It also bounds the distance deficiency by the active operand's pointwise value error. If any check fails or cannot be evaluated, the result is Unknown. The same argument extends to any finite hard union by checking the selected witness against every inactive operand.
An executable audit checks the analytic budgets, derivatives, wrapped interval bounds, branch order, and each step of the proof on 75,738 certified samples; it finds no violations. A broader stress test uses spheres, capsules, ring tori, three Boolean operators, and a four-leaf union. Among 96,000 analytic narrow-band samples, 87,469 are certified with zero oracle violations;
*Corresponding author.
Email address: jypei@nuaa.edu.cn (Jeremy Pei) per-case coverage ranges from 72.67% to 98.30%. When the visibility check is removed, 75 truly invalid witnesses are accepted. Thus branch separation alone is not enough. The non-union rows are labeled as empirical tests, not as new theorems.
Keywords: signed distance field, constructive solid geometry, implicit modelling, certified geometry, witness point, interval arithmetic
1. Introduction
Implicit CAD describes a solid with a scalar field: the sign tells whether a point is inside or outside. If the field is the signed distance , its magnitude gives the distance to the boundary, and its gradient gives a surface normal almost everywhere. These properties are used in sphere tracing, offsets, narrow-band sampling, collision queries, and Hermite-data extraction for dual contouring [1, 2, 3, 4].
The standard hard union
gives the correct union sign for exact operands, but is not generally the signed distance to . In an overlap, the closest point on the selected primitive can lie inside the other solid and therefore be hidden from the union boundary. This is a familiar source of pseudo-distance behavior in implicit modelling [5, 6, 7], but the usual remedies—adding a global error label or re-distancing the field—do not answer a local question: is the projected point on the selected primitive really a point on the Boolean boundary?
This question shows that value accuracy and geometric stability are different. If an approximate field satisfies , its normalized gradient can still be nearly orthogonal to the true normal. A witness computed as can therefore remain far from the correct point even as . Consequently, neither a value budget nor sign preservation can justify a witness test by itself.
This paper gives a conditional guarantee for this local question. Instead of assigning one finite error bound to the whole Boolean field, it checks each query point separately. The test uses quantities supplied by an upstream certified implementation: value-error budgets for the operands, a gradient error bound for the cell, branch separation, a reach/tube check, and a Lipschitz bound on an enlarged box. If any required quantity is unknown, the test returns Unknown.
Contributions..
-
We prove that value accuracy and sign preservation admit no stability modulus for normalized-gradient witness projection (Theorem 1). The counterexample remains inside a positive-reach tube and keeps the field value arbitrarily accurate.
-
We derive a tight bound for normalizing a perturbed unit vector (Lemma 1) and combine it with value error to bound the approximate witness displacement (Lemma 2).
-
We formulate a witnessed Boolean certificate for consuming upstream value, gradient, and range certificates, and prove its soundness for binary hard union (Theorem 2) and any finite hard union (Corollary 2). In contrast to a global pseudo-SDF label, the theorem identifies the precise local obligations that make a finite deficiency bound valid.
-
We provide a reproducible proof-chain audit. It checks derivatives, wrapped interval arithmetic, branch order, and four analytic links on 75,738 certified samples, while explicitly separating proof, implementation validation, coverage, and empirical completeness. A second benchmark tests three analytic primitive classes, three Boolean operators, a four-leaf union, running time, reasons for rejection, and guard ablations. The four-leaf case tests the n-ary corollary. Intersection and difference are reported only as empirical tests.
The result is deliberately narrower than a new distance reconstruction method. It does not make the hard minimum a global SDF. It makes a local geometric statement checkable and safe to reject. Composition over mixed Boolean trees is not claimed here.
Barbier et al.'s Lipschitz Pruning [14] is a particularly close recent neighbor. It uses regional Lipschitz reasoning to replace a CSG subtree by an equivalent active operand, thereby accelerating evaluation of large primitive trees. Our regional question and output guarantee are different: the expression may already have selected the correct operand at the query while its projected foot point is hidden by another solid. We bound the displacement of that foot point under approximate values and normals, then certify Boolean-boundary visibility and distance deficiency. The comparison is summarized in Table 1.
Table 1: Relation to selected closest guarantees. "Regional" means that a claim can vary over space; it does not imply that the certified object is the same.
| Bálint et al. [11] | Lipschitz Pruning [14] | This work | |
|---|---|---|---|
| Primary goal | Precision and sphere-tracing convergence of SDF estimates under set operations | Faster regional evaluation by pruning equivalent CSG subtrees | Sound visibility of a projected primitive foot point |
| Operand model | Signed-distance estimates and lower bounds | Analytic/conservative 1-Lipschitz primitive trees | Approximate operands with explicit value and gradient budgets |
| Regional object | Accuracy described through spatial cases and set-contact smoothness | Active nodes or an equivalent local expression | Query witness, inflated transfer box, and branch-separation domain |
| Differential uncertainty | Geometry-dependent precision analysis | Lipschitz bounds for expression pruning | Explicit normalized-gradient direction error and witness displacement |
| Output guarantee | Precision/convergence bounds for the represented field | Same local expression value, or a conservative far-field constant | True Boolean-boundary witness and a deficiency budget, otherwise Unknown |
The same research line constructs exact polygonal signed-distance fields from cut-locus and Voronoi decompositions [12]. That work locates the structures governing multiple foot points and supplies exact operands. We address a different case: the operands may be approximate, and we certify one Boolean witness at a time. For exact operands, the value- and gradient-error terms disappear, but the reach and visibility checks are still needed.
Why prior guarantees do not imply witness soundness.. Field-precision bounds such as Bálint et al.'s control field values and tracing behavior, but they do not locate the foot point obtained from the normalized gradient. Lipschitz Pruning proves that two expressions agree in a region; it does not prove that the selected primitive foot point remains visible after the Boolean operation. Closest-point regularizers and recent consistent SDF interpolation methods repair or reconstruct a field rather than certify a query on the unmodified approximate Boolean result [13, 15]. Likewise, gradient-based SDF contouring constructs and filters candidate contact points but does not propagate operand value and gradient uncertainty through a Boolean visibility test [16]. None of these conclusions supplies the implication proved here: acceptance entails a true Boolean-boundary witness and a pointwise deficiency budget.
Certified evaluation of implicit fields.. Sphere tracing and guaranteed ray intersection rely on conservative field or Lipschitz information rather than on a representation label alone [17, 1]. Segment Tracing and Generalized Lipschitz Tracing use local or directional Lipschitz upper bounds to choose safe ray steps [18, 19]; Lipschitz Pruning uses such bounds to establish regional expression equivalence. In contrast, our transfer lemma uses to move an inactive-operand value guarantee across the inflated box enclosing witness uncertainty. Interval analysis provides a standard way to enclose function ranges and derivatives over cells [20, 21]; Duff's interval subdivision applies the same validated reasoning directly to implicit CSG [22]. Range analysis has also enabled guaranteed queries on neural implicit surfaces [23]. Our cell-wise phase bounds follow this tradition, but the certified predicate is different: it transfers visibility of a projected primitive foot point through an approximate Boolean computation.
SDF regularity and learned fields.. Marschner et al. [13] characterize pseudo-SDFs created by CSG operations on neural signed-distance fields and regularize closest-point behavior to improve the resulting field. Their method is a potential upstream producer of better operands; our contract instead consumes explicit local budgets and certifies a downstream Boolean-boundary witness.
Recent work has emphasized that an Eikonal residual does not by itself certify distance correctness and has developed improved regularizers or Lipschitz architectures [24, 25, 26]. Those methods aim to construct a better field. We instead assume that a field comes with explicit local budgets and ask what downstream Boolean statement can be proved from them.
Reach and nearest-point regularity.. The reach of a set controls uniqueness and regularity of nearest-point projection in a tubular neighborhood [27]. Positive reach is central to our theorem: it makes the true active-operand foot point well defined. Sharp features have zero reach and are outside the theorem's scope; this is reported as a limitation rather than hidden by sampling.
3. Preliminaries and problem statement
3.1. Signed distance and Boolean deficiency
We take inside a solid , on , and outside. For two solids , their approximate hard-union field is
Let be the branch selected by the approximate fields, and let be the other branch. When the selected branch is unambiguous, we define the local distance deficiency as
A positive means that the field under-reports the distance to the Boolean boundary.
Definition 1 (Value/sign contract). An approximate operand , satisfies a value/sign contract on if
The error budget can be a single global value, , or a value certified separately at each point.
3.2. Witnesses
Suppose branch is selected at . At a point where the true SDF is differentiable, write , with . The true foot point on the primitive and the approximate gradient witness are
For exact operands, is a valid point on the union boundary exactly when the other solid does not hide it. With approximate operands, both the location of and the inactive field value there are uncertain.
3.3. Three correctness notions
We use three different terms throughout the paper:
• soundness: certificate acceptance implies the geometric claim;
• completeness: every point satisfying the geometric claim is accepted;
• coverage: the fraction of sampled target points accepted.
Finding no violations is useful for checking the implementation, but it does not prove soundness; the analytic implication provides that proof. Similarly, 100% coverage on a finite sample does not prove completeness on the full continuous domain.
4. Value accuracy does not stabilize witnesses
The first result explains why a witnessed contract must contain differential information.
Theorem 1 (No value-only witness stability modulus). Fix . There is no function with as such that every sign-preserving approximation satisfying obeys
at all points with in the reach tube.
Proof. Take the planar SDF on a bounded box, where . Its zero set has infinite reach. Define
(8) where and . The multiplier is positive. Thus the sign is unchanged and . At , , while
Thus , orthogonal to the true normal . From (6),
although . Hence no modulus satisfying (7) exists.
Corollary 1 (Explicit Boolean witness instability). One can choose positive-reach solids A and B with and sign-preserving approximations with vanishing value error so that the true and approximate branch choices agree. Nevertheless, the true foot point lies on while the approximate witness lies inside B. Therefore a value/sign contract does not by itself validate a Boolean witness.
Proof. Let the active solid be the half-space , use the query , and apply the perturbation from Theorem 1 in the direction. The true foot point is . Here . Therefore the approximate witness approaches as ; explicitly,
Now choose as the closed ball with radius and center . We use its exact SDF, . Its boundary has positive reach, reach . The following four facts hold at the same time.
(i) The union is non-trivial. The rightmost point of is , so and .
(ii) The true foot point is outside . The distance is , with slack . Hence . Moreover, because contains the entire half-space , every satisfies . Thus , while equality is attained at , and therefore
The query has zero deficiency, so the failure concerns witness validity rather than the Boolean field value.
a
Variant 1:

B protrudes past A, but lies inside B
b
Variant 2:

B protrudes past A; outside B with margin
Figure 1: Geometry of Corollary 1, scaled by . In both variants the true foot point is visible on , whereas the perturbed-gradient witness lies inside . The right construction is used in the proof because the query also remains outside , with the maximal balanced slack .
(iii) The approximate witness is inside B. Because , the limiting witness lies inside the ball with slack . More explicitly,
whenever . Hence for all sufficiently large .
(iv) Both branch choices select A. Because ,
The query also lies outside B, with slack .
Meanwhile the active value error tends to zero and the inactive field is exact. Thus all parts of the counterexample hold at the same time.
Remark 1. Keeping the centre at q, the four claims required by the corollary—non-triviality, visibility of the true foot point, occlusion of the approximate witness, and branch agreement—hold exactly for . The balanced choice is . That simpler variant, however, places inside . Requiring in addition that forces the centre away from . If is the smaller of the witness-inside and query-outside slacks, the triangle inequality gives , and the construction above attains this bound.
Remark 2 (Why the certificate rejects the counterexample). At ,
so A6 already rejects the family once . Independently, for all sufficiently large , , hence . Since , subtracting any nonnegative transfer allowance cannot make the visibility expression in Section 5 positive. Thus A6 prevents an uncontrolled witness displacement, while the visibility guard independently prevents acceptance of the resulting occluded witness.
The theorem does not claim that every approximate SDF is unstable. It only shows that a value-error budget cannot prove stability by itself. A sound certificate must also include normal information, or it must replace the single witness by a set-valued enclosure.
5. A witnessed Boolean certificate
We now state sufficient conditions that can be checked at one point. Assume , so and ; the other case is symmetric.
5.1. Assumptions and certificate quantities
The theorem requires the following conditions.
A1 (positive reach).
The active primitive has reach( ) , and its true SDF is evaluated in the corresponding tube.
A2 (value budgets and domain closure).
Operand has a valid value contract on , with . At the query, the active operand additionally has a certified pointwise budget . The query satisfies . The source cell lies in the validity domain of the active gradient certificate, and the inflated box introduced below satisfies
A3 (sign semantics)
Both approximate operands preserve the signs of their referenced solids. This is part of the full field contract and supports inside/outside consumers. It is not a logical premise of the deficiency implication in Theorem 2, whose proof uses A2 directly.
A4 (tube stability).
With ,
A5 (certified branch separation).
For a fixed ,
A6 (legal normalization).
A certified gradient error satisfies
Define
and the conservative witness-position budget
Reach-sensitive design margin.. The factor is not required by Lemma 2, which gives the sharper displacement bound . We retain it as a conservative convention that grows as the query approaches the reach limit. Soundness uses only , and all reported certification results use this convention. Let be a convex box containing the segment , constructed by inflating the source cell around by in every coordinate. Let be a certified Lipschitz constant for on . The transferred visibility margin is
The full field contract also records A3. The witnessed deficiency certificate accepts a point only when A1, A2, A4–A6, and have all been verified.
5.2. Tight normal and witness bounds
Lemma 1 (Tight normalized-direction bound). Let and . Then
and the bound is attained.
Proof. The vector lies in the ball of radius centered at . The largest possible angle occurs when the ray through is tangent to this ball, so . The two unit directions are then separated by the chord , which is exactly (23). Equality is reached in this tangent case.
The commonly obtained triangle-inequality bound is valid but becomes larger than the trivial diameter two at . In contrast, (23) remains informative for every legal .
Lemma 2 (Witness displacement). Under A1, A2, A4, and A6,
Proof. Using (6),
The first term is bounded by ; the second by from Lemma 1. Since , the operational budget (21) is a conservative enlargement. A4 ensures that the true foot point and the normal used above lie in the legal reach tube.
Lemma 3 (Inactive-field transfer). If is -Lipschitz on a convex set containing , then
Proof. Apply the Lipschitz inequality and then Lemma 2. Enlarging the evaluation box by makes sure that it contains the required segment. The original, uninflated source cell may not contain that segment, so it would not complete the proof.
5.3. Soundness theorem
Theorem 2 (Witnessed Boolean contract soundness). Let . If , , and hold at , then the approximate active branch is also the true active branch, , and
Proof. Assume .
Branch stability. By A2 and A5,
Thus the approximate and true arg min agree.
Projection and transfer. By Lemma 2, , so the construction of places in that box. A2's domain-containment clause makes both the inactive value budget and its Lipschitz certificate valid at every point used below. By Lemma 3,
Since , the right-hand side is greater than . A2 now gives
Therefore the true primitive foot point lies strictly outside the inactive solid. Because , it follows that .
Finally,
(32)
which is (27).
Remark 3 (Fail-closed semantics). The theorem is conditional; it is not a global approximation claim. If the gradient bound reaches one, the branch gap is too small, the enlarged box cannot be bounded, or the margin is nonpositive, the method returns Unknown. Rejecting such a point reduces completeness but does not break soundness.
Corollary 2 (N-ary hard-union certificate). Let , , and let be the selected operand at . Assume , , and for the active operand, and interpret over all operands, including their query-point value budgets and validity domains. For every , assume the generalized branch condition
domain closure of the same inflated box , and a valid Lipschitz constant there. Define
If for all , then the approximate and true hard unions select , , and
Proof. Condition (33) applies the branch-stability argument to every inactive operand. Lemmas 2 and 3, followed by , give for every . Thus is outside all other solids and lies on the boundary of their union. The final distance inequality is identical to the last step of Theorem 2.
Corollary 3 (Exact witnessed region). For exact operands, if the selected primitive foot point is outside the inactive solid, then the hard-min magnitude equals the true union distance at that query point.
Proof. Exactness gives and makes the witnessed foot point a union-boundary point, hence true distance is at most . The hard minimum of exact signed distances is conservative for the union, giving the reverse inequality.
6. Certified implementation
6.1. Cell-wise bounds
The theorem does not depend on a particular representation. An implementation only needs to provide valid values of e and . Our verifier uses the following sign-preserving multiplicative family:
Because , the multiplier is positive. Differentiation gives
For an axis-aligned cell of half-width , wrapped trigonometric intervals provide and . Since an SDF is one-Lipschitz,
Evaluating only the cell center would not be valid when .
On the inflated box , a Lipschitz product bound gives
This proof uses the global one-Lipschitz property of signed distance and does not require differentiability of at every point of the box.
The certifier therefore uses bounds supplied by a trusted upstream method. For the analytic benchmark below, the known perturbation formula provides these bounds. Sampled or neural fields would need another certified source for , , e, and . Possible sources include interval automatic differentiation, verified interpolation, and certified Lipschitz networks. We do not provide a general method for producing these bounds.
For (36), the local active-field value budget used in (21) is
because .
6.2. Algorithm
Algorithm 1 lists the steps of the pointwise test. It uses a strict comparison whenever the proof needs a strict exterior or branch margin.
Algorithm 1 Pointwise witnessed-union certification
Require: , source cell , certified domains
1: ;
2: if or then
3: return Unknown
4: end if
5: if then return Unknown
6: end if
7: certify using (38)
8: if then return Unknown
9: end if
10: ; certify
11: if then return Unknown
12: end if
13: ;
14: compute by (21); inflate around by
15: if then return Unknown
16: end if
17: certify on the inflated box
18: if then return Unknown
19: end if
20: return
The trigonometric interval routine checks the interval endpoints and every extremum inside the interval. It handles negative phases, wrapping, and boxes wider than one period. Invalid points are masked before evaluation, so the routine never receives an infinite box; those points remain uncertified.
For the finite n-ary certificate in Corollary 2, the checks for the active operand remain unchanged. The implementation then applies the branch, domain, Lipschitz-transfer, and strict visibility checks to each inactive operand. It returns Cert only if all of these checks pass.
7. Experiments
The experiments check that the implementation follows the proof; they do not replace Theorem 2. The verification script stops with an error if any check fails. These checks cover the global value budget, finite-difference derivatives, tightness of the normal bound, interval containment, branch order, and every link in the proof.
7.1. Geometry and perturbation
The first experiment uses two balls of radius five, centered at and , inside . Their exact SDFs have closed-form expressions. We apply the perturbation (36) with
The exact maximum operand magnitude on the box is
We set , so the global value budget is exactly . Other parameters are , , a reach slack of 0.2, and a gradient-norm floor of 0.05. The source-cell width is .
For each frequency, rejection sampling with a separate random seed produces 20,000 points that satisfy and A5. We use another uniform sample of 40,000 points, with seed 7, to scan the band width. Coverage uses exact one-sided 95% Clopper–Pearson lower bounds.
7.2. Proof-chain validation
At every certified point, the audit checks the following four proof links and the branch choice:
branch:
link 1:
link 2: ,
link 3:
link 4:
Table 2 shows no measured violations among the 75,738 certified points. At frequency 3001, coverage falls because the method correctly rejects uncertain points. Its sampled minimum margin is -10.6406, whereas the minima for frequencies 101, 301, and 1001 are respectively 0.2879, 0.2798, and 0.1974. A negative margin causes rejection rather than a false certificate.
Table 2: Targeted , A5-separated samples. “Viol.” is the sum of branch-order and four proof-link violations on certified points. The confidence limit concerns coverage, not the analytic soundness theorem.
| ω | samples | certified | coverage | 95% lower | viol. |
|---|---|---|---|---|---|
| 101 | 20,000 | 20,000 | 100.000% | 99.9850% | 0 |
| 301 | 20,000 | 20,000 | 100.000% | 99.9850% | 0 |
| 1001 | 20,000 | 20,000 | 100.000% | 99.9850% | 0 |
| 3001 | 20,000 | 15,738 | 78.690% | 78.2081% | 0 |
| Total | 80,000 | 75,738 | — | — | 0 |
Table 3: Band scan at ω = 1001 on 40,000 uniform samples. The A5-separated result is conditional and is never substituted for the whole-band number.
| τ | whole-band coverage | A5 coverage | ||
|---|---|---|---|---|
| 0.05 | 96.16% | 365 | 100.00% | 351 |
| 0.10 | 96.14% | 725 | 100.00% | 697 |
| 0.20 | 93.59% | 1,404 | 97.55% | 1,347 |
| 0.30 | 73.14% | 2,122 | 76.42% | 2,031 |
| 0.50 | 46.74% | 3,513 | 48.71% | 3,371 |
Before the proof-chain test, four independent guards pass: the analytic value budget equals 0.05; finite differences agree with the implemented perturbation gradient to a worst relative error of ; the observed-to-analytic ratio for Lemma 1 is 0.99993; and 400 wrapped interval tests show no containment violation.
7.3. Band scope and branch separation
Branch separation is one of the theorem's conditions. Reporting coverage only after this filter can make whole-band coverage look too high. Therefore Table 3 reports both counts from the same uniform sample.
At , 28 of the 725 whole-band samples fail at least one check, so the entire band is not covered. All 697 samples that satisfy A5 are certified. This shows that branch separation is useful in the sample, but it does not prove certification of every A5-separated point in the continuous band.
(a) Derivative guard:
(b) Pointwise proof-chain audit

(c) Empirical premise for Proposition C'
Figure 2: Implementation and proof-chain audit. (a) A finite-difference guard detects the historical sine/cosine error in the z-derivative. (b) Every certified sample satisfies branch order and all four proof links; high frequency reduces coverage rather than soundness. (c) The sampled margin is positive through and negative at 3001. Sample minima are not continuous-domain infima.
7.4. Heterogeneous primitives, Boolean variants, and cost
We next test the same contract on exact analytic SDFs for spheres, capsules, and ring tori. Five pairings give different curvatures and medial structures. Each operand is perturbed as in (36), with an operand-specific chosen from a rigorous boundary-point distance bound on a contract box one unit wider than the sampling box. We use , , , and rejection-sample 6000 points per case from . We reject a source cell or enlarged transfer box if it leaves the declared contract domain. For a capsule with endpoint , radius , and unit axis , the bound uses the genuine boundary point , where and .
Table 4: Coverage on heterogeneous analytic narrow bands; 6000 samples per entry. “I” and “D” are empirical sign-dual audits. Every accepted sample has zero exact-oracle violation.
| Primitive pairing | Union | Intersection (I) | Difference (D) |
|---|---|---|---|
| Sphere-sphere | 98.30% | 90.65% | 97.58% |
| Sphere-capsule | 98.18% | 84.75% | 97.02% |
| Torus-sphere | 97.50% | 88.77% | 96.92% |
| Capsule-capsule | 92.80% | 77.70% | 89.07% |
| Torus-capsule | 92.03% | 72.67% | 89.47% |
| Four-leaf nested union | 94.42% | — | — |
The binary-union rows exercise Theorem 2. For intersection we replace the minimum and exterior test by a maximum and an interior test; for difference we use . These two sign-dual variants are checked against exact analytic oracles but are not presented as new theorems. The final row evaluates a depth-three syntax tree whose four leaves are combined only by hard union. Associativity makes it an n-ary minimum, and the implementation checks the selected witness against every inactive leaf as required by Corollary 2. It does not establish composition for mixed Boolean trees.
Across all 16 cases, 87,469 of the 96,000 band samples are certified, for a mean coverage of 91.11%. The exact oracle finds no branch, projection, transfer, or visibility violation among the accepted points. The fail-closed checks reject 8305 points for insufficient branch separation, none for the tube/normal condition, and 226 for the transferred visibility margin. On an Apple M1 Pro, seven warm vectorized NumPy runs for each 6000-point batch have a median cost of about 1.5 s per query across the cases; rejection sampling and file I/O are excluded. This number measures batch throughput, not the latency of one scalar query. The four-leaf union costs approximately 2.6 s per query.
(a) Heterogeneous analytic CAD

(b) Sequential guard outcomes
(c) Guard ablations (acceptance, not soundness)
Figure 3: Expanded analytic benchmark. (a) Coverage changes with geometry and operation. (b) Most rejected points fail the conservative branch-separation check. (c) The tight normal bound raises mean acceptance from 90.85% to 91.11%. Using the original box gives 91.12% acceptance and no failure in the sampled oracle, but the box no longer supports the transfer proof. Using only the branch gap gives 91.35% acceptance but admits 75 witnesses that fail the visibility oracle. This shows why the witness margin is needed. All oracle counts describe only the finite sample.
7.5. Conditional narrow-band completeness
The experiments point to a stronger possibility: there may be a positive for which every A5-separated point with is certified. We do not state this as a theorem. A proof would require the following uniform facts on the separated zero level set :
together with a valid flow or distance argument from the tube to . These would imply and hence any would suffice. The measured is only an order statistic and cannot replace . Narrow-band completeness therefore remains a conditional direction for future work.
8. Discussion
What the contract recovers.. A global deficiency bound for a hard Boolean field can be infinite even when most queries have visible primitive witnesses. Theorem 2 avoids this problem by adding geometric and differential checks and making a claim only for accepted points. Its error budget can vary over space and can be checked by a program.
Why branch gap alone is insufficient.. A5 guarantees only that the approximate and true arg min agree at the query point. It does not guarantee that the primitive foot point is visible on the Boolean boundary. The transferred margin S > 0 checks this second fact. Each check therefore protects a different step of the proof. In the expanded audit, branch separation alone accepts 75 witnesses that fail the exact visibility oracle; the full certificate accepts none of them.
Implications for adaptive dual contouring.. Dual contouring consumes Hermite intersections and normals [3]. A value-only error budget can certify neither normal direction nor the validity of the primitive surface that generated a Hermite sample. The witnessed contract can serve as a safe filter for such data. Every accepted sample has a certified point on the Boolean boundary and a bound on its normal error. The present paper does not prove that the QEF is well conditioned or that an adaptive mesh is free of cracks. Those properties need additional conditions on cell topology and the linear system.
Proof versus validation.. The gradient bug found during this study shows why both kinds of checking are needed. A wrong derivative once produced no end-to-end violations because the certificate was conservative. A finite-difference test and checks of each proof step exposed the error. Conversely, even a perfect numerical run cannot prove a statement for every possible input. The analytic proof establishes the general result; the executable audit checks the implementation.
9. Limitations
First, A1 does not cover sharp primitives or points on the medial axis. At the edges and corners of boxes and polyhedra, the reach is zero. Covering these cases would require set-valued normals or a projection method that tracks features.
Second, the paper proves hard union, including the finite n-ary extension in Corollary 2. Intersection and difference admit analogous witness predicates, but their sign cases and inactive-boundary conditions should be stated and proved separately. Deep CSG trees also require a domain-propagation theorem so that a local certificate is not silently applied outside its validity set. The n-ary result therefore does not establish composition for trees that mix Boolean operators.
Third, (38) and (39) apply specifically to the multiplicative perturbations used in the benchmark. Learned or sampled fields need their own certified derivative and range bounds. These might come from interval automatic differentiation, Lipschitz networks, or verified interpolation.
Fourth, the experiments include spheres, capsules, and ring tori, but all fields are analytic and use the same type of multiplicative perturbation. The results therefore do not establish coverage for sampled grids, neural implicit fields, sharp CAD parts, or large heterogeneous models. In those settings, coverage and cost may change with Boolean depth, curvature, branch separation, and the quality of the upstream derivative bounds.
Finally, Proposition C' concerns complete certification of a separated band with positive width. It remains conditional on the global quantities in (43). The positive sample minima for support the proposition, but they are not a lower bound over the full continuous domain.
10. Conclusion
Checks for approximate implicit fields must match the geometric operation that uses the field. Even when the sign is exact, a value-error budget does not stabilize a witness computed from the normalized gradient. A larger scalar tolerance is not enough. The certificate also needs branch separation, a normal-error bound, positive reach, and a visibility margin that remains valid over a certified neighborhood.
The witnessed Boolean contract puts these checks in one explicit test. When all analytic checks pass and the margin is positive, the selected primitive provides a real point on the union boundary. The true-distance deficiency is then bounded by the active operand's pointwise value-error budget. The implementation returns Unknown when a check cannot be proved. Its reproducibility tests verify each computational step but do not treat sampled agreement as a proof. These results provide a basis for spatially varying contracts in implicit CAD and for later guarantees on normals and QEF stability in adaptive contouring.
Reproducibility and data availability
The accompanying files include the proof-chain verifier, the heterogeneous CAD benchmark, the JSON results, and the generated figures. The verification scripts use NumPy and Matplotlib. They compute the Clopper–Pearson bound with the Python standard library, so SciPy is not needed. Their success message also states that sampling is not a proof. All fixed parameters and random seeds used in the tables are given in Section 7.
Declaration of generative AI and AI-assisted technologies
During preparation of this manuscript, the author used OpenAI Codex to help organize the paper, audit proofs, review code, check reproducibility, and edit the language. The author checked the mathematical arguments, references, source code, experimental results, and generated text, and accepts responsibility for the published content.
References
[1] J. C. Hart, Sphere tracing: a geometric method for the antialiased ray tracing of implicit surfaces, The Visual Computer 12 (10) (1996) 527–545. doi:10.1007/s003710050084.
[2] S. F. Frisken, R. N. Perry, A. P. Rockwood, T. R. Jones, Adaptively sampled distance fields: a general representation of shape for computer graphics, in: Proc. SIGGRAPH, 2000, pp. 249–254.
[3] T. Ju, F. Losasso, S. Schaefer, J. Warren, Dual contouring of Hermite data, ACM Transactions on Graphics 21 (3) (2002) 339–346.
[4] K. Museth, VDB: high-resolution sparse volumes with dynamic topology, ACM Transactions on Graphics 32 (3) (2013) 27:1–27:22.
[5] J. Bloomenthal (Ed.), Introduction to Implicit Surfaces, Morgan Kaufmann, 1997.
[6] A. Pasko, V. Adzhiev, A. Sourin, V. Savchenko, Function representation in geometric modeling: concepts, implementation and applications, The Visual Computer 11 (8) (1995) 429–446. doi:10.1007/BF02464333.
[7] B. Wyvill, A. Guy, E. Galin, Extending the CSG tree: warping, blending and Boolean operations in an implicit surface modeling system, Computer Graphics Forum 18 (2) (1999) 149–158.
[8] M. W. Jones, J. A. Bærentzen, M. Šrámek, 3D distance fields: a survey of techniques and applications, IEEE Transactions on Visualization and Computer Graphics 12 (4) (2006) 581–599.
[9] A. Ricci, A constructive geometry for computer graphics, The Computer Journal 16 (2) (1973) 157–160. doi:10.1093/comjnl/16.2.157.
[10] V. Shapiro, Semi-analytic geometry with R-functions, Acta Numerica 16 (2007) 239–303. doi:10.1017/S096249290631001X.
[11] C. Bálint, G. Valasek, L. Gergó, Operations on signed distance function estimates, Computer-Aided Design and Applications 20 (6) (2023) 1154–1174. doi:10.14733/cadaps.2023.1154-1174.
[12] Cs. Bálint, R. Bán, G. Valasek, Computing the cut locus, Voronoi diagram, and signed distance function of polygons, Computer Aided Geometric Design 114 (2024) 102388. doi:10.1016/j.cagd.2024.102388.
[13] Z. Marschner, S. Sellán, H.-T. D. Liu, A. Jacobson, Constructive solid geometry on neural signed distance fields, in: SIGGRAPH Asia 2023 Conference Papers, 2023, pp. 1–12. doi:10.1145/3610548.3618170.
[14] W. Barbier, M. Sanchez, A. Paris, E. Michel, T. Lambert, T. Boubekeur, M. Paulin, T. Thonat, Lipschitz Pruning: hierarchical simplification of primitive-based SDFs, Computer Graphics Forum 44 (2) (2025) e70057. doi:10.1111/cgf.70057.
[15] L. Chen, S. Mupparaju, C. Batty, S. Sellán, O. Stein, Greed for the spheres: a signed distance interpolation method, arXiv:2605.01919, 2026.
[16] M. Kohlbrenner, M. Alexa, Contouring signed distance fields by approximating gradients, Computer Graphics Forum (2026) e70373. doi:10.1111/cgf.70373.
[17] D. Kalra, A. H. Barr, Guaranteed ray intersections with implicit surfaces, Computer Graphics (SIGGRAPH '89) 23 (3) (1989) 297–306.
[18] E. Galin, E. Guérin, A. Paris, A. Peytavie, Segment tracing using local Lipschitz bounds, Computer Graphics Forum 39 (2) (2020) 545–554. doi:10.1111/cgf.13951.
[19] R. Bán, G. Valasek, Generalized Lipschitz tracing of implicit surfaces, Computer Graphics Forum 44 (1) (2025) e15202. doi:10.1111/cgf.15202.
[20] R. E. Moore, Interval Analysis, Prentice-Hall, 1966.
[21] J. M. Snyder, Interval analysis for computer graphics, Computer Graphics (SIGGRAPH '92) 26 (2) (1992) 121–130.
[22] T. Duff, Interval arithmetic and recursive subdivision for implicit functions and constructive solid geometry, Computer Graphics (SIGGRAPH '92) 26 (2) (1992) 131–138. doi:10.1145/142920.134027.
[23] N. Sharp, A. Jacobson, Spelunking the deep: guaranteed queries on general neural implicit surfaces via range analysis, ACM Transactions on Graphics 41 (4) (2022).
[24] H. Yang, Y. Sun, G. Sundaramoorthi, A. Yezzi, StEik: stabilizing the optimization of neural signed distance functions and finer shape representation, in: Advances in Neural Information Processing Systems, 2023.
[25] Z. Wang, C. Wang, T. Yoshino, S. Tao, Z. Fu, T.-M. Li, HotSpot: signed distance function optimization with an asymptotically sufficient condition, in: Proc. IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2025, pp. 1276–1286.
[26] G. Coiffier, L. Bethune, 1-Lipschitz neural distance fields, Computer Graphics Forum 43 (5) (2024) e15128. doi:10.1111/cgf.15128.
[27] H. Federer, Curvature measures, Transactions of the American Mathematical Society 93 (3) (1959) 418–491.