Multitape amplification of seeded outputs by plurality #
Main results #
Cslib.Complexity.computableInO_amplifySeededPluralitybounds the verifier clock and error count of exact-output amplification. The length bound charges framing for every output.Cslib.Complexity.computableInPowerExpTime_amplifySeededPluralitypreserves the exponent power when the input, setup clocks, and per-run time fit the rounded budget.
theorem Cslib.Complexity.computableInO_amplifySeededPlurality {α β : Type} [DecidableEq β] {enc : α ↪ List Bool} {encOut : β ↪ List Bool} {ℓ r : α → ℕ} {V : α × List Bool → β} {Tv Sv Ttr Str Tw Sw : α × List Bool → ℕ} {R : α → ℕ} (fallback : β) (hV : Turing.MultiTapeTM.ComputableInO V (Turing.MultiTapeTM.encPair enc Turing.MultiTapeTM.encBits) encOut Tv Sv) (htr :
Turing.MultiTapeTM.ComputableInO (fun (p : α × List Bool) => 2 * r p.1)
(Turing.MultiTapeTM.encPair enc Turing.MultiTapeTM.encBits) Turing.MultiTapeTM.encUnary Ttr Str) (hw :
Turing.MultiTapeTM.ComputableInO (fun (p : α × List Bool) => ℓ p.1)
(Turing.MultiTapeTM.encPair enc Turing.MultiTapeTM.encBits) Turing.MultiTapeTM.encUnary Tw Sw) (hR : ∀ (a : α) (w : List Bool), w.length = ℓ a → Tv (a, w) ≤ R a) :
have amplified := fun (p : α × List Bool) => ProbComp.plurality fallback (repeatVotes (2 * r p.1) (ℓ p.1) V p);
∃ (c : ℕ) (d : ℕ) (e : ℕ) (S : α × List Bool → ℕ),
have outputBits := fun (p : α × List Bool) => 2 * r p.1 * (2 * (c * (R p.1 + 1)) + 1);
Turing.MultiTapeTM.ComputableInO amplified (Turing.MultiTapeTM.encPair enc Turing.MultiTapeTM.encBits) encOut
(fun (p : α × List Bool) =>
(2 * r p.1 + 1) * ((((Turing.MultiTapeTM.encPair enc Turing.MultiTapeTM.encBits) p).length + Ttr p + Tw p + 1) ^ d + outputBits p + R p.1) + (outputBits p + 1) ^ e)
S ∧ ∀ (a : α) (truth : β) {ε : ℝ},
0 ≤ ε →
ε < 1 / 2 →
↑(acceptCount (fun (p : α × List Bool) => V p != truth) a (ℓ a)) ≤ ε * 2 ^ ℓ a →
↑(acceptCount (fun (p : α × List Bool) => amplified p != truth) a (2 * r a * ℓ a)) ≤ (4 * ε * (1 - ε)) ^ r a * 2 ^ (2 * r a * ℓ a)
Take the plurality of 2 * r a independent runs, with the original seed width ℓ a.
The verifier clock charges the encoded output length of each run using its time bound R a.
The time certificate covers any supplied tape, and the error bound is for a uniform tape of the
prescribed total width.
theorem Cslib.Complexity.computableInPowerExpTime_amplifySeededPlurality {α β : Type} [DecidableEq β] {enc : α ↪ List Bool} {encOut : β ↪ List Bool} {μ : α → ℕ} {q : ℝ} {C E : ℕ} {ℓ r : α → ℕ} {V : α × List Bool → β} {Tv Sv Ttr Str Tw Sw : α × List Bool → ℕ} {R : α → ℕ} (fallback : β) (hV : Turing.MultiTapeTM.ComputableInO V (Turing.MultiTapeTM.encPair enc Turing.MultiTapeTM.encBits) encOut Tv Sv) (htr :
Turing.MultiTapeTM.ComputableInO (fun (p : α × List Bool) => 2 * r p.1)
(Turing.MultiTapeTM.encPair enc Turing.MultiTapeTM.encBits) Turing.MultiTapeTM.encUnary Ttr Str) (hw :
Turing.MultiTapeTM.ComputableInO (fun (p : α × List Bool) => ℓ p.1)
(Turing.MultiTapeTM.encPair enc Turing.MultiTapeTM.encBits) Turing.MultiTapeTM.encUnary Tw Sw) (hR : ∀ (a : α) (w : List Bool), w.length = ℓ a → Tv (a, w) ≤ R a) (hbudget :
Turing.MultiTapeTM.PolyBounded
(fun (p : α × List Bool) =>
⌈2 ^ (↑C * (↑(μ p.1) + 1) ^ q) * (↑((Turing.MultiTapeTM.encPair enc Turing.MultiTapeTM.encBits) p).length + 1) ^ E⌉₊)
fun (p : α × List Bool) =>
((Turing.MultiTapeTM.encPair enc Turing.MultiTapeTM.encBits) p).length + Ttr p + Tw p + R p.1) :
have amplified := fun (p : α × List Bool) => ProbComp.plurality fallback (repeatVotes (2 * r p.1) (ℓ p.1) V p);
ComputableInPowerExpTime amplified (Turing.MultiTapeTM.encPair enc Turing.MultiTapeTM.encBits) encOut (μ ∘ Prod.fst) q ∧ ∀ (a : α) (truth : β) {ε : ℝ},
0 ≤ ε →
ε < 1 / 2 →
↑(acceptCount (fun (p : α × List Bool) => V p != truth) a (ℓ a)) ≤ ε * 2 ^ ℓ a →
↑(acceptCount (fun (p : α × List Bool) => amplified p != truth) a (2 * r a * ℓ a)) ≤ (4 * ε * (1 - ε)) ^ r a * 2 ^ (2 * r a * ℓ a)
Plurality amplification keeps the power q if the framed input length, the two
setup clocks, and the original verifier's clock on legal seed blocks are polynomial in the
rounded power-exponential budget. The collection and selection clock holds on every supplied
tape, while the error bound uses a uniform tape of the prescribed width.