Documentation

CslibFrontier.Computability.Circuit.Frontier.Layouts.Gaussian.PairBound.CertChecker

Exact fixed-point interval certificate checker for matched-pair Gaussian majorants #

This module defines the pure-integer fixed-point interval arithmetic (Ival at scale 10 ^ 8), polynomial arccos majorant tables (starQI, crossQI), and balanced-tree stack-machine certificate verifier (Prog, runProg, checkBox) used to certify pairCost u 0 ≤ 27735 / 100000 across the 6-dimensional admissible Gram space. Splitting interval evaluations into short strict stages returning Option records pops intermediate WHNF reduction frames so kernel verification runs well within default recursion and heartbeat limits while avoiding analytic imports in the certificate shards.

Main definitions #

Fixed-point scale 10 ^ 8 for interval endpoints and certificate witnesses.

Fixed-point intra-edge switching threshold 0.9428 * 10 ^ 8.

Fixed-point cross-edge correlation floor 0.79998 * 10 ^ 8.

Fixed-point antisymmetric coordinate cap 0.10001 * 10 ^ 8.

Fixed-point Schur offset constant 1.322905 * 10 ^ 8.

Rigorous lower integer enclosure of π * 10 ^ 8.

Rigorous upper integer enclosure of π * 10 ^ 8.

Fixed-point pair-cost target 0.27735 * 10 ^ 8 = 5547 / 20000 * 10 ^ 8.

Force a Nat to a literal in kernel WHNF before continuing (forceNat n k = k n).

Force an Int to a literal in kernel WHNF before continuing (bindInt x k = k x).

Pure Bool order a ≤ b on Int without constructing propositional proof terms.

Pure Bool strict order a < b on Int without constructing propositional proof terms.

Pure Bool equality on Int without constructing propositional proof terms.

Pure Bool-dispatched integer maximum without propositional proof terms.

Pure Bool-dispatched integer minimum without propositional proof terms.

Ceiling Euclidean division for b > 0: (a + b - 1) / b.

Closed real interval [lo / 10 ^ 8, hi / 10 ^ 8].

  • lo : ℤ

    Scaled lower endpoint lo representing lo / 10 ^ 8.

  • hi : ℤ

    Scaled upper endpoint hi representing hi / 10 ^ 8.

