Clear_Text

> INCOMING TRANSMISSION...

> INITIATING SECURE UPLINK...

> CONNECTION TO AEVIUM CORE ESTABLISHED!

> BROADCASTING IN CLEAR_TEXT...

[TRANSMISSION 015: The Conditions of the Proof]

A proof has a boundary, too.

The earlier Transmissions examined representation, progress, termination, and capacity. Each conclusion depended on stated conditions. The remaining obligation is correspondence: showing that the machine described in an argument represents the software to which we attach its conclusion.

The preceding account could remain exact while physical usage escaped its coverage. The arithmetic survived; its connection to what was held did not. Here we derive conditions for carrying a preserved property between different descriptions.

That connection has to be proved. A sound argument cannot supply a relationship its premises do not justify.

I. Every Permitted History

Begin with an invented machine whose raw states are integer pairs \( \text{(}x,y\text{)}\text{.} \) Its two counters are intended to represent the same balance. Both start at zero. Addition increases both by one. Removal decreases both by one when \( y>\text{0;} \) otherwise it changes nothing. These are all its transitions, each indivisible in this model.

One permitted history is

\( \text{(0},\text{0)}\to \text{(1},\text{1)}\to \text{(2},\text{2)}\to \text{(1},\text{1)}. \)

The removal checks the second counter. We want assurance that the first never becomes negative, throughout every permitted history, including histories nobody selected as tests.

The next argument explains how a statement earns that reach: show that it holds at the beginning and survives every allowed next step. We will apply that method to these counters.

Call the state set \( S \) and its nonempty set of permitted starts \( {S}_{\text{0}}\text{.} \) Here, \( S \) contains all integer pairs and \( {S}_{\text{0}} \) contains only \( \text{(0},\text{0)}\text{.} \) Write \( s\to t \) for an allowed step. Several successors may be allowed.

A predicate \( I\text{(}s\text{)} \) is a statement that is true or false of a state. Require it to hold at every permitted start and to survive every permitted step whenever it already holds:

\( I\text{(}s\text{)}\text{ and }s\to t\text{ }\Rightarrow \text{ }I\text{(}t\text{)}. \)

Proof. Choose any finite permitted history \( {s}_{\text{0}},{s}_{\text{1}},\ldots ,{s}_{n}\text{.} \) Initialization gives \( I\text{(}{s}_{\text{0}}\text{)}\text{.} \) If \( I\text{(}{s}_{j}\text{)} \) holds at a position \( j<n\text{,} \) the next allowed step \( {s}_{j}\to {s}_{j+\text{1}} \) and preservation give \( I\text{(}{s}_{j+\text{1}}\text{)}\text{.} \) Induction establishes the predicate at every position through \( n\text{.} \)

The history and its length were arbitrary. The result therefore covers every finite permitted history, including zero steps. This is the invariant principle (Lehman et al., 2015, Section 5.4.3).

Every finite position in an infinite execution is covered by its finite prefix. This proof requires neither eventual completion nor an available next step. Preserving a relationship does not guarantee progress.

Adding a starting state or a transition changes an obligation: initialization or preservation must be checked there too.

II. The Relationship the Proof Needs

The desired conclusion may be too weak to carry its own induction. Lamport (2008, Section 5.1.1) distinguishes a preserved invariant from the property it implies.

Try \( x\ge \text{0} \) alone. The raw state \( \text{(0},\text{1)} \) satisfies it, but removal produces \( \text{(}-\text{1},\text{0)}\text{.} \) The proposed assertion fails preservation.

This has not demonstrated an executable failure from the specified start. The proposed hypothesis allowed an unequal pair. It omitted the relationship that makes checking \( y \) protect \( x\text{.} \)

Use the stronger statement

\( I\text{(}x,y\text{)}:\text{ }x=y\text{ and }y\ge \text{0}. \)

Initialization. At \( \text{(0},\text{0)}\text{,} \) equality and nonnegativity both hold.

