coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Adam Chlipala <adamc AT hcoop.net>
- To: silviu andrica <silviu_andrica AT yahoo.com>
- Cc: coq-club AT pauillac.inria.fr
- Subject: Re: [Coq-Club] Simple example
- Date: Thu, 19 Feb 2009 13:31:54 -0500
- List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>
silviu andrica wrote:
Today is my first day of Coq and I want to write a function in Coq that checks if a list is a sublist of another list. I was thinking somewhat around the lines of
Definition sublist ( big_list sub_list : list ) := (exists a : list, b : list) -> a++sub_list++b = big_list .
And afterwards have this exported to OCaml.
Logical formulas cannot be exported to OCaml. Extraction erases them systematically. Perhaps you meant that you would like to export a decision procedure for that class of formulas?
But I cannot do, can some one help?
If you've only been using Coq for a day, it's probably a bad idea to assume that you will be able to implement this example without more study. I hope you're following a textbook or tutorial; if so, you should keep reading through it in order, doing a fair sample of the selected exercises for each chapter.
- [Coq-Club] Simple example, silviu andrica
- Re: [Coq-Club] Simple example, Adam Chlipala
- Re: [Coq-Club] Simple example,
silviu andrica
- Re: [Coq-Club] Simple example,
Cedric Auger
- Re: [Coq-Club] Simple example, Adam Chlipala
- Re: [Coq-Club] Simple example,
Cedric Auger
- Re: [Coq-Club] Simple example,
silviu andrica
- Re: [Coq-Club] Simple example, muad
- Re: [Coq-Club] Simple example, Adam Chlipala
Archive powered by MhonArc 2.6.16.