Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions research/triangular-native-supplier/ACTIVATED-STORAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Complete storage from the first six-stage entrance onwards

For every canonical input at public controller precision $p=6\lceil\log_2 n\rceil\ge2^A$, with $A=355763540965264$, the complete construction uses **less than $pT/1024$ additional historical backing** beyond its two permanent field files and canonical signed binary I/O. This includes the wide-mode true chart stock, high reductions, temporary tags, private setup/installation and all suspended calls. The active-forest injection, slot allocator, stripe layout and grouped CRT labels are proved directly from the physical calls. [Source binding at the first entrance](FIRST-PEAK.md)

Let $s=\lceil\log_2(p+2)\rceil$, $s_0=A+1$, and $k=\lfloor s/2\rfloor-2$. Then $p\ge2^{s-2}$ and $s\ge s_0$ throughout this range. The actual public controller still uses $p$ bits. Every public word passed to the CRT has more than $p/64$ bytes, and the spectator H uses at least $k$ frozen bits. The root stripe bounds apply. The grouped-key CRT and numerical repairs still have at least $2^{s+9}$ payload records behind each length-at-most-$p+8$-bit repair label. For CRT this follows from $L\ge p/12$, $H\ge L/100-64(128s^2+s)$ and the polynomial comparison below. For the numerical side the suffix is at least $(s-3)^2\ge s+9$.

## Wide quotient additions

In the wide regime one genuine low represents a class of lower-unitriangular matrices and retains all its independent high tuples. The root shell pads the needed simultaneous row product to a multiple below twice its incoming slab. The compiler partitions the real productive owners exactly as in the direct regime. The physical type transpose multiplies one temporary axis by less than three. The true high and doubled body coordinates are within each owner's actual entering extent when previous-stage swaps, weighted leaves and coordinate refreshes run.

The quotient right route gives one tag of $N_i^2$ **bytes** per low, and its actual high packet contains at least $3^{2N_i f w}$ payload addresses with $f,w\ge1$. The induction $N_i\le3^{N_i}$ gives $N_i^2\le3^{2N_i f w}$. Even for one bit per address, the tag per complete packet is at most eight times that packet's bits. The explicit 25 working spools plus ten copies of aggregate tag volume in the [route implementation](quotient_route.py) therefore cost at most 105 times the entering packet volume. The separately charged body compensation and preceding ordinary calls are not hidden in this factor. They are either finite local sweeps or a child counted below. Each high tuple and each body block is streamed before the next one starts. The weakly triangular factor, inverse word, lifted representative, pivots and elimination matrix contain at most $O(N_i^2)$ entries of $O(u)$ bits, and the source scans their actual entries. The two nested dimension indices and their schoolbook temporary copies fit the control allowance in section 4 of the [first-entrance proof](FIRST-PEAK.md). A unit-scale routine keeps three full tapes and its odd step opens seven local spools. Both counts are included in the 25-spool bound. Its odd/even scheduling uses an ordered list of $O(1+\log u)$ scalar descriptors. No function on that schedule retains a separate full field for each halving. The halving instructions use the same three persistent scale tapes. The quotient leaf's chart split, pending and answer stacks, staging of one low at a time and returning the whole corrected packet add at most a fixed number of whole field-equivalents to one counted level. A pending root may still contain all as-yet unissued lows. The count uses its whole incoming packet even then. These constant factors fit the previous $2^q$ local data allowance, $q=262144$. No capacity is charged per *possible* tagged low as well as per actual owner, outside the specific tag and payload tapes just counted. [Actual quotient families and their physical bill](QUOTIENT-ROUTE.md).

The low/high routes use the same true slot backing, same chronological raw roles, and same $1/B$ per owner. The active-forest bound remains independent of how large the record is. Both modes reuse the same kind-specific arena heads. Some roots run both modes at different heights; a fresh chart levels down until the offered atom count is small enough, where the direct receiver uses the very same existing arena. Include one additional level per stage for this change. Pending data and completed replies grow only by the actual low packet lengths; their stack markers return after each sibling. The input-independent root program occupies its separate finite tape.

## All heights and the full stripe bill

