1. Question and setup

Can gradient descent, receiving only the final answer, learn a discrete local rule that performs exact addition beyond its training lengths? The empirical question is whether a run reaches the frozen test criteria. The mathematical question is stronger: does a particular exported rule work for every legal input length? We keep those questions separate. The result is one successful rule, four unsuccessful final addition runs, and a later computer-assisted correctness proof for the successful rule. [1, 2]

The task adds two nonnegative n-bit integers. Bits are placed least significant first along a row of n + 2 cells. Each cell holds 16 Boolean state bits. Initially, state positions 0 and 1 contain the two operand bits; the other positions are zero. Inputs beyond the n operand cells and neighbours outside the row are zero. All cells update synchronously using the same learned rule, which reads the left neighbour, itself and the right neighbour. This fixed representation and layout are part of the experiment, not learned discoveries. [1, 2]

The final discrete rule has four gate layers of widths 512, 512, 512 and 16, totaling 1,552 gate instances before pruning. During training, differentiable choices and straight-through state updates permit gradient optimization; evaluation uses the hard exported choices. Only the final arithmetic answer supervises training. No carry targets, intermediate states, expert trajectories or manually constructed addition certificate are supplied to the learner. [1]

Five addition seeds, 11, 22, 33, 44 and 55, each received 30,000 optimizer updates. Training sampled a length uniformly from 1 through 4 for the first 15,000 updates, then from 1 through 8. Operands were sampled uniformly within that length. The addition batch contained 128 pairs. The fixed final checkpoint was evaluated on 500 new random 8-bit pairs; reaching at least 90%, or 450/500 exact answers, admitted the rule to longer tests. Monitoring curves did not choose the checkpoint or stop training early. [1]

An answer is read from state bit 2 in cells 0 through n, including the overflow bit. The prescribed readout starts at T = 2n + 4 and continues through T + 8. A length test requires the whole answer to be correct and stable across these nine readouts. Before the successful rule entered the length ladder, its Boolean simulator matched the hard learned forward on all 1,000 frozen random comparison cases. This checks implementations on those cases; it is not the all-length proof. [1]

2. Results across all five seeds

Table 1. Final addition outcomes for every seed

Counts are exact whole-answer successes, not average bit accuracy. Missing length tests are not measured failures.

SeedFinal 8-bit probeLength testsGeneralization
115/500 (1.0%)Not admitted: final 8-bit gate failedNot demonstrated
22261/500 (52.2%)Not admitted: final 8-bit gate failedNot demonstrated
337/500 (1.4%)Not admitted: final 8-bit gate failedNot demonstrated
441/500 (0.2%)Not admitted: final 8-bit gate failedNot demonstrated
55500/500 (100.0%)All nine lengths passedYes, through 10,000 bits

Seed 55 alone passed the admission gate. Its frozen ladder tested 8, 16, 64, 256, 1,023, 1,024, 4,096, 9,999 and 10,000 bits in that order. Every length passed exactness and stability, including the difficult cases. Each length through 1,024 bits used 500 random pairs plus 15 difficult cases; each larger length used 100 random pairs plus 15 difficult cases. The table keeps every length separate. [1]

Table 2. The successful rule on each admitted length

Counts are exact whole-answer successes, not average bit accuracy. Missing length tests are not measured failures.

Operand bitsRandom pairsDifficult casesExact and stable
850015515/515 (100%)
1650015515/515 (100%)
6450015515/515 (100%)
25650015515/515 (100%)
1,02350015515/515 (100%)
1,02450015515/515 (100%)
4,09610015115/115 (100%)
9,99910015115/115 (100%)
10,00010015115/115 (100%)
Seed 55 is at 100 percent from eight through ten thousand bits. The other four seeds have only final eight-bit points: 1.0, 52.2, 1.4 and 0.2 percent; their longer tests were not run.
Figure 1. Final 8-bit probe for all five addition seeds and the admitted length ladder for seed 55. The other four seeds failed the final admission gate, so their missing longer-length values are not zeroes. The 1,023/1,024 and 9,999/10,000 pairs nearly overlap on the log scale; the text reports each test separately. Source: final probes and frozen staged-test results.

