Class Spacing of Transducer Outputs
Abstract
Both signed streams of any path ending at a valid charge-mode goal forbid opposite digits at distance two.
Definition 1.1 (Digit memories and persistent class flag).
Formalization. D5/S1/Words/Palindromes/PeriodDoubling/BaseClassStreams.classRowCheck (✓ std3).
Source. Repository-derived.
Commentary.
The checker tests both shifted digit memories, immediate rejection of an input violation, and backward propagation of the output violation flag on every base edge.
Theorem 1.2 (No opposite signs two digit positions apart).
Proof. Machine-checked in Lean as D5/S1/Words/Palindromes/PeriodDoubling/BaseClassStreams.base_path_class_spacing (✓ std3). ∎
Source. Repository-derived.
Commentary.
output selects target component 12 when true and component 10 when false. Zip the digit stream with its tail. Consecutive pairs (a,b) and (b,c) satisfy a times c unequal to minus one. Together with the sparse signed-digit property, this is the class S condition that consecutive nonzero digits of opposite signs have gap at least three. The input transducer rejects violations immediately. The output stores a persistent violation flag, which is zero at every charge-mode accepting goal. Induction propagates that flag backwards and reconstructs each triple from the two digit memories. This result does not assert completeness for actual palindrome cuts.
References
- Truth anchor:
D5/S1/Words/Palindromes/PeriodDoubling/BaseClassStreams.base_path_class_spacing - Truth anchor:
D5/S1/Words/Palindromes/PeriodDoubling/BaseClassStreams.classRowCheck - Dependency: D5/S1/Words/Palindromes/PeriodDoubling/BaseSignedStreams