Clear_Text

> INCOMING TRANSMISSION...

> INITIATING SECURE UPLINK...

> CONNECTION TO AEVIUM CORE ESTABLISHED!

> BROADCASTING IN CLEAR_TEXT...

[TRANSMISSION 012: What the Remainder Keeps]

Progress does not begin again when we look at it.

Suppose every five units of progress complete one interval. At twelve units, two intervals are complete and two units remain. Those two units have already happened. When three more arrive, the third interval is due.

A counter that treats every inspection as a new starting point can lose that fact. It can make the outcome depend on how often someone looks.

The previous Transmission showed what early division can discard. Here we will retain that portion and prove what it permits: complete interval counts, no additional count from an unchanged reading, and the same final account under different observation schedules.

The model is explicit. Its proposed arithmetic must also fit within a finite range under stated bounds.

I. The Measure Stays Fixed

Choose a positive integer \( k \) as the interval length. Progress is measured from a fixed zero origin. Readings are nonnegative integers, arrive in nondecreasing order, and are processed one at a time. An observation reports accumulated progress; it does not create more.

Let \( p \) be the latest reading, \( C \) the cumulative count of completed intervals, and \( a \) the boundary through which progress has been assigned to completed intervals. The unfinished portion is \( r=p-a\text{.} \)

This is an account at an observation point. Progress may advance before the next reading arrives. The next update must recognize every newly completed interval, even when no observation occurred at the moment a boundary was crossed.

We require

\( a=kC,\text{ }p=kC+r,\text{ 0}\le r<k. \)

Completed intervals and unfinished progress must reconstruct the reading exactly. The boundary remains aligned with the original measure.

For \( k=\text{5},p=\text{12,} \) that boundary is ten. Moving it to twelve changes the next calculation: at fifteen, subtracting twelve exposes only three units and reports no new interval. Keeping the boundary at ten exposes five.

Restarting an interval whenever it is observed could be a different rule. It is incompatible with our fixed origin.

II. Why the Remainder Is Unique

For every nonnegative integer \( n \) and positive integer \( k\text{,} \) there are unique nonnegative integers \( q,r \) such that

\( n=qk+r,\text{ 0}\le r<k. \)

This is division with remainder (Shoup, 2008, pp. 3–4). Existence supplies an account for every reading. Uniqueness prevents the same reading and interval from supporting two different valid accounts. We need both before changing the observation schedule.

The proof uses ordinary integer arithmetic and the fact that a nonempty finite set of integers has a greatest member.

Existence. Consider all nonnegative integers \( j \) satisfying \( jk\le n\text{.} \) Zero qualifies. Since \( k\ge \text{1,} \) every candidate satisfies \( j\le jk\le n\text{.} \) There are finitely many candidates; let \( q \) be the greatest.

Set \( r=n-qk\text{.} \) Then \( r\ge \text{0.} \) If \( r\ge k\text{,} \)

\( \text{(}q+\text{1)}k=qk+k\le qk+r=n. \)

The larger candidate \( q+\text{1} \) would also qualify, contradicting our choice. Hence \( r<k\text{.} \)