An ordinary call at stage $i$ begins with at most $e\le p$ atoms; at each positive descent it divides the atom count by $N_i=2^{H_i}$ and takes the floor. Earlier-stage widths never exceed their parent's real width, and the two binary fields fit the original tensor. The positive stage has at most $2+\lceil s/H_M\rceil$ heights, $H_M=3300000000$. The six ordinary stages have at most $3+\lceil s/H_i\rceil$ each, including the stopped/direct switch and roots. This bound covers a freshly entered earlier stage, the paid same-stage line, and smaller predecessor calls from a one-field scaler. Multiple sibling calls and repeated raw stages are serial. With 32 auxiliary heights for the outer root take
$$
d(s)=34+\lceil s/H_M\rceil+\sum_{i=1}^{6}(3+\lceil s/H_i\rceil)
\le60+7s/H_M.
$$
The number of virtual scratch intervals on the fixed physical heads has $2^{32}(s+128)^2$ as an upper bound: the quotient spools are a fixed list and the iterative scaler's suspended descriptors are scalar data. The literal scan including the shared ordinary shell, quotient route and limb scaler reports 26 data-path modules, 71 temporary or page sites, at most 22 work tapes at any one such call site and at most three slots for a named page tuple.

The full additional payload bound is $2^{B(s)}pT/2^k$ where
$$
B(s)=(2d(s)+4)q+48+2\,\operatorname{bitlength}(s+128).
$$
It includes the sum of separate head high-waters and all saved parent capacity, including earlier siblings' retired slots. At all $s\ge s_0$, $512\cdot14q<H_M$ and $512(124q+48)< s_0$. For $s\ge2048$, set $j=\lfloor s/64\rfloor\ge32$; $2^{j}>64(j+1)+129$ follows at 32 and by induction. This gives $2\operatorname{bitlength}(s+128)\le s/32$. Therefore $B(s)<s/8$ uniformly. Since $k\ge s/2-3$, the extra payload is strictly smaller than $pT/2^{1024}$ throughout the connected range.

## Reconstruct nonzero radix tags for the optional movement counters

The opaque payload data have no influence on a successful ordinary motion trace, but the quotient sort has **genuine nonzero tags**. Replacing those tags by zero would give the wrong buckets. The following finite symbolic simulator keeps every tag operation exact and proves the bit length of all hardware counters. Only its space bound is relevant. It is not the sorting algorithm used for multiplication and its work is never used as a substitute in the recurring time bill.

For one low group enumerate canonical source lows by their emitted ordinals $i=0,\ldots,Q-1$. Compute $t(i)=\operatorname{canonicalRight}(\operatorname{low}(i),S\bmod3)$, flattened as its actual row-major $N_i^2$-trit tag. Just before pass $j$ in the reverse digit loop, the tag order is the lexicographic order of
$$
(t(i)[j+1:\ ],\, i).
$$
The initial suffix is empty. A stable bucket concatenation by digit $j$ prepends its value to the sorting key while retaining the indicated suffix/tie order, which proves the formula at the next pass. To supply the tag at stream ordinal $l$, enumerate candidates $i$. For each one enumerate all lows $i'$ and count the smaller key pairs. The unique candidate with count $l$ supplies precisely $t(i)$. This requires a constant number of low matrices, tags and counters: the source ordinal and comparison count take at most $2N_i^2+1$ bits since $Q<3^{N_i^2}$. The mod-three right word, finite pivot work, current group and pass, and nested unbounded-precision scalars already have room in the private budget. The sum of all bucket entries or all tags need not be stored in the simulator. Record each bucket's cursor and length and apply the actual concatenations, resets and erasures. Copies of tags that do not branch can advance their true extents symbolically. Whenever a tag is read to choose a bucket, generate its correct value by the rank enumeration. Full high-field transformation, prefix-dependent shears, scale branches, and earlier-stage calls proceed with their actual geometry, scalar and lifted row, with symbolic opaque zero payloads. The controller's only payload-dependent assertion checks a private zero. The zero data satisfy it and any successful actual call has the same tape sizes, branch sequence and transfer counts. This constructs the needed controller simulation with no unknown assumption on the size of the total run time.

