forked from coq/platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage-pick-8.15~2022.09.sh
215 lines (175 loc) · 7.95 KB
/
package-pick-8.15~2022.09.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
#!/usr/bin/env bash
###################### COPYRIGHT/COPYLEFT ######################
# (C) 2020..2022 Michael Soegtrop
# Released to the public under the
# Creative Commons CC0 1.0 Universal License
# See https://creativecommons.org/publicdomain/zero/1.0/legalcode.txt
###################### CONTROL VARIABLES #####################
# The two lines below are used by the package selection script
COQ_PLATFORM_VERSION_TITLE="Coq 8.15.2 (released Jun 2022) with an updated package pick from Sep 2022"
COQ_PLATFORM_VERSION_SORTORDER=102
# The package list name is the final part of the opam switch name.
# It is usually either empty ot starts with ~.
# It might also be used for installer package names, but with ~ replaced by _
# It is also used for version specific file selections in the smoke test kit.
COQ_PLATFORM_PACKAGE_PICK_POSTFIX='~8.15~2022.09'
# The corresponding Coq development branch and tag
COQ_PLATFORM_COQ_BRANCH='v8.15'
COQ_PLATFORM_COQ_TAG='8.15.2'
# This controls if opam repositories for development packages are selected
COQ_PLATFORM_USE_DEV_REPOSITORY='N'
# This extended descriptions is used for readme files
COQ_PLATFORM_VERSION_DESCRIPTION='This version of Coq Platform 2023.11.0 includes Coq 8.15.2 from Sep 2022. '
COQ_PLATFORM_VERSION_DESCRIPTION+='There are two package picks for Coq 8.15.2: the original from 04/2022, and an updated/extended one from 09/2022. '
COQ_PLATFORM_VERSION_DESCRIPTION+='This is the latest package pick for Coq 8.15.2 with some package updates with the goal to make it as compatible as possible to the Coq 8.16.1 package pick. '
# The OCaml version to use for this pick (just the version number - options are elaborated in a platform dependent way)
COQ_PLATFORM_OCAML_VERSION='4.13.1'
###################### PACKAGE SELECTION #####################
PACKAGES=""
# - Comment out packages you do not want.
# - Packages which take a long time to build should be given last.
# There is some evidence that they are built early then.
# - Versions ending with ~flex are identical to the opam package without the
# ~flex extension, except that version restrictions have been relaxed.
# - The picking tracker issue is https://github.com/coq/platform/issues/193
########## BASE PACKAGES ##########
# Coq needs a patched ocamlfind to be relocatable by installers
PACKAGES="${PACKAGES} PIN.ocamlfind.1.9.5~relocatable"
# Since dune does support Coq, it is explicitly selected
PACKAGES="${PACKAGES} dune.3.4.1"
PACKAGES="${PACKAGES} dune-configurator.3.4.1"
# The Coq compiler coqc and the Coq standard library
PACKAGES="${PACKAGES} PIN.coq.8.15.2"
########## IDE PACKAGES ##########
# GTK based IDE for Coq - alternatives are VSCoq and Proofgeneral for Emacs
if [[ "${COQ_PLATFORM_EXTENT}" =~ ^[iIfFxX] ]]
then
PACKAGES="${PACKAGES} coqide.8.15.2"
fi
########## "FULL" COQ PLATFORM PACKAGES ##########
if [[ "${COQ_PLATFORM_EXTENT}" =~ ^[fFxX] ]]
then
# Some dependencies for which we need specific versions
PACKAGES="${PACKAGES} PIN.sexplib0.v0.14.0" # coq-serapi requires this version
PACKAGES="${PACKAGES} PIN.ppxlib.0.25.1" # coq-serapi requires this version
# Standard library extensions
PACKAGES="${PACKAGES} coq-bignums.8.15.0"
PACKAGES="${PACKAGES} coq-ext-lib.0.11.7"
PACKAGES="${PACKAGES} coq-stdpp.1.8.0"
# General mathematics
PACKAGES="${PACKAGES} coq-mathcomp-ssreflect.1.15.0"
PACKAGES="${PACKAGES} coq-mathcomp-fingroup.1.15.0"
PACKAGES="${PACKAGES} coq-mathcomp-algebra.1.15.0"
PACKAGES="${PACKAGES} coq-mathcomp-solvable.1.15.0"
PACKAGES="${PACKAGES} coq-mathcomp-field.1.15.0"
PACKAGES="${PACKAGES} coq-mathcomp-character.1.15.0"
PACKAGES="${PACKAGES} coq-mathcomp-bigenough.1.0.1"
PACKAGES="${PACKAGES} coq-mathcomp-finmap.1.5.2"
PACKAGES="${PACKAGES} coq-mathcomp-real-closed.1.1.3"
PACKAGES="${PACKAGES} coq-mathcomp-zify.1.2.0+1.12+8.13"
PACKAGES="${PACKAGES} coq-mathcomp-multinomials.1.5.5"
PACKAGES="${PACKAGES} coq-coquelicot.3.2.0"
# Number theory
PACKAGES="${PACKAGES} coq-coqprime.1.2.0"
PACKAGES="${PACKAGES} coq-coqprime-generator.1.1.1"
# Numerical mathematics
PACKAGES="${PACKAGES} coq-flocq.4.1.0"
PACKAGES="${PACKAGES} coq-interval.4.5.2"
PACKAGES="${PACKAGES} coq-gappa.1.5.2 gappa.1.4.1"
# Constructive mathematics
PACKAGES="${PACKAGES} coq-math-classes.8.15.0"
PACKAGES="${PACKAGES} coq-corn.8.13.0"
# Homotopy Type Theory (HoTT)
PACKAGES="${PACKAGES} coq-hott.8.15"
# Univalent Mathematics (UniMath)
# Note: coq-unimath requires too much memory for 32 bit architectures
if [ "${BITSIZE}" == "64" ]
then
case "$COQ_PLATFORM_UNIMATH" in
[yY]) PACKAGES="${PACKAGES} coq-unimath.20220816" ;;
[nN]) true ;;
*) echo "Illegal value for COQ_PLATFORM_UNIMATH - aborting"; false ;;
esac
fi
# Code extraction
PACKAGES="${PACKAGES} coq-simple-io.1.7.0"
# Proof automation / generation / helpers
PACKAGES="${PACKAGES} coq-menhirlib.20220210 menhir.20220210"
PACKAGES="${PACKAGES} coq-equations.1.3+8.15"
PACKAGES="${PACKAGES} coq-aac-tactics.8.15.1"
PACKAGES="${PACKAGES} coq-unicoq.1.6+8.15"
PACKAGES="${PACKAGES} coq-mtac2.1.4+8.15"
PACKAGES="${PACKAGES} elpi.1.15.2 coq-elpi.1.14.0" # Newer coq-elpi requires Coq 8.16
PACKAGES="${PACKAGES} coq-hierarchy-builder.1.3.0"
PACKAGES="${PACKAGES} coq-quickchick.1.6.4"
PACKAGES="${PACKAGES} coq-hammer-tactics.1.3.2+8.15"
if [[ "$OSTYPE" != cygwin ]]
then
# coq-hammer does not work on Windows because it heavily relies on fork
PACKAGES="${PACKAGES} coq-hammer.1.3.2+8.15"
PACKAGES="${PACKAGES} eprover.2.6"
PACKAGES="${PACKAGES} z3_tptp.4.11.0"
fi
PACKAGES="${PACKAGES} coq-paramcoq.1.1.3+coq8.15"
PACKAGES="${PACKAGES} coq-coqeal.1.1.1"
PACKAGES="${PACKAGES} coq-libhyps.2.0.6"
PACKAGES="${PACKAGES} coq-itauto.8.15.0"
# General mathematics (which requires one of the above tools)
PACKAGES="${PACKAGES} coq-mathcomp-analysis.0.5.4"
PACKAGES="${PACKAGES} coq-mathcomp-algebra-tactics.1.0.0"
PACKAGES="${PACKAGES} coq-relation-algebra.1.7.7" # Newer versions require Coq 8.16
# Formal languages, compilers and code verification
PACKAGES="${PACKAGES} coq-reglang.1.1.3"
PACKAGES="${PACKAGES} coq-iris.4.0.0"
PACKAGES="${PACKAGES} coq-iris-heap-lang.4.0.0"
PACKAGES="${PACKAGES} coq-ott.0.32"
PACKAGES="${PACKAGES} ott.0.32"
PACKAGES="${PACKAGES} coq-mathcomp-word.1.1"
case "$COQ_PLATFORM_COMPCERT" in
[yY]) PACKAGES="${PACKAGES} coq-compcert.3.11" ;;
[nN]) true ;;
*) echo "Illegal value for COQ_PLATFORM_COMPCERT - aborting"; false ;;
esac
case "$COQ_PLATFORM_VST" in
[yY]) PACKAGES="${PACKAGES} coq-vst.2.11.1" ;;
[nN]) true ;;
*) echo "Illegal value for COQ_PLATFORM_VST - aborting"; false ;;
esac
# Proof analysis and other tools
PACKAGES="${PACKAGES} coq-dpdgraph.1.0+8.15"
fi
########## EXTENDED" COQ PLATFORM PACKAGES ##########
if [[ "${COQ_PLATFORM_EXTENT}" =~ ^[xX] ]]
then
# Proof automation / generation / helpers
PACKAGES="${PACKAGES} coq-deriving.0.1.0"
if [ "${BITSIZE}" == "64" ]
then
# This is out of memory in 32 bit windows - interetsingly 1.1+8.16 does work
PACKAGES="${PACKAGES} coq-metacoq.1.1+8.15"
fi
# General mathematics
PACKAGES="${PACKAGES} coq-extructures.0.3.1"
# Gallina extensions
PACKAGES="${PACKAGES} coq-reduction-effects.0.1.4"
PACKAGES="${PACKAGES} coq-record-update.0.3.0"
# Communication with coqtop
PACKAGES="${PACKAGES} coq-serapi.8.15.0+0.15.2"
# fiat crypto, bedrock2, rupicola and dependencies
if [ "${BITSIZE}" == "64" ]
then
case "$COQ_PLATFORM_FIATCRYPTO" in
[yY])
PACKAGES="${PACKAGES} coq-coqutil.0.0.2"
PACKAGES="${PACKAGES} coq-rewriter.0.0.6"
PACKAGES="${PACKAGES} coq-riscv.0.0.3"
PACKAGES="${PACKAGES} coq-bedrock2.0.0.4"
PACKAGES="${PACKAGES} coq-bedrock2-compiler.0.0.4"
PACKAGES="${PACKAGES} coq-rupicola.0.0.6"
PACKAGES="${PACKAGES} coq-fiat-crypto.0.0.17"
;;
[nN]) true ;;
*) echo "Illegal value for COQ_PLATFORM_FIATCRYPTO - aborting"; false ;;
esac
fi
fi