Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

Every canonical increasing digit pair has the endpoint complement property

Abstract

Every canonical increasing digit pair has the endpoint complement property

Definition 1.1 (initial).

Formalization. D5/S1/Words/Palindromes/FridPrefix/LanguageMonitor.initial (✓ std3).

Source. Repository-derived.

Commentary.

The constructor lists fields bad, endpoint, previousX, previousY, strict and valid in that order.

Definition 1.2 (invalid).

Formalization. D5/S1/Words/Palindromes/FridPrefix/LanguageMonitor.invalid (✓ std3).

Source. Repository-derived.

Commentary.

The invalid signature is absorbing under the monitor update.

Definition 1.3 (step).

Formalization. D5/S1/Words/Palindromes/FridPrefix/LanguageMonitor.step (✓ std3).

Source. Repository-derived.

Commentary.

The expression is this literal update. Let x=val(symbol) div 2 and y=val(symbol) mod 2, where div is truncated natural division. Return invalid if not valid, if previousX=x=1, if previousY=y=1, or if strict is false and y<x. Otherwise return (maskStep(badRows,bad,val(symbol)),maskStep(endpointMasks,endpoint,val(symbol)),x,y,strict OR decide(x<y),true).

Definition 1.4 (hasAccept).

Formalization. D5/S1/Words/Palindromes/FridPrefix/LanguageMonitor.hasAccept (✓ std3).

Source. Repository-derived.

Commentary.

bitAnd is natural bitwise AND. notEqualBool returns true precisely when its arguments differ.

Definition 1.5 (conclusion).

Formalization. D5/S1/Words/Palindromes/FridPrefix/LanguageMonitor.conclusion (✓ std3).

Source. Repository-derived.

Commentary.

A valid strictly increasing canonical pair is accepted by exactly one of the mismatch and endpoint languages.

Theorem 1.6 (every_word).

Proof. Machine-checked in Lean as D5/S1/Words/Palindromes/FridPrefix/LanguageMonitor.every_word (✓ std3). ∎

Source. Repository-derived.

Commentary.

The concrete monitor certificate is closed under all four digit-pair symbols and satisfies the terminal implication at every listed state. Induction transports those finite statements to every word; invalid or non-strict words retain the implication without a claim about complementarity.

References

  • Truth anchor: D5/S1/Words/Palindromes/FridPrefix/LanguageMonitor.conclusion
  • Truth anchor: D5/S1/Words/Palindromes/FridPrefix/LanguageMonitor.every_word
  • Truth anchor: D5/S1/Words/Palindromes/FridPrefix/LanguageMonitor.hasAccept
  • Truth anchor: D5/S1/Words/Palindromes/FridPrefix/LanguageMonitor.initial
  • Truth anchor: D5/S1/Words/Palindromes/FridPrefix/LanguageMonitor.invalid
  • Truth anchor: D5/S1/Words/Palindromes/FridPrefix/LanguageMonitor.step
  • Dependency: D5/S1/Words/Palindromes/FridPrefix/LanguageData
  • Dependency: D5/S1/Words/Palindromes/FridPrefix/MaskReachability