Explicit-time intrinsically halting probabilistic realizations #
Cslib.Probability.ComputesInTimeOn input output t program asserts that one finite-control
fair-coin machine realizes program across all inputs a within t a steps and has actually
reached a halting state (final.tapes.state = none) on every supported execution at step t a.
Requiring actual halting rather than clock-cutoff fuel makes monotonicity in the step schedule
(ComputesInTimeOn.mono) hold unconditionally for arbitrary functions t₁ ≤ t₂, without requiring
t₂ to be computable, and makes sequential monadic composition (ComputesInTimeOn.bind) incur an
explicit machine-independent step bound 2 * t₁ a + t₂' a + 4. Together with the clock compiler of
CslibFrontier.Computability.Probabilistic.PPT.Clock, uniform strict polynomial time (IsPPTOn and
IsPPT) is equivalent to ComputesInTimeOn / ComputesInTime under a polynomially bounded step
schedule (isPPTOn_iff_exists_polyBounded_computesInTimeOn,
isPPT_iff_exists_polyBounded_computesInTime).
Main definitions #
Cslib.Probability.ComputesInTimeOn: uniform halting fair-coin realization within an explicit step schedule on encoded inputs.Cslib.Probability.ComputesInTime: uniform halting fair-coin realization parameterized by a unary security parameter and auxiliary input length.
Main results #
Cslib.Probability.ComputesInTimeOn.mono: unconditional step-schedule monotonicity.Cslib.Probability.ComputesInTimeOn.congr,Cslib.Probability.ComputesInTimeOn.length_le: distributional congruence and supported output-length bound≤ t a.Cslib.Probability.ComputesInTimeOn.uniform_bool: drawing a fair bit in1step.Turing.MultiTapeTM.ComputableInTimeAndSpace.computesInTimeOn: plain deterministic computations lift with exact step boundt.Cslib.Probability.ComputesInTimeOn.bind,.preprocess,.map: quantitative composition with explicit step bounds.Cslib.Probability.isPPTOn_iff_exists_polyBounded_computesInTimeOn,Cslib.Probability.isPPT_iff_exists_polyBounded_computesInTime: equivalence withIsPPTOnandIsPPT.
References #
Enlarging the step schedule preserves halting realization, without requiring the larger schedule to be computable.
Distributional equality preserves the realizing machine and step schedule.
Every supported encoded output has length at most the step budget t a.
Sampling one fair bit takes 1 step on any input encoding.
Sequence two halting probabilistic realizations, charging 2 * t₁ a + t₂' a + 4 steps where
t₂' a upper-bounds t₂ across supported intermediate outputs of first a.
A polynomially bounded halting schedule gives a uniform strict PPT certificate.
A program returning its declared encoding has the same explicit-time halting certificates.
Lift a plain deterministic time-and-space computation to a fair-coin halting realization with
the exact same step bound t.
Deterministically prepare the input of an explicit-time halting probabilistic program.
Deterministically postprocess every sampled result of an explicit-time halting program.
Postprocess with a deterministic length-indexed bound under a monotone step function, using
hprogram.length_le to bound the intermediate encoded word length by tp a.
Uniform strict PPT is equivalent to halting realization under a polynomially bounded step
schedule. The forward direction compiles the clocked witness via IsPPTOn.exists_halting_machine;
the backward direction pads the halting schedule via ComputesInTimeOn.mono.
Expose the underlying ComputesInTimeOn certificate on encPair encUnary encBits.
Enlarging a parameterized step schedule preserves halting realization unconditionally.
Distributional equality preserves parameterized halting realization.
Every supported encoded output on (n, aux) has length at most t n aux.length.
A polynomially bounded parameterized halting schedule gives IsPPT.
Parameterized uniform strict PPT is equivalent to ComputesInTime under a polynomially
bounded schedule in n + aux.length.