A mismatch path constructs reflected unequal Fibonacci letters
Abstract
A mismatch path constructs reflected unequal Fibonacci letters
Definition 1.1 (badCoordinates).
Formalization. D5/S1/Words/Palindromes/FridPrefix/MismatchWitness.badCoordinates (✓ std3).
Source. Repository-derived.
Commentary.
The literal 138 tuples contain previous-digit masks, comparison flags, and the two signed Fibonacci carry coordinates. The proof verifies every permitted transition against these coordinates.
Theorem 1.2 (mismatch_witness).
Proof. Machine-checked in Lean as D5/S1/Words/Palindromes/FridPrefix/MismatchWitness.mismatch_witness (✓ std3). ∎
Source. Repository-derived.
Commentary.
X maps each paired symbol a to Fin.ofNat(2,a div 2), and Y maps it to Fin.ofNat(2,a). div is natural division. The two constructed canonical words U,V lie inside [value(X),value(Y)), their positions sum to value(X)+value(Y)-1, and their last digits differ. getLastD uses zero for an empty word.
References
- Truth anchor:
D5/S1/Words/Palindromes/FridPrefix/MismatchWitness.badCoordinates - Truth anchor:
D5/S1/Words/Palindromes/FridPrefix/MismatchWitness.mismatch_witness - Dependency: D5/S1/Words/Palindromes/FridPrefix/LanguageMonitor
- Dependency: D5/S1/Words/Palindromes/FridPrefix/NumeralSemantics