Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Weird import problem?

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Weird import problem?


Chronological Thread 
  • From: Anton Trunov <anton.a.trunov AT gmail.com>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] Weird import problem?
  • Date: Thu, 27 Sep 2018 21:38:56 +0200
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=anton.a.trunov AT gmail.com; spf=Pass smtp.mailfrom=anton.a.trunov AT gmail.com; spf=None smtp.helo=postmaster AT mail-wr1-f47.google.com
  • Ironport-phdr: 9a23:albPmBLubgPp15lGmNmcpTZWNBhigK39O0sv0rFitYgRIv3xwZ3uMQTl6Ol3ixeRBMOHs60C07KempujcFRI2YyGvnEGfc4EfD4+ouJSoTYdBtWYA1bwNv/gYn9yNs1DUFh44yPzahANS47xaFLIv3K98yMZFAnhOgppPOT1HZPZg9iq2+yo9JDffwdFiCChbb9uMR67sRjfus4KjIV4N60/0AHJonxGe+RXwWNnO1eelAvi68mz4ZBu7T1et+ou+MBcX6r6eb84TaFDAzQ9L281/szrugLdQgaJ+3ART38ZkhtMAwjC8RH6QpL8uTb0u+ZhxCWXO9D9QLYpUjqg8qhrUgflhicbODA2/27Zl8J+jKxFrh2jpBJxxJXZYJ2MNPp7Yq/dfc8WSXRHU81MVyJBGIS8b44XAucdO+ZYs479p10TphWgHwmsGeXvyjhWhnTr2qA1yeIhER3B3AwmBd4Bqm7YrMnvNKcPV+C1y7fIwC7Mb/NTwzj96YzIfgo9rvGLWLJ9aMzcwlQhGQPCi1Wfs43lPzWN2+QCsmib8+pgVf+0hGI9tw5xpT2vy8ExgYfKnoIY0k7I+Tl9zYovJtC1SFR3bcC6HJdNrS2XOIl7TtsmTmxnoio3yLMLtYS7cSUF0pgr2gDTZv+BfoOV+BzsTvyRLi19hH99eLKwmRKy8U+4x+35TMa00VJKojNLk9nWq3wBzhLT58eFR/dn8Ueh3jGP1w/X6u5aO0w7ia3bK5s5zr4xkJocr1jDEzfolEnqiKKabEYp9+iy5+j5fLnqu4WQOoB2hw3mN6QhgM2/AeA2MggUWGib/Pyx26fl/U3lR7VKiOc6nbPDvJDGP8Qbu6i5AwhL0os45Ba/Ci2p0NUcnXUdMF1FfxeHg5DzO17SOPD4Eeu/g1O0nTh3wPDGJ6TtDYnJLnjei7jsZq196k5ZyAor199T/ZNUCrcbIPLyQED9rtLYDgVqezCzlu3gEZB20p4UcWOJGK6Qdq3I4nGS4ed6Cu+QY4ldhCzgLf87r6rni2M+nxkUO7WzwJ0Qdli3G/1nJwOSZn+60YRJKnsDogdrFL+is1aFSzMGPy/jDZJ53SkyDcedNamGQ4mshLKb2yLiR89ZY2lHDhaHFnK6LtzYCcdJUzqbJ4paqhJBTaKoEtZz2hSntQu8wL1ifLKNp38o8Kn73d0w3NX90BE/8TsuUpaY2mCJCn5uxyYGG2Bw06d4rkhwjFyE1Pogjg==

Hi Ray,

Yet another option is to use

From Equations Require Import Equations.

This is what the manual uses at the beginning of chapter 1, see
http://github.com/mattam82/Coq-Equations/raw/master/doc/equations.pdf

Best wishes,
Anton

> On 27 Sep 2018, at 21:26, Xuanrui Qi
> <xqi01 AT cs.tufts.edu>
> wrote:
>
> Hello,
>
> Thanks to Li-yao. This is right - the documentation needs to be
> updated, I think!
>
> Best,
> Ray
>
> On Thu, 2018-09-27 at 15:24 -0400, Li-yao Xia wrote:
>> Hi Xuanrui,
>>
>> Try
>>
>> Require Import Equations.Equations.
>>
>> Looking at the "Print LoadPath" output, "Equations" is the path to
>> the
>> Equations library, but that is not a path to an actual file, which
>> "Require" expects.
>>
>> The logical path "Equations.Equations" refers to the module
>> .../user-contrib/Equations/Equations.vo which can thus be loaded.
>>
>> Li-yao
>>
>> On 9/27/18 3:17 PM, Xuanrui Qi wrote:
>>> Hello all,
>>>
>>> I appear to have run into a weird Import problem in Coq. I have
>>> installed the "coq-equations" package using opam, but when I try to
>>> Require Import the package:
>>>
>>> Coq < Require Import Equations.
>>> Toplevel input, characters 15-24:
>>>> Require Import Equations.
>>>> ^^^^^^^^^
>>> Error: Unable to locate library Equations.
>>>
>>> However, if I issue the "Print LoadPath." command, I can see that
>>> Equations is in the load path!
>>>
>>> Coq < Print LoadPath.
>>> Logical Path / Physical path:
>>> <> /home/xuanrui
>>> <> /home/xuanrui/.opam/4.07.0/lib/coq/user-contrib
>>> Equations /home/xuanrui/.opam/4.07.0/lib/coq/user-contrib/Equations
>>>
>>> I also have ssreflect installed the same way, and I have no
>>> problems
>>> importing ssreflect. I wonder what could be going wrong with Coq,
>>> or
>>> perhaps it is a problem in the packaging of Equations?
>>>
>>> Thanks a lot for your assistance.
>>>
>>> -Ray
>>>
>




Archive powered by MHonArc 2.6.18.

Top of Page