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>, Donald Leung <i.donaldl AT me.com>
  • Subject: Re: [Coq-Club] how to require file in subdirectory
  • Date: Wed, 5 Feb 2020 09:11:58 +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=Ae+nVE999nCcJ5Hv2ACGoGImY9P/ZJUd2Z0+hMNGY48=; b=OQkWJug0SyKCpIXH5t2/rodEUzhp+J+xgx8APQk7SJBmkYCGkbFulFHounLXsuqA7nYuV4o1apAnuC6p42A2Fey8D9Wn0hWX1jnHXtGLbN4hp76yH29mJaF1/c1AJfvap1mVnlZ0kelogb3jD7a5eAP8sJtLksWfArWdJqczP6QF+4UTiVvqyiJEN4WlGd6C/eVQlAVJcHEDQIpPlAHGnBADCdMLDhxICfv91YxcGCkLbfi9O0ktP2hrtQVhCJoialenKIC4CbdKeBRxglRS9iS3SDAyS0PyJgsRUea24jSdwMxdrmuD033+RKaoFQ3hh3gzHjtKg0OIMyU9KynbUA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=INgjxrDlT7ZMdxEHJOv9/APvWUntEQsb+70jFyiZtw47fSGGvkAhHECU8EyJOCWaaNukEzEIGk6tOsV/FHv5cURTZdAq/TRdxWutWWK+EQxwV1xsBlT88puzskfregS5PhxjXpUFWu6MFhg7f8mtdbfE1ATTa3taupTi1aH4G5/i30Gjv+yCuQIOKjiGCaDzgfz8/RYqCITMIMORGBdvCx8Fe6Up+J9Btq7dEu3RxgoDqC1QNTIz0NrHMM5P1T7/fVPjUAeRHcXk+jq5dVbPNoRDVMKbcW6IJA2jMJA/ERxUC281fOX4vPJocL3BAHZCsvQiI1VrA38BLcUV2FA5tg==
  • 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-ME1-obe.outbound.protection.outlook.com
  • Ironport-phdr: 9a23:6mQUWBCJP9VPozUxKH/PUyQJP3N1i/DPJgcQr6AfoPdwSPX4psbcNUDSrc9gkEXOFd2Cra4d16yL6+u5AjRIoc7Y9ixbK9oUD15NoP5VtjRoONSCB0z/IayiRA0BN+MGamVY+WqmO1NeAsf0ag6aiHSz6TkPBke3blItdaz6FYHIksu4yf259YHNbAVUnjq9Zq55IAmroQnLucQanIRvJrwxxxfVrXdEZupbyX91Ll6Xgxrw+9288ZF+/yleof4t69JMXaDndKkkULJUCygrPXoo78PxrxnDSgWP5noYUmoIlxdDHhbI4hLnUJrvqyX2ruVy1jWUMs3wVrA0RC+t77x3Rx/yiScILCA2/WfKgcFtlq1boRahpxtiw47IZYyeKfRzcr/Bcd4cWGFMWNtaWS5cDYOmd4YBD/QPM/tEr4fzpFUOoxmxBQiwC+3gxTBFnWP20rYg3ug9DQ3KwA4tEtQTu3rUttX1M6ISXPixwqbW1zXMcfZW2Dfg44bGaB8gr+qMXbV2ccHMzkQhEx3Kjk+OpozgPzKZzOoDvHKV7up7UuKvjXUqpBt3ojiy3MsjlJTGhp8Pxl/e6CV02YA4LsC2Rk58ZN6rCppQtyeCOot3RMMiWWBotzwgxr0Io562ejUBxpc/xxPHZPGLb5KE7g//WOuTOzt0mXxodbOlixu29UWs0uLxW82u3FpXrSdJj8PAum4T2xHc8MSKSvlw80G80jiVzQ/T8PtLIUUsmKrbNZEhxrkwm4IPvEvNAyH6hFj6gLaReEsr5+Sk8uPnba74qZOGMI90lx3+Pb8pmsyiB+Q3LxICX3CB+eS7yL3s41H2QKlLjv0xlKnVqpfaJdkHpq69BA9V1YUj5wyjADeh1dQUhXgHLFRbdxKbl4XkNE3CLOrlAfujgVmgiipnyv7HM7H7BpjAKmDPkLL7crZ8705cxhAzzdda559MDr8OPujzVVH0tN3YFBM3PRa7wuj8CNV60IMTQniAAqmEMK/Ir1CH+/8vL/OWa48IoDr9MeQq5+byjX8lnl8QZbWm3ZwOaHyhAvtmJ1iZbmH3j9caEWYKuxI+Q/bwhF2DVz5TfXeyULgm6jE1EoL1RbvEE8qmh6XE1yOmFLVXYHpHAxaCCz2gI46DQrIHbD+YCs5niD0NE7a7Hctp+RaovQv2g55qM+zbsnkZ857k0tFx6+n7kBx0/jtxWZezyWaIGkN5hG4NVnca1b9kpko1nnWOy6V9krp0HMNI4PVhWwEnc5PQ0qpzFoahCUr6Yt6VRQP+EZ2dCjYrQ4dpmo5cUwNGA9ynyyv78W+vCr4RmaaMAcVuoKvawj78K9s7wmuUjfB83WljedNGMCidvoA69wXXANKWwWykrP7zMIExhWvK/mrFyneStkZFVgI2Sb/CQX0UekrRq5L++1/GSLitT78gN1kYkJLQGu5xctTsyG5+arL7It2HOTC4nXr2CBqVgLqRPtLn

Hi Donald,

I now take it that ``` is supposed to appear literally in the
_CoqProject file, is that correct?

but typing
```bash
$ coq_makefile -f _CoqProject -o Makefile
```

literally into the command line seems to do nothing except do weird
things to my terminal window.

Could you explain further?

Thanks

Jeremy

PS - it seems really weird that to Load or Require Import a file from a
subdirectory requires remaking everything - is that really correct?


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>於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