Open anirjoshi opened 1 month ago
I this issue is irrelevant to Sage, it should be reported to Qepcad developers.
@maxale , Thank you for the quick response. Since I used Sage software, therefore I thought this is the correct place to report the issue. It would be great if you/someone can point me to the Qepcad developers?
@anirjoshi: No, it's not a right place as Sage is not responsible for issues in other packages, which it uses as blackboxes. For Qepcad issues, please check its homepage: https://www.usna.edu/CS/qepcadweb/B/QEPCAD.html
I don't understand the computation
sage: qf.exists(tmp,qf.and_(tmp==0,F3))
(E tmp)[tmp = 0 /\ [[0 > -a^2 b^2 + a^2 x^2 + b^2 y^2 /\ 0 > -r^2 + x^2 + y^2 - 20 x - 20 y + 200]]]
sage: qepcad(qf.exists(tmp,qf.and_(tmp==0,F3)),memcells='1000000000 +L5000')
finish &
The last line is the output I get on my Linux machine. What is it supposed to do?
@anirjoshi: No, it's not a right place as Sage is not responsible for issues in other packages, which it uses as blackboxes. For Qepcad issues, please check its homepage: https://www.usna.edu/CS/qepcadweb/B/QEPCAD.html
Probably a better place to report QEPCAD issues is https://github.com/chriswestbrown/qepcad
Although they seem to be putting all the work into a successor project, https://github.com/chriswestbrown/tarski
Anyhow, running
sage: eliminate_trick = qepcad(qf.exists(tmp,qf.and_(tmp==0,F3)),memcells='1000000000 +L5000')
....: print(eliminate_trick)
just prints an empty line on my Linux laptop.
@dimpase Thank you for the pointer to the appropriate QEPCAD repo.
The output is supposed to simply be the formula in the square brackets after tmp==0
. That is, the output is supposed to be [0 > -a^2 b^2 + a^2 x^2 + b^2 y^2 /\ 0 > -r^2 + x^2 + y^2 - 20 x - 20 y + 200]
. This is so because there is no tmp
variable in this formula. So tmp==0
is the only place where tmp
variable occurs. Just taking a conjunction of tmp==0
with another formula where tmp
does not occur, and then existentially quantifying out tmp
variable should return the other formula, which is [0 > -a^2 b^2 + a^2 x^2 + b^2 y^2 /\ 0 > -r^2 + x^2 + y^2 - 20 x - 20 y + 200]
in this case.
Does this work on small examples?
Steps To Reproduce
sage
with version 10.3 [I believe the same issue exists with 10.4 as well] The following program times-out:Quantification out of the
tmp
variable should be pretty easy since this only appears in the constrainttmp==0
.Expected Behavior
A formula without the
tmp
variable.Actual Behavior
Just keeps running for a long time.
Additional Information
No response
Environment
Checklist