Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] how to require file in subdirectory

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] how to require file in subdirectory


Chronological Thread 
  • From: Jeremy Dawson <Jeremy.Dawson AT anu.edu.au>
  • To: "coq-club AT inria.fr" <coq-club AT inria.fr>, Théo Zimmermann <theo.zimmi AT gmail.com>
  • Subject: Re: [Coq-Club] how to require file in subdirectory
  • Date: Thu, 6 Feb 2020 14:09:06 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=anu.edu.au; dmarc=pass action=none header.from=anu.edu.au; dkim=pass header.d=anu.edu.au; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=yMPQzR2L322pYvIeykOn7xshRqgRPUG3HOFfcJNqRwo=; b=MTMRdg+Q/HQj51xTTSWpustWvHKFy9fxMcwv5H9uRHoaqABXNA+jT68P7YokYtA82mT+ItL3DD+usZvYg/w3QTOp8P1KpijMbZgvk9DxH9J1k4YaPkYDG7lCBhLVEHmSi/r644lsEmn9H3vRXqBX1C3de3CGg2HGKH2ysbM7Mbv+NYD1wr3Cj8rNMgnYz2xvodFAcVleKLz1XSHm4dpb7yPNGOdNC1Y3MHAK6F+4pVKt9R5zuZ0B0/2v/YFSwLDoriPP84KwaEqRFGt+50FQEXEDUf8KteepZOwQnvsNVnbaQTjWVlDp+J4zU1HK+Gvy1uxCuM2vwfeAGpX/fh2Plw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HlCUgAIz7jwxhpqnLit94otvhsfK4RUwZ2sj2XZ/wNKV/OJXhWY8YgXnISl2Zs9ui3cWZH1h7luEBpkYprsozgzZv0lq9551w2tleBKRtSHXRncma6dkeiHg5tPtJfa/sizQolnAq7X49xobKPqj0cVj3L1YHVOhboVST8zy3JIbkPX0U2t5KBLPbFYiF7L3PrzDC7jeYXsDDOnOUK7oWkkrXl1LF2xD3pZBAvOo0Cuus0QQKO622sRP0b7xk/KrADfSqWVLpBC3Bctv30v40Baolyo5xILASe0ieVenzVS9/oVWOj9l1thcpfOrSpBfu9MboUYfj3aTDYhCv7FxBg==
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=Jeremy.Dawson AT anu.edu.au; spf=Pass smtp.mailfrom=Jeremy.Dawson AT anu.edu.au; spf=Pass smtp.helo=postmaster AT AUS01-SY3-obe.outbound.protection.outlook.com
  • Ironport-phdr: 9a23:UVvL6hB64D/mU05jZNWLUyQJP3N1i/DPJgcQr6AfoPdwSPX4osbcNUDSrc9gkEXOFd2Cra4d16yL6Ou9CCRAuc/H7ClZNsQUFlcssoY/p0QYGsmLCEn2frbBThcRO4B8bmJj5GyxKkNPGczzNBX4q3y26iMOSF2kbVImbuv6FZTPgMupyuu854PcYxlShDq6fLh+MAi6oR/eu8ULjoZuMKY8xxXGrnZIf+ld2GdkKU6Okxrm6cq84ZBu/z5Mt/498sJLTLn3cbk/QbFEFjotLno75NfstRnNTAuP4mUTX2ALmRdWAAbL8Q/3UI7pviT1quRy1i+aPdbrTb8vQjSt871rSB7zhygZMTMy7XzahdZxjKJfpxKhugB/zovJa4ybKPZyYqXQds4cSGFcXMheSjZBD5u8YYUREuQBIehWoYrzp1QMrBuxGQaiC+z0xz9UnXD7x7E23/g9HQzE2gErAtIAsG7TrNXwLKocVf66zLPWwjXGb/JdxDnz55LGcxA6pvGMW697fM3Vx0YxDQPKkFCQqIz/Mz2bzOsMvXOb7+1mVe+0kWEnrRxxriKxycgxl4nFnJgayk3d+Ch/3Y07K9q4SEthbt6lFptdryCaN41sQsMjWW5koig6yqcAtJWmfyYK0IwqyhHDZ/CdboSE/hDuWPyMLTp2hn9pYrayihSq/UWvzuDwTNS43VVXoiZfjNXAqH8A2wbT58WFTPZ2412v1iyV1w/J7+FJOUA0mrTfK54m2rM9ipQcv1nfEiPrgUn4ka2Ze0s99uiv8OvofK/qppiBN49okQ7+NbkumsqiDugiKggORW+b+fii27L/4U35QbJKjvssnqnerZDaOcAbpqm+Aw9WyIos9xG/DzK+3NQZm3kIMk5FdQqIgoT1IV3CPez0APWlj1ixnjpmxerKM7njD5nVK3jMirbhfbJz605GzwozyMhS6ZZKBbEbPv3zX0/wuMbWABAjPQ202OHnCNNm24wEX2KPH7WVP73Pvl+V/O4gOfSMaJcPuDnhM/gl++LujXghlFABeqmpxIIbZ2y8HvR7OEqUemHsg9cEEWcSpAUyVu3qiFuYUT5SfXm+Raw85itoQL6hWM3IQZnoi7ic1g+6GIdXbyZIEBrERXzvbsCPX+oGQCOUOM5o1DIeA/zpd4+g0lmctQr/xqBiJ+zSsnkEtZ/kksp04ujSvR43/D1wSc+a1jfeYXtzmzYqSiU72bE3jUVi0VCFmfxajuZVEM0Vy/pWSQA8HZfa0qp3B820Ux+XLYTBc0qvXtjzWWJ5ddk22dJbOx8gSeXntQjK2m+RO5FQl7GPA8BroIvh5CCoYv1MkDPB3qRniEQ6SMxSM2HgnrR46wXYG4/OlQOeirqucqMfmiXK8TXalDbcjARjSAd1FJ79czUHfEKP94bw4F6EQrOzT706YFMYmJyyb5BSY9istm1oAfLqOdDQeWW0wj3iDBCVgL6AcczjZjdE0Q==

