2

I'm trying to use coq-hott library in Coq, but the import won't work. I'm working in the container of the coqorg/coq:latest docker image. After starting the container I've done the following:

  1. opam install coq-hott in the container's terminal.
  2. Hooked up vscode to the container and installed the VsCoq extension there.
  3. Set the paths to _CoqProject and coqtop.
  4. Created the _CoqProject file with the following lines:
    -arg -noinit
    -arg -indices-matter
  1. Checked the HoTT library location: /home/coq/.opam/4.05.0/lib/coq/user-contrib/HoTT

After creating the *.v file to test the library I got the following problems:

  1. Require Import HoTT. gives
Cannot find a physical path bound to logical path HoTT.
  1. From HoTT Require Import Basics. works, but doing Check (2+2). after that gives
The term "2" has type "trunc_index" while it is expected to have type "Type".
  1. From HoTT Require Import Algebra. works but From HoTT Require Import Analysis. gives
Cannot find a physical path bound to logical path Analysis with prefix HoTT.

I don't understand this behavior at all. It is similar to this question, but still different. Am I doing something wrong ?

According to opam the packages versions for coq and coq-hott are 8.15.1 [4.07.1+flambda 4.05.0] and 8.15 [4.05.0] respectively.

fyo
  • 21
  • 1

0 Answers0