Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

Concrete Period-Doubling Transducer Potentials

Abstract

The fully reconstructed finite graph has exact integer bounds on every accepted run.

Definition 1.1 (The nine relation-state transitions).

Formalization. D5/S1/Words/Palindromes/PeriodDoubling/BaseCertificates.relNext (✓ std3).

Source. Repository-derived.

Commentary.

State 0 reads equal higher bits. State 1 reads complementary bits and may stop at (1,0). State 2 reads complementary lower bits, then one equal skipped bit to state 3. States 3,4,5 require a positive odd run of (0,1) before (1,0). States 6,7,8 impose the corresponding even-cut parity restriction. Inputs outside these nine relation states have no successors.

Definition 1.2 (The literal arithmetic update).

Formalization. D5/S1/Words/Palindromes/PeriodDoubling/BaseCertificates.baseNext (✓ std3).

Source. Repository-derived.

Commentary.

The update adds the endpoint-parity carries to the next binary bits, divides by two for the new carries, adds each rounded-half bit to its preceding bit and addition carry, and subtracts that bit from the resulting remainder to emit a signed digit. It rejects an input digit opposite to the digit two positions earlier. Otherwise it returns the full 19-component state and the label (f,q,n,j). div and mod here are Euclidean integer quotient and remainder. Boolean tests are embedded in the integers by toNat followed by cast.

Definition 1.3 (All literal arithmetic successors).

Formalization. D5/S1/Words/Palindromes/PeriodDoubling/BaseCertificates.baseSuccessors (✓ std3).

Source. Repository-derived.

Commentary.

For each of the four pairs of binary input bits, the relation transition supplies every allowed next relation state. baseNext adds the rounded-half carries, emits signed digits, updates the first and latest nonzero signs, and rejects an opposite input digit two positions later. The remaining components record the output violation flag and the two edge charges.

Definition 1.4 (The seven arithmetic source states).

Formalization. D5/S1/Words/Palindromes/PeriodDoubling/BaseCertificates.initialStates (✓ std3).

Source. Repository-derived.

Commentary.

The two lowest input bits give the fixed endpoint parities and initial rounded-half carries. Equal bits start the even-cut relation; different bits start A and B, with the flushed relation additionally available for the pair (1,0). All sign, previous-bit, addition-carry and violation components start at zero.

Definition 1.5 (The complete concrete graph and two potentials).

Formalization. D5/S1/Words/Palindromes/PeriodDoubling/BaseCertificates.baseTable (✓ std3).

Source. Repository-derived.

Commentary.

For indices 0 through 1491, baseTable selects one of 1492 literal rows through a balanced tree of index comparisons. The initial subtree remains inline; the other 63 subtrees are private baseTableChunk functions taking the original natural index. Each row consists of its 19 integer state components, a complete list of edges (target, f, q, input bit, output bit), and the optional class and charge potentials. Lookup outside that range returns the final row; the automaton uses Fin 1492, so its runs never use that fallback.

Definition 1.6 (The final parity and lowest-sign correction).

Formalization. D5/S1/Words/Palindromes/PeriodDoubling/BaseCertificates.baseOffset (✓ std3).

Source. Repository-derived.

Commentary.

Optional lookup reads a state component with default zero. Components 2 and 3 contain the two fixed endpoint parities; 14 and 15 contain their lowest nonzero signs. The formula is precisely the difference of the two final corrections.

Definition 1.7 (Flushed relation and arithmetic state).

Formalization. D5/S1/Words/Palindromes/PeriodDoubling/BaseCertificates.baseTerminal (✓ std3).

Source. Repository-derived.

Commentary.

A state is terminal precisely when its relation component is zero and all six arithmetic carry and previous-bit components at indices 4 through 9 are zero.

Definition 1.8 (The graph with selected terminal states).

Formalization. D5/S1/Words/Palindromes/PeriodDoubling/BaseCertificates.baseAutomaton (✓ std3).

Source. Repository-derived.

Commentary.

There are seven source indices, 0 through 6. Every edge is the literal row entry. A terminal state has relation component zero and vanishing arithmetic components 4 through 9. The last component selects valid outputs for the charge bound and invalid outputs for the class bound. The four input coordinates are f, q, n-bit, j-bit.

Theorem 1.9 (The concrete zero and three bounds).

Proof. Machine-checked in Lean as D5/S1/Words/Palindromes/PeriodDoubling/BaseCertificates.base_accepted_bound (✓ std3). ∎

Source. Repository-derived.

Commentary.

The complete row checks reconstruct every possible transition, enforce in-range successor indices, verify the source and goal conditions, and check reverse-closed integer potential inequalities. Kernel reduction checks 24 blocks of at most 64 rows in both modes. The partial-potential path theorem then applies to arbitrary finite accepted runs. This statement concerns graph paths; identifying such paths with actual integer palindrome cuts requires a separate arithmetic bridge.

References

  • Truth anchor: D5/S1/Words/Palindromes/PeriodDoubling/BaseCertificates.baseAutomaton
  • Truth anchor: D5/S1/Words/Palindromes/PeriodDoubling/BaseCertificates.baseNext
  • Truth anchor: D5/S1/Words/Palindromes/PeriodDoubling/BaseCertificates.baseOffset
  • Truth anchor: D5/S1/Words/Palindromes/PeriodDoubling/BaseCertificates.baseSuccessors
  • Truth anchor: D5/S1/Words/Palindromes/PeriodDoubling/BaseCertificates.baseTable
  • Truth anchor: D5/S1/Words/Palindromes/PeriodDoubling/BaseCertificates.baseTerminal
  • Truth anchor: D5/S1/Words/Palindromes/PeriodDoubling/BaseCertificates.base_accepted_bound
  • Truth anchor: D5/S1/Words/Palindromes/PeriodDoubling/BaseCertificates.initialStates
  • Truth anchor: D5/S1/Words/Palindromes/PeriodDoubling/BaseCertificates.relNext
  • Dependency: D5/S1/Words/Palindromes/PeriodDoubling/AutomatonPotential