VP ≠ VNP? — For Dummies
The mathematics of shortcuts and why some may never exist.
VP ≠ VNP?In the previous episode, we explored one of the most famous unsolved problems in computer science: P versus NP.
We discovered that the question essentially comes down to whether a universal NP-problem solver with polynomial running time can exist.
In 1979, computer scientist Leslie Valiant introduced a related but different mathematical question:
VP = VNP?
To understand it, we need neither apples nor pears this time.
Instead, let us go back to the eighteenth century.
A young mathematical genius
According to a famous anecdote, a schoolteacher once asked his pupils to add all the numbers from 1 to 100.
One pupil completed the task remarkably quickly.
His name was Carl Friedrich Gauss.
Instead of adding every number individually, he recognized a pattern:
1 + 100 = 101
2 + 99 = 101
3 + 98 = 101
And so on.
There are 50 such pairs, each adding up to 101.
Therefore:
50 × 101 = 5,050
The general formula is:
S(n) = n(n + 1) / 2
We can use this formula to calculate the sum of the first million natural numbers without adding a million individual numbers.
Gauss had found a mathematical shortcut.
But here is an interesting question:
Can we always find such shortcuts?
What is a polynomial?
Before we can understand Valiant’s question, we need to understand what a polynomial is.
Fortunately, the concept is quite simple.
Consider the following mathematical expression:
3x² + 5x + 7
This is a polynomial.
So is:
a² + 2ab + b²
Polynomials consist of variables, constants, additions and multiplications, with variables raised to nonnegative integer powers.
For example, x³ is simply x × x × x.
A polynomial can contain two variables, a hundred variables or a million variables.
It can also contain an enormous number of individual terms.
And this is where things become interesting.
Finding a shortcut
Consider the following polynomial:
ac + ad + bc + bd
To calculate the result, we could perform four multiplications and three additions.
Seven operations in total.
But we could also rewrite the expression:
(a + b)(c + d)
We now need just two additions and one multiplication.
Three operations instead of seven.
The result is exactly the same.
We have not changed what we calculate. We have only changed how we calculate it.
This is algebraic optimization.
Back to our apples and pears
Perhaps we should not abandon our fruit entirely.
Imagine two boxes, each containing an apple and a pear.
We assign the values a and b to the fruits in the first box, and c and d to the fruits in the second box.
We select one fruit from each box.
There are four possible combinations:
- 🍎 🍎 → ac
- 🍎 🍐 → ad
- 🍐 🍎 → bc
- 🍐 🍐 → bd Our task is to multiply the values of the fruits in each combination and add all the resulting products.
As we have just seen, we can do this without calculating each combination individually.
We simply calculate:
(a + b)(c + d)
Now imagine that we have three boxes instead of two.
Our shortcut becomes:
(a + b)(c + d)(e + f)
With every additional box, the number of possible fruit combinations doubles.
But the number of operations required by our shortcut increases by only one addition and one multiplication.
With 100 boxes, there are 2¹⁰⁰ possible combinations.
Yet we can calculate the entire polynomial using just 100 additions and 99 multiplications.
Nearly 1.27 × 10³⁰ combinations.
Only 199 arithmetic operations.
That is quite a shortcut.
What is an arithmetic circuit?
The term sounds considerably more complicated than it is.
An arithmetic circuit is a mathematical representation of a calculation using operations such as addition and multiplication.
It is not necessarily a physical electronic circuit.
As a programmer, I can simply imagine the following code:
x = a + b;
y = c + d;
result = x * y;Three arithmetic operations.
The circuit describes these operations and how their results are passed from one operation to the next.
We could implement the same computation on a CPU, a GPU or another processor.
But Valiant is not interested in which processor executes it faster.
He is interested in how many arithmetic operations are fundamentally required.
Can seven operations be reduced to three?
Can a trillion operations be reduced to a thousand?
And are there computations for which such reductions are mathematically impossible?
VP — The entire calculation
We can now introduce VP.
Remember our fruit boxes?
With 100 boxes, we had 2¹⁰⁰ possible combinations, but we needed only 199 arithmetic operations to calculate the complete expression.
As we increase the number of boxes, the number of arithmetic operations grows linearly.
The corresponding family of polynomials therefore belongs to VP.
VP describes families of polynomials that can be calculated using polynomially many arithmetic operations.
The important word is families.
We are not interested in whether a single calculation involving 100 boxes is manageable.
We are interested in how the computational effort grows as we increase the number of boxes.
The mathematical definition also requires the number of variables and the degree of the polynomials to remain polynomially bounded.
For our fruit example, these conditions are satisfied.
VNP — The individual contributions
Now things become slightly more complicated.
Let us introduce rules for selecting our fruits.
For example:
If we select an apple from box 1, we must select a pear from box 7.
If we select an apple from box 3, we must not select an apple from box 9.
We can introduce many more rules.
Our task remains the same: multiply the values of the fruits in each combination and add the resulting products.
But this time, we only include combinations that satisfy all our rules.
We can still calculate the contribution of any individual combination.
If the combination satisfies the rules, we calculate its product.
If it violates the rules, its contribution is zero.
Provided that these rules and individual products can be represented by polynomially sized arithmetic calculations, this gives us a VNP polynomial family.
But can we still calculate the entire sum using our previous shortcut?
Not necessarily.
Simply multiplying the sums of all the individual boxes would include combinations that violate our rules.
We need a different shortcut — if one exists.
VNP describes families of polynomials that can be defined as sums of potentially exponentially many contributions, where those contributions can be generated by a common polynomially sized arithmetic calculation.
Notice what we have not said.
We have not said that the entire sum requires exponential computational effort.
We have only described how the sum is defined.
There might be a brilliant mathematical shortcut that we have not discovered yet.
VP versus VNP
The distinction is now remarkably simple.
VP: We can calculate the entire expression with polynomially many arithmetic operations.
VNP: We can generate the individual contributions with polynomially many arithmetic operations, but there may be exponentially many of them.
Every VP polynomial family also belongs to VNP.
The reverse, however, is not necessarily true.
And that brings us to Valiant’s question.
If we can efficiently calculate each individual contribution, can we always efficiently calculate the entire sum?
In other words:
Can we always find a sufficiently efficient algebraic shortcut?
If the answer is yes:
VP = VNP
If the answer is no:
VP ≠ VNP
Valiant conjectured that the answer is no.
He suspected that there are VNP polynomial families for which no polynomially sized arithmetic circuit can exist.
Not because we have failed to discover a clever shortcut.
Not because our computers are too slow.
But because such a shortcut is mathematically impossible within this computational model.
That is a fundamental difference.
One shortcut to solve them all?
In Episode 1, we discovered something remarkable about NP-complete problems.
If we find a polynomial-time algorithm for a single NP-complete problem, we can use it to solve every NP problem in polynomial time.
Does something similar exist in Valiant’s algebraic world?
Yes.
There are VNP-complete polynomial families.
One particularly famous example is the permanent of a matrix, over fields of characteristic other than two, including the real numbers.
To understand its basic idea, imagine a table with numbers arranged in rows and columns.
We select one number from each row and each column, multiply the selected numbers and repeat this for every possible selection.
Finally, we add all the products.
For a 3 × 3 matrix, there are six such selections.
For a 10 × 10 matrix, there are 3,628,800.
For a 100 × 100 matrix, there are 100! selections.
Calculating each individual product is straightforward.
Calculating their entire sum is another matter.
If we could find polynomially sized arithmetic circuits for the permanent family, we would establish VP = VNP over the corresponding field.
Conversely, proving that such circuits cannot exist would establish VP ≠ VNP.
This is the algebraic equivalent of our universal problem from Episode 1.
How is this different from P and NP?
Although the two questions have a similar structure, they address different things.
P and NP concern general computational decision problems.
Can we find a solution as efficiently as we can verify one?
VP and VNP concern algebraic computations.
Can we calculate an entire polynomial as efficiently, in the sense of polynomial growth, as we can generate its individual contributions?
The distinction becomes particularly important when we consider how computers work.
A general computer can perform arithmetic operations, comparisons, conditional jumps, bitwise operations and many other tasks.
Valiant’s arithmetic circuit model concentrates on algebraic operations.
It investigates the fundamental computational effort of calculating polynomials, rather than the running time of arbitrary computer programs.
The two theories are mathematically related, but they are not interchangeable.
A proof of VP ≠ VNP is not automatically a proof of P ≠ NP.
And unlike P versus NP, Valiant’s conjecture is not one of the Millennium Prize Problems.
There is no million-dollar cheque waiting for us this time.
Why is Valiant’s question important?
As programmers, we spend a considerable amount of time optimizing code.
We eliminate unnecessary calculations, reuse intermediate results and find more efficient ways of producing the same output.
Sometimes the performance improvements are remarkable.
But where are the fundamental limits?
How can we distinguish between a calculation that is expensive because we have not found a good algorithm and one that is expensive because no sufficiently efficient arithmetic algorithm can exist?
Valiant’s conjecture addresses precisely this question within algebraic complexity theory.
It is not merely about discovering better ways to calculate things.
It is about proving the limits of what mathematical optimization can achieve.
And that is a fascinating question in its own right.
Coming next: Computational complexity versus cryptography
Modern cryptography relies on the assumption that certain mathematical problems are computationally difficult.
But what happens if someone discovers an unexpected mathematical shortcut?
Would proving P = NP make Bitcoin insecure?
Would proving P ≠ NP make cryptography secure?
And what would VP = VNP or VP ≠ VNP actually change?
In Episode 3, we will examine all four possibilities and distinguish theoretical computational complexity from practical cryptographic security.
For now, however, I think we have earned another cup of coffee.
Further reading
Top comments (0)