The four unsuccessful seeds were not tested along the longer ladder because they failed its entry rule. Their absent scores must not be drawn as zero accuracy at long lengths. Likewise, the successful finite ladder is evidence over the specified cases, not a proof about every integer or length. The universal statement comes from the separate argument below. [1, 2]

The monitoring data also expose instability. At update 28,000, seed 44 scored 499/500 on the fixed 8-bit set and 500/500 on the 16-bit set. At update 30,000 it scored 0/500 on both. Its independent final admission probe was 1/500, as shown above; the probes use different pairs. Retaining the fixed final checkpoint prevents replacing this failure with an attractive intermediate result. [1]

Two panels plot all five seeds through thirty thousand updates at eight and sixteen bits. Seed 55 remains perfect on the monitoring sets, while seed 44 collapses at the final checkpoint.
Figure 2. Fixed monitoring curves, not the independent final admission probes. Seed 44 reached 499/500 at eight bits and 500/500 at sixteen bits at update 28,000, then fell to 0/500 on both at 30,000. The frozen final checkpoint was retained. Source: learning-curve records; no new training or rescoring.

3. Post-hoc interpretation: ripple-carry addition

Inspection after training found that only state positions 0, 1, 2, 3, 9 and 14 can become nonzero from the prescribed initialization. The other ten remain zero. This means six potentially active bits, not six independent or necessary arithmetic variables. Positions 0 and 1 preserve the inputs, position 2 supplies the sum output, position 14 carries incoming-carry information, and position 3 relays the previous cell's carry. Position 9 is an auxiliary that does not enter the reduced carry and sum equations. [1, 2]

Three neighbouring cells show all sixteen state positions. Positions zero, one, two, three, nine and fourteen are highlighted, with their input, output, carry-copy, auxiliary and incoming-carry roles.
Figure 3. The three-cell interface and the six potentially active state bits. Bit 9 is auxiliary, not an additional carry. This is a post-hoc description of the reached states, not a claim that six bits are logically necessary. Source: the frozen post-hoc bit description and proof identities.

Once the initial transient is handled, the carry recurrence is the majority function of the two operand bits and the incoming carry. Majority is one when at least two of these three bits are one. The output is the XOR of the operand bits and the carry. A carry crosses one cell every two updates. These equations describe ordinary ripple-carry addition, the binary version of schoolbook addition, recovered here by gradient training from final answers. No new arithmetic algorithm is claimed. [2]

The study's compiler retains 27 gate nodes after folding constants, projections and unused dependencies. That is the frozen compiler's count, not a proof of a minimum-size adder. The post-hoc explanation did not change the exported rule, training, decision thresholds or recorded outcomes. The all-length argument checks the original 1,552-gate network rather than relying on the pruning operation. [1, 2]

Two time-versus-cell heatmaps show the incoming carry moving from cell one to cell eight, then the final sum bit appearing in overflow cell eight. All displayed values are computed from the exported rule.
Figure 4. Real simulator states for 255 + 1. Gold is one and graphite is zero. The left-panel markers locate the first carry one for this example, separated by two updates. Cell 8 holds overflow; cell 9 is padding. The dashed line is the proved safe bound t = 17; the solid line is the study readout T = 20. Source: saved simulator trace, checked at every update against the full original network.

4. Correctness proof

4.1 Finite local lemma on the original network

Let S = {0, 1, 2, 3, 9, 14}. The local checker exhausts every three-cell window in which only positions in S may be nonzero. There are 18 free bits, hence 2^18 = 262,144 windows. It evaluates all four original layers, with no pruning. This is the complete invariant domain needed by the proof, not every unrestricted 16-bit state window. [2]

