Private 2D proximity circuit stages — 31 October 2026

The compiled private_proximity_2d predicates use 17 ANDs for each public radius R1/R2/R4, with 32/32/28 XORs. Each constructed request is 756 bytes and the output frame is 100 bytes, including both 84-byte headers. These are circuit-function measurements; actual IC OT and a full private protocol remain blocked.

abs(ax-bx) <= R && abs(ay-by) <= R uses integer coordinates 0–15, with x in the low nibble and y in the high nibble of each private byte, without wrapping. The benchmark guide and API/compiler guide describe the stage and encoding contracts. Principal data are the committed cost summary, CSV, complete primary results and independent audit.

Circuits and constructed bytes

Program AND / XOR AND depth Live Alice/Bob bits Request payload + frame B Reply payload + frame B Logical OT/query
R1 17 / 32 8 8/8 672 + 84 16 + 84 8
R2 17 / 32 8 8/8 672 + 84 16 + 84 8
R4 17 / 28 8 8/8 672 + 84 16 + 84 8
Generic Equality8 7 / 8 3 8/8 352 + 84 16 + 84 8

Each proximity query therefore constructs 856 framed bytes in total. These are encoded circuit frames, not measured network traffic. Eight logical OTs per query describe Bob's live input bits; actual OT cost, generated/check/base OT counts, rounds and sent/received transport bytes are null.

Actual N1 and N100 body costs

Two successful samples contribute to each of 40 populations. Values below are the recorded integer median body counter divided by actual N. N100/query is bulk amortization, not an N1 estimate. Alice randomness fills staged private PRG buffers; garbling uses that staged randomness; Bob evaluation uses locally selected fixture labels, which are not OT. Serialization and parsing each cover both frames locally, without a measured per-party split.

Program Actual N Alice randomness/query Alice garble/query Bob evaluate/query Local serialize/query Local parse/query
R1 1 8,137 224,844 169,556 2,586 1,474
R1 100 15,069.7 152,576.7 94,913.76 8,718.7 4,406.7
R2 1 8,137 225,159 169,458 2,586 1,474
R2 100 15,069.7 152,891.7 94,881.59 8,718.7 4,406.7
R4 1 8,137 221,834 167,963 2,586 1,474
R4 100 15,069.7 149,566.7 93,368.86 8,718.7 4,406.7
Generic Equality8 1 8,137 145,002 117,743 2,126 1,474
Generic Equality8 100 13,469.7 71,134.7 42,240.19 6,658.7 3,606.7

Inputs, buffers, AES/session owners and reusable workspaces are staged before the body counter. Loops, barriers, writes and page faults within the interval remain included. No empty-harness or page subtraction is applied, and these separate stage intervals are never added into a claimed measured composition.

Complete checked updates and page charges

The following are actual whole-update totals for garbling and evaluation. Whole updates include wrappers, in-endpoint preparation, prelude, postchecks and reply serialization. Page charges are included already. Earlier setup updates remain separate. The full ledger and CSV retain all five stages, prelude/postcheck counters, per-query quotients and actual benchmark endpoint Wire lengths.

Program Actual N Garble checked update Garble included pages Evaluate checked update Evaluate included pages
R1 1 754,066 400,000 697,125 400,000
R1 100 35,463,981 1,200,000 29,772,387 1,200,000
R2 1 754,185 400,000 696,831 400,000
R2 100 35,489,592 1,200,000 29,763,281 1,200,000
R4 1 747,686 400,000 692,162 400,000
R4 100 34,851,886 1,200,000 29,306,802 1,200,000
Generic Equality8 1 565,326 400,000 536,414 400,000
Generic Equality8 100 16,480,517 1,040,000 13,585,766 1,040,000

Proximity R4 randomness at N100 has a 45-instruction whole-update sample variation when the fixture-ID Wire varint grows from two to three request bytes. Its body, prelude, postcheck and page counts are identical. Raw samples retain both totals; the table machinery uses the runner's integer median.

Separate-function references

Generic Equality8 above uses the same image, generic runtime and stage boundaries as proximity. The older specialized Equality8 garbling scope also included per-query randomness and is outside this comparison.

