forked from HoTT/Coq-HoTT
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
<!-- ps-id: 954ea380-2db6-46f1-b33c-6f3384074297 --> Signed-off-by: Ali Caglayan <alizter@gmail.com>
- Loading branch information
Showing
9 changed files
with
127 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
(coq.theory | ||
(name HoTT.Contrib) | ||
(package coq-hott) | ||
(flags -noinit -indices-matter -color on) | ||
(theories HoTT)) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
; Rule for generating coq_project | ||
; This uses (mode promote) in order to put _CoqProject in the source tree. | ||
; This isn't actually needed for dune but is useful when working with editors. | ||
|
||
(rule | ||
(target _CoqProject) | ||
(deps | ||
./etc/generate_coqproject.sh | ||
(source_tree theories) | ||
(source_tree contrib)) | ||
(mode promote) | ||
(package coq-hott) | ||
(action | ||
(setenv | ||
GENERATE_COQPROJECT_FOR_DUNE | ||
true | ||
(bash ./etc/generate_coqproject.sh)))) | ||
|
||
; Rule for validation: dune build @runtest | ||
|
||
(rule | ||
(alias runtest) | ||
(deps | ||
(glob_files_rec ./*.vo)) | ||
(action | ||
(run coqchk -R ./theories HoTT -Q contrib HoTT.Contrib %{deps} -o))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
(lang dune 3.5) | ||
|
||
(using coq 0.6) | ||
|
||
(name coq-hott) | ||
|
||
(generate_opam_files true) | ||
|
||
(source | ||
(github HoTT/HoTT)) | ||
|
||
(homepage "http://homotopytypetheory.org/") | ||
|
||
(license BSD-2-Clause) | ||
|
||
(authors "The HoTT Library Development Team") | ||
|
||
(maintainers | ||
"Jason Gross <jgross@mit.edu>" | ||
"Ali Caglayan <alizter@gmail.com>") | ||
|
||
(package | ||
(name coq-hott) | ||
(synopsis "The Homotopy Type Theory library") | ||
(description | ||
"To use the HoTT library, the following flags must be passed to coqc:\n -noinit -indices-matter\nTo use the HoTT library in a project, add the following to _CoqProject:\n -arg -noinit\n -arg -indices-matter\n") | ||
(depends | ||
(coq (>= 8.16.0)))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
; Tell dune to look through subdirectories | ||
|
||
(include_subdirs qualified) | ||
|
||
; Main theory stanza telling dune how the HoTT library is compiled | ||
|
||
(coq.theory | ||
(name HoTT) | ||
(package coq-hott) | ||
(modules :standard) | ||
(flags -noinit -indices-matter -color on)) | ||
|
||
; TODO: Tests | ||
; Prob need to move tests into tests folder |