Documentation

Complexitylib.Models.TuringMachine.Repetition.Internal.Correctness

Pathwise correctness of fixed-time repetition #

This module performs the outer induction over the exact repetition schedule. When every T-choice source trace on the fixed input halts, each wrapper trial records the corresponding compact-seed vote, transfers the fresh-bank boundary, and the final trial writes their strict majority.

Main results #

theorem Complexity.NTM.repeatAtTime_outer_correct {n k T : } (tm : NTM n) (x : List Bool) (choices : Fin (repeatAtTimeSteps k T)Bool) (hhalt : ∀ (runChoices : Fin TBool), (tm.trace T runChoices (tm.initCfg x)).state = tm.qhalt) :
tm.RepeatOuterClaim x choices

Under fixed-input all-paths halting at time T, every exact wrapper trial boundary satisfies RepeatBoundary.

theorem Complexity.NTM.repeatAtTime_trace_correct_internal {n k T : } (tm : NTM n) (x : List Bool) (choices : Fin (repeatAtTimeSteps k T)Bool) (hhalt : ∀ (runChoices : Fin TBool), (tm.trace T runChoices (tm.initCfg x)).state = tm.qhalt) :

Final pathwise correctness: the full wrapper trace halts and writes the strict majority of the source accepting-event blocks selected by the compact simulation seed.