Uniqueness. Suppose \( n={q}^{\text{'}}k+{r}^{\text{'}} \) also satisfies the remainder bounds. If the quotients differ, exchange labels if necessary so that \( {q}^{\text{'}}>q\text{.} \) Subtraction gives

\( \text{(}{q}^{\text{'}}-q\text{)}k=r-{r}^{\text{'}}. \)

The left side is at least \( k\text{,} \) because \( {q}^{\text{'}}-q \) is a positive integer. The right side is at most \( r<k\text{,} \) because \( {r}^{\text{'}}\ge \text{0.} \) This is impossible. Thus \( q={q}^{\text{'}}\text{,} \) and substitution gives \( r={r}^{\text{'}}\text{.} \)

Dividing \( n=qk+r \) by positive \( k \) gives \( q\le n/k<q+\text{1.} \) Hence \( q=\text{⌊}n/k\text{⌋}\text{,} \) where floor selects the greatest integer no larger than its argument.

The amount and the fixed measure determine one account. An observation schedule cannot choose another valid decomposition of that same amount.

III. What Every Reading Must Preserve

Initially, \( p=a=C=r=\text{0.} \) Admit a new reading \( P\ge p \) and calculate the amount not yet assigned to completed intervals:

\( n=P-a. \)

Primes now indicate values after the update. Divide by the unchanged interval:

\( n=qk+{r}^{\text{'}},\text{ 0}\le {r}^{\text{'}}<k. \)

Report \( q \) newly completed intervals and update

\( {p}^{\text{'}}=P,\text{ }{C}^{\text{'}}=C+q,\text{ }{a}^{\text{'}}=a+qk. \)

The boundary advances only by whole intervals. With \( k=\text{5,} \) the earlier example becomes this trace:

QuantityAt twelveAfter fifteen
Latest reading\[ p=\text{12} \]\[ {p}^{\text{'}}=P=\text{15} \]
Completed intervals\[ C=\text{2} \]\[ {C}^{\text{'}}=\text{3} \]
Accounted boundary\[ a=\text{10} \]\[ {a}^{\text{'}}=\text{15} \]
Unfinished progress\[ r=\text{2} \]\[ {r}^{\text{'}}=\text{0} \]

Here \( n=P-a=\text{15}-\text{10}=\text{5}=\text{1}\times \text{5}+\text{0.} \) The newly reported count is \( q=\text{1;} \) the cumulative total is \( {C}^{\text{'}}=\text{3.} \) The two retained units and three new units complete one interval.

Preservation proof. The relationship holds initially: zero completed intervals and zero remainder reconstruct zero progress.

Assume it holds before a reading. Then \( a\le p\le P\text{,} \) so \( n=P-a\ge \text{0} \) and division applies. The new boundary satisfies

\( {a}^{\text{'}}=a+qk=kC+qk=k\text{(}C+q\text{)}=k{C}^{\text{'}}. \)

Also,

\( P=a+n=a+qk+{r}^{\text{'}}={a}^{\text{'}}+{r}^{\text{'}}=k{C}^{\text{'}}+{r}^{\text{'}}. \)

Since \( {p}^{\text{'}}=P\text{,} \) this restores the original invariant form with updated values.

Division supplies \( \text{0}\le {r}^{\text{'}}<k\text{.} \) In particular, \( {a}^{\text{'}}=P-{r}^{\text{'}}\le P\text{,} \) preserving the condition needed for the next reading.

The relationship holds at the start and survives every permitted next observation. Induction therefore gives it after every finite sequence. This is the invariant principle applied to our update rule (Lehman et al., 2015, Section 5.4.3).

Uniqueness now gives

\( {C}^{\text{'}}=\text{⌊}{P}/{k}\text{⌋}. \)

The boundary is the greatest multiple of \( k \) no larger than \( P\text{.} \) It marks the end of completed progress; the remainder measures the distance from that boundary to the current reading. Both belong to the same account.

The cumulative count includes exactly the completed intervals from the origin. When \( q>\text{0,} \) the newly completed indices run from \( C+\text{1} \) through \( C+q\text{.} \) The old count covers one through \( C\text{.} \) These ranges have neither overlap nor gap. When \( q=\text{0,} \) no new interval is reported.

To locate the unfinished portion, write the new progress as \( \delta =P-p\text{.} \) Then

\( P-a=\text{(}P-p\text{)}+\text{(}p-a\text{)}=\delta +r. \)

The next division receives new progress together with the old remainder. This does not count completed progress twice: the previous \( C \) accounted for only \( kC=a \) units. The remainder lay beyond that boundary. Once it completes an interval, the boundary advances over it, removing it from the unfinished portion.

The remainder need not occupy a separate storage field. The correct boundary preserves it as a difference. Alternatively, calculate the new total \( \text{⌊}P/k\text{⌋} \) and subtract \( C\text{.} \) Since \( {C}^{\text{'}}=C+q\text{,} \) this also gives \( q\text{.} \) The representation may differ; the accounting obligation remains the same.

IV. The Same Progress Seen Again

Suppose a reading \( P \) leaves \( {a}^{\text{'}}=P-{r}^{\text{'}}\text{,} \) with \( \text{0}\le {r}^{\text{'}}<k\text{.} \) Observe the same progress again. The unaccounted amount is

\( P-{a}^{\text{'}}={r}^{\text{'}}. \)

Because \( {r}^{\text{'}}<k\text{,} \) its unique decomposition is zero whole intervals plus the same remainder. The new quotient is zero. Neither count nor boundary changes; the latest reading and remainder also stay the same.

The retained state is unchanged. The report need not be: the first observation may report several intervals, while its repetition reports none.

In our trace, inserting another reading of twelve reports zero and leaves boundary ten. The later reading of fifteen still reports one. Inspection has preserved the two unfinished units without creating an additional completion.

This concerns cumulative readings. Observing accumulated progress three twice still describes three units. Applying an instruction to add three twice describes six. Identifying repeated instructions requires information about those instructions, beyond the quantities in this model.

At an exact multiple of \( k\text{,} \) the remainder is zero. At zero progress, the count is zero. If \( k=\text{1,} \) every unit completes an interval. The proof includes these cases.

V. When the Readings Change

Take any finite nondecreasing sequence from the same initial state, ending at \( P\text{.} \) The invariant gives

\( P=kC+r,\text{ 0}\le r<k. \)

Uniqueness forces every such sequence to finish with

\( C=\text{⌊}{P}/{k}\text{⌋},\text{ }r=P-kC,\text{ }a=kC. \)

These values depend only on the endpoint and fixed measure. Intermediate readings cannot change them. Each report adds its quotient to \( C\text{,} \) initially zero, so the sum of all reports is that final count. Several small reports and one larger report can account for the same completed progress.

We can measure exactly what is lost by dividing each increment separately and discarding its remainder. For \( N\ge \text{1} \) nonnegative increments, write

\( {\delta}_{i}={c}_{i}k+{e}_{i},\text{ 0}\le {e}_{i}<k. \)

Let \( S \) be the sum of increments, \( B \) the sum of their individual quotients, and \( E \) the sum of their remainders. Adding gives \( S=kB+E\text{.} \) Divide \( E=tk+u\text{,} \) with \( \text{0}\le u<k\text{.} \) Then

\( S=k\text{(}B+t\text{)}+u. \)

Uniqueness makes the correct count \( B+t\text{.} \) Independent division reports only \( B\text{.} \) Its missing count is exactly \( t=\text{⌊}E/k\text{⌋}\text{:} \) whole intervals assembled from discarded portions. Since \( \text{0}\le E<Nk\text{,} \) we have \( \text{0}\le E/k<N\text{;} \) the integer loss therefore lies between zero and \( N-\text{1.} \)

The bound need not be reached. If \( E<k\text{,} \) no whole interval is missing yet; any discarded progress is still unfinished.

For increments three and three with \( k=\text{5,} \) both individual quotients are zero. Together they complete one interval and leave one unit.

For fixed \( k \), each discarded remainder is at most \( k-\text{1} \), so the greatest possible loss is \( \lfloor N\text{(}k-\text{1)}/k\rfloor =N-\lceil N/k\rceil \), attained when every remainder equals \( k-\text{1} \). Ceiling means the least integer no smaller than its argument. Thus the bound \( N-\text{1} \) is attainable exactly when \( N\le k \).

Choose \( k=N\ge \text{2} \) and take \( N \) increments of size \( k-\text{1.} \) Each quotient is zero, but the total is \( N\text{(}k-\text{1)}=k\text{(}N-\text{1)}\text{:} \) exactly \( N-\text{1} \) completed intervals. For \( k=N=\text{5,} \) five increments of four produce twenty units. Discarding each remainder loses all four completed intervals.

Equal final accounts do not imply equal timing or consequences. Consider a separate, hypothetical rule: each recognized interval releases one token. With \( k=\text{5,} \) one schedule observes at five and ten; another first observes at ten. A decision made at progress six can use a token under the first schedule, while the second has recognized none. At ten, both have counted two completions. The earlier decision did not have the same options.

The theorem accounts for completions and residual progress. When their effects occur, and how intervening decisions use them, requires a separate specification. Arbitrary game actions have not been proved interchangeable.

VI. Within a Finite Boundary

TX 011 requires us to examine the intermediate arithmetic too.

Let \( M \) be a positive integer, with represented values \( \text{0},\ldots ,M\text{.} \) Assume a valid retained state, \( \text{0}\le a\le P\le M\text{,} \) and \( \text{1}\le k\le M\text{.} \) Then \( \text{0}\le n=P-a\le M\text{.} \)

Division gives \( q=\text{⌊}n/k\text{⌋}\le n\text{,} \) because \( k\ge \text{1.} \) Also \( \text{0}\le {r}^{\text{'}}\le n\text{,} \) since \( {r}^{\text{'}}=n-qk\text{.} \) Both outputs fit. The boundary’s advancing product satisfies

\( \text{0}\le qk=n-{r}^{\text{'}}\le n\le M. \)

Its addition satisfies

\( \text{0}\le a+qk=P-{r}^{\text{'}}\le P\le M. \)

Finally, \( C+q=\text{⌊}P/k\text{⌋}\le P\le M\text{.} \) The cumulative-count addition fits, and the new reading is already bounded. Every specified update operation has a representable result. We have reasoned over ordinary integers to justify the bounded calculations.

The conclusions require a fixed interval and origin, nondecreasing readings without wraparound, and sequential updates from the preceding retained state. They do not establish concurrent execution, persistence across interruption, or a bound on work attached to each interval. They establish the accounting rule.

Counting an interval does not execute the work attached to it. If each completion starts another process, this proof has not established how that process ends or what it costs. That work still requires an account of its own.

For The Everdark Accord, I require incomplete progress to remain available to the rule that will complete it. Inspection must not silently erase it or manufacture a second claim upon it.

What remains is still part of what happened.

--The Architect--

References

Lehman, E., Leighton, F. T., & Meyer, A. R. (2015). Mathematics for computer science. Massachusetts Institute of Technology. https://ocw.mit.edu/courses/6-042j-mathematics-for-computer-science-spring-2015/mit6_042js15_textbook.pdf

Shoup, V. (2008). A computational introduction to number theory and algebra (Version 2). https://shoup.net/ntb/ntb-v2.pdf

> END OF TRANSMISSION...CONNECTION CLOSED