Tarski formulae types for the QuantifierElimination package
Calling Sequence
Description
Examples
type(expr, TarskiFormula)
type(expr, RationalTarskiFormula)
A Tarski formula is an integral polynomial constraint, i.e. relation(polynom(integer)), truefalse, or a boolean combination of Tarski formulae, where allowable operators are And, Or, Implies, Xor, and Not, or a Tarski formula quantified via forall or exists.
A Real Tarski formula (RTF) is as above, but with allowable polynomial constraints having real algebraic number coefficients, i.e. relation(polynom(realalgnum)). Real algebraic numbers allow for real algebraic numbers represented by RootOfs indexed by rational intervals.
An Extended Tarski formula (ETF) is as above, but with allowable polynomial constraints being over real algebraic functions. A real algebraic function is a real algebraic number (as realalgnum), or a parametric RootOf of real algebraic functions with exactly one parameter.
This hence forms a chain of supertypes - a Tarski formula is a subtype of a Real Tarski formula, which is a subtype of an Extended Tarski formula.
A Rational Tarski formula is as one of the above, but the polynomial constraint is instead a constraint on a rational function, where the polynomials in the rational function have realalgnum coefficients, or radnum coefficients convertible to realalgnum coefficients. In other words the coefficients must have the type relation(ratpoly(Or(realalgnum,And(radnum,Not(nonreal)))).
In terms of the QuantifierElimination package:
Tarski formulae are applicable for usage of Virtual Term Substitution (VTS) as an algorithm for Quantifier Elimination (QE). In particular, VTS will not immediately allow for real algebraic numbers.
Real Tarski formulae are applicable for usage of Cylindrical Algebraic Decomposition (CAD), including in QE contexts.
Extended Tarski formulae are never applicable as input for any QuantifierElimination routine, although in practice they may be equivalent to Real Tarski formulae. Extended Tarski formulae may be returned as output for QE when CAD was used as part of QE computation.
Rational Tarski formulae are converted to equivalent Real Tarski formulae before QE computation - see ConvertRationalConstraintsToTarski. In particular, note that Rational Tarski formulae allow for realalgnum coefficients. Radicals (radnums) are also allowable where they are equivalent to a realalgnum - such radicals are converted to their realalgnum counterpart.
The main source of reference for QuantifierElimination and its types can be found in the help page for QuantifierElimination.
with⁡QuantifierElimination:with⁡QuantifierTools:
F≔And⁡x<0,y<z
F≔x<0∧y<z
type⁡F,TarskiFormula
true
F≔forall⁡x,0<x⇒0<x2
F≔∀⁡x,0<x⇒0<x2
F≔RootOf⁡_Z2−2,1..2<x⇒1<x
type⁡F,RationalTarskiFormula
false
F≔sqrt⁡2<xy
F≔2<xy
F≔ConvertRationalConstraintsToTarski⁡F
F≔0<−2⁢y2+y⁢x
F≔convert⁡F,RootOf,form=interval
F≔0<−RootOf⁡_Z2−2,14142135571000000000..14142135671000000000⁢y2+y⁢x
See Also
QuantifierElimination
QuantifierElimination[PartialCylindricalAlgebraicDecompose]
QuantifierElimination[QuantifierEliminate]
QuantifierTools[ConvertRationalConstraintsToTarski]
RootOf
type[realalgnum]
Download Help Document