Test with master Agda version 2.6.0-d3efe64
This commit is contained in:
parent
33f7e2ebbb
commit
9497a650ea
49
README.md
49
README.md
|
@ -11,39 +11,42 @@ If you want more information about this project, then you're in luck. This is my
|
||||||
masters thesis. Go ahead and read it:
|
masters thesis. Go ahead and read it:
|
||||||
|
|
||||||
cd doc/
|
cd doc/
|
||||||
make read
|
make
|
||||||
|
|
||||||
Installation
|
|
||||||
============
|
|
||||||
|
|
||||||
Dependencies
|
Dependencies
|
||||||
------------
|
============
|
||||||
To succesfully compile the following is needed:
|
To successfully compile the following is needed:
|
||||||
|
|
||||||
* The Agda release candidate 2.5.4[^1]
|
* The Agda release candidate 2.5.4 or higher[^1]
|
||||||
* [Agda Standard Library](https://github.com/agda/agda-stdlib)
|
* [Agda Standard Library](https://github.com/agda/agda-stdlib)
|
||||||
* [Cubical](https://github.com/Saizan/cubical-demo/)
|
* [Cubical](https://github.com/Saizan/cubical-demo/)
|
||||||
|
|
||||||
|
Also tested with:
|
||||||
|
|
||||||
|
* Agda version 2.6.0-d3efe64
|
||||||
|
|
||||||
[^1]: At least version >=
|
[^1]: At least version >=
|
||||||
[`707ce6042`](https://github.com/agda/agda/commit/707ce6042b6a3bdb26521f3fe8dfe5d8a8470a43)
|
[`707ce6042`](https://github.com/agda/agda/commit/707ce6042b6a3bdb26521f3fe8dfe5d8a8470a43)
|
||||||
|
|
||||||
The version of the libraries that this depends on can be shown by
|
Building
|
||||||
executing the following command in the root directory of the project:
|
========
|
||||||
|
You can build the library with
|
||||||
|
|
||||||
git submodule foreach git rev-parse HEAD
|
git submodule update --init
|
||||||
|
make
|
||||||
|
|
||||||
Unfortunately Agda's module system does not allow us to automatically
|
The Makefile takes care of using the right dependencies.
|
||||||
add these dependencies. So you'll have to make sure you're using
|
Unfortunately I have not found a way to automatically inform
|
||||||
versions of these libraries that are compatible with this
|
`agda-mode` that it should use these dependencies. So what you can do
|
||||||
project. Since this information is only provided as documentation it
|
in stead is to copy these libraries to a global location and then add
|
||||||
may also noot be up-to-date so beware.
|
them system wide:
|
||||||
|
|
||||||
You can let Agda know about these libraries by appending them to your global
|
mkdir -p ~/.agda/libs
|
||||||
libraries file like so: (NB!: There is a good reason this is not in a
|
cd ~/.agda/libs
|
||||||
makefile. So please verify that you know what you are doing, you probably
|
git clone $CAT/libs/std-lib
|
||||||
already have standard-library in you libraries)
|
git clone $CAT/libs/cubical
|
||||||
|
echo << EOF | tee -a ~/.agda/libraries
|
||||||
|
$HOME/.agda/libs/agda-stdlib/standard-library.agda-lib
|
||||||
|
$HOME/.agda/libs/cubical/cubical.agda-lib
|
||||||
|
EOF
|
||||||
|
|
||||||
AGDA_LIB=~/.agda
|
|
||||||
readlink -f libs/*/*.agda-lib | tee -a $AGDA_LIB/libraries
|
|
||||||
|
|
||||||
Anyways, assuming you have this set up you should be good to go.
|
|
||||||
|
|
|
@ -559,7 +559,6 @@ module _ {ℓa ℓb : Level} (ℂ : RawCategory ℓa ℓb) where
|
||||||
-- projections of `IsCategory` - Here I arbitrarily chose to use this
|
-- projections of `IsCategory` - Here I arbitrarily chose to use this
|
||||||
-- result from `x : IsCategory C`. I don't know which (if any) possibly
|
-- result from `x : IsCategory C`. I don't know which (if any) possibly
|
||||||
-- adverse effects this may have.
|
-- adverse effects this may have.
|
||||||
module Prop = X.Propositionality
|
|
||||||
|
|
||||||
isIdentity= : (λ _ → IsIdentity identity) [ X.isIdentity ≡ Y.isIdentity ]
|
isIdentity= : (λ _ → IsIdentity identity) [ X.isIdentity ≡ Y.isIdentity ]
|
||||||
isIdentity= = X.propIsIdentity X.isIdentity Y.isIdentity
|
isIdentity= = X.propIsIdentity X.isIdentity Y.isIdentity
|
||||||
|
|
|
@ -44,8 +44,8 @@ module _ (ℓ : Level) where
|
||||||
hSet : Set (lsuc ℓ)
|
hSet : Set (lsuc ℓ)
|
||||||
hSet = ⟨0⟩ -type
|
hSet = ⟨0⟩ -type
|
||||||
|
|
||||||
Prop : Set (lsuc ℓ)
|
hProp : Set (lsuc ℓ)
|
||||||
Prop = ⟨-1⟩ -type
|
hProp = ⟨-1⟩ -type
|
||||||
|
|
||||||
-----------------
|
-----------------
|
||||||
-- * Utilities --
|
-- * Utilities --
|
||||||
|
|
Loading…
Reference in a new issue