Hi Theo,

Thanks. How about coqide (it's been mentioned to me previously, but
apparently it has the same options as coqtop, and it's documentation
within the reference manual doesn't seem to mention the _CoqProject file).

And so far, I'm pretty much on my own regarding this _CoqProject file -
I can't find any documentation about how to set it up, when it is used,
and what it does. Is there any such documentation?

Thanks for the tip about echo $?

Jeremy Dawson


On 6/2/20 7:48 pm, Théo Zimmermann wrote:
> Hi Jeremy,
>
> The _CoqProject file is supported by editors with Coq support (Emacs
> with PG, VsCode with VsCoq, etc.) and by coq_makefile. You are never
> supposed to run coqc nor coqtop directly by yourself. In particular,
> today coqtop is considered as just a debugging tool. If you do insist on
> using it standalone, you are pretty much on your own (and you'll have to
> figure out the flags you need to give it).
>
> Regarding how to make sure that a process such as make finished without
> error, you can print the exit code: echo $?
>
> Cheers,
> Théo
>
>
> Le jeu. 6 févr. 2020 à 01:59, Jeremy Dawson
> <Jeremy.Dawson AT anu.edu.au
>
> <mailto:Jeremy.Dawson AT anu.edu.au>>
> a écrit :
>
> Well, make with the existing Makefile seems to make everything OK, I
> suppose there is no way to tell for sure, but there is no apparent
> error.
>
> With a new _CoqProject file there are all sorts of errors, presumably
> because the existing _CoqProject file has useful stuff in it.
>
> But in any event, running coq (to be exact, coqtop) does not access
> either _CoqProject or Makefile, so I can't see how your solution should
> work.  (Anyway, it doesn't).  Maybe I'm missing something here.  Can
> you
> explain how your solution should work.
>
> Or can anyone refer me to where the documentation on this issue is,
> if any?
>
> Thanks
>
> Jeremy
>
>
> On 5/2/20 7:59 pm, Donald Leung wrote:
> > Dear Jeremy,
> >
> > Try adding a `_CoqProject` file in the root directory of your Coq
> development with the following contents:
> >
> > ```
> > -Q ./tttt/TTT/ tttt.TTT
> >
> > ./tttt/TTT/ssss.v
> > ./tttt/TTT/file2.v
> > ./tttt/TTT/file3.v
> > …
> > ./tttt/TTT/filen.v
> > ```
> >
> > where file2.v, file3.v, …, filen.v are the other vernacular files
> in your Coq development that you would also like to compile. Then run:
> >
> > ```bash
> > $ coq_makefile -f _CoqProject -o Makefile
> > ```
> >
> > in your command line and select `Compile > Make` in your CoqIDE
> (or similar). Provided the build is successful, you should then be
> able to step through the line:
> >
> > ```coq
> >  From tttt.TTT Require Import ssss.
> > ```
> >
> > in your CoqIDE (or similar) without any issues.
> >
> > Yours sincerely,
> > Donald
> >
> >> Jeremy Dawson
> <Jeremy.Dawson AT anu.edu.au
>
> <mailto:Jeremy.Dawson AT anu.edu.au>>於2020年2月5日
> 15:00寫道:
> >>
> >> Hi,
> >>
> >> I'm trying to run a command which I was guessing should be
> >>
> >>  From tttt.TTT Require Import ssss.
> >>
> >> but I get the error
> >>
> >> Cannot find a physical path bound to logical path matching suffix
> >> <> and prefix tttt.TTT.
> >>
> >> What does this mean?
> >>
> >> How do I use a file tttt/TTT/ssss.vo?
> >>
> >>
> >> The documentation contains
> >>   Variant From dirpath Require qualid
> >> (in
> >>
>
> https://coq.inria.fr/distrib/current/refman/proof-engine/vernacular-commands.html#coq:cmdv.from-require)
> >>
> >> What should a dirpath look like, and where is it to be found in the
> >> documentation?  (Some of these syntax constructs seem to be
> defined in
> >>
>
> https://coq.inria.fr/distrib/current/refman/language/gallina-specification-language.html
> >> but dirpath isn't - and none of them seem to be in the index)
> >>
> >> Thanks
> >>
> >> Jeremy
> >
>



Archive powered by MHonArc 2.6.18.

Top of Page