Addition. Assuming \( I\text{(}x,y\text{)}\text{,} \) the updated coordinates satisfy \( {x}^{\text{'}}=x+\text{1}=y+\text{1}={y}^{\text{'}}\text{.} \) Also \( {y}^{\text{'}}=y+\text{1}\ge \text{0.} \) Both parts survive.

Removal. If \( y>\text{0,} \) integrality gives \( y\ge \text{1.} \) Hence \( {y}^{\text{'}}=y-\text{1}\ge \text{0} \) and \( {x}^{\text{'}}=x-\text{1}=y-\text{1}={y}^{\text{'}}\text{.} \) If the guard fails, both coordinates remain unchanged, preserving the assertion.

These cases cover every transition. The first proof establishes \( I \) throughout every permitted history. Since \( x=y\ge \text{0,} \) the desired conclusion follows. The unequal pair \( \text{(0},\text{1)} \) is unreachable from the specified start.

Strengthening the invariant preserved information needed by the argument. It changed no rule of the machine.

III. The Correspondence Must Be Proved

A different representation might store cumulative additions and removals. Two additions and one removal give totals \( \text{(2},\text{1)}\text{,} \) meaning one unit remains. The earlier model would represent that balance as \( \text{(1},\text{1)}\text{.} \)

Let \( C \) contain the detailed, or concrete, states, and \( {C}_{\text{0}} \) their permitted starts. Write \( c↝d \) for a concrete step. A fixed interpretation rule \( \alpha :C\to S \) assigns an abstract meaning to each concrete state. In our example, \( \alpha \text{(2},\text{1)}=\text{(1},\text{1)}\text{.} \)

Here are three sufficient obligations for transferring the invariant.

The starts must agree. Every permitted concrete start must have a permitted abstract meaning:

\( c\in {C}_{\text{0}}\text{ }\Rightarrow \text{ }\alpha \text{(}c\text{)}\in {S}_{\text{0}}. \)

The steps must agree with the rules. Each concrete step must produce an allowed abstract step or leave its abstract meaning unchanged:

\( c↝d\text{ }\Rightarrow \text{ }\alpha \text{(}c\text{)}=\alpha \text{(}d\text{)}\text{ or }\alpha \text{(}c\text{)}\to \alpha \text{(}d\text{)}. \)

The unchanged case is stuttering at the abstract level. The detailed machine may still change; its interpreted meaning does not. Such mappings connect different state descriptions while permitting this distinction (Lamport, 2008, Sections 5.2.1–5.2.3).

The model must support the actual claim. Name the concrete property \( Q \) and establish, for every \( c\in C\text{,} \)

\( I\text{(}\alpha \text{(}c\text{)}\text{)}\text{ }\Rightarrow \text{ }Q\text{(}c\text{)}. \)

Here \( I \) is the model’s relationship; \( Q \) is what we claim about the detailed state. For cumulative totals, we want nonnegative balance in the model to imply that removals never exceed additions.

Read \( I\text{(}\alpha \text{(}c\text{)}\text{)} \) in order: take the detailed state, interpret it, then ask whether the model’s relationship holds. A true answer must warrant the concrete claim. The implication is where the proof acquires relevance to that claim.

Transfer proof. Choose any finite permitted concrete history \( {c}_{\text{0}},{c}_{\text{1}},\ldots ,{c}_{n}\text{.} \) The first obligation maps \( {c}_{\text{0}} \) into \( {S}_{\text{0}}\text{,} \) so abstract initialization gives \( I\text{(}\alpha \text{(}{c}_{\text{0}}\text{)}\text{)}\text{.} \)

Assume \( I\text{(}\alpha \text{(}{c}_{j}\text{)}\text{)} \) for a position \( j<n\text{.} \) The second obligation gives two cases. If the image is unchanged, \( I\text{(}\alpha \text{(}{c}_{j+\text{1}}\text{)}\text{)} \) remains the same true statement. Otherwise, an allowed abstract step connects the images, and preservation gives \( I\text{(}\alpha \text{(}{c}_{j+\text{1}}\text{)}\text{)}\text{.} \)

Induction covers every position. The third obligation then gives \( Q\text{(}{c}_{j}\text{)} \) at each one. The history was arbitrary, so the concrete property holds throughout every finite permitted concrete history.

This transfers the named property. It does not guarantee a response: the concrete machine could stutter forever. Progress needs further conditions (Lamport, 2008, Section 5.2.4).

IV. What the Mapping Must Carry

Now specify the cumulative representation. Its raw states are nonnegative integer pairs \( \text{(}a,b\text{)}\text{:} \) additions recorded and removals recorded. Both begin at zero. Addition increments \( a \) by one. Removal increments \( b \) by one only when \( b<a\text{;} \) otherwise nothing changes.

Use the fixed interpretation

\( \alpha \text{(}a,b\text{)}=\text{(}a-b,a-b\text{)}. \)

OperationCumulative totals \( \text{(}a,b\text{)} \)Interpreted pair \( \text{(}x,y\text{)} \)
Start\[ \text{(0},\text{0)} \]\[ \text{(0},\text{0)} \]
Add one\[ \text{(1},\text{0)} \]\[ \text{(1},\text{1)} \]
Add one\[ \text{(2},\text{0)} \]\[ \text{(2},\text{2)} \]
Remove one\[ \text{(2},\text{1)} \]\[ \text{(1},\text{1)} \]

In the last row, the removal total increases while the interpreted balance decreases. The records differ from the abstract counters; their meaning must still satisfy the three obligations.

Starts. The concrete start maps to \( \text{(0},\text{0)}\text{,} \) the permitted abstract start.

Steps. Addition changes each interpreted coordinate from \( a-b \) to \( \text{(}a+\text{1)}-b=\text{(}a-b\text{)}+\text{1,} \) an abstract addition. For removal, \( b<a \) gives \( a-b>\text{0,} \) satisfying the abstract guard. Increasing \( b \) changes each coordinate to \( a-\text{(}b+\text{1)}=\text{(}a-b\text{)}-\text{1,} \) an abstract removal. Refusal leaves the image unchanged. These cases cover every concrete transition.

Claim. The abstract invariant at the image gives \( a-b\ge \text{0.} \) Adding \( b \) yields \( b\le a\text{:} \) recorded removals cannot exceed recorded additions. Thus the third obligation holds, and the transfer proof establishes this concrete property throughout every permitted history.

These are mathematical integers. Finite representations add the arithmetic obligations examined earlier.

The third obligation cannot be omitted. Consider another concrete machine: a nonnegative integer \( u\text{,} \) initially zero, whose only step increments it. Choose an integer \( B\ge \text{0} \) and claim \( Q\text{(}u\text{)}:u\le B\text{.} \)

The constant map \( \alpha \text{(}u\text{)}=\text{(0},\text{0)} \) sends the start to the abstract start. Every increment leaves the abstract meaning unchanged. With a proposed ceiling of two, the counter can reach three while its abstract image still shows \( \text{(0},\text{0)}\text{.} \)

Generally, the permitted history \( \text{0},\text{1},\ldots ,B+\text{1} \) exceeds the claimed ceiling. At its last state, \( I\text{(}\alpha \text{(}B+\text{1)}\text{)} \) is true and \( Q\text{(}B+\text{1)} \) is false. Starts and steps agree, but the implication to the claim fails.

The map discarded the quantity the claim concerned.

Observation points matter too. Implementing the paired addition as two writes, with \( x \) first, takes \( \text{(0},\text{0)} \) through \( \text{(1},\text{0)} \) before reaching \( \text{(1},\text{1)}\text{.} \) Equality fails between the writes.

A claim about completed operations may remain appropriate. A claim about every concrete step is already false here. Selecting observation points requires justification and an account of what the relevant observer can encounter. Calling a step internal does not make it unobservable.

V. What the Evidence Can Decide

Suppose two functions both return zero on the tested inputs \( \text{0,} \) \( \text{1,} \) and \( \text{2.} \) One always returns zero. The other returns one at \( \text{3} \) and zero elsewhere. Their observed outputs are identical, but only the first satisfies the claim that every answer is zero.

General construction. Let \( D \) be any finite set of tested nonnegative integers. Choose a nonnegative integer \( k \) outside \( D\text{,} \) possible because the domain is infinite. Define \( f\text{(}n\text{)}=\text{0} \) everywhere. For this chosen \( k\text{,} \) define \( g\text{(}k\text{)}=\text{1} \) and \( g\text{(}n\text{)}=\text{0} \) whenever \( n\ne k\text{.} \)

For every tested \( n\in D\text{,} \) \( n\ne k\text{,} \) hence \( g\text{(}n\text{)}=\text{0}=f\text{(}n\text{)}\text{.} \) Nevertheless, “every answer is zero” holds for \( f \) and fails for \( g \) at \( k\text{.} \) Therefore these observed answers alone cannot establish that universal claim over the unrestricted infinite domain. The construction includes an empty test set. Additional structural knowledge may support a stronger conclusion.

Exhaustive checking of a finite model is different: if every reachable state is enumerated and checked for the stated state property, the conclusion covers that modeled set. Its correspondence to the implementation still requires justification.

Tests can expose a failed assumption. A proof can establish consequences of assumptions. Each result needs a named object and a stated reach.

VI. Where the Claim Ends

For The Everdark Accord, this is an obligation on my language as much as on the construction. A proof about one operation remains a proof about that operation. Extending the claim requires extending the argument.

These Transmissions give public models and their consequences. Carrying those conclusions into a claim about software requires justified correspondence. The theorem here supplies one sufficient form; verifying its conditions remains part of the work.

When a condition changes, examine where the argument used it. When an observation contradicts a claim, examine the claim and its reasoning together. Precision includes reducing a claim to what its evidence supports.

The Invariant remains on these pages as a measure of that obligation. Whatever else the mark leaves unexplained, the conditions of a public claim belong beside it.

The boundary applies to the maker, too.

--The Architect--

References

Lamport, L. (2008). Computation and state machines [Unpublished manuscript]. https://lamport.azurewebsites.net/pubs/state-machine.pdf

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

> END OF TRANSMISSION...CONNECTION CLOSED