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: Thu, 6 Feb 2020 00:58:55 +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=PijRvPT0Qcp8NBKCbCNA7h3z7eUS67GbsUW3GEPUsUg=; b=a31JAFqD9otT76EzjixCZjVlYZiy4+1EzTutzpEhf5YMftvVoTo7HO+AV5EEikSJnm1NQexbJgjJQ2isDvCEJ2WM+AahhpKKx9Kb64jnQF/PHvIKAV/ivRfqdhrM3hCvif1I/U7uNhQOoPk7qbghmKAIDdpnzCqd5Fg1Kyacgn7crB6sUPBZlisdQS1iHp1egBQLfetZYCRa28E280mLaOv1MiMHGOSyRKRPWcRjv8yYDKTQY5ftzddaR1xsjmItOFMNOSP2MsYjm0kIWysuBYe/8kJGHVOg+B0OyyzsFVBgcWM0a2+B9BmZQcoYzdUFWc26/5288RaQRRF7HGHPQQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iyDLC+mNejaYjrCzs94THEPhUywm68H47xNx1vhYoTR4MPzkdQrtfkMwNJvLHW4V2yriplsnuNKAvJs7b7fgp70rWRGo+bCuqIe6UDBK+P1tX1M1xCsLFAaNmlCC2T1FSjHdUbF5vfOP7eP8Qq04fGOkj4YW17XzhKfvN1P8AOECkfvkjbnE5GTHC4PcNASQGcfqir29/D3y85uuoWqbra0fsCpANwr84Y/OZNx8li+i2dCYaLAM0mY977w+JOIVyyDVYMDgtOM0j0C+I4sqHtkfAi7lMtpKobv28DTP23Zw4NjNShveGX2dbXPnxNapgbs0n/IdXGfrM8bbVVqA/w==
  • 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:q1+kzB9ZxtR78v9uRHKM819IXTAuvvDOBiVQ1KB20OwcTK2v8tzYMVDF4r011RmVBNmdtqgP0bqe8/i5HzBZutDZ6DFKWacPfidNsd8RkQ0kDZzNImzAB9muURYHGt9fXkRu5XCxPBsdMs//Y1rPvi/6tmZKSV3wOgVvO+v6BJPZgdip2OCu4Z3TZBhDiCagbb9oIxi6sArcutMWjId8Jao91BjEqWZMd+hK2G9kP12ekwvy68uq4JJv7yFcsO89+sBdVqn3Y742RqFCAjQ8NGA16szrtR3dQgaK+3ARTGYYnAdWDgbc9B31UYv/vSX8tupmxSmVJtb2QqwuWTSj9KhkVhnlgzoaOjEj8WHXjstwjL9HoB+kuhdyzZLYbJ2TOfFjeK7WYNEUSndbXstJVyJPHJ6yb5cBAeQCM+ZXrYj9qEcBoxSxHgSsGPjgxyVUinPqwaE30eIsGhzG0gw6GNIOtWzZotHrO6cIT++1yanJxijNYfxM1zb984/IchY8qvyLWbx/b9DRxlcqFwLFlFmep5bqPj2O1uQKtWiW9PBvVeSyi2I9tQ5+vyWvyt02hYnUn48YzE3P+yt+wIYwP9K4SUh7bMalEJtWrSGaNpF5TtksQ2Fyvisx174IuYajcSUF1Jgr3QPTZ+CFfoSS/x7uWuecLS1liH54d7+znwu+/Ei8xuHmSMW4zFhHojBbntXRqnwBzQHf58aDR/Z740yvwyyA1xrJ5eFBOU00lbTUK5omwrMoipccv1nNEjPrlEnvi6GYeVgo9vGv6+v8fLrqvJicN5Joig7lNaQuh8q/DvkiPggWRWib/vi826P/8k3lQbVKifs2nrPesJDHOcQboqm5AwhW0oo59xm/CDKm3MwZnXkBMl1FZAqKgof1N13UPfz0EfWyj06xnDplxv3KJKDtDojCI3TblbfuZ7d960pSyAopytBf4opZBLUfL/LpREDxsdzZAgU3PQOuzefnE9J91oUFVG2VBK+ZLbnevkGV6eIyOeWDfpIVtC7nK/c5//7ukWM5mVgFcKa12psXcWm0EehiI0WEenXhmcwBEGcPvgomVuPmklyCUThJZ3azRa0w/D87CJj1RbvEE8qmh6XE1yOmFLVXYHpHAxaCCz2gI46DQrIHbD+YCs5niD0NE7a7Hctp+RaovQv2g55qM+zbsnkZ857k0tFx6+n7kBx0/jtxWZezyWaIGkN5hG4NVnca1b9kpko1nnWOy6V9krp0HMNI4PVhWwEnc5PQ0qpzFoahCUr6Yt6VRQP+EZ2dCjYrQ4dpmoNcUwNGA9ynyyv78W+yGbZMze6CAoFy/67BmXHsdZ4kmiT2kZI5hlxjefNhcGivh6px7Q/WXtSbmkOE0aumaOIVwXyUrTrR/S+1pEhdFTVIf+DFUHQYOhSEhOnCvhqHapL3TLMtP01G1NKILbZMZpvxl1JaSfz/OdPYJWWsh2O3AhXOzbSJPtPn

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