For each such window it establishes closure, meaning that every output bit outside S is zero. It also establishes preservation of both inputs and three relations. Write y_j(t) for output position 2, r_j(t) for position 3, and x_j(t) for position 14 at cell j and update t. Then y_j(t+1) = a_j XOR b_j XOR x_j(t); r_j(t+1) = x_(j-1)(t); and x_j(t+1) = (b_(j-1) OR r_j(t)) AND NOT(y_(j-1)(t) AND NOT a_(j-1)). The missing left neighbour is zero. [2]

The supplied exhaustive script was rerun on the hash-checked original rule while preparing this note, and every local check passed. The space-time figure uses the study's own simulator, with every update in that concrete trace also compared to an unpruned vector evaluator. These computational checks support the local lemma and the illustration; neither finite simulation alone supplies the following induction.

4.2 Induction over cell position

The invariant holds initially because only the two input positions are set. The zero exterior boundary satisfies it too. Local closure therefore preserves it at every update, so the checked equations apply throughout the evolving row. Input preservation gives a_j and b_j at every time, with both zero for j >= n. The separate left-boundary case gives r_0(t) = x_0(t) = 0 for all t. [2]

For j >= 1 and t >= 2, substitute the sum and relay equations into the carry equation. The Boolean identity (b OR c) AND NOT((a XOR b XOR c) AND NOT a) = majority(a,b,c), checked on all eight Boolean triples, yields x_j(t) = majority(a_(j-1), b_(j-1), x_(j-1)(t-2)). The lower time bound matters: the first-update value x_j(1) can be b_(j-1), which is not generally the correct carry. [2]

Define the true addition carries by c_0 = 0 and c_(j+1) = majority(a_j,b_j,c_j). Spatial induction proves x_j(t) = c_j for every t >= 2j. The base case is the left boundary. For the next cell, t >= 2(j+1) implies t-2 >= 2j, so the recurrence receives the already settled carry c_j and produces c_(j+1). [2]

The sum relation now gives y_j(t) = a_j XOR b_j XOR c_j whenever t >= 2j + 1. At j = n the input bits are zero, so that cell outputs c_n, the overflow bit. Consequently, for every n >= 1 and every 0 <= a,b < 2^n, cells 0 through n encode exactly a+b at every t >= 2n + 1. This includes the whole prescribed window from T = 2n + 4 through T + 8 and every later update. It is a sufficient settling bound, not a claim about the first correct update in every example. [2]

4.3 Review and trusted components

The proof record describes a separate-agent review, not independent human or external peer review. It reports rechecking the local conditions on the original network and the 27-gate form, simulation through n = 257, and 440 single-gate mutants with no case that passed the local conditions but failed simulation. It does not say that all 440 mutants were detected as faults. The supplied folder does not include raw logs or mutation-generation details for this additional review, so these findings are attributed to the record rather than presented as independently reproduced here. [2]

The argument is computer-assisted in Python and NumPy, with induction written in prose. It is not mechanized in Lean or another proof assistant. Agreement between the original and pruned implementations was checked by execution, not established by a general equivalence proof over all possible internal states. The theorem is stated for the original rule and its prescribed reachable states. [2]

5. Failures and limits of learning

The earlier short-budget study failed its logical learning threshold. Its addition runs received 2,640 updates rather than 30,000, and the retry also increased the batch from 16 to 128. The earlier failure was read as undertraining under that short budget, not as an impossibility result. Because both budget and batch changed and the probe pairs differ, this comparison does not isolate update count as the sole cause of improvement. [1, 3]

Multiplication did not succeed in the retry. Its three float controls obtained 20/500, 5/500 and 5/500 exact final 8-bit products, below the 450/500 gate. Logical multiplication was therefore not trained there. Calling it a measured logical-multiplication failure would incorrectly convert an unrun arm into a result. [1]

A later two-dimensional-grid study completed five logic and three float multiplication runs, again with final-answer supervision and 30,000 updates each. The logic final counts were 53, 14, 67, 28 and 25 out of 500; float counts were 239, 297 and 188. None reached the 90% bar. That outcome means no solution was learned in that setup and budget; it is not a theorem that multiplication cannot be learned. [3]

