Documentation

CslibFrontier.Computability.Probabilistic.Vector

Strict PPT finite-tuple repetition #

OracleComp.replicateFin n collects n independent runs in a Fin n-indexed vector. Because encFinFn n output encodes a tuple as the framed list List.ofFn, the list-valued repetition certificate IsPPTOn.replicate directly certifies fixed-length tuple sampling.

Main results #

theorem Cslib.Probability.IsPPTOn.replicateFin {α β : Type} {input : α ↪ List Bool} {output : β ↪ List Bool} {program : α → ProbComp β} (h : IsPPTOn input output program) (n : ℕ) :
IsPPTOn input (Turing.MultiTapeTM.encFinFn n output) fun (a : α) => OracleComp.replicateFin n (program a)

Collect a fixed number of independent runs in a Fin n-indexed tuple under encFinFn.