Presburger arithmetic is thefirst-order theory of thenatural numbers withaddition, named in honor ofMojżesz Presburger, who introduced it in 1929. Thesignature of Presburger arithmetic contains only the addition operation andequality, omitting themultiplication operation entirely. The theory iscomputably axiomatizable; the axioms include a schema ofinduction.
Presburger arithmetic is much weaker thanPeano arithmetic, which includes both addition and multiplication operations. Unlike Peano arithmetic, Presburger arithmetic is adecidable theory. This means it is possible to algorithmically determine, for any sentence in the language of Presburger arithmetic, whether that sentence is provable from the axioms of Presburger arithmetic. The asymptotic running-timecomputational complexity of this algorithm is at leastdoubly exponential, however, as shown byFischer & Rabin (1974).
The language of Presburger arithmetic contains constants 0 and 1 and a binary function +, interpreted as addition.
In this language, the axioms of Presburger arithmetic are theuniversal closures of the following:
(5) is anaxiom schema ofinduction, representing infinitely many axioms. These cannot be replaced by any finite number of axioms, that is, Presburger arithmetic is not finitely axiomatizable in first-order logic.[1]
Presburger arithmetic can be viewed as afirst-order theory with equality containing precisely all consequences of the above axioms. Alternatively, it can be defined as the set of those sentences that are true in theintended interpretation: the structure of non-negative integers with constants 0, 1, and the addition of non-negative integers.
Presburger arithmetic is designed to be complete and decidable. Therefore, it cannot formalize concepts such asdivisibility orprimality, or, more generally, any number concept leading to multiplication of variables. However, it can formulate individual instances of divisibility; for example, it proves "for allx, there existsy : (y +y =x) ∨ (y +y + 1 =x)". This states that every number is either even or odd.
Presburger (1929) proved Presburger arithmetic to be:
The decidability of Presburger arithmetic can be shown usingquantifier elimination, supplemented by reasoning aboutarithmetical congruence.[2][3][4][5][6] The steps used to justify a quantifier elimination algorithm can be used to define computable axiomatizations that do not necessarily contain the axiom schema of induction.[2][7]
In contrast,Peano arithmetic, which is Presburger arithmetic augmented with multiplication, is not decidable, as proved by Church alongside the negative answer to theEntscheidungsproblem. ByGödel's incompleteness theorem, Peano arithmetic is incomplete and its consistency is not internally provable (but seeGentzen's consistency proof).
The decision problem for Presburger arithmetic is an interesting example incomputational complexity theory andcomputation. Letn be the length of a statement in Presburger arithmetic. ThenFischer & Rabin (1974) proved that, in the worst case, the proof of the statement in first-order logic has length at least, for some constantc>0. Hence, their decision algorithm for Presburger arithmetic has runtime at least exponential. Fischer and Rabin also proved that for any reasonable axiomatization (defined precisely in their paper), there exist theorems of lengthn that havedoubly exponential length proofs. Fischer and Rabin's work also implies that Presburger arithmetic can be used to define formulas that correctly calculate any algorithm as long as the inputs are less than relatively large bounds. The bounds can be increased, but only by using new formulas. On the other hand, a triply exponential upper bound on a decision procedure for Presburger arithmetic was proved by Oppen.[8][n 2]
A more tight complexity bound was shown using alternating complexity classes byBerman (1980). The set of true statements in Presburger arithmetic (PA) is shown complete forTimeAlternations(22nO(1), n). Thus, its complexity is between double exponential nondeterministic time (2-NEXP) and double exponential space (2-EXPSPACE). Completeness is underKarp reductions. (Also, note that while Presburger arithmetic is commonly abbreviated PA, in mathematics in general PA usually meansPeano arithmetic.)
For a more fine-grained result, let PA(i) be the set of true Σi PA statements, and PA(i, j) the set of true Σi PA statements with each quantifier block limited to j variables. '<' is considered to be quantifier-free; here, bounded quantifiers are counted as quantifiers.
PA(1, j) is in P, while PA(1) is NP-complete.[9]
For i > 0 and j > 2, PA(i + 1, j) isΣiP-complete. The hardness result only needs j>2 (as opposed to j=1) in the last quantifier block.
For i>0, PA(i+1) isΣiEXP-complete.[10]
Short Presburger Arithmetic () is complete (and thus NP complete for). Here, 'short' requires bounded (i.e.) sentence size except that integer constants are unbounded (but their number of bits in binary counts against input size). Also, two variable PA (without the restriction of being 'short') is NP-complete.[11] Short (and thus) PA is in P, and this extends to fixed-dimensional parametric integer linear programming.[12]
Because Presburger arithmetic is decidable,automatic theorem provers for Presburger arithmetic exist. For example, theRocq andLean proof assistant systems feature the tacticomega for Presburger arithmetic and theIsabelle proof assistant contains a verified quantifier elimination procedure byNipkow (2010). The double exponential complexity of the theory makes it infeasible to use the theorem provers on complicated formulas, but this behavior occurs only in the presence of nested quantifiers:Nelson & Oppen (1978) describe an automatic theorem prover that uses thesimplex algorithm on an extended Presburger arithmetic without nested quantifiers to prove some of the instances of quantifier-free Presburger arithmetic formulas. More recentsatisfiability modulo theories solvers use completeinteger programming techniques to handle quantifier-free fragment of Presburger arithmetic theory.[13]
Presburger arithmetic can be extended to include multiplication by constants, since multiplication is repeated addition. Most array subscript calculations then fall within the region of decidable problems.[n 3] This approach is the basis of at least five[citation needed] proof-of-correctness systems forcomputer programs, beginning with theStanford Pascal Verifier in the late 1970s and continuing through to Microsoft's Spec# system of 2005.
Some properties are now given about integerrelations definable in Presburger Arithmetic. For the sake of simplicity, all relations considered in this section are over non-negative integers.
A relation is Presburger-definable if and only if it is asemilinear set.[14]
A unary integer relation, that is, a set of non-negative integers, is Presburger-definable if and only if it is ultimately periodic. That is, if there exists a threshold and a positive period such that, for all integer such that, if and only if.
By theCobham–Semenov theorem, a relation is Presburger-definable if and only if it is definable inBüchi arithmetic of base for all.[15][16] A relation definable in Büchi arithmetic of base and for and beingmultiplicatively independent integers is Presburger definable.
An integer relation is Presburger-definable if and only if all sets of integers that are definable in first-order logic with addition and (that is, Presburger arithmetic plus a predicate for) are Presburger-definable.[17] Equivalently, for each relation that is not Presburger-definable, there exists a first-order formula with addition and that defines a set of integers that is not definable using only addition.
Presburger-definable relations admit another characterization: by Muchnik's theorem.[18] It is more complicated to state, but led to the proof of the two former characterizations. Before Muchnik's theorem can be stated, some additional definitions must be introduced.
Let be a set, the section of, for and is defined as
Given two sets and a-tuple of integers, the set is called-periodic in if, for all such that then if and only if. For, the set is said to be-periodic in if it is-periodic for some such that
Finally, for let
denote the cube of size whose lesser corner is.
Muchnik's Theorem— is Presburger-definable if and only if:
Intuitively, the integer represents the length of a shift, the integer is the size of the cubes and is the threshold before the periodicity. This result remains true when the condition
is replaced either by or by.
This characterization led to the so-called "definable criterion for definability in Presburger arithmetic", that is: there exists a first-order formula with addition and a-ary predicate that holds if and only if is interpreted by a Presburger-definable relation. Muchnik's theorem also allows one to prove that it is decidable whether anautomatic sequence accepts a Presburger-definable set.
a is an array of 4 bytes element size, the expressiona[i] can be translated toabaseadr+i+i+i+i, which fits the restrictions of Presburger arithmetic.In this paper a procedure for constructing an automaton that decides Presburger arithmetic is explained.