A correctness proof for one exported rule does not prove reliable discovery by the training procedure. One success among five seeds is fragile evidence about success frequency, and the collapse of another seed demonstrates sensitivity to optimization. The theorem covers this layout, zero initialization, boundaries and output convention. It does not cover arbitrary perturbed states, other tasks, other learned rules, a whole family of networks, or practical performance at unbounded sizes. No speed or energy claim follows. [1, 2]

6. Prior art and scope of the contribution

The literature and links were checked on 17 November 2026, alongside the study's prior-art search dated 16 November. Learned addition with an all-input proof already exists in Minimum Description Length Recurrent Neural Networks. Differentiable Logic Cellular Automata already combine gradient-trained logic-gate networks, recurrent local updates and discrete inference. Neural cellular automata for integer multiplication also predate this note. Neither learning addition, cellular logic, final-step supervision nor proving a learned recurrent computation is a first-ever claim here. [4, 5, 6]

The proof pattern is standard finite local verification plus induction, in the spirit of regular model checking, rather than a new proof technique. To our knowledge, as of 17 November 2026, the contribution supported here is this specific learned logic-gate cellular rule, trained only from final answers, together with a proof for every length. That is a bounded case report, not a priority claim established by an exhaustive literature search. [2]

7. Conclusion

One of five fixed-budget addition runs produced a discrete cellular rule that passed all prescribed tests through 10,000 bits. Post-hoc analysis exposed ripple-carry addition. Exhaustive checking of the original local circuit, followed by induction, establishes correct and permanently stable output for every input length under the stated conditions. The result validates one instance of learning a rule and then proving it; the unsuccessful seeds, failed multiplication controls and non-mechanized proof remain essential boundaries of that claim. [1, 2, 3]

8. Numbered references

[1] Trit3. Frozen addition and multiplication retry: protocol, final probes, exported rules, staged CPU tests and learning curves. Experimental completion: 16 November 2026, 23:50 in America/Sao_Paulo. Original identifier in the appendix.

[2] Trit3. Computer-assisted proof of the exported addition rule and recorded separate-agent review. 17 November 2026. Original rule and checking scripts identified below.

[3] Trit3. Earlier short-budget experiment and later two-dimensional-grid multiplication follow-up. Retained summaries and decision records, 16 and 17 November 2026.

[4] Nur Lan, Michal Geyer, Emmanuel Chemla and Roni Katzir. Minimum Description Length Recurrent Neural Networks. 2021, revised 2022.

[5] Pietro Miotti, Eyvind Niklasson, Ettore Randazzo and Alexander Mordvintsev. Differentiable Logic Cellular Automata: From Game of Life to Pattern Generation. 2025.

[6] Zichao Wei. On the Mirage of Long-Range Dependency, with an Application to Integer Multiplication. 2026.

9. Appendix: study map and reproducibility

The note is dated 17 November 2026, the date of the proof and this report. The experiment itself closed late on 16 November in America/Sao_Paulo; its UTC timestamp falls on 17 November. Original study codes appear only in this appendix.

Table 3. Original identifiers and dates

Experiment completion, proof date and report date are separate events. The right column uses the local date rather than an inferred publication date.

Note nameCodeDate in America/Sao_Paulo
Earlier short-budget studyL816 November 2026
Fixed-budget retryL8R16 November 2026 (23:50)
Two-dimensional multiplication follow-upL917 November 2026
Proof and separate-agent reviewAddition rule, seed 5517 November 2026

Rule SHA-256: 4f01417e8dd3e4e9ebfaef93590427aa686c2d7bf3dfa2f3b0034eb22ad2c5ec. The original object is A_seed55/rule.json from the L8R export. Its four-layer network is the object of the proof; the 27-node compiled form is a separate execution representation.

Source checking scripts: local_check.py and vec_eval.py check the original local network; rule_eval.py and crosscheck.py compare a scalar evaluator with the study simulator; timing_check.py performs finite timing sanity checks. Their saved outputs accompany the proof. The new figure script is scripts/addition_figures.py; it runs vendor/common.py for the concrete trace and checks each update against vec_eval.py. The saved trace is content/addition/space_time_trace.json.