How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
Randomized Complexity and Amplification
1 · Prerequisites
- Binary Operations, Monoids, Groups and Subgroups
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Cosets, Index and Lagrange's Theorem
- Countability and Uncountability
- Divisibility, Euclidean Domains, Principal Ideal Domains and Unique Factorisation
- Finite Counting, Factorials and Binomial Coefficients
- Finite Probability Spaces and Random Variables
- Formal Languages, Encodings, and Decision Problems
- Foundations of the Real Numbers for Analysis
- Ideals, Quotient Rings and the Isomorphism Theorems for Rings
- Independence Borel Cantelli and Zero One Laws
- limsup, liminf, and Subsequential Limits
- Linear Algebra Methods in Combinatorics
- Linear Recurrences and Rational Generating Functions
- Matrices, the Matrix of a Linear Map, and Change of Basis
- Measurable Functions and Simple Approximation
- Measures and Their Basic Properties
- Monotone Sequences, Bolzano-Weierstrass, and Cauchy Completeness
- Normal Subgroups and Quotient Groups
- Order, Zorn's Lemma, and the Axiom of Choice
- Pointwise Extended-Real Function Products
- Polynomial Rings, the Division Algorithm and Roots
- Probability Spaces Random Variables and Expectation
- Product Measures and the Fubini Tonelli Theorems
- Relations, Functions, and Quotients
- Resource Bounds and Machine Invariance
- Rings, Subrings, Integral Domains and Fields
- Roots, Rational Powers, and Classical Inequalities
- Sequences and Limits
- Sigma Algebras and Borel Sets
- Simple Field Extensions and the Construction of the Complex Numbers
- Suprema and Infima
- The Lebesgue Integral and the Convergence Theorems
- The ZFC Axioms and the Basic Set Constructions
- Topological Spaces and Continuity
- Topology of ℝ
- Turing Machines, Configurations, and Computation
- Vector Spaces, Linear Subspaces, Span and Direct Sums
2 · Summary
This page fixes the standard probabilistic complexity classes and then separates three different amplification stories that are often blurred together: BPP majority amplification by Chebyshev, exponentially small BPP error by a Chernoff bound, and one-sided RP amplification by independent repetition. Adleman's theorem then converts exponentially reliable randomness into a nonuniform advice string.
The second half packages two standard randomized algebraic tools. Pairwise independent finite-field hashes supply a compact randomness source, Freivalds' test gives a one-sided randomized verifier for matrix products, and the Schwartz-Zippel lemma yields the coRP classification of polynomial identity testing under the explicit degree and evaluation assumptions recorded on the page. The false statements close by isolating the two easy mistakes: correlation breaks amplification, and PP does not require a fixed margin above one half.
3 · Logical flowchart
4 · Definitions, theorems and proofs
Probabilistic polynomial-time Turing machines
Definition
A probabilistic Turing machine is a deterministic multitape Turing machine equipped with an additional read-only tape of random bits. On input and random string , it follows the deterministic computation determined by .
Such a machine runs in probabilistic polynomial time when there is a polynomial such that, on every input of length , it halts within steps after reading at most random bits. Fixing one such bound, the computation on is viewed as a deterministic computation on for ; any unread suffix of is ignored.
For a fixed input , the machine's acceptance probability is This value does not depend on the chosen valid bound: replacing by a larger length merely gives every relevant random prefix the same number of extensions.
Remarks
- A probabilistic machine is still an ordinary deterministic machine after the random string is fixed.
- The runtime bound is worst-case over the random string as well as over the input.
The classes RP, coRP, ZPP, BPP, and PP
Definition
Let be a language. Each bounded-error class below is defined by the existence of a probabilistic polynomial-time machine satisfying the stated conditions on every input .
-
lies in RP when there exists such an for which:
- if , then rejects with probability ;
- if , then accepts with probability at least .
-
lies in coRP when there exists such an for which:
- if , then accepts with probability ;
- if , then rejects with probability at least .
-
lies in BPP when there exists such an for which:
- if , then accepts with probability at least ;
- if , then rejects with probability at least .
-
lies in PP when there exists such an for which:
- if , then accepts with probability strictly greater than ;
- if , then accepts with probability at most .
-
lies in ZPP when there is a probabilistic algorithm that always outputs the correct yes/no answer and whose expected runtime is polynomial in the input length.
Remarks
- The constants and are conventions; amplification later shows that the exact BPP error constant is inessential as long as it is bounded away from .
- The PP definition does not require any fixed gap above .
ZPP equals RP intersection coRP
Statement
Facts & Assumptions
Given: the randomized classes RP, coRP, and ZPP.
RP, coRP, and ZPP are defined by one-sided error, complementary one-sided error, and zero-error expected polynomial time respectively (The classes RP, coRP, ZPP, BPP, and PP).
If is a nonnegative random variable and , then (Markov's inequality on a finite probability space).
Proof
Suppose and let be a zero-error expected-time machine for with . Run for exactly steps and accept iff it has accepted by then. Because never errs, this truncated machine never accepts a no-instance. By [L2], , so on yes-instances it accepts with probability at least . Thus . By the same truncation with accept and reject swapped, also .
Conversely, suppose . Choose an RP machine for and a coRP machine for . On input , perform independent rounds; in each round run both machines with fresh randomness. If accepts, accept. If rejects, reject. Otherwise repeat. By [L1], on a yes-instance the first event occurs with probability at least and the second never occurs, while on a no-instance the second occurs with probability at least and the first never occurs. So the algorithm is zero-error and the expected number of rounds is at most .
Each round of step 1.2 uses polynomial time, so the expected runtime is polynomial. Hence , proving the reverse inclusion. Therefore .
Chebyshev bounds the majority error of repeated Bernoulli trials
Statement
Let , let be independent Bernoulli random variables with for every , and put . Then
Thus the probability that a majority vote is wrong decays like .
Facts & Assumptions
Given: an integer and independent Bernoulli variables with .
Expectation is linear over finite sums (Expectation is linear for every finite family of random variables, without any independence hypothesis).
Bernoulli mean and variance satisfy and (A Bernoulli variable has mean and variance ; a binomial variable has mean and variance ).
Variance adds for pairwise-independent finite families (Variance adds for every finite pairwise-independent family).
Chebyshev's inequality bounds by (Chebyshev's inequality on a finite probability space).
Proof
Let . By [L1] and [L2], . Also [L2] and [L3] give .
If , then since we have , so . Applying [L4] with and yields .
The event is exactly the event that at most half the trials are correct, so the same bound controls majority-vote error.
BPP amplification to inverse-polynomial error
Statement
If and is a polynomial with positive values on , then also has a probabilistic polynomial-time decider whose error on length- inputs is at most .
Facts & Assumptions
Given: a language and a positive polynomial .
A BPP machine is correct on every input with probability at least (The classes RP, coRP, ZPP, BPP, and PP).
Repeating such trials independently and taking the majority answer makes the error probability at most after repetitions (Chebyshev bounds the majority error of repeated Bernoulli trials).
Proof
Let be a BPP machine for . On input , run independently times and output the majority answer. Each run uses polynomial time and is polynomial in , so the new machine is still probabilistic polynomial-time.
Fix . The correctness indicators of the independent runs satisfy the hypotheses of [L2] by [L1], so the probability that the majority answer is wrong is at most .
Since was arbitrary, the amplified machine has inverse-polynomial error on every input length.
A Chernoff bound for sums of independent Bernoulli trials
Statement
Let be independent Bernoulli random variables, let , let , and let . Then
Facts & Assumptions
Given: independent Bernoulli variables , their sum , and a parameter .
Markov's inequality applies to every nonnegative random variable (Markov's inequality on a finite probability space).
Bernoulli means and (A Bernoulli variable has mean and variance ; a binomial variable has mean and variance ).
The expectation of a product factors over finite independent families (Expectation factors over a finite product of mutually independent random variables).
Proof
Fix and apply [L1] to the nonnegative variable . Because decreases with , we get .
Since , we have . The family is still independent, so [L3] and [L2] give , using with .
Combine steps 1.1 and 1.2, and choose so that . Then .
Define . Then and because for . Hence , which is exactly . Substituting this into step 2.1 gives the claimed bound.
BPP amplification to exponentially small error
Statement
If and is a positive polynomial, then has a probabilistic polynomial-time decider whose error on length- inputs is at most .
Facts & Assumptions
Given: a language and a positive polynomial .
A BPP machine is correct with probability at least on every input (The classes RP, coRP, ZPP, BPP, and PP).
If is the sum of independent Bernoulli trials and , then (A Chernoff bound for sums of independent Bernoulli trials).
Proof
Let be a BPP machine for . On input , run independently times and output the majority answer. For the correctness indicators , [L1] gives a Bernoulli parameter .
If the majority vote is wrong, then because . Thus the bad event is contained in the lower-tail event from [L2] with , and therefore .
Choose to be a sufficiently large multiple of , for example . Then step 2.1 gives error at most . Since is polynomial in , the amplified machine is still probabilistic polynomial-time.
RP admits one-sided amplification to exponentially small error
Statement
If and , then has a probabilistic polynomial-time decider with no false positives and false-negative probability at most .
Facts & Assumptions
Given: a language and an integer .
An RP machine rejects every no-instance with probability and accepts every yes-instance with probability at least (The classes RP, coRP, ZPP, BPP, and PP).
Proof
Let be an RP machine for . Run independently times on the same input, and accept iff at least one run accepts. This remains polynomial time because independent repetitions of a polynomial-time machine still use polynomial time for fixed or polynomially bounded .
If , then by [L1] every run rejects, so the repeated machine also rejects with probability . If , then each run fails to accept with probability at most , and independence makes the probability that all runs fail at most .
Thus the repeated machine keeps one-sided error and reduces the false negative probability to at most .
Adleman's theorem: BPP is contained in P/poly
Statement
If , then there exist a deterministic polynomial-time machine and advice strings of polynomial length such that decides . Equivalently, .
Facts & Assumptions
Given: a language .
BPP error can be reduced to exponentially small error while staying in probabilistic polynomial time (BPP amplification to exponentially small error).
The finite union bound says that the probability of a finite union is at most the sum of the individual probabilities (The finite union bound).
Proof
By [L1], for each input length there is a probabilistic polynomial-time machine deciding on length- inputs with error at most . Let be the number of random bits used by ; this is polynomial in .
For each word , let be the event that the random string makes err on . Then . By [L2], . So there exists some random string for which no event occurs: that one string makes correct on every length- input simultaneously.
Use as advice. The deterministic advice machine for input of length simulates on with the randomness tape fixed to . By step 2.1 this simulation is correct on every length- input, and the advice length is . Therefore has polynomial advice and hence lies in .
Pairwise independent hash families
Definition
Let be a finite set, let be a nonempty finite set, and let be a nonempty finite family of functions . The family is pairwise independent when for every two distinct inputs and every two outputs ,
where is chosen uniformly from .
Remarks
- If has at least two elements, pairwise independence forces each individual value to be uniform on by summing over the second output coordinate.
- The definition does not require joint independence on triples or larger subfamilies of inputs.
- When , the pairwise condition is vacuous; only the nonempty source and target-family hypotheses remain substantive.
Affine maps over a finite field form a pairwise independent hash family
Statement
Let be a finite field, and let
Then is a pairwise independent hash family from to .
Facts & Assumptions
Given: a finite field and the affine family .
In a field, every nonzero element has a multiplicative inverse and (Field).
Pairwise independence means uniformity of the ordered pair of outputs at every two distinct inputs (Pairwise independent hash families).
Proof
Fix distinct inputs and target outputs . Because , [L1] gives . Then is forced, and these values satisfy and . Thus there is at least one pair producing the target output pair.
If and both satisfy those two equations, then subtracting them yields . Since , [L1] gives , and then . So the pair from step 1.1 is unique.
The family has members, and step 2.1 shows that exactly one of them maps to . Therefore the probability in [L2] is , proving pairwise independence.
Freivalds' one-trial matrix-product test has one-sided error
Statement
Let be a field and let . Choose a random vector uniformly and accept exactly when .
Then:
- if , the test accepts with probability ; 2. if , the test accepts with probability at most .
So one trial gives a one-sided-error randomized test for matrix products.
Facts & Assumptions
Given: a field , matrices , and a uniform random vector .
Matrix products and matrix-vector products are defined by finite sums over matching indices (Rectangular matrix multiplication and the identity matrix , including zero-sized shapes).
In a field, distinct scalars remain distinct and every nonzero scalar is invertible (Field).
Proof
If , then the equality follows directly from the finite-sum definition in [L1]. So the test always accepts a correct product.
Assume and put . Then some row of is nonzero. Choose the largest index with ; this is possible because the row is finite.
Fix all random bits of except . The equation for the chosen row has the form , because for . By [L2], is invertible, so at most one value of can satisfy this equation. Since is uniform on and in a field by [L2], the conditional probability that this row equation holds is at most . Therefore , and hence the acceptance probability when is at most .
Steps 1.1 and 2.1 prove the one-sided error bound for a single trial of the test. Repeating with fresh random vectors multiplies the failure probability.
Polynomial identity testing
Definition
Fix a field and a representation of multivariate polynomials over for which:
- the number of variables and a total-degree bound can be computed in polynomial time from the input representation, and
- evaluation at any chosen point of can be performed in polynomial time.
The corresponding polynomial identity testing problem (PIT) asks whether a given represented polynomial is the zero polynomial of Polynomial rings in finitely many commuting indeterminates by iteration, with total degree understood as in Monomials, coefficients, degree in each variable and total degree in .
Remarks
- The input is a representation of a polynomial, not its full value table.
- The later coRP classification uses random evaluation together with an explicit finite sample set whose size dominates the degree bound.
The Schwartz-Zippel lemma
Statement
Let be a field, let be a nonzero polynomial of total degree at most , and let be a nonempty finite set. If is chosen uniformly from , then
Facts & Assumptions
Given: a field , a nonzero polynomial of total degree at most , and a nonempty finite set .
Every multivariate polynomial has a finite monomial expansion; in particular one may view it as a univariate polynomial in one chosen variable with coefficients in the remaining variables, and the total degree of a coefficient slice drops by its exponent in that variable (Monomials, coefficients, degree in each variable and total degree in , Polynomial rings in finitely many commuting indeterminates by iteration).
A nonzero univariate polynomial of degree over a domain has at most roots (A nonzero polynomial of degree over an integral domain has at most distinct roots).
Proof
If , then is a nonzero constant polynomial and has the single element , so always. Hence the vanishing probability is .
If , the statement is exactly [L2]: at most points of are roots of , so the vanishing probability is at most .
Assume the claim for variables with . Write , where and . By [L1], the coefficient polynomial has total degree at most .
Choose uniformly. By the induction hypothesis, the probability that is at most . On the complementary event, the specialized univariate polynomial is nonzero of degree , so [L2] says that for a uniform the conditional probability is at most .
Split according to the two cases in step 2.1. The total vanishing probability is at most . This proves the claim for every , and together with steps 1.1 and 1.2 completes the induction.
Polynomial identity testing is in coRP
Statement
For every PIT representation that permits polynomial-time evaluation and polynomial-time construction of a finite sample set with , where is the input's degree bound, the corresponding polynomial identity testing problem lies in coRP.
Facts & Assumptions
Given: a represented polynomial in a PIT model with a computable degree bound and a computable sample set satisfying .
RP and coRP are the one-sided-error probabilistic classes (The classes RP, coRP, ZPP, BPP, and PP).
PIT asks whether the represented polynomial is identically zero, and the representation supports polynomial-time evaluation at chosen points (Polynomial identity testing).
A nonzero polynomial of degree at most vanishes on at most a fraction of the points of (The Schwartz-Zippel lemma).
Proof
On input the representation of , compute its degree bound , compute the sample set , choose a uniformly random point of , evaluate at that point using [L2], and reject immediately if the value is nonzero; otherwise accept. The runtime is polynomial by the assumptions packaged into [L2].
If is the zero polynomial, every evaluation is zero, so the algorithm accepts with probability . If is nonzero, [L3] gives . So on no-instances the algorithm rejects with probability at least .
Step 2.1 is exactly the coRP condition from [L1]. Therefore PIT is in coRP for every representation satisfying the stated assumptions.
FALSE: reusing the same random bits amplifies success
Statement
Reusing the same random bits amplifies success.
Facts & Assumptions
Given: the usual repetition-based amplification scheme.
Exponentially small BPP error is obtained by running independent trials and taking the majority answer (BPP amplification to exponentially small error).
Refutation
The hypothesis of [L1] is independence of the repeated trials. If the same random string is reused, the repeated executions become perfectly correlated instead of independent.
A perfectly correlated sequence of repetitions gives the same answer every time, so a majority vote over those repetitions agrees with one run and cannot improve its success probability. Therefore the statement is false.
FALSE: every PP algorithm has bounded error separated from one half by a fixed constant
Statement
Every PP algorithm has bounded error separated from one half by a fixed constant.
Facts & Assumptions
Given: the class PP.
A PP machine need only accept yes-instances with probability strictly greater than and no-instances with probability at most (The classes RP, coRP, ZPP, BPP, and PP).
Refutation
Let . Its deterministic membership test is computable in linear time. Consider the probabilistic machine that uses one fair bit and an independent string , accepts when and either or , and accepts when exactly if and . Then yes-instances are accepted with probability , while no-instances are accepted with probability .
Step 1.1 still satisfies the PP threshold condition [L1], but the gap from shrinks with and is not bounded below by any fixed positive constant. So the statement is false.
5 · Examples, counterexamples and false statements
A concrete majority-vote error estimate from Chebyshev's inequality
Example
If independent trials are each correct with probability , then the majority vote is wrong with probability at most .
Facts & Assumptions
Given: independent Bernoulli trials, each correct with probability .
The Chebyshev majority bound gives whenever each trial has success probability at least (Chebyshev bounds the majority error of repeated Bernoulli trials).
Verification
The hypotheses of [L1] hold with because .
Therefore the majority error probability is at most . This is a concrete instance of the general estimate.
A random evaluation test that separates the zero polynomial from x^2-y^2
Example
Take the polynomial over , and sample uniformly from the grid with . Then vanishes on exactly three of the nine grid points, so one random evaluation misses its nonzeroness with probability .
Facts & Assumptions
Given: the polynomial and the sample set .
PIT tests whether a represented polynomial is identically zero by random evaluation in an admissible representation (Polynomial identity testing).
The Schwartz-Zippel lemma bounds the vanishing probability of a nonzero polynomial on a finite grid (The Schwartz-Zippel lemma).
Under the usual degree and evaluation assumptions, PIT lies in coRP (Polynomial identity testing is in coRP).
Verification
The equality on is equivalent to because all elements of are nonnegative rationals and squaring is injective there. Hence the roots on the grid are exactly , , and .
So a random point of makes vanish with probability . This is consistent with [L2], since the total degree is and . Using the random-evaluation viewpoint from [L1], this is exactly the one-sided coRP behavior asserted in [L3], because the zero polynomial would vanish on every sample point.
Repeating a randomized test with the same coin string gives no amplification
Statement refuted
Reusing the same random bits amplifies success.
Facts & Assumptions
Given: a randomized test whose output depends only on its first random bit.
The false statement being refuted is exactly the claim above (FALSE: reusing the same random bits amplifies success).
Counterexample
Consider the randomized test that accepts exactly when its first random bit is . Its success probability is , so it is a legitimate witness against the statement in [L1] if repetition with the same randomness leaves that probability unchanged.
If the same random string is reused in two, ten, or one hundred repetitions, every repetition produces the same answer as the first one. So the majority outcome is still accept with probability and reject with probability . No amplification occurs at all, and the statement is refuted.