Documentation

CslibFrontier.Computability.Machines.Turing.MultiTape.Probabilistic.HaltedReplay

Replays after halting #

A halted configuration of a fair-coin table ignores its coin (Turing.MultiTapePTM.step_withCoin_of_halted) and every further coin (Turing.MultiTapePTM.stepCoins_of_halted). So a table that halts at its first step decides every coin string at once: the table Turing.MultiTapePTM.acceptAll, which emits true and halts, accepts all 2 ^ τ coin strings of every positive length τ (Turing.MultiTapePTM.acceptCount_acceptAll).

Main definitions #

Main results #

theorem Turing.MultiTapePTM.step_withCoin_of_halted {k : ℕ} {Symbol State : Type} {input : List Symbol} (machine : MultiTapePTM k Symbol State) {c : Cfg k Symbol State input} (h : c.Halted) (bit : Bool) :

A halted configuration ignores its coin.

theorem Turing.MultiTapePTM.stepCoins_of_halted {k : ℕ} {Symbol State : Type} {input : List Symbol} (machine : MultiTapePTM k Symbol State) {c : Cfg k Symbol State input} (h : c.Halted) (coins : List Bool) :
machine.stepCoins coins c = c

A halted configuration ignores any further coins.

The fair-coin table that emits true and halts at its first step, whatever the coin.

theorem Turing.MultiTapePTM.acceptCount_acceptAll (input : List Bool) (n : ℕ) :
acceptAll.acceptCount input (n + 1) = 2 ^ (n + 1)

Every coin string of positive length makes acceptAll accept.