diff --git a/research/triangular-native-supplier/ACTIVATED-STORAGE.md b/research/triangular-native-supplier/ACTIVATED-STORAGE.md new file mode 100644 index 0000000000..c2a56aeb82 --- /dev/null +++ b/research/triangular-native-supplier/ACTIVATED-STORAGE.md @@ -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\cdot14q64(j+1)+129$ follows at 32 and by induction. This gives $2\operatorname{bitlength}(s+128)\le s/32$. Therefore $B(s)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) diff --git a/research/triangular-native-supplier/BINARY.md b/research/triangular-native-supplier/BINARY.md new file mode 100644 index 0000000000..d66bc1cd22 --- /dev/null +++ b/research/triangular-native-supplier/BINARY.md @@ -0,0 +1,33 @@ +# Same-order native supplier + +The external ordinary request interchanges two complete binary address fields. The caller supplies arbitrary independent records at every address, an optional prefix and gap, and an opaque suffix. The result restores their order, all saved row positions, and the prefixes while it returns the interchanged fields. The payload operation inside the binary program is XOR. The matrix ring is used for addresses. [Public interchange](triangular_ordinary.py) · [Physical source and helper ownership](https://github.com/CrocSwap/integer-mult-bounds/blob/46783fbbfc219a3faffbea76f60a2810b85ab75a/research/native-stock-activation/raw_binary.py) + +## A change of chart on the actual payload + +Use a product of cyclic ternary components with maximum width $u$. A single matrix over $R=\mathbb Z/3^u$ acts on all components through reduction. Consider one of the $f$ columns of a native call. Its head and tail have the same coordinate order. Let $A$ be the diagonal of inherited unit weights, which may differ at every coordinate, column and exposed ancestor. Write $x=A^{-1}h$ and $y=t$. In these coordinates the idempotent $P$ requests + +$$D(P)(x,y)=(x+P(y-x),\;y-P(y-x)).$$ + +For a right matcher $PS=SQ$, applying $S^{-1}$ to both coordinates, running $D(Q)$, and restoring the original coordinates gives $D(P)$. On the actual head the forward action is $AS^{-1}A^{-1}$. These equalities are pointwise equalities of address permutations. Pullback therefore acts correctly on every function of the entire address, with arbitrary payloads and correlations. The two entries of a coupled root port use the same physical matcher and the same inherited weighting. The sum and exchange instructions still see the correct matched addresses. Private zeros, copied donors, independently returned productive helpers and the full chronology retain their original semantics. Inverting each entry route after the corresponding completed local call restores the original view. This induction is the retained all-column native proof with its concrete change-of-basis service replaced at each entry. It does not assert that the 36 root calls share a single free choice of chart. [Native proof for both binary banks](https://github.com/CrocSwap/integer-mult-bounds/blob/a7f99a5f5f919dd3ffb2987f90c1e7d6527feb1e/research/grade14-native-realization/PROOF.md) · [Transport and arbitrary payload in Lean](lean/SameOrder.lean) + +In the direct regime each bank uses its identity chart. A native column addition to column $i$ from $j$ induces its negative from row $i$ into row $j$ of both address vectors. The head coefficient also contains $A_j/A_i$. Process the actual factors in their chronological order to obtain the inverse column action on the bodies. Ordered additions use cyclic component shifts. For an upper addition exchange the two actual $w$-trit atoms with the previous ordinary service, run the lower update, and restore both atoms. For a coordinate exchange the tail uses that service and the head uses the weighted pair procedure. A fixed rational scale commutes with the head weights. Apply its numerator by the fixed physical integer buckets, its denominator by the inverse buckets, and its sign to each component. The alphabet check covers the 2,382 raw projector differences, 111 joint port frames, and inverses. Their largest scale numerator or denominator is 20. Mask splits, coordinate placement, tensor replication and inverse frames preserve this alphabet. Each body and all gap fields remain present during these operations. At an issued line compute its two true vectors directly from the factored basis and its inverse. [Executed operations](direct_body.py) · [Alphabet check](scale_audit.py) · [Pinned finite factor program](https://github.com/CrocSwap/integer-mult-bounds/blob/3f7c3c1f2a9a0963736562037e01fe41aec46b8c/research/bounded-general-multiplier/FACTORED-ROUTES.md) + +## The quotient on growing bodies + +Let $U$ be the whole lower unitriangular group over $R$. Store a representative $r$ of each left coset $U r$. For a right instruction $S$ compute $rS=Lr'$ with $L\in U$, and send the record to chart $r'$. Acting on its body by $L^{-1}$ on the tail and $AL^{-1}A^{-1}$ on the head completes its route. Indeed the two old/new represented projectors obey the preceding change-of-basis equation with $L$. The representative residuals multiply in time order and inverse routes restore every record. The left subgroup may be nonnormal. The new bank carries every chart representative with all its genuine high coordinates. The sorted data in distinct representatives and the data in every older or still unused row remain independently writable. [Coset proof in Lean](lean/ChartAction.lean) · [Canonical chart and actual high router](quotient_route.py) + +Because both address banks run in the same order, solve a lower matrix by processing rows $i$ in increasing order. Subtract each $L_{ik}$ times the *returned* earlier row $k= 2^355763540965264, including the first such precision and the wide-quotient tail, at the same n and T." + }, + "native_rank2_matched_movement": { + "direct": { + "earlier_swaps": { + "1": 6 + }, + "input_bytes": 559872, + "movement": { + "read": 48148992, + "seek": 140527872, + "write": 95738112 + }, + "peak_tape_bytes": 5600664, + "records": 139968, + "sha256": "2c9b8912ab88883cc9bb7cccc6a60a9847e60db8b8846b1d08462dc8d4d390ac", + "total_traversal_bytes": 284414976 + }, + "previous": { + "earlier_swaps": { + "1": 1668 + }, + "input_bytes": 559872, + "movement": { + "read": 502889472, + "seek": 1509667632, + "write": 1005219072 + }, + "peak_tape_bytes": 10171008, + "records": 139968, + "sha256": "2c9b8912ab88883cc9bb7cccc6a60a9847e60db8b8846b1d08462dc8d4d390ac", + "total_traversal_bytes": 3017776176 + } + }, + "exact_controls": { + "raw": [ + "modulus 3 raw paid 107460 outputs 20706 seeds 5 nonempty routes 77 nonempty paid 6117 moved support 9464", + "modulus 9 raw paid 107460 outputs 20706 seeds 5 nonempty routes 102 nonempty paid 7599 moved support 11160" + ], + "whole": [ + "full quotient matcher, changed projector and inverse 10368 independent records", + "weighted high-lift payloads 177147 records 27 genuine high matrices", + "direct native subtree 3 atoms 8748 records (8, 2729376, 244944)", + "direct native subtree 4 atoms 6561 records (8, 5353776, 236196)", + "active forest 8192 restored owners 247808 frames 495872 allocations 18336 historical slots", + "positive arena 20 calls 584 historical bytes 712 sum of depth maxima" + ], + "body": [ + "body 2 1 [1] 648 records {1: 14} earlier swaps (4, 228096, 5184)", + "body 3 1 [1] 5832 records {1: 22} earlier swaps (4, 2892672, 46656)", + "body 2 2 [1] 52488 records {1: 28} earlier swaps (4, 36111744, 419904)", + "body 2 1 [2] 52488 records {2: 14} earlier swaps (4, 18475776, 419904)", + "body 2 1 [1, 1] 52488 records {2: 14} earlier swaps (4, 18475776, 419904)", + "non-coordinate compiled line 5832 records {1: 14} earlier swaps (6, 5225472, 93312)" + ], + "quotient": [ + "n=2 u=1 low=None records=16 moved=16 corrected=8 earlier_swaps=0 swapped_bytes=0", + "n=3 u=1 low=None records=416 moved=416 corrected=314 earlier_swaps=0 swapped_bytes=0", + "n=2 u=2 low=None records=432 moved=432 corrected=288 earlier_swaps=48 swapped_bytes=7776", + "n=3 u=2 low=51 records=729 moved=729 corrected=729 earlier_swaps=4 swapped_bytes=20412", + "n=2 u=3 low=None records=11664 moved=11664 corrected=8424 earlier_swaps=3536 swapped_bytes=536544", + "checked 104 complete unit routes and 174648 arbitrary ternary records through width 8" + ], + "product": [ + "public signed tapes 5 maximum bits 4333", + "signed product -345550037539 coefficients [11811, 10996, 4152, 868, 77] {'physical_swaps': 138, 'padded_bytes': 633744}" + ], + "numerics": [ + "verified finite geometry transition and coprime square sides at 1, 2, 4 and 8 axes", + "log2 b 510 old/new P per p 5465.334309895833 1.0103963631325685 old work / new fields with binary I/O 3521.335284046289", + "log2 b 1024 old/new P per p 5465.333577473958 1.0051931193493202 old work / new fields with binary I/O 3533.179688865138", + "log2 b 4096 old/new P per p 5465.333348592122 1.001301130360633 old work / new fields with binary I/O 3542.0916490426434", + "log2 b 9000 old/new P per p 5465.33333714803 1.0005923951279638 old work / new fields with binary I/O 3543.7193870583346", + "opposite False grid 72 true plus hole outputs 32 exact squared error 846365/11150372599265311570767859136324180752990208 eighth-pass old-raw-fail", + "opposite True grid 72 true plus hole outputs 32 exact squared error 846365/11150372599265311570767859136324180752990208 eighth-pass old-raw-fail", + "true-side 5 branching root and layer (0, 34)", + "true-side 3 branching root and layer (0, 10)", + "signed product -345550037539 unsigned coefficients [11811, 10996, 4152, 868, 77]" + ] + }, + "scale_alphabet": { + "raw_pairs": 2382, + "joint_frames": 111, + "scale_types": 33, + "largest_limb": 20 + }, + "formal": { + "lean": "4.34.1", + "mathlib": "d13f23b723b8a846827a245b89c10fc7d3f11612", + "new_modules": 11, + "new_axiom_reports": 64, + "axioms": [ + "propext", + "Classical.choice", + "Quot.sound" + ], + "central_theorem": "GatePacks.at_selected_precision", + "outside_kernel": "The source-to-field and fixed-head refinement, local compiler intervals, stage time and native storage charges use written proofs.", + "space_theorems": [ + "NativeForest.active_units", + "NativeForest.ends_at_external", + "UniformSpace.slope", + "UniformSpace.private_tail" + ] + }, + "complete_diagnostic_file_traces": { + "previous": { + "H_calls": 157248, + "execution_seconds": 96.394, + "peak_occupied_file_bytes": 4550, + "product": -345550037539, + "setup_seconds": 0.945, + "total_traversal_bytes": 13716909553, + "transfers": { + "read": 1398559398, + "seek": 10134631012, + "write": 2183719143 + }, + "working_bits": 136 + }, + "completed_packs": { + "H_calls": 157248, + "execution_seconds": 92.066, + "peak_occupied_file_bytes": 2886, + "product": -345550037539, + "setup_seconds": 0.818, + "total_traversal_bytes": 8089368893, + "transfers": { + "read": 824729548, + "seek": 5976863588, + "write": 1287775757 + }, + "working_bits": 72 + } + }, + "first_entrance_historical_space": { + "public_precision": "p* = 2^355763540965264 + 2", + "new_complete_bits_strict_upper": "2^(p*)", + "old_single_low_slab_bits_lower": "3^(2^480000000000000)/2", + "log2_old_slab_over_log2_new_upper_strict_lower": "2^124236459034734", + "comparison": "At each construction's own admitted scale, including all new work tape and fixed setup.", + "coarse_margin_check_bits": 443, + "tight_stripe_and_private_calculation": { + "s": 355763540965265, + "raw_unit_log_bound": 13513, + "macro_log": 262144, + "complex_levels": 107810, + "all_levels": 107896, + "head_log": 130, + "data_overhead_log": 56569626770, + "stripe_log_lower": 177881770482630, + "stripe_margin_bits": 177825200855860, + "private_margin_check_bits": 446 + }, + "new_outer_geometry": { + "log2_dyadic_axis_count": 355763540965158, + "largest_padded_axis_log2": 13521606402434446949298167524011, + "private_compiler_log2_upper": 132715849533509598534716307019923456 + }, + "previous_outer_geometry": { + "log2_dyadic_axis_count": 3839999999999887, + "largest_padded_axis_log2": 1730765619511609209510165443073366, + "private_compiler_log2_upper": 15461882265600016106127360000004194304 + } + }, + "all_activated_storage_controls": [ + { + "unit_assignments": 296, + "path_slices": 128, + "forests": 22 + }, + { + "data_modules": 26, + "sites": 71, + "work_tape_max": 22, + "page_width_max": 3 + }, + { + "numeric_historical_bytes": 148, + "binary_owner_capacity": 7, + "binary_page_historical_bytes": 100 + }, + { + "s": 355763540965265, + "height": 114852, + "amplification_log": 60216574098, + "stripe_margin": 177821553908532 + }, + { + "s": 711527081930530, + "height": 229647, + "amplification_log": 120402215060, + "stripe_margin": 355643138750203 + }, + { + "s": 1267650600228229401496703205376, + "height": 409037500190912051331, + "amplification_log": 214453452900092897569276154, + "stripe_margin": 633610846661214607850782326532 + }, + { + "s": 115792089237316195423570985008687907853269984665640564039457584007913129639936, + "height": 37363061016172342370604662038796454107935619753080554645371084859885, + "amplification_log": 19589004534046965036799577050996515331341350209103097833912315339020436018, + "stripe_margin": 57876455614124050746748692927292957411303650982611178921894879688617544383948 + }, + { + "nontrivial_words": 2, + "actual_tag_reads": 128, + "rank_comparisons": 17408 + }, + { + "successive_groups": 3, + "tag_reads": 11232, + "suffix_ties": 8004 + } + ] +} diff --git a/research/triangular-native-supplier/FIRST-PEAK.md b/research/triangular-native-supplier/FIRST-PEAK.md new file mode 100644 index 0000000000..f47308bbca --- /dev/null +++ b/research/triangular-native-supplier/FIRST-PEAK.md @@ -0,0 +1,81 @@ +# Complete occupied storage at the first connected precision + +Let $A=355763540965264$, $p=p_*=2^A+2$, $s=A+1$, $T=2^L$. Count canonical input and output, both declared full numerical files, and the sum of the historical extents of all reusable physical data and control tapes. At this first precision the complete auxiliary backing, including the installation, is less than **$pT/1024$**. The sum of the two main files and the canonical I/O can therefore be used at this precise entrance. This sharpens an eventual bound to the actual connected entrance. The source's standard scalar arithmetic and its bounded optional primitive have the stated costs. Work tapes start fresh or reset. Charge both canonical input intervals and every output byte this call produces. Unrelated caller-owned files and arbitrary injected callbacks have their own costs. These are analytic bit-tape bounds. + +## 1. Count the field slots that an active finite program can use + +Fix one raw rule and one rank in the installed periodic compiler. Write $G$ for the forest height, $S$ for the number of source ordinals, $z$ for the actual number of copies, $h_0$ for slots per copy, $R=zh_0$, and $B$ for the productive batch. The implementation gives $h_0=\sum_q T_0/q\ge S$ and $B\le R<(16/15)B$. + +Fix a paid path and a depth. Every live unit is labelled by its future $f$; two units at the same path have different futures. Follow productive port **zero** towards its parent while that port is marked parent. The code places this exact parent at future $(0,f)$ of the preceding path prefix. The test guarantees that it is an actual live unit. Otherwise the port has an external source ordinal. At the root all ports are external. The terminal source contains its depth, its future $0^k f$ and the chosen port index zero. The depth recovers $k$ at a fixed initial depth. Removing the first $k$ zero labels recovers $f$. Thus the assignment is injective at each fixed path and depth. The total number of active units on one chain of process iterators is at most $(G+1)S$. Across all actual replicas there are at most $(G+1)R$ active strict units. This counts unfinished sibling iterators at every ancestor: process opens every future unit at that depth but descends into only one paid path at a time. It does not sum sequential paid branches. Neither the high rank counts in the full installed word nor a claim about average usage gives this bound. [Actual plan and process iteration](https://github.com/CrocSwap/integer-mult-bounds/blob/3f7c3c1f2a9a0963736562037e01fe41aec46b8c/research/bounded-general-multiplier/periodic.py). + +At the last forest cut a recursive satisfy processes one group of $B_e$ fields at a time. The plan sets $B\ge15(\max_e B_e)h_0$. Hence each such active rank has $B_e\le B/15$, and the sum of batch widths on the nested chain is at most $15B/14$. Other copies already issued by the parent remain in the parent's count. For a stopped rank the base reads the existing fields serially. Each strict unit with $v=480$ or 264 has fewer than +$$ + Q_v=2^{64}(v+1)2^{28v}\le2^{13513} +$$ +raw occurrences, port bindings, zero allocations, adapters, disjoint splits, and completions including the fixed raw structural allowance. Each structural occurrence can use its incoming fields and the newly allocated slots of the current instruction. Some raw alignment and scalar loops reuse one scratch field many times. Each per-column swap replaces the field and retires its prior version before the next column. Only the column indices survive. Thus these visits reuse the same vacancies. Their traffic is charged by the native clock. Even counting a private list of $Q_v$ simultaneous copies at each of $Q_v$ occurrences allows $2^{16}Q_v^2$ home/temporary slots per strict unit. This includes outputs staged before transfer and the constant number of snapshots needed during one scalar field pass. The paid continuations use their own counted units. [Strict unit and raw record census](https://github.com/CrocSwap/integer-mult-bounds/blob/3f7c3c1f2a9a0963736562037e01fe41aec46b8c/research/bounded-general-multiplier/PERIODIC.md#L107-L157) and [powered implementation](https://github.com/CrocSwap/integer-mult-bounds/blob/3f7c3c1f2a9a0963736562037e01fe41aec46b8c/research/bounded-general-multiplier/powered.py). + +Consequently the active field slots at one complete carrier execution are bounded by +$$ + 2^{19}Q_v^2(G+1)B . +$$ +The productive fields occupy the actual entering extent: each of its $B$ fields has exactly $1/B$ of the row-split input. Thus the live slot extent, including unused high-water slots below, is bounded by $2^{19}Q_v^2(G+1)$ times that entering extent. On all seven carriers $G+1 < 2^{50}$. The count is independent of the payload values. No inactive site is assigned a data home. + +**Allocation and historical indices.** Each binary bank set has capacity, available slots and live slots. Its allocate first pops a free index. Only when there is none does it use the previous capacity as the new index. Retire returns that index. Starting empty, capacity is the maximum simultaneous live cardinality seen so far even if different tickets or branches caused that maximum. The maximum index ever written is smaller than that capacity. Its slot access uses index times the declared fixed owner extent. The positive arena's high/free/live counters satisfy the identical invariant. A retired field returns its actual slot; its copy is fully written before retirement. A complex child starts at the parent's start plus *historical* high times its extent, not the current live count. The induction below accordingly adds the worst high-water interval of every ancestor, even if their peaks occurred at different times. Finishing a child returns to that base. For binary pages the analogous base is the previous marker plus that frame's declared extent; a page is scrubbed and popped before the same-depth sibling can open. New owners in the same compiled activation pop vacancies. New compiled activations open a new stack page. The bound therefore also pays for gaps left by prior larger sibling calls, touched zero slots, returned copies, and the maximum address used before truncation. [Binary bank positions](https://github.com/CrocSwap/integer-mult-bounds/blob/46783fbbfc219a3faffbea76f60a2810b85ab75a/research/native-stock-activation/raw_binary.py#L52-L94), [positive slots and child starts](https://github.com/CrocSwap/integer-mult-bounds/blob/46783fbbfc219a3faffbea76f60a2810b85ab75a/research/native-stock-activation/spool.py#L81-L124), and [top-only byte pages](https://github.com/CrocSwap/integer-mult-bounds/blob/46783fbbfc219a3faffbea76f60a2810b85ab75a/research/native-stock-activation/stack_tapes.py). + +The [Lean module](lean/ActiveForest.lean) proves injectivity and the finite layer cardinality, the sum across depths and copies, and the free-first high-water identities. Its application to the emitted loops, source-event census, tape placement, and head bills is a written proof. + +## 2. Preserve the stripe through layouts, radix switches and repairs + +Each positive H freezes an unselected spectator coordinate. Each CRT slices the bytes of its opaque words. Both have at least $2^k$ stripes at this input, where $k=\lfloor s/2\rfloor-2=177881770482630$. The declared positive or exact coefficient words in the two CRT directions exceed $p/64$ bytes in these versions. All extents may be charged as complete bytes, including the larger residue class of the width split. The two stripe streams, a complete widened H with $2h+48$ additional bits per component, source copies, and root relocation each have extent at most $64(p+1)T/2^k$ per stream. A complex child partitions the existing field into smaller independent slots. The true complex reserves are part of the actual input volume, and the dynamic matrix slots of section 1 are separately counted. Field swaps and phase/sum sweeps have fixed extents. [Public stripe code](https://github.com/CrocSwap/integer-mult-bounds/blob/46783fbbfc219a3faffbea76f60a2810b85ab75a/research/native-stock-activation/striped_tensor.py), [native geometry and slabs](https://github.com/CrocSwap/integer-mult-bounds/blob/46783fbbfc219a3faffbea76f60a2810b85ab75a/research/native-stock-activation/complex_stage.py), and [positive arithmetic](https://github.com/CrocSwap/integer-mult-bounds/blob/46783fbbfc219a3faffbea76f60a2810b85ab75a/research/native-stock-activation/positive.py). + +Each CRT compact repair writes one key **per group of $2^H$ back records**. Its length in bits is at most $L+8 \le p+8$. The original geometry gives $H=\lfloor L/(100G_0)\rfloor G_0 \ge L/100-G_0$, $G_0=64(\ell+s)\le64(128s^2+s)$, and $L\ge p/12$. The accompanying integer check proves $H\ge s+9$ here. Even if *every* group were marked, keys occupy less than one copy of the grouped payload on each spool. The marker file needs at most one byte per group. Noncompact individual switches allocate no per-address key. In the positive column repair the group has $2^{\rm suffix}$ complete complex records, where ${\rm suffix}\ge(s-3)^2\ge s+9$ at every native column request. Its key is at most $p+8$ bits. Marked streams and both radix buckets satisfy the same two-volume bound. These bounds do not require an unstated density coefficient. Each repair is serial and its work tapes have a fixed list of names. [Actual CRT key and shared back field](https://github.com/CrocSwap/integer-mult-bounds/blob/46783fbbfc219a3faffbea76f60a2810b85ab75a/research/native-stock-activation/compact_crt.py#L164-L209) and [positive grouped key](https://github.com/CrocSwap/integer-mult-bounds/blob/46783fbbfc219a3faffbea76f60a2810b85ab75a/research/native-stock-activation/compact_columns.py#L139-L181). + +All ordinary calls in the first-entry product use the direct regime. No low or high chart catalogue is manufactured. The public binary rectangle inflates by less than nine, the fresh root's padded reserve by less than two, and the temporary radix transpose of a finite type axis by less than three. The returned type field has its original length. The maximum direct scalar bucket count is 22. The actual upper/lower adders, weighted splits, earlier-stage restores, and the five root placement spools are all included. Most of these extra charge factors cannot be simultaneous. It suffices to use $2^q$, with $q=262144$, for the volume multiplier of any macrolevel including its raw slots, local scratch, padding and the extent of the subcall. Indeed $4\log_2 Q_v + 8\lceil\log_2(1+\max_i\log_2 N_i)\rceil +512 < q$. The preceding slot, key, radix and primitive factors need less than this allowance. It is independent of the number of slots in the static instruction stream. + +## 3. The sum of historical physical tape maxima + +Each nested positive call divides the selected width $h\le p$ by $M=2^{3300000000}$. Including its root and stopped child, at most $2+\lceil s/3300000000\rceil=107810$ heights can be active. The direct cutoff admits at most eight positive same-stage divisions and one stopped level in each of six fresh stages. Reserve another 32 macrolevels for roots, CRTs, final streaming and small procedures. Use $d_0=107896$. At one height a single carrier includes the entire fixed-rank and powered program of section 1. The bound does not multiply by the total number of issued instructions to obtain a count of simultaneously active children. + +Store the raw fields by slot in a single arena tape as in the source. Assign a fixed physical head to each primitive scratch role and bucket position. Store suspended intervals for the same role consecutively on its tape. Keep their base and end markers in the control stack and pop the top interval at return. A fresh earlier ordinary stage can have its own finite stack-head set. The source's numerical raw/graph and binary raw iterators retain only arena slots and descriptors on a paid yield. A transfer or scalar snapshot is closed *before* that yield. Open storage crossing the boundary of the positive supplier is the shared arena plus the complete staged root, if present. Ranks in the periodic forest that share an arena do not acquire separate physical heads per logical unit. Binary arenas use a fixed set of page names (weighted, matcher, exposed leaf, compiler slots, issued leaf, pending and returned), independent of the owner number. For the historical space bound, count each temporary call site, up to 22 bucket positions, and each pair of current and parent heights separately. The count is fewer than $2^{32}(s+128)^2$ virtual intervals on the fixed set of heads. A source pass over the 26 data-path modules in the [source census](check_active_forest.py) found 71 temporary or page call sites, literal work-tape sizes at most 22 and literal page tuple sizes at most three. Scanning each missed caller-supplied input/output or fixed transfer endpoint at a separate head still fits this slack. No program table entry is a request for a fresh physical head. Its issued fields use slots on the one owner tape. This layout is exactly the fixed-head interpretation of the existing temporary-file schedules. [Per-yield numerical lifetime and ordinary staging](https://github.com/CrocSwap/integer-mult-bounds/blob/46783fbbfc219a3faffbea76f60a2810b85ab75a/research/native-stock-activation/COMPLEX.md#L191-L215). + +For an arbitrary head, sum all ancestors' maximum frame extents, reserving $2^{2q}$ at each height relative to the preceding stripe extent. This allows the local pad and the next child, and bounds the parent high even if an earlier sibling attained it. Across distinct invocations reuse the same base and slot-head assignment. Sum this per-interval bound over **all** the virtual intervals above, and allow initial file extents, final rewinds, cleanup and constant format overhead. The resulting logarithmic factor over $pT/2^k$ is at most +$$ + (2d_0+4)q + 32 + 2\,\operatorname{bitlength}(s+128)+16 + = 56569626770 . +$$ +The stripe margin is $177825200855860$ binary bits. Thus all additional **payload** backing costs less than $pT/2^{1024}$, even when summing past maxima over distinct physical heads. + +## 4. Add private state, installation, counters and output + +This part has an additive allowance. In particular it cannot multiply a stripe by a fixed program size. Put $E=(s+1)^8$, $K=2^E$, $A_0=K^{8(s+130)}$. The old finite structural bound gives each carrier stream at most $J=2^{4736000000000000000}$ records and bits. All private per-input coefficient synthesis and retained tables use at most $D=2^{2^{20}(s+1)^2}$ bits. The seven complete installed programs, coefficient producer, coordinate lists, finite phase and scalar constants, and pointer-free table scans fit in the separate control allowance. Per macroheight $2^{64}(J+1)^8(p+1)^{64}(D+1)^8