# Directed export of numbers

Sonny (2026). Written argument for how the stage files pass binary64 endpoints to the exact-rational stages that read them. Label: proved for the export implication, and computed for the shipped data (Recipe 6 of the [verification guide](../VERIFY.md)); no formal proof assistant used; not refereed.

## Statement and proof

Let x be a finite binary64 endpoint whose exact dyadic value is q. For a decimal grid h = 10^e, export a lower bound as h floor(q/h) and an upper bound as -h floor(-q/h). Integer division gives lower <= q <= upper, with error less than h unless equality holds. The exponent chosen for 17 significant digits affects tightness alone; containment follows for every positive h. A rational consumer therefore receives the intended direction without depending on how a decimal round-trips.

The saved hexadecimal fields identify q exactly, since hexadecimal significands and binary exponents describe dyadic rationals. Negating a logged upper endpoint gives a lower theta without rounding, and taking minima over certified cells keeps a lower bound. The stage files then carry theta rounded down, derivative and band bounds rounded up, lower height endpoints rounded down and upper height endpoints rounded up. The complete saved cell rectangles are checked against the declared rational domain, so the export cannot quietly shrink it.

The producer's directed step from interval arithmetic to binary64 is an inherited arithmetic premise. This argument covers the next boundary, from that binary64 to the exact decimal and rational stages. The single non-finite field, an unused theta sentinel of the total leg in band mode, is excluded from every calculation.

## The final gates

Write E for the rational error upper bound, K for the rational correction cap, I for the band bound, d = y1 - y0 > 0, f for a no-block floor, and 0 < M_l <= M <= M_u for the normaliser. The plain and short-block gates are floor_plain - E - K - I and floor_block - E - K - I.

The upper-height transfer gives Q(y1) >= Q(y0) + theta d. From the finite lower-floor inequality and nonnegative native correction, Q(y0) >= M f. A sufficient nonnegativity proviso is

    (M_u if f < 0 else M_l) f + theta d >= 0.

Once the numerator is nonnegative and the normaliser is nonincreasing above y0, division gives the lower estimate

    f + theta d / M_u - E - K - I.

The expression is nondecreasing in theta because d / M_u > 0, so replacing theta by its directed decimal lower bound keeps the inequality. For a cell derivative upper bound U <= 0 the strict slack is -U, and exporting U upward is conservative. A zero band mass is exact when every logged cell already passes the nonpositive total-derivative test and there are no positive-band leaves; this holds at 0.170.

## What the shipped data show

COMPUTED: 44 endpoint and sentinel fields are classified in [DIRECTED-EXPORTS.json](../certificates/directed/DIRECTED-EXPORTS.json), each with its binary64 hexadecimal, its exact dyadic value and its directed decimal; every directed decimal lies on the safe side of its dyadic. The stage files in the certificates folder carry these directed values, and every final gate is recomposed from them in exact fractions: all 76 reported gates in [ALL-GATE-MARGINS.csv](../certificates/directed/ALL-GATE-MARGINS.csv) are positive, and all 49,152 high-height block rows at 0.170 and 12,288 at 0.1715 satisfy the margin and the proviso. Every margin keeps its six leading significant digits. A control in [WRONG-DIRECTION-CONTROL.json](../certificates/directed/WRONG-DIRECTION-CONTROL.json) shows that a theta rounded the wrong way is rejected against its exact dyadic, although a sign test of the final margin alone would still pass it. These are recompositions of saved witnesses, with no finite-functional evaluations.

## Limits

The checker sees exact logged dyadics, printed interval enclosures, stored rational stage data and finite shard metadata. It cannot establish the correctness of the interval library, the identification of source with function, or the stored row evaluations from those values alone; those are inherited premises.
