coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Ramkumar Ramachandra <artagnon AT gmail.com>
- To: Jeremy Dawson <Jeremy.Dawson AT anu.edu.au>
- Cc: "coq-club AT inria.fr" <coq-club AT inria.fr>
- Subject: Re: [Coq-Club] loadpath
- Date: Wed, 5 Feb 2020 08:49:49 +0100
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=artagnon AT gmail.com; spf=Pass smtp.mailfrom=artagnon AT gmail.com; spf=None smtp.helo=postmaster AT mail-ua1-f52.google.com
- Ironport-phdr: 9a23:8yE5mBzH1lcoR+nXCy+O+j09IxM/srCxBDY+r6Qd2+8VIJqq85mqBkHD//Il1AaPAdyHra8cwLOP7+igATVGvc/a9ihaMdRlbFwssY0uhQsuAcqIWwXQDcXBSGgEJvlET0Jv5HqhMEJYS47UblzWpWCuv3ZJQk2sfQV6Kf7oFYHMks+5y/69+4HJYwVPmTGxfa5+IA+5oAnMucQam4tvJro+xhfUv3dFdPldyWd0KV6OhRrx6dq88ZB5/yhMp/4t8tNLXLnncag/UbFWFiktPXov5M3suxnDTA+P6WUZX24LjBdGABXL4Q/jUJvpvST0quRy2C+BPc3rVr80Qiit771qSBDzligKMSMy/XzNhcxxiKJbpw+hpwB6zoXJboyZKOZyc6XAdt4BW2FPQtheWDBAAoOkbosAEewBPfpDr4Lgo1cCtAayCRWwCO/qzDJDm3340rAg0+k5Hg7G0g4vEdIAvnrXsdv7KrsdXPuvw6XU1zjOde9a1Sv/5YXObxsvoeuMXbV1ccfJ1UcgDQbFjlaNqYzgJTyVzPkGvXSB4OplT+2gl24npBt3ojey3McjkJTCi4UPxVDe6SV22ok1Jdu/SE59etOkH55QuDubN4tyWM8tX2ZouCMjx7AApJW1ci8KyJE9yB7ebfyKa4mI4hT5VOaQOzh0nnxleKi5ih2v8kag0vXxWteo3FtOtCZIkdnBumoT2xDN9MSLUPtw8lmn1D2SzQ7c8PtELloxlafDK54u3Lowlp0LvETGBCD2mUH2gLaLdko+5+Sk8urnb7X4qpOGOI90jQb+MqsqmsOhG+g3Lg8OX22D9eS90r3s41H5Ta1UgvEqlqTVqpPXKMQBqqKnHQNZzJwv5hahAzu+1dQXh3gHLFZLeBKdiIjpPknDL+riDfejmVusnzFrx/fAPrD6DZXNK2LMkLblfbpn90Fczw8zwchF551IErEBPO7zWkjpudPECR85KhW4zPrjCNVgzYwTQnmPA6+cMKPKq1CE/OMvI++WZI8UojnxMfYl5+S9xUM+zH0QZ6SszNM7YW+jGfIud2eUe3fpk5EtGHgRuQwWRer3zlCOTHhaeiDhcbg742QBAYelEILKXMiXibmI1yeyGJFMbygSA0qQGHjucIOsVPIFaSbUKchkxG9XHYO9QpMsgEn9/DTxzKBqe6+NonVB5MDTkeNt7uiWrikcsDl9DsCTyWaIFjgmkWYBRjtw16d68xUklgWzlJNgivkdLuR9outTW15jZ5HZxu1+Tdv1X1CZJ4rbeBOdWtyjRAoJYJcxztsJORsvHtyjilXe1nPvDeJP0bOMA5Mw/+TX2H2jf8s=
Did you order your _CoqProject properly? Did it build the files in the subdirectory first? (Do you have .vo files in the subdirectory corresponding to the .v files you want to import?)
R.
On Wed, Feb 5, 2020 at 8:43 AM Jeremy Dawson <Jeremy.Dawson AT anu.edu.au> wrote:
Thanks - that generates a Makefile, and make seems to work OK but then I get
> From Cat Require Import sxxx.
> ^^^^
Error:
Cannot find a physical path bound to logical path matching suffix
<> and prefix Cat.
Thanks,
Jeremy
On 5/2/20 6:34 pm, Ramkumar Ramachandra wrote:
> Try `coq_makefile -f _CoqProject -o Makefile`.
>
> R.
>
> On Wed, Feb 5, 2020 at 8:33 AM Jeremy Dawson <Jeremy.Dawson AT anu.edu.au
> <mailto:Jeremy.Dawson AT anu.edu.au>> wrote:
>
> Thanks - but coq_makefile doesn't generate a Makefile - it does
> generate
> a file called CoqMakefile.conf
>
> Is coq_makefile documented? It's not in the index (ie
> https://coq.inria.fr/distrib/current/refman/genindex.html
>
> Is this where I should be looking for documentation? )
>
> And the man page is hardly helpful
>
> Thanks
>
> Jeremy
>
> On 5/2/20 6:14 pm, Ramkumar Ramachandra wrote:
> > Hi Jeremy,
> >
> > You need to set up an `_CoqProject` like this:
> >
> > ```
> > -Q category Cat
> >
> > category/cat.v
> > category/ncat.v
> > ```
> >
> > ... and run `coq_makefile` to generate a Makefile. Note that if
> you can
> > `make` the project, then Coq should work from Emacs just fine.
> >
> > In the example I've supplied, "category" is the subdirectory you
> want to
> > include, and you'd use `From Cat Require Import ...` to include a
> file
> > in it.
> >
> > R.
> >
> > On Wed, Feb 5, 2020 at 8:09 AM Jeremy Dawson
> <Jeremy.Dawson AT anu.edu.au <mailto:Jeremy.Dawson AT anu.edu.au>
> > <mailto:Jeremy.Dawson AT anu.edu.au
> <mailto:Jeremy.Dawson AT anu.edu.au>>> wrote:
> >
> > Hi,
> >
> > The documentation at
> >
> https://coq.inria.fr/distrib/current/refman/proof-engine/vernacular-commands.html#coq:cmd.load
> > says
> >
> > This command loads the file named ident.v, searching
> successively
> > in each of the directories specified in the loadpath. (see
> Section
> > Libraries and filesystem)
> > but when I go to that section it doesn't tell you how to set a
> > "loadpath" or how to view what it is (or even what it is, so I've
> > got to
> > guess it's as in other languages that I'm familiar with - and
> that
> > somehow doesn't seem to fit the case)
> >
> > So how do I load a file (eg, ttt/TTT/sss.v)
> >
> > Thanks
> >
> > Jeremy
> >
>
- [Coq-Club] loadpath, Jeremy Dawson, 02/05/2020
- Re: [Coq-Club] loadpath, Ramkumar Ramachandra, 02/05/2020
- Re: [Coq-Club] loadpath, Jeremy Dawson, 02/05/2020
- Re: [Coq-Club] loadpath, Ramkumar Ramachandra, 02/05/2020
- Re: [Coq-Club] loadpath, Jeremy Dawson, 02/05/2020
- Re: [Coq-Club] loadpath, Ramkumar Ramachandra, 02/05/2020
- Re: [Coq-Club] loadpath, Jeremy Dawson, 02/05/2020
- Re: [Coq-Club] loadpath, Pierre Courtieu, 02/05/2020
- Re: [Coq-Club] loadpath, Jeremy Dawson, 02/05/2020
- Re: [Coq-Club] loadpath, Ramkumar Ramachandra, 02/05/2020
- Re: [Coq-Club] loadpath, Jeremy Dawson, 02/05/2020
- Re: [Coq-Club] loadpath, Ramkumar Ramachandra, 02/05/2020
- Re: [Coq-Club] loadpath, Jeremy Dawson, 02/05/2020
- Re: [Coq-Club] loadpath, Ramkumar Ramachandra, 02/05/2020
Archive powered by MHonArc 2.6.18.