Arbor
CA To be announced
Open the App

Technical Reference · Volume I

On the Execution of Orders by a Hidden Number

being a complete account of the Arbor protocol: its terms, its rule, what is sealed and when, and how any reader may check an order for themselves

First edition·MMXXVI

From the lexicon

ar·bor /ˈɑːr.bər/ n. pl. arbors; Lat. pl. arbores

[Latin arbor, arboris, ‘tree’; cf. arboreus, ‘of trees’.]

  1. Bot. A tree, as distinct from a shrub or herb. The arbor stood alone on the hill.
  2. Math. A rooted tree; in graph theory, a directed tree in which every vertex is joined to a single root by exactly one path. The graph of the Collatz map, read backwards from 1, grows as such an arbor: every number reached so far hangs from 1 by one branch.
  3. Mech. An axle or spindle on which a turning tool, such as a saw blade or a cutter, is mounted.
  4. Finance. A protocol for executing a large order in slices, whose timing is drawn from the parities of a secret Collatz seed. The seed is sealed before the first slice and revealed after the last, so the schedule cannot be foreseen and can always be checked.

Not to be confused with arbour, a shaded garden bower, from Anglo-French herber (Latin herba, ‘grass’), whose spelling drifted toward arbor. Cf. arboreal, arborescent, arborescence.

Chapter I

Definitions

The terms below are used throughout, always in the sense given here. Symbols in italic are numbers; Q, m, s and L keep the same meaning in every chapter.

Order
The whole instruction: coin, side, total size Q and time window.
Tick
One step of the engine, every six seconds. A ten-minute window has 100 ticks.
Slice
One equal piece of the order, of size q = Q / m, where m is the number of ticks that trade.
Seed
The secret starting number s, drawn when the order starts: at least one random bit per tick, never fewer than 128 (128 to 1,216 bits).
Commitment
The SHA-256 digest of the seed, published on Elysium before the first tick; also called the seal.
Reveal
The publication of the seed after the order ends, so that anyone may check it against the commitment.
Parity bit
bt = 1 if the current value is odd (trade a slice), 0 if it is even (wait).
Longest wait
L, the bound on waiting: at most L − 1 ticks in a row pass without a slice, and the next one trades regardless.
Forced slice
A slice traded because of the longest-wait rule rather than an odd parity.
Agent key
A key approved in your wallet. It may trade on Hyperliquid on your behalf, cannot withdraw, and can be revoked at any time.

Chapter II

The schedule rule

The engine uses the compact form of the Collatz rule, in which the halving that always follows an odd step is folded into that step.1

Definition 2.1 (the compact map). For a positive integer n,

T(n) = n / 2if n is even,(3n + 1) / 2if n is odd.(1)

Starting from n0 = s, the engine sets nt+1 = T(nt). At tick t the parity bit is

bt = nt mod 2,(2)

and the action follows from bt and from r, the number of waits in a row so far:

trade, r ← 0if bt = 1,forced slice, r ← 0if bt = 0 and r = L − 1,wait, r ← r + 1otherwise.(3)

Remark 2.2. Nothing else enters the schedule: no prices, no clock, no operator input. The same seed, tick count and L always yield the same list of actions.

Chapter III

The commitment

The seed is written as a big-endian byte string, padded to its full bit length, and hashed once with SHA-256.2 The 64-character hexadecimal digest is the commitment:

c = SHA-256(bytes(s)).(4)

Remark 3.1. No salt is added. A seed of at least 128 random bits cannot be guessed from its digest, and anything mixed in would only be one more value to publish and to check.

Chapter IV

The life of an order

Every order passes through the same stages, in the same order. Table 4.1 lists each stage with what becomes public at that moment, and nothing more.

Table 4.1. Stages of an order and what each makes public.
StageWhat happensWhat is public
ApproveYou approve an agent key in your wallet.Nothing about any order.
SealThe engine draws the seed and publishes its commitment on Elysium.The commitment and its transaction.
RunOne tick every six seconds: a slice, a wait, or a forced slice.The fills, as they happen on Hyperliquid. Future ticks stay secret.
RevealWhen the order fills, the seed is published.The seed and its transaction.
CancelYou may stop an order at any time; its seed is still revealed, for the ticks that ran.The seed and the partial fills.

Chapter V

Verification

An order is verified from public data alone. No trust in the operator is needed, only the three steps below.

Procedure 5.1.

  1. Hash the revealed seed with SHA-256 and compare it with the commitment published before the order, by (4). If they differ, stop: the seed was changed.
  2. Run the rule of Chapter II from the seed, by (1)–(3), for the order’s number of ticks and with its longest wait L.
  3. Compare the result with the recorded fills: every trade or forced tick must have exactly one fill, and every wait none.

The Verify page carries out all three steps in your browser, and also prints a short Python script that does the same without it.

Chapter VI

Why the parities are fair

A schedule is only as unpredictable as its bits. The result below shows that the parities of the compact map, started from a random seed, are as good as fair coins.

Theorem 6.1 (Terras, 1976).1 For every k ≥ 1, the first k parity bits b0, …, bk−1 of T depend only on s mod 2k, and each of the 2k possible bit patterns arises from exactly one residue class mod 2k.

Corollary 6.2. If s is drawn uniformly from the integers of N bits and k ≤ N, then b0, …, bk−1 are independent and each is 1 with probability ½.

Proof. When s is uniform over a range of 2N consecutive integers and k ≤ N, the residue s mod 2k is uniform over its 2k values. By Theorem 6.1 the map from residue to bit pattern is a bijection, so every pattern of k bits is equally likely. ∎

Remark 6.3. The guarantee covers as many ticks as the seed has bits. A ten-minute order has 100 ticks, so a 128-bit seed covers it entirely; and since the engine always draws at least one bit per tick, every order, up to the two-hour window of 1,200 ticks, is covered. The Collatz conjecture itself, that every start eventually reaches 1, remains unproven,3 and nothing here depends on it.

Notes and references

  1. R. Terras, A stopping time problem on the positive integers, Acta Arithmetica 30 (1976), 241–252. ↩
  2. National Institute of Standards and Technology, Secure Hash Standard (SHS), FIPS PUB 180-4 (2015). ↩
  3. J. C. Lagarias, The 3x + 1 problem and its generalizations, The American Mathematical Monthly 92 (1985), 3–23. ↩

Set in EB Garamond, with IBM Plex Mono for digests and code. Printed in indigo on rag.