Literal Most Recent Sign Memory
Abstract
The most recent sign memory equals the last nonzero emitted coefficient.
Theorem 1.1 (The literal minimum-position transition law).
Proof. Machine-checked in Lean as D5/S1/Words/Palindromes/PeriodDoubling/BaseLastSignMemory.base_path_last_sign (✓ std3). ∎
Source. Repository-derived.
Commentary.
For either emitted stream, each literal base edge updates the most recent sign when its new coefficient is nonzero. Induction along an arbitrary source path identifies the terminal memory with the last nonzero coefficient of the emitted stream. All source memories start at zero, and absent last entries use default zero. Acceptance and tightness are unnecessary; this statement also applies to the partial path before a marker is selected. The last-option expression is none for an empty list and some(List.getLast(…)) otherwise; the nonempty proof argument is implicit.
References
- Truth anchor:
D5/S1/Words/Palindromes/PeriodDoubling/BaseLastSignMemory.base_path_last_sign - Dependency: D5/S1/Words/Palindromes/PeriodDoubling/BaseChargeArithmetic