coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: "Carlos.SIMPSON" <Carlos.Simpson AT unice.fr>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Building a black-box solver for linear algebra
- Date: Tue, 28 Feb 2012 11:03:22 +0100
Dear Matthew, You would certainly need to know how to write a program to decide this, in your favorite programming language. Then, that could also be done in Coq, basically using inductive types to represent datatypes. The advantage of transforming your C++ program into a Coq program is that you would then get a certified proof of the statement, rather than just a positive answer from a program that you feel should find a correct proof. The automation features in Coq will help to prove small lemmas along the way (you need a lot of lemmas to say that your program does in fact find the correct proof), but can't be considered as a substitute for coming up with your algorithm to find the proof. ---Carlos On 02/28/2012 10:25 AM, Arnaud Spiwack wrote: Well, you sound like you are trying to do logic programming. Coq has a small logical programming facility called 'eauto'. From Coq, what you will get is that the answer 'yes' will always be correct (hell, you'll have a definite proof of your result), but the answer 'no' will simply mean 'I couldn't find a proof'. Well, pretty much every logical programming system works like that: 'no' means failure rather than a definite 'no'. What Coq will help you do, is ensure your logical inferences are correct as you start by specifying what, say, positive definite matrices means, and then your inference rules are lemma; whereas in logic programming, the inferences act as the definition. On the other hand, Coq's eauto lacks the control abilities (like 'cut') that can be necessary to build reasonably effective logic programs. -- ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ Carlos T. Simpson C.N.R.S., Laboratoire J. A. Dieudonne, Universite de Nice-Sophia Antipolis "Homotopy Theory of Higher Categories" now published! Cambridge University Press, October 2011 http://www.cambridge.org/gb/knowledge/isbn/item6172978/ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ |
- [Coq-Club] Building a black-box solver for linear algebra, Matthew Rocklin
- Re: [Coq-Club] Building a black-box solver for linear algebra,
Arnaud Spiwack
- Re: [Coq-Club] Building a black-box solver for linear algebra, Carlos.SIMPSON
- Re: [Coq-Club] Building a black-box solver for linear algebra, Jean-Francois Monin
- Re: [Coq-Club] Building a black-box solver for linear algebra,
Arnaud Spiwack
Archive powered by MhonArc 2.6.16.