Skip to Content.
Sympa Menu

coq-club - [Coq-Club] A Question

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] A Question


chronological Thread 
  • From: Babak Moazzez <babakmoazzez AT yahoo.com>
  • To: coq-club AT pauillac.inria.fr
  • Subject: [Coq-Club] A Question
  • Date: Wed, 23 Dec 2009 19:53:35 -0800 (PST)
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=sWn3x1B0oXH4t8UtH5/S6iMbzW9YSIlyRP1q8ye9gQec5zAEhIam8jp1gCgyG9RsRQXzRYFj7Rfoi3/FK4lmvYPPl8UX6Xbpqt5ohKJ0ACfjJwFGDIm9v3ibpyesFUVHtbQPntRZXhvRi6XGgUIJVClIL0lEby2YjKgDbfy0M60=;


Hi.

I am trying to define a function in Coq that adds two lists together. for this purpose , I need to use a structure which is very familiar in any programming language:

if (p=q) then do ....

but in Coq I cannot use this since (p=q) is not a boolean value but just a proposition which needs to be proved if it is true.

Can anybody tell me what to do?

Thanks.
 
Babak Moazzez
School of Mathematics and Statistics
Carleton University

Address:
Room 4356, Herzberg Building
Carleton University
1125 Colonel By Drive
Ottawa, ON K1S 5B6
Canada

Web: www.math.carleton.ca/~bmoazzez

Tel: 613 520 2600 Ext. 8789

Email: bmoazzez AT math.carleton.ca or babakmoazzez AT yahoo.com




New Email addresses available on Yahoo!
Get the Email name you've always wanted on the new @ymail and @rocketmail.
Hurry before someone else does!


Archive powered by MhonArc 2.6.16.

Top of Page