A successful canonical block parse strictly decreases the unread input
ProvedCookPvsNP.CanonicalBlockParser.success_strict_progressFor any input and any execution of the canonical natural-number block parser, if the top output status marker indicates success, then the unread input suffix is strictly shorter than the original input. In particular, parsing the empty binary digit block still consumes its separator. This progress invariant applies to malformed inputs as well as canonical inputs and supports total loop bounds for successive block parsers.
Preamble
import Definitions.Def_CookPvsNP_CanonicalBlockParser open CookPvsNP ProjSchedTW.Complexity
Formal statement
namespace CookPvsNP.CanonicalBlockParser
theorem success_strict_progress (input status rest digits markerTail : List BSym) (steps : ℕ)
(h : parseCanonicalBlockProg.Exec
(store input [] status) (store rest digits (.one :: markerTail)) steps) :
rest.length < input.length := by
sorry
end CookPvsNP.CanonicalBlockParserSource
Auxiliary stack-program invariant for the canonical natural-number encoding used in ProjSchedTW.Complexity; supports the explicitly encoded scheduling and tensor-reduction machines.