The prefix machine's computability, and pfy's uniform partial recursiveness #
Over the universal prefix machine PrefixMachine.pfy.
Extends AIT/PrefixMachine.lean (foldStep, newlyHalting, acceptedList, pfy) with the
bit-string computability layer of CodeLayer/BitStringPrimrec.lean.
What this establishes #
foldStep,newlyHalting,acceptedListarePrimrec₂.pfy_partrec:pfyis partial recursive, uniformly in the machine — the open boundaryAIT/PrefixMachine.leanflags atpfy's own definition.
What this does NOT establish (flagged) #
- The algorithmic probability
QB's lower-semicomputability and the coding theorem itself are not attempted here.
foldStep, newlyHalting, acceptedList are primitive recursive #
pfy is partial recursive, uniformly in the machine #
theorem
PrefixMachine.pfy_eq_bind
(c : Nat.Partrec.Code)
(n : ℕ)
:
pfy c n = do
let s ← Nat.rfind fun (s : ℕ) => Part.some (decide (n ∈ acceptedList c s))
↑(Nat.Partrec.Code.evaln s c n)
pfy is Nat.rfind-then-evaln, over the stage at which n first gets accepted.
pfy is partial recursive, uniformly in the machine.