Decode a paired product-machine state
ProvedCookLevin.productState_decodecook-levinproduct-constructionturing-machine
If , quotient and remainder by the radix recover both components of the product-state encoding .
This decoding identity is used in exact command lookup and product-machine simulation.
Formal statement
import Definitions.Def_CookLevin_ProductState
open CookLevin
theorem CookLevin.productState_decode (Q2 q1 q2 : Nat) (hq2 : q2 < Q2 + 1) :
productState Q2 q1 q2 / (Q2 + 1) = q1 ∧
productState Q2 q1 q2 % (Q2 + 1) = q2 := by sorrySource
Product-state construction supporting https://prove2.me/theorems/6e7f5aa7-4e76-407b-a196-af95907e3fcc