QuantifierElimination[QuantifierTools]
SuggestCADOptions
optimize calling sequence for (Partial)CylindricalAlgebraicDecompose
Calling Sequence
Parameters
Returns
Description
Examples
Compatibility
SuggestCADOptions(expr)
expr
-
Rational Tarski Formula
Expression sequence with the following three elements:
exprout : Rational Tarski Formula, resulting from converting expr to prenex form and removing any constraints recognized as lifting constraints
liftingconstraints = cons, where cons is the set of the real lifting constraints removed from expr,
opencad = truefalse, value determining whether open CAD is suggested to use
Suggests arguments to pass to QuantifierElimination's CylindricalAlgebraicDecompose or PartialCylindricalAlgebraicDecompose command for expr, with the purpose of optimizing the computational efficiency of such a call. This will lead to a (partial) CAD with a smaller number of cells.
Usage of lifting constraints and/or open CAD for either command can speed up lifting considerably, so this function can separate out the real lifting constraints (see QuantifierElimination options for definition) from an existentially quantified And, and possibly suggest to use open CAD for formulae that contain no equations or non-strict inequalities.
This generates a sequence of arguments amenable to pass to either routine, where that call will then be faster to process.
SuggestCADOptions preprocesses expr for a subsequent (partial) CAD. In particular, the input formula is converted to prenex form, and all denominators are removed (see ConvertRationalConstraintsToTarski).
with⁡QuantifierElimination:with⁡QuantifierTools
AlphaConvert,ConvertRationalConstraintsToTarski,ConvertToPrenexForm,GetAllPolynomials,GetEquationalConstraints,GetUnquantifiedFormula,NegateFormula,SuggestCADOptions
f1≔exists⁡y,x,And⁡x2+y2−1=0,b2⁢x−c2+a2⁢y2−a2⁢b2=0,0<a,a<1,0<b,b<1,0≤c,c<1
f1≔∃⁡y,x,x2+y2−1=0∧b2⁢x−c2+a2⁢y2−a2⁢b2=0∧0<a∧a<1∧0<b∧b<1∧0≤c∧c<1
SuggestCADOptions⁡f1
∃⁡y,x,x2+y2−1=0∧a2⁢b2−a2⁢y2−b2⁢c2+2⁢b2⁢c⁢x−b2⁢x2=0,liftingconstraints=−c≤0,a<1,b<1,c<1,−a<0,−b<0,opencad=false
f2≔forall⁡x,0<4⁢x8−4⁢L−3⁢x6−2⁢3⁢L−6⁢x4−2⁢L−3⁢x2+1
f2≔∀⁡x,0<4⁢x8−4⁢L−3⁢x6−2⁢3⁢L−6⁢x4−2⁢L−3⁢x2+1
SuggestCADOptions⁡f2
∀⁡x,−4⁢x8+4⁢x6⁢L−12⁢x6+6⁢x4⁢L−12⁢x4+2⁢x2⁢L−6⁢x2<1,liftingconstraints=∅,opencad=true
The QuantifierElimination:-QuantifierTools:-SuggestCADOptions command was introduced in Maple 2023.
For more information on Maple 2023 changes, see Updates in Maple 2023.
See Also
CylindricalAlgebraicDecompose
PartialCylindricalAlgebraicDecompose
QuantifierElimination
QuantifierTools
Download Help Document