Documentation

AIT.PrefixMachinePrimrec

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 #

What this does NOT establish (flagged) #

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.