Closed 5HT closed 6 years ago
That sounds very strange. Can you try it on the hcomptrans
branch? (HITs work correctly there)
Here is another formalization of the Hopf fibration that you can compare with: https://github.com/mortberg/cubicaltt/blob/hcomptrans/examples/brunerie.ctt#L522
hcomptrans
failed to build:
$ stack build
Downloaded lts-11.14 build plan.
AesonException "Error in $.packages.cassava.constraints.flags['bytestring--lt-0_10_4']:
Invalid flag name: \"bytestring--lt-0_10_4\""
I never use stack... It compiles fine for me with the Makefile.
With make it was never compiled for me, even master :-) I thought stack is a main choice.
$ make
ghc -O2 -rtsopts -v0 Connections.hs
Connections.hs:14:1: error:
Failed to load interface for ‘Test.QuickCheck’
Use -v to see a list of the files searched for.
GNUmakefile:43: recipe for target 'Connections.hi' failed
make: *** [Connections.hi] Error 1
Try to run cabal update && cabal install QuickCheck
and then run make
again
cabal update && cabal install QuickCheck
performed well on hcomptrans
branch, but still failed on make
:
$ make
ghc -O2 -rtsopts -v0 Connections.hs
ghc -O2 -rtsopts -v0 CTT.hs
ghc -O2 -rtsopts -v0 Eval.hs
ghc -O2 -rtsopts -v0 TypeChecker.hs
TypeChecker.hs:6:1: error:
Failed to load interface for ‘Control.Monad.Except’
Perhaps you meant Control.Monad.Zip (from base-4.9.1.0)
Use -v to see a list of the files searched for.
TypeChecker.hs:7:1: error:
Failed to load interface for ‘Control.Monad.Reader’
Perhaps you meant Control.Monad.Fail (from base-4.9.1.0)
Use -v to see a list of the files searched for.
GNUmakefile:40: recipe for target 'TypeChecker.hi' failed
make: *** [TypeChecker.hi] Error 1
NOTE: with master
branch the same behavior.
Ok, I think you need to install mtl
. The README says:
This assumes that the following Haskell packages are installed using cabal:
mtl, haskeline, directory, BNFC, alex, happy, QuickCheck
Today is not my day:
$ cabal install mlt haskeline directory BNFC alex happy QuickCheck
...
Building haskeline-0.7.4.2...
Installed alex-3.2.4
Installed happy-1.19.9
Installed haskeline-0.7.4.2
cabal: Error: some packages failed to install:
BNFC-2.8.1 failed during the configure step. The exception was:
ExitFailure 1
Wow, I don't think I can help you with that... Maybe using stack is easier, but I don't know how to fix the error you were getting either...
I've built, but seems my library is incompatible with hcomptrans
branch. Need to porting.
P.S.
The problem was
1) cabal install
doesn't handle correctly multiple targets in the same line.
2) sudo apt install bnfc alex happy
Now about the subject:
1) in master
branch Brunerie's Hopf through mu also doesn't check. Same style of error S1 =/ S1
2) in hcomptrans
I've made a self-contained file (200 LOC) from Brunerie's Hopf [1] and it's stuck at:
Checking: ua
Checking: mu
Checking: f
Checking: goal
I waited a while (30min), but don't know when it ends (seems like hidden U : U issue in mu
)
[1] https://github.com/groupoid/infinity/blob/master/priv/hopf.ctt
Could you take a look?
Actually I'm looking for a confirmation that Hopf fibration could be type checked in any branch among master/cubicaltt
, hcomptrans/cubicaltt
, master/yacctt
. The last one I only left to check :-)
/cc @guillaumebrunerie
It works on hcomptrans
if you make propIsEquiv opaque (just add opaque propIsEquiv
before mu
). You can make it transparent again later by adding transparent propIsEquiv
.
I don't know the current state of type checker, just want to encode S3 Hopf fibration.
It currently stucks with