The frozen LOS 4/16/64 and synthetic selector below use a different artifact and different functions. They are reference costs, not matched before/after proximity speedups. The synthetic selector's arbitrary 256-bit Alice input is staged; it does not construct a visibility mask. Mask preprocessing is unmeasured. All four references have eight live Bob input bits.

Frozen reference AND / XOR Request payload + frame B Reply payload + frame B
LOS 4 276 / 533 8960 + 84 16 + 84
LOS 16 703 / 1234 22624 + 84 16 + 84
LOS 64 2265 / 3527 72608 + 84 16 + 84
Synthetic selector 255 / 510 12256 + 84 16 + 84
Frozen reference Actual N Alice randomness/query Alice garble/query Bob evaluate/query Local serialize/query Local parse/query
LOS 4 1 8,137 2,354,231 1,462,662 94,500 81,474
LOS 4 100 63,069.7 2,222,763.7 1,438,172.62 120,632.7 54,806.7
LOS 16 1 8,137 5,731,616 3,872,329 354,142 161,474
LOS 16 100 10,269.7 5,416,948.7 3,558,294.6 276,274.7 82,806.7
LOS 64 1 8,137 17,460,394 11,660,445 665,994 161,474
LOS 64 100 10,269.7 16,828,926.7 11,187,818.37 588,126.7 82,806.7
Synthetic selector 1 87,373 2,345,570 1,598,791 99,486 81,474
Synthetic selector 100 193,505.7 2,214,102.7 1,412,796.8 125,618.7 54,806.7

These values come from the unchanged committed LOS results (uncompressed SHA-256 8c6da624a7babed84da3b345d9cfe83e1daf0ba361caab0eb90d1258c68f4eca). The LOS report retains its own qualification and scope.

Qualification and provenance

Native checks passed 19 algorithm tests, three fixture tests and 14 host tests. Independent evaluation of the exact emitted gate tables checked all 65,536 position pairs per radius with zero mismatches. The native byte audit independently reconstructed all 96 frame pairs (984,448 bytes) and 11,264 chosen-label bytes. Both installed images reproduced those bytes. The separate instrumented image checked compiled AND/XOR counts and four Alice/two Bob hashes per AND; it supplies no cost rows. The final review and actual audit pass 418 primary and 96 structural complete traces, 4,040 native checksum items and all 160 run endpoint Wire request/reply lengths. Both owned sessions shut down cleanly.

  • Primary prepared Wasm SHA-256: eedbdf0f7c08e9301ba143fab9f154885671bdcbacc7831dab1d782742d11bda (535,992 bytes).
  • Structural prepared Wasm SHA-256: 42dde76619b221be1551ce073116079902afe37f7ec8140c5cf5ee09fe266c9d.
  • Primary manifest SHA-256: f4af4b0c9178aff448abb221f0c5beca8fde78f447bf9e581e0119b38845e07d.
  • Structural manifest SHA-256: 6d2ef6ca616b69328be499c7bcd3f21721d0cdf3c298d225ad56ebdd45e6e790.
  • Build-reported factory HEAD: ad6122e9759925ca7f4e6053142fcd52d61ad81d; SDK: d0e53afc7b7fdc4b7cf4e2ccbe1e55a386133c4b.
  • Qualified PocketIC SHA-256: 6a9a75ad9b4551d2b0f4a0d954ffb8bd5bbd0ebc44ac00290679b06ad0b2f8e6.

Exact archived file hashes identify measured source; build-reported HEAD alone is not a clean-tree assertion. Complete guest/page/cycle/scheduler ledgers are retained; dynamic instruction profiles were not captured. Host durations are diagnostic, and wall-time median/p95 and peak live heap remain unmeasured.

The evidence index preserves full compressed results, probe proofs, prepared images, manifests, fresh native binary and selected source. It is a partial repository snapshot: the full SDK/debug/source closure and most traces stay at recorded local raw paths, with complete hash indexes. The maintained report tool replays the complete raw inputs into fresh outputs; its run is report generation, not a new measurement. Current navigation and the standard-table generator header were updated after capture; measured host/source copies retain their original bytes. Older evidence archives remain unchanged.