Clause Machine Error Cleanup
Abstract
Error cleanup returns the zero-variable, one-empty-clause query descriptor.
Theorem 1.1 (All stack contents, exact clean halt and linear cleanup time).
Proof. Machine-checked in Lean as D5/S0/Computability/ClauseMalformedCleanup.pre_error_cleanup (✓ std3). ∎
Source. Repository-derived.
Commentary.
From error entry, every finite control state and all arbitrary Boolean input, header, scratch and partial-query words are included, with the output stack initially empty. The actual fixed machine drains those four stacks, writes the dummy query, resets its control to the initial state and reaches the exact haltList configuration.
The transition bound is the sum of the four initial stack lengths plus five. Each pop removes one real symbol. Four empty-stack transitions select the next cleanup phase, and the final fixed statement writes the complete dummy word.
The dummy word describes zero hidden variables and one empty raw clause. This result proves cleanup from error entry. The separate parser-to-error-entry run and its complete polynomial bound are required for universal malformed-source correctness.
References
- Truth anchor:
D5/S0/Computability/ClauseMalformedCleanup.pre_error_cleanup - Dependency: D5/S0/Computability/ClauseQueryPreprocessor