Documentation

CslibFrontier.Computability.PCP.LocalTest.Repetition

Independent repetition of local tests #

LocalTest.repeatAll runs a local test on k independent uniform random strings and accepts when every trial accepts. It is another local test, with random strings Fin k → R and queries Fin k × Q. Its acceptance probability is the k-th power of the original probability. In particular, zero trials accept every proof, including when the original random-string type is empty. These are elementary constructions on the existing local-test model.

Main definitions #

Main results #

References #

def Cslib.PCP.LocalTest.repeatAll {P : Type u_1} {R : Type u_2} {Q : Type u_3} {Γ : Type u_4} (T : LocalTest P R Q Γ) (k : ℕ) :
LocalTest P (Fin k → R) (Fin k × Q) Γ

Run k independent copies of T and accept exactly when every copy accepts. Uniform sampling on Fin k → R supplies independent uniform strings to the trials.

@[instance_reducible]
instance Cslib.PCP.LocalTest.instDecidableAcceptsForallFinProdRepeatAll {P : Type u_1} {R : Type u_2} {Q : Type u_3} {Γ : Type u_4} (T : LocalTest P R Q Γ) [(r : R) → (a : Q → Γ) → Decidable (T.Accepts r a)] (k : ℕ) (r : Fin k → R) (a : Fin k × Q → Γ) :
@[simp]
theorem Cslib.PCP.LocalTest.passes_repeatAll {P : Type u_1} {R : Type u_2} {Q : Type u_3} {Γ : Type u_4} (T : LocalTest P R Q Γ) (k : ℕ) (π : P → Γ) (r : Fin k → R) :
(T.repeatAll k).Passes π r ↔ ∀ (i : Fin k), T.Passes π (r i)

Repetition accepts a proof precisely when each of its trials accepts that proof.

theorem Cslib.PCP.LocalTest.acceptProb_repeatAll {P : Type u_1} {R : Type u_2} {Q : Type u_3} {Γ : Type u_4} (T : LocalTest P R Q Γ) [Fintype R] (k : ℕ) (π : P → Γ) :

Independent repetition raises the acceptance probability to the number of trials.