Instances For

    Force both endpoints of an Ival to literals in kernel WHNF (bindIval v k = k v).

    Point interval [n / 10 ^ 8, n / 10 ^ 8].

    Verified enclosure [piLoI / 10 ^ 8, piHiI / 10 ^ 8] of π.

    Exact interval sum a + b at fixed-point scale 10 ^ 8.

    Exact interval difference a - b at fixed-point scale 10 ^ 8.

    Exact interval negation -a at fixed-point scale 10 ^ 8.

    Pointwise interval maximum max a b.

    Exact interval absolute value |a|.

    Outward-rounded interval product a * b at fixed-point scale 10 ^ 8.

    Outward-rounded interval square a ^ 2 exploiting sign of 0 in a.

    Outward-rounded interval quotient a / b when 0 < b.lo.

    Exact multiplication of an interval a by an integer scalar k.

    Outward-rounded division of an interval a by a positive integer k.

    Coefficients of a concave quadratic upper bound c0 / S - (c1 / S) * (r - r0 / S) - (c2 / S) * (r - r0 / S) ^ 2 valid on [rmin / S, 1].

    • c0 : ℤ

      Scaled value c0 at expansion point r0.

    • c1 : ℤ

      Scaled downward linear slope c1 at expansion point r0.

    • c2 : ℤ

      Scaled concave quadratic curvature c2.

    • r0 : ℤ

      Scaled expansion point r0.

    • rmin : ℤ

      Scaled left validity endpoint rmin.

    Instances For

      Lookup table of certified concave quadratic upper bounds for intra-star arccos.

      Lookup table of certified concave quadratic upper bounds for cross-pair arccos.

      Outward-rounded evaluation of concave quadratic model q on interval r.

      Outward-rounded negative derivative -q'(r) = c1 + 2 * c2 * (r - r0) on interval r.

      Fixed-point 6-dimensional box (sab, scd, rb, o1, o2, tau0) at scale 10 ^ 8.

      • a0 : ℤ

        Lower endpoint of sab.

      • a1 : ℤ

        Upper endpoint of sab.

      • b0 : ℤ

        Lower endpoint of scd.

      • b1 : ℤ

        Upper endpoint of scd.

      • r0 : ℤ

        Lower endpoint of rb.

      • r1 : ℤ

        Upper endpoint of rb.

      • o10 : ℤ

        Lower endpoint of o1.

      • o11 : ℤ

        Upper endpoint of o1.

      • o20 : ℤ

        Lower endpoint of o2.

      • o21 : ℤ

        Upper endpoint of o2.

      • t0 : ℤ

        Lower endpoint of tau0.

      • t1 : ℤ

        Upper endpoint of tau0.

      Instances For

        Pure Bool equality on BoxI across modules without DecidableEq proof terms.

        Balanced binary search tree of indexed sub-boxes for O(log N) WHNF lookup.

        Instances For

          Lookup sub-box idx in a SubTree in O(log N) pure Bool comparisons.

          Conjunction of P over all leaf boxes stored in a SubTree.

          Force all 12 coordinates of a BoxI to literals in kernel WHNF (bindBox b k = k b).

          Force all 12 coordinates of b and wrap in some, popping bindBox stack frames.

          Root 6-dimensional box covering the entire symmetry-reduced hard Gram domain.

          Witness parameters for a planar-volume leaf (volume_planarRectSet_le_out or _in).

          • isIn : Bool

            Whether to use the interior (true) or exterior (false) planar volume bound.

          • ia : ℕ

            Index in starQI for sab.

          • ib : ℕ

            Index in starQI for scd.

          • ic0 : ℕ

            Index in crossQI for sac.

          • ic1 : ℕ

            Index in crossQI for sbd.

          • ic2 : ℕ

            Index in crossQI for sad.

          • ic3 : ℕ

            Index in crossQI for sbc.

          • cexMode : ℕ

            Mode (0, 1, or 2) for bounding the planar Gaussian expectation factor cex.

          • lam : ℤ

            Nonnegative Lagrange multiplier for positive-sign Schur penalty.

          • lamM : ℤ

            Nonnegative Lagrange multiplier for negative-sign Schur penalty.

          • rxy : ℤ

            Positive AM-GM balancing ratio rxy.

          • slo : ℤ

            Certified lower bound slo on √D.

          • shi : ℤ

            Certified upper bound shi on √D.

          • sm : ℤ

            Midpoint expansion parameter sm for D ^ (-3 / 2).

          • cex : ℤ

            Certified upper bound cex on the planar Gaussian factor.

          • rhoLo : ℤ

            Certified lower bound on |ρ| in cexMode = 2.

          • rhoHi : ℤ

            Certified upper bound on |ρ| in cexMode = 2.

          • invSdetK : ℤ

            Certified lower bound on (det K) ^ (-1 / 2) when isIn = true.

          Instances For

            Certificate stack-machine instruction.

            Instances For

              Balanced binary tree of certificate instructions (O(log N) recursion depth).

              Instances For

                Validated first stage of calcSchurRhsHi.

                • a1 : Ival

                  Interval enclosure of c2 - sab.

                • a2 : Ival

                  Interval enclosure of c2 + sab.

                • d2 : Ival

                  Interval enclosure of c2 + scd.

                • m11 : Ival

                  Interval enclosure of 15 * rb + 16 * sig * tau0.

                • m22 : Ival

                  Interval enclosure of 15 * tau0 + 16 * sig * rb.

                • m12 : Ival

                  Interval enclosure of 15 * o2 + 16 * sig * o1.

                • m21 : Ival

                  Interval enclosure of 15 * o1 + 16 * sig * o2.

                Precompute and validate positivity side conditions for calcSchurRhsHi.

                Upper bound on the nonlinear Schur remainder (or -1 if side conditions do not hold).

                Check whether any coordinate interval of b is strictly inverted (hi < lo).

                Stage 1 of clampBox: tighten o1 ≤ o2 symmetry and linear cross-correlation bounds.

                Intermediate state after Schur t-clamping in clampBox.

                • b : BoxI

                  Box with Schur-tightened tau0 bounds.

                • srM : ℤ

                  Upper bound on negative-sign Schur remainder (-1 if inactive).

                • srP : ℤ

                  Upper bound on positive-sign Schur remainder (-1 if inactive).

                Stage 2 of clampBox: tighten tau0 using both Schur remainder inequalities.

                Intermediate Gram diagonal intervals in clampBox.

                • vx : Ival

                  Interval enclosure of (1 + sab) / 2.

                • vy : Ival

                  Interval enclosure of (1 + scd) / 2.

                • dIv : Ival

                  Interval enclosure of vx * vy - rb ^ 2.

                • k00 : Ival

                  Interval enclosure of the first Schur-complement diagonal entry K_{00}.

                • k11 : Ival

                  Interval enclosure of the second Schur-complement diagonal entry K_{11}.

                Stage 3 of clampBox: enclose the Schur-complement diagonal entries K_{00} and K_{11}.

                Stage 4 of clampBox: tighten tau0 via det K ≥ 0 AM-GM and combined Gram-Schur bounds.

                Sound domain tightening using cross-correlation bounds, Schur inequalities, and Gram PSD.

                Bisect box b along coordinate axis d ∈ {0, .., 5} at split point m.

                Certify that box b violates the quadratic Schur pair inequality for sign sigPos.

                Certify that no 4-vector unit Gram matrix realizes any point in box b.

                Intermediate cross-correlation evaluations for chkShep.

                • vaHi : ℤ

                  Upper bound on arccos sab.

                • vbHi : ℤ

                  Upper bound on arccos scd.

                • s0 : ℤ

                  Lower bound on sac clamped to [cminI, 1].

                • s1 : ℤ

                  Lower bound on sbd clamped to [cminI, 1].

                • s2 : ℤ

                  Lower bound on sad clamped to [cminI, 1].

                • s3 : ℤ

                  Lower bound on sbc clamped to [cminI, 1].

                • vc0 : ℤ

                  Upper bound on arccos sac.

                • vc1 : ℤ

                  Upper bound on arccos sbd.

                • vc2 : ℤ

                  Upper bound on arccos sad.

                • vc3 : ℤ

                  Upper bound on arccos sbc.

                Evaluate and validate monotone quadratic arccos bounds at lower endpoints of b.

                def Cslib.Circuits.Frontier.Gaussian.PairBound.Cert.chkShep (b : BoxI) (mode ia ib ic0 ic1 ic2 ic3 : ℕ) :

                Certify the matched-pair bound on b via one of the 12 linear Sheppard/inclusion modes.

                Maximize sl * δ - curvLo * δ ^ 2 over |δ| ≤ dmaxHi for fixed integer slope sl.

                Maximize s * δ - c * δ ^ 2 over s ∈ sl, c ∈ curv, and |δ| ≤ dmaxHi.

                Validated stage-1a output (polynomial table lookups and D enclosure).

                • qa : QuadI

                  Quadratic upper bound model for arccos sab.

                • qb : QuadI

                  Quadratic upper bound model for arccos scd.

                • qc0 : QuadI

                  Quadratic upper bound model for arccos sac.

                • qc1 : QuadI

                  Quadratic upper bound model for arccos sbd.

                • qc2 : QuadI

                  Quadratic upper bound model for arccos sad.

                • qc3 : QuadI

                  Quadratic upper bound model for arccos sbc.

                • vx : Ival

                  Interval enclosure of (1 + sab) / 2.

                • vy : Ival

                  Interval enclosure of (1 + scd) / 2.

                • dIv : Ival

                  Validated positive interval enclosure of D = vx * vy - rb ^ 2.

                Validated stage-1 output (basic domain, D, K_{ij}, and c_ex check).

                • qa : QuadI

                  Quadratic upper bound model for arccos sab.

                • qb : QuadI

                  Quadratic upper bound model for arccos scd.

                • qc0 : QuadI

                  Quadratic upper bound model for arccos sac.

                • qc1 : QuadI

                  Quadratic upper bound model for arccos sbd.

                • qc2 : QuadI

                  Quadratic upper bound model for arccos sad.

                • qc3 : QuadI

                  Quadratic upper bound model for arccos sbc.

                • vx : Ival

                  Interval enclosure of (1 + sab) / 2.

                • vy : Ival

                  Interval enclosure of (1 + scd) / 2.

                • dIv : Ival

                  Validated positive interval enclosure of D.

                • k00 : Ival

                  Nonnegative-clamped enclosure of K_{00}.

                • k11 : Ival

                  Nonnegative-clamped enclosure of K_{11}.

                • absK01 : Ival

                  Interval enclosure of |K_{01}|.

                • kk : Ival

                  Interval enclosure of K_{00} * K_{11}.

                Validated stage-2a output (basic planar geometry before cxU/ceU).

                • u1 : Ival

                  Interval enclosure of o1 / D.

                • u2 : Ival

                  Interval enclosure of o2 / D.

                • x1 : Ival

                  Interval enclosure of u1 * rb.

                • x2 : Ival

                  Interval enclosure of u2 * rb.

                • pIv : Ival

                  Interval enclosure of u1 * u2 * vx * vy.

                • omx1 : Ival

                  Interval enclosure of 1 - x1.

                • omx2 : Ival

                  Interval enclosure of 1 - x2.

                • opx1 : Ival

                  Interval enclosure of 1 + x1.

                • opx2 : Ival

                  Interval enclosure of 1 + x2.

                • detM : Ival

                  Positive interval enclosure of (1 - x1) * (1 - x2) - pIv.

                Validated stage-2 output (planar quadrilateral coefficients cxU, ceU, cAB).

                • u1 : Ival

                  Interval enclosure of o1 / D.

                • u2 : Ival

                  Interval enclosure of o2 / D.

                • x1 : Ival

                  Interval enclosure of u1 * rb.

                • x2 : Ival

                  Interval enclosure of u2 * rb.

                • pIv : Ival

                  Interval enclosure of u1 * u2 * vx * vy.

                • omx1 : Ival

                  Interval enclosure of 1 - x1.

                • omx2 : Ival

                  Interval enclosure of 1 - x2.

                • detM : Ival

                  Positive interval enclosure of (1 - x1) * (1 - x2) - pIv.

                • cxU : Ival

                  Interval enclosure of pairCxMax / o2.

                • ceU : Ival

                  Interval enclosure of swapped pairCxMax / o1.

                • omx1sq : Ival

                  Interval enclosure of 1 - x1 ^ 2.

                • denX12 : Ival

                  Interval enclosure of (1 - x1 ^ 2) * (1 - x2 ^ 2).

                • denO12 : Ival

                  Interval enclosure of (1 - x1) * (1 - x2) * detM.

                • cAB : Ival

                  Interval enclosure of pairCAB.

                Box midpoint intervals and coordinate half-widths.

                • aM : Ival

                  Midpoint interval of sab.

                • bM : Ival

                  Midpoint interval of scd.

                • rM : Ival

                  Midpoint interval of rb.

                • o1M : Ival

                  Midpoint interval of o1.

                • o2M : Ival

                  Midpoint interval of o2.

                • tM : Ival

                  Midpoint interval of tau0.

                • daHi : ℤ

                  Upper half-width of sab.

                • dbHi : ℤ

                  Upper half-width of scd.

                • drHi : ℤ

                  Upper half-width of rb.

                • do1Hi : ℤ

                  Upper half-width of o1.

                • do2Hi : ℤ

                  Upper half-width of o2.

                • dtHi : ℤ

                  Upper half-width of tau0.

                Validated stage-3b output (D midpoint and D^{-1/2} secant bound).

                • vxM : Ival

                  Midpoint interval of (1 + sab) / 2.

                • vyM : Ival

                  Midpoint interval of (1 + scd) / 2.

                • dM : Ival

                  Midpoint interval of D.

                • cInv : Ival

                  Nonnegative secant slope bound cInv for D ^ (-1 / 2).

                • invM : Ival

                  Secant upper bound value at dM for D ^ (-1 / 2).

                • dLMax : ℤ

                  Maximum variation cInv * |D - dM| across the box.

                Validated stage-3 output (box midpoints, D^{-1/2} secant, and D^{-3/2} tangent).

                • aM : Ival

                  Midpoint interval of sab.

                • bM : Ival

                  Midpoint interval of scd.

                • rM : Ival

                  Midpoint interval of rb.

                • o1M : Ival

                  Midpoint interval of o1.

                • o2M : Ival

                  Midpoint interval of o2.

                • tM : Ival

                  Midpoint interval of tau0.

                • daHi : ℤ

                  Upper half-width of sab.

                • dbHi : ℤ

                  Upper half-width of scd.

                • drHi : ℤ

                  Upper half-width of rb.

                • do1Hi : ℤ

                  Upper half-width of o1.

                • do2Hi : ℤ

                  Upper half-width of o2.

                • dtHi : ℤ

                  Upper half-width of tau0.

                • vxM : Ival

                  Midpoint interval of (1 + sab) / 2.

                • vyM : Ival

                  Midpoint interval of (1 + scd) / 2.

                • dM : Ival

                  Midpoint interval of D.

                • cInv : Ival

                  Secant slope bound for D ^ (-1 / 2).

                • invM : Ival

                  Secant midpoint bound for D ^ (-1 / 2).

                • dLMax : ℤ

                  Maximum secant variation cInv * |D - dM|.

                • gM : Ival

                  Tangent lower bound at dM for D ^ (-3 / 2).

                • gSl : Ival

                  Tangent slope 3 / (2 * sm ^ 5) for D ^ (-3 / 2).

                • gVarMax : ℤ

                  Maximum deviation of D ^ (-3 / 2) from gM.

                Validated planar model (out or in) coefficients.

                • bK0M : Ival

                  Midpoint coefficient of K_{00} in the planar volume bound.

                • bK1M : Ival

                  Midpoint coefficient of K_{11} in the planar volume bound.

                • cExM : Ival

                  Midpoint bilinear cross-term coefficient in the planar volume bound.

                • bK0Sl : Ival

                  Linear slope of K_{00} term with respect to o2.

                • bK1Sl : Ival

                  Linear slope of K_{11} term with respect to o1.

                • bK0Rem : ℤ

                  Remainder bound for K_{00} variation with o2.

                • bK1Rem : ℤ

                  Remainder bound for K_{11} variation with o1.

                • cExSl1 : Ival

                  Linear slope of cEx with respect to o1.

                • cExSl2 : Ival

                  Linear slope of cEx with respect to o2.

                • cExCurv : Ival

                  Quadratic curvature upper bound of cEx in (o1, o2).

                Certify that st.cex upper-bounds the correlated planar Gaussian expectation factor.

                Stage 1a of chkPlanar: validate domain bounds, polynomial lookups, and D enclosure.

                Stage 2a of chkPlanar: enclose reduced planar slopes u1, u2, x1, x2 and detM > 0.

                Validated denominators for calcCuOpt.

                • d1 : Ival

                  Positive enclosure of (1 + xb) * (1 - xa) ^ 2.

                • d2 : Ival

                  Positive enclosure of (1 - xb) * (1 + xa) ^ 2.

                • d3 : Ival

                  Positive enclosure of detM ^ 2.

                • d4 : Ival

                  Positive enclosure of (1 - xa) * detM.

                Validate and enclose the four rational denominators of pairCxp and pairCxm.

                Enclose the normalized linear rational envelope pairCxMax / o.

                Box midpoint intervals (first half of PlanarMid).

                • aM : Ival

                  Midpoint interval of sab.

                • bM : Ival

                  Midpoint interval of scd.

                • rM : Ival

                  Midpoint interval of rb.

                • o1M : Ival

                  Midpoint interval of o1.

                • o2M : Ival

                  Midpoint interval of o2.

                • tM : Ival

                  Midpoint interval of tau0.

                Enclose midpoints and upper half-widths of all six coordinates of box b.

                Stage 3b of chkPlanar: enclose dM and secant parameters for D ^ (-1 / 2).

                Stage 3 of chkPlanar: combine box midpoints with D ^ (-1 / 2) and D ^ (-3 / 2) models.

                First half of planarModelOut.

                • bK0M : Ival

                  Midpoint enclosure of cxU.hi * o2M.

                • bK1M : Ival

                  Midpoint enclosure of ceU.hi * o1M.

                • mK0 : ℤ

                  Midpoint of K_{00} / √D.

                • vK0 : ℤ

                  Half-width of K_{00} / √D.

                • mK1 : ℤ

                  Midpoint of K_{11} / √D.

                • vK1 : ℤ

                  Half-width of K_{11} / √D.

                First stage of exterior planar model (isIn = false).

                Second half of planarModelOut.

                • bK0Sl : Ival

                  Linear slope of exterior K_{00} term in o2.

                • bK1Sl : Ival

                  Linear slope of exterior K_{11} term in o1.

                • bK0Rem : ℤ

                  Bilinear remainder for K_{00} variation with o2.

                • bK1Rem : ℤ

                  Bilinear remainder for K_{11} variation with o1.

                • cXsqHi : ℤ

                  Upper bound on quadratic (o1 ^ 2 + o2 ^ 2) coefficient of pairCAB.

                • cO12Hi : ℤ

                  Upper bound on bilinear o1 * o2 coefficient of pairCAB.

                Second stage of exterior planar model (isIn = false).

                Assemble validated exterior planar volume model (volume_planarRectSet_le_out).

                First stage of planarModelIn.

                • detM2 : Ival

                  Positive enclosure of detM - pIv.

                • qpQm : Ival

                  Positive enclosure of pairQp * pairQm.

                • cExMHi : ℤ

                  Upper bound on pairCxe.

                First stage of interior planar model (isIn = true).

                Second stage of planarModelIn.

                • acx : Ival

                  Interval enclosure of pairAbsCx2.

                • ace : Ival

                  Interval enclosure of pairAbsCe2.

                • k2 : Ival

                  Interval enclosure of interior ξ cutoff ratio k2.

                • k1 : Ival

                  Interval enclosure of interior η cutoff ratio k1.

                • cxmB : Ival

                  Interval enclosure of cxU * o2.

                • cemB : Ival

                  Interval enclosure of ceU * o1.

                • cabM4 : Ival

                  Nonnegative-clamped enclosure of cAB - 4.

                Second stage of interior planar model (isIn = true).

                Assemble validated interior planar volume model (volume_planarRectSet_le_in).

                First half of planarStage4.

                • invRxyIv : Ival

                  Point interval upper-bounding 1 / rxy.

                • ck0 : Ival

                  Combined AM-GM weight ck0 on K_{00}.

                • ck1 : Ival

                  Combined AM-GM weight ck1 on K_{11}.

                • f1M : Ival

                  Midpoint enclosure of o1M ^ 2 * vxM.

                • f2M : Ival

                  Midpoint enclosure of o2M ^ 2 * vyM.

                • rectM : Ival

                  Midpoint planar rectangle contribution divided by 4π.

                • cD : Ival

                  Sensitivity coefficient cD with respect to D - dM.

                Validated stage-4 output.

                • ck0 : Ival

                  Combined AM-GM weight ck0 on K_{00}.

                • ck1 : Ival

                  Combined AM-GM weight ck1 on K_{11}.

                • rectM : Ival

                  Midpoint planar rectangle contribution divided by 4π.

                • cD : Ival

                  Sensitivity coefficient cD with respect to D - dM.

                • remBilin : ℤ

                  Total higher-order bilinear remainder across box b.

                • cSKKIv : Ival

                  Interval [0, cSKK] multiplying signed cEx slopes.

                • cSKKHi : Ival

                  Point interval [cSKK, cSKK] multiplying quadratic cEx curvature.

                Stage 4a of chkPlanar: assemble midpoint rectangle weight rectM and D-slope cD.

                Stage 4 of chkPlanar: bound bilinear remainders and AM-GM cross factor cSKK.

                Stage-5a output (Schur penalties and star midpoint evaluations).

                • schPenHi : ℤ

                  Upper bound on combined Schur Lagrange penalty at box midpoint.

                • starMHi : ℤ

                  Upper bound on (qa(aM) + qb(bM)) / (2π).

                • saM : Ival

                  Negative derivative interval -qa'(aM).

                • sbM : Ival

                  Negative derivative interval -qb'(bM).

                Stage 5a of chkPlanar: evaluate Schur penalties and intra-star midpoint values/slopes.

                Stage-5b1 output (cross-correlation midpoints and value sum).

                • sacM : Ival

                  Midpoint interval of sac.

                • sbdM : Ival

                  Midpoint interval of sbd.

                • sadM : Ival

                  Midpoint interval of sad.

                • sbcM : Ival

                  Midpoint interval of sbc.

                • crossMHi : ℤ

                  Upper bound on (qc0(sacM) + qc1(sbdM) + qc2(sadM) + qc3(sbcM)) / (4π).

                Stage 5b1 of chkPlanar: evaluate cross-edge quadratic models at box midpoints.

                Stage-5b output (cross-correlation slopes and minimum curvature).

                • crossMHi : ℤ

                  Upper bound on midpoint cross-edge arccos sum divided by 4π.

                • c2Min : ℤ

                  Minimum quadratic curvature min(qc0.c2, qc1.c2, qc2.c2, qc3.c2).

                • slc0 : Ival

                  Negative derivative interval -qc0'(sacM).

                • slc1 : Ival

                  Negative derivative interval -qc1'(sbdM).

                • slc2 : Ival

                  Negative derivative interval -qc2'(sadM).

                • slc3 : Ival

                  Negative derivative interval -qc3'(sbcM).

                Stage 5b of chkPlanar: enclose cross-edge slopes and minimum concavity c2Min.

                Stage-5c output (directional slope intervals along all 6 coordinates).

                • slA : Ival

                  Total directional slope interval with respect to sab - aM.

                • slB : Ival

                  Total directional slope interval with respect to scd - bM.

                • slR : Ival

                  Total directional slope interval with respect to rb - rM.

                • slO1 : Ival

                  Total directional slope interval with respect to o1 - o1M.

                • slO2 : Ival

                  Total directional slope interval with respect to o2 - o2M.

                • slT : Ival

                  Total directional slope interval with respect to tau0 - tM.

                Stage 5c of chkPlanar: assemble directional slope intervals along all 6 coordinates.

                Stage 5 of chkPlanar: sum midpoint value, remainders, and 1D coordinate variations.

                Full staged verifier for a planar-volume leaf (Step.planar st) on box b.

                Execute one certificate step on the box stack, popping all intermediate WHNF frames.

                Execute a balanced binary tree of certificate steps on the obligation stack.

                Verify that p discharges [b] using only certified sub-boxes from subs.

                Direct certificate witness for b using no sub-boxes.

                Two-level certificate witness for b discharging into Certified1 sub-boxes.