Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

Bit masks retain actual nondeterministic paths

Abstract

Bit masks retain actual nondeterministic paths

Definition 1.1 (maskStep).

Formalization. D5/S1/Words/Palindromes/FridPrefix/MaskReachability.maskStep (✓ std3).

Source. Repository-derived.

Commentary.

bitOr is bitwise natural OR. The fold enumerates every row index, adds its transition mask exactly when that source-state bit is present, and uses zero for missing transition entries.

Definition 1.2 (maskNFA).

Formalization. D5/S1/Words/Palindromes/FridPrefix/MaskReachability.maskNFA (✓ std3).

Source. Repository-derived.

Commentary.

All states accept in this auxiliary path automaton. An edge requires q<rows.length and the destination bit of rows[q][symbol] to be present.

Theorem 1.3 (mask_path).

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

Source. Repository-derived.

Commentary.

A bit that survives a full word has an actual path from an initial bit. The proof reconstructs a predecessor through each bitwise-OR transition.

References

  • Truth anchor: D5/S1/Words/Palindromes/FridPrefix/MaskReachability.maskNFA
  • Truth anchor: D5/S1/Words/Palindromes/FridPrefix/MaskReachability.maskStep
  • Truth anchor: D5/S1/Words/Palindromes/FridPrefix/MaskReachability.mask_path