In mathematics, a Diophantine equation is an equation of the form P(x1, ..., xj, y1, ..., yk) = 0 (usually abbreviated P(x, y) = 0) where P(x, y) is a polynomial with integer coefficients, where x1, ..., xj indicate parameters and y1, ..., yk indicate unknowns.
A Diophantine set is a subset S of , the set of all j-tuples of natural numbers, so that for some Diophantine equation P(x, y) = 0,
That is, a parameter value is in the Diophantine set S if and only if the associated Diophantine equation is satisfiable under that parameter value. The use of natural numbers both in S and the existential quantification merely reflects the usual applications in computability theory and model theory. It does not matter whether natural numbers refer to the set of nonnegative integers or positive integers since the two definitions for Diophantine sets are equivalent. One can equally well speak of Diophantine sets of integers and freely replace quantification over natural numbers with quantification over the integers. This is possible because, by Lagrange's four-square theorem, the non-negative integers are exactly the integers that can be written as a sum of four squares, so each quantifier over the natural numbers can be replaced by four quantifiers over the integers. Similarly, negative coefficients can be avoided: moving every term with a negative coefficient to the other side turns the equation into one of the form , where both polynomials have natural number coefficients, so that Diophantine sets can be defined entirely within the natural numbers; such equations are exactly the atomic formulas of the first-order language of arithmetic. It is also sufficient to assume P is a polynomial over and multiply P by the appropriate denominators to yield integer coefficients. However, whether quantification over rationals can also be substituted for quantification over the integers is a notoriously hard open problem.
The MRDP theorem (so named for the initials of the four principal contributors to its proof) states that a set of natural numbers is Diophantine if and only if it is computably enumerable. A set of integers S is computably enumerable if and only if there is an algorithm that, when given an integer, halts if that integer is a member of S and runs forever otherwise. This means that the concept of general Diophantine set, apparently belonging to number theory, can be taken rather in logical or computability-theoretic terms. This is far from obvious, however, and represented the culmination of some decades of work.
Matiyasevich's completion of the MRDP theorem settled Hilbert's tenth problem. Hilbert's tenth problem was to find a general algorithm that can decide whether a given Diophantine equation has a solution among the integers. While Hilbert's tenth problem is not a formal mathematical statement as such, the nearly universal acceptance of the (philosophical) identification of a decision algorithm with a total computable predicate allows the MRDP theorem to be used to conclude that the tenth problem is unsolvable.
In the following examples, the natural numbers refer to the set of positive integers.
The equation
is an example of a Diophantine equation with a parameter x and unknowns y1 and y2. The equation has a solution in y1 and y2 precisely when x can be expressed as a product of two integers greater than 1, in other words x is a composite number. Namely, this equation provides a Diophantine definition of the set
consisting of the composite numbers.
Other examples of Diophantine definitions are as follows:
Matiyasevich's theorem (named after Yuri Matiyasevich), also called the Matiyasevich–Robinson–Davis–Putnam (MRDP) theorem, says:
Equivalently to the definition given above, a set S of integers is computably enumerable if there is an algorithm that runs forever and lists the members of S. Working over the integers, a set S is Diophantine precisely if there is some polynomial with integer coefficients f(n, x1, ..., xk) such that an integer n is in S if and only if there exist some integers x1, ..., xk with f(n, x1, ..., xk) = 0.
It is easy to see that every Diophantine set is computably enumerable: given a Diophantine equation f(n, x1, ..., xk) = 0, one can construct an algorithm that tries all possible values for n, x1, ..., xk (in, say, some simple order consistent with the increasing order of the sum of their absolute values), and prints n every time f(n, x1, ..., xk) = 0. This algorithm will run forever and will list exactly the n for which f(n, x1, ..., xk) = 0 has a solution in x1, ..., xk.
Earlier work by Martin Davis, Hilary Putnam and Julia Robinson had shown that every computably enumerable set is exponential Diophantine, that is, definable by an equation in which exponentiation is also allowed, and Robinson had shown that exponentiation is itself Diophantine provided there is a Diophantine relation of roughly exponential growth. In 1970 Yuri Matiyasevich completed the proof by using Fibonacci numbers, which grow exponentially, to construct such a relation: he showed that the relation is Diophantine.
Hilbert's tenth problem asks for a general algorithm deciding the solvability of Diophantine equations. Since there exist computably enumerable sets that are not computable, such as the set encoding the halting problem, Matiyasevich's result implies that no such algorithm exists.
The proof of the MRDP theorem is effective: given a description of a computably enumerable set, for example by a Turing machine, a register machine or a program, a corresponding Diophantine equation can be constructed algorithmically. In particular, for every partial computable function f, one can compute from a program for f a polynomial P with integer coefficients such that f(x1, ..., xj) = y if and only if P(x1, ..., xj, y, z1, ..., zk) = 0 for some natural numbers z1, ..., zk; if f is undefined at (x1, ..., xj), the equation has no solution for any y. A direct construction of this kind was given by Jones and Matiyasevich, who first express the computation of a register machine as an exponential Diophantine equation and then eliminate exponentiation using Matiyasevich's Diophantine representation of it.
It has also been shown that the question of solvability of a Diophantine equation is undecidable even if the equation has only 9 natural number variables (announced by Matiyasevich in 1975, with details published by James P. Jones in 1982) or 11 integer variables (announced by Zhi-Wei Sun in 1992, with the full proof published in 2021).
Matiyasevich's theorem has since been used to prove that many problems from calculus and differential equations are unsolvable.[citation needed]
One can also derive the following stronger form of Gödel's first incompleteness theorem from Matiyasevich's result:
According to the incompleteness theorems, every consistent, recursively axiomatizable theory that is strong enough to express basic arithmetic is incomplete, meaning that some statements in its language can be neither proved nor disproved within it. The statement above shows that such statements can always be taken to assert the unsolvability of a particular Diophantine equation.