Write $K=2^{(s+1)^8}$, $J=2^{4736000000000000000}$, $D=2^{2^{20}(s+1)^2}$, and $A_0=K^{8(s+130)}$. The per-level control bill $2^{64}(J+1)^8(p+1)^{64}(D+1)^8<K$ holds at $s_0$. The base-two logarithm of its crude upper bound, obtained with $\log_2(p+1)\le s$, is a sum of a nonnegative constant, an $s$ term and an $(s+1)^2$ term. On dividing by $(s+1)^8$ these terms are decreasing for all $s\ge s_0$. The new quotient scalar generation and simulated comparisons use at most a constant number of complete $N_i^2$-entry matrices per scope, with entries of fewer than $4p+8$ bits before reduction, including a summed inner product; $N_i\le J$, and $N_i<p$ on the entire range. The stack of scale descriptors has at most $4s+8$ entries (three return descriptors for an even split and one for its possible preceding odd step), with a constant number of address words per entry. Enumerating a high tuple keeps its $N_i(N_i+1)/2$ digits and one partial lifted row; the overall widened group cardinality is an actual funded shape. These termwise bounds fit the displayed control allowance without any full per-input chart list.

The sum of the private controls and the symbolic tape descriptors, before the write-only observer totals, is at most $A_0$, since $d(s)<s+128$. The unmetered symbolic stage terminates on a deterministic fixed-alphabet machine, so its configurations do not repeat. It has fewer than $2^{4A_0^2}$ configurations including its bounded spare control tapes and head positions. A measured displacement or transfer has at most $p$ binary bits. Thus the native movement meters take at most $8A_0^2$ bits each, including summed counters over the heads. The few outer CRT geometry/macro totals and H-call counters obey the explicit bounds in the [first-entrance proof](FIRST-PEAK.md). Including historical control backing, all scalar and tag-reconstruction state and installation, $A_0^{16}$ is enough.

The integer $12[128(s+130)(s+1)^8+64]$ is strictly below $2^{s-2}$ at $s_0$ (its bit length is 446). Its successive ratio is at most $(33/32)^9<2$ for the whole tail. Therefore $\log_2(A_0^{16})<p/12-64\le L-64$. The analogous CRT guard $1200[64(128s^2+s)+2s+128]$ obeys the same base check and ratio bound. Adding $A_0^{16}<T/2^{64}$ to the stripe data proves the uniform $pT/1024$ conclusion.

For this comparison, Lean checks the slope of the depth bound, the stripe margin, and the private-budget inequality on every eligible integer. On two nontrivial matrix words a finite checker reconstructed all 128 actual rank-two tag reads using 17,408 independent comparisons. A separate rank-three replay observed 11,232 tag reads, including 8,004 ties in intermediate suffix keys. The final payload followed the independent stable ordering. All ten temporary streams returned empty with their cursors at zero after each of the three groups. [Uniform numerical proof](lean/UniformSpace.lean) · [Radix and allocation checks](check_uniform_space.py)

## Complete storage at each common input

Each working component uses $\lceil(2P+40)/8\rceil$ bytes. A parked component uses $\lceil(p+4)/8\rceil$ bytes. The two full files therefore use at most $(4P+2p+116)T$ bits. On the connected range,
$$
P-p < 33(p/6+3)/s+34s+8 < p/1000.
$$
Indeed $33/(6s)<1/2000$. At $s_0$, the integer $2000(34s+108)$ has 65 bits. It grows by less than a factor of two per step while $2^{s-2}$ doubles, and $p\ge2^{s-2}$.

The two canonical inputs and output add at most $4n+32\le pT/6+32$ bits. Including the auxiliary $pT/1024$, the coefficient of $pT$ is at most $2369911/384000$ before the remaining $116T+32$ format bits. On this range $116T+32\le148T<pT/40$. Hence the complete machine occupies **less than $6.2pT<297.6n$ bits** on every input in the connected range. At these same input lengths the old work file alone needs $21840pT\ge524160n$ bits. The ratio exceeds **$109200/31>3522$**. These inequalities apply also when a quotient call suspends a direct or quotient ancestor. [Working precision and recovery](NUMERICAL-STORAGE.md) · [First-entrance comparison](FIRST-PEAK.md)
Loading
Loading