Marked-Prefix Potential Certificates
Abstract
Every accepted marked-prefix path satisfies its shape or charge bound.
Definition 1.1 (The complete marked-prefix product graph).
Formalization. D5/S1/Words/Palindromes/PeriodDoubling/MarkedPrefixCertificates.prefixTable (✓ std3).
Source. Repository-derived.
Commentary.
For indices zero through 4261, prefixTable selects one of 4262 literal rows through a balanced tree of index comparisons. The initial subtree remains inline; the other 255 subtrees are private prefixTableChunk functions taking the original natural index. Each row lists the eight-component marker state, every labelled product edge, and the two optional potentials. The components are the base-state index, marker phase, flip flag, marker parity, retained flag, input phase, output phase and bad flag. Outside this range the final row is returned; all paths use Fin 4262.
Definition 1.2 (The literal marker-state update).
Formalization. D5/S1/Words/Palindromes/PeriodDoubling/MarkedPrefixCertificates.nextMarker (✓ std3).
Source. Repository-derived.
Commentary.
The marker modes are zero before selection, one and two while reading the two separating zeros, three before the next positive coefficient, and four during the final zeros. The formula displays the complete branch update. Each Boolean flag is converted to a natural number and then to an integer for storage.
Definition 1.3 (Literal marker transitions).
Formalization. D5/S1/Words/Palindromes/PeriodDoubling/MarkedPrefixCertificates.successors (✓ std3).
Source. Repository-derived.
Commentary.
Every base edge is passed to the marker-state transition nextMarker. The unmarked phase may remain unmarked or select a positive digit with two preceding zeros; marked phases read two zeros and the next positive digit, and phase four flushes leading zeros. Output-class violations are excluded and the flip, phase, parity, retention and bad flags follow the literal marker update.
Definition 1.4 (The successor-completeness checker).
Formalization. D5/S1/Words/Palindromes/PeriodDoubling/MarkedPrefixCertificates.prefixRealizationRowCheck (✓ std3).
Source. Repository-derived.
Commentary.
The checker compares every literal marker successor against the decoded indexed edge list, then verifies every target index is below 4262. It checks transition completeness independently of the potential inequalities.
Definition 1.5 (Bounded reconstruction windows).
Formalization. D5/S1/Words/Palindromes/PeriodDoubling/MarkedPrefixCertificates.prefixRealizationBlockCheck (✓ std3).
Source. Repository-derived.
Commentary.
Each window checks count consecutive rows starting at start. Separate kernel certificates cover all windows, and their union covers every marker state.
Definition 1.6 (Completed marker and terminal base state).
Formalization. D5/S1/Words/Palindromes/PeriodDoubling/MarkedPrefixCertificates.terminal (✓ std3).
Source. Repository-derived.
Commentary.
The terminal test requires marker phase four and a terminal underlying base state. The bad flag is tested separately by each automaton’s acceptance predicate. Option lookups use default zero and toNat converts the stored integer index to a natural number.
Definition 1.7 (The terminal marked-prefix charge correction).
Formalization. D5/S1/Words/Palindromes/PeriodDoubling/MarkedPrefixCertificates.prefixOffset (✓ std3).
Source. Repository-derived.
Commentary.
The terminal correction adds the base charge offset to the contribution of the retained or removed lowest marked digit. The marker parity assigns weight one or three. The operator getD reads an optional list entry with default zero, toNat converts an integer index to a natural number, and bne is Boolean inequality.
Definition 1.8 (The marked-prefix automata).
Formalization. D5/S1/Words/Palindromes/PeriodDoubling/MarkedPrefixCertificates.prefixAutomaton (✓ std3).
Source. Repository-derived.
Commentary.
Both modes start at indices zero through four and use every listed product edge. Acceptance requires the marker phase to be four, a terminal base state, and bad flag zero for the charge mode or one for the shape mode. The Boolean parameter chooses the mode.
Theorem 1.9 (Bounds on every accepted marked-prefix path).
Proof. Machine-checked in Lean as D5/S1/Words/Palindromes/PeriodDoubling/MarkedPrefixCertificates.prefix_accepted_bound (✓ std3). ∎
Source. Repository-derived.
Commentary.
The shape mode bounds total f charge by zero. The charge mode bounds five times f charge plus q charge and the terminal marked-prefix correction by five. The potentials telescope along paths of arbitrary length. Identifying these graph labels with integer cuts and signed-digit charges is a separate arithmetic obligation.
References
- Truth anchor:
D5/S1/Words/Palindromes/PeriodDoubling/MarkedPrefixCertificates.nextMarker - Truth anchor:
D5/S1/Words/Palindromes/PeriodDoubling/MarkedPrefixCertificates.prefixAutomaton - Truth anchor:
D5/S1/Words/Palindromes/PeriodDoubling/MarkedPrefixCertificates.prefixOffset - Truth anchor:
D5/S1/Words/Palindromes/PeriodDoubling/MarkedPrefixCertificates.prefixRealizationBlockCheck - Truth anchor:
D5/S1/Words/Palindromes/PeriodDoubling/MarkedPrefixCertificates.prefixRealizationRowCheck - Truth anchor:
D5/S1/Words/Palindromes/PeriodDoubling/MarkedPrefixCertificates.prefixTable - Truth anchor:
D5/S1/Words/Palindromes/PeriodDoubling/MarkedPrefixCertificates.prefix_accepted_bound - Truth anchor:
D5/S1/Words/Palindromes/PeriodDoubling/MarkedPrefixCertificates.successors - Truth anchor:
D5/S1/Words/Palindromes/PeriodDoubling/MarkedPrefixCertificates.terminal - Dependency: D5/S1/Words/Palindromes/PeriodDoubling/BaseCertificates