4

I used OPAM to install bignum

$ opam upgrade bignum
Already up-to-date.

With coq 8.6 the code Require Import BigN. imported the library but with coq 8.7 I get an error. So I isolate this line of code in a file bignum_problem.v. Then running coqc bignum_problem produces the response

File "./bignum_problem.v", line 1, characters 15-19:

Error: Unable to locate library BigN.

The documentation for Coq modules suggests that I need a file BigN.vo but no such file appears in the .opam directory. What am I missing?

Community
  • 1
  • 1
Barry Jay
  • 73
  • 4

1 Answers1

6

It seems that bignum refers to an OCaml library; you might want to install coq-bignums instead. I just installed that library on my machine and was able to require BigN with the command

From Bignums Require Import BigN.
Arthur Azevedo De Amorim
  • 23,012
  • 3
  • 33
  • 39
  • Thanks for this! I found `http://coq.io/opam/coq-bignums.8.7.0.html` and tried their command `opam install coq-bignums.8.7.0` but still get an error `[ERROR] No package named coq-bignums found.` – Barry Jay Oct 30 '17 at 04:41
  • 1
    @BarryJay I was able to install it via `opam install coq-bignums.8.7.0`. You probably need to execute `opam update` before trying to install the library. – Anton Trunov Oct 30 '17 at 08:43
  • 3
    You also need the coq-specific repo: `opam repo add coq-released https://coq.inria.fr/opam/released` – gallais Oct 30 '17 at 08:56
  • All working now. I needed all three answers to get there! Thanks Arthur, Anton and gallais. – Barry Jay Oct 30 '17 at 17:56