Reverse row-major coordinate step
ProvedTensorCoordinateCountdown.countdownProg_execcomplexity-theorycomputation
For any nonterminal pair of unary coordinates, the fixed four-stack program advances one step in reverse row-major order, preserving the maximum coordinate and clearing scratch. It decrements a positive column in two steps; at column zero it decrements the row and resets the column to the maximum in steps.
Preamble
import Definitions.Def_TensorCoordinateCountdown open CookPvsNP ProjSchedTW.Complexity
Formal statement
namespace TensorCoordinateCountdown
theorem countdownProg_exec (maximum row column : ℕ)
(hnonterminal : row > 0 ∨ column > 0) :
countdownProg.Exec (store maximum row column)
(store maximum (if column = 0 then row - 1 else row)
(if column = 0 then maximum else column - 1))
(if column = 0 then 6 * maximum + 6 else 2) := by
sorry
end TensorCoordinateCountdown