-
Notifications
You must be signed in to change notification settings - Fork 49
/
package-pick-8.20~2025.01.sh
217 lines (177 loc) · 8.16 KB
/
package-pick-8.20~2025.01.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
216
217
#!/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.20.0 (released Sep 2024) with an incomplete preview package pick"
COQ_PLATFORM_VERSION_SORTORDER=90
# 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.20~2025.01'
# The corresponding Coq development branch and tag
COQ_PLATFORM_COQ_BRANCH='v8.20'
COQ_PLATFORM_COQ_TAG='8.20.0'
# 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 2025.01.0 includes Coq 8.20.0 from Sep 2024. '
COQ_PLATFORM_VERSION_DESCRIPTION+='This is a **yet incomplete preview pick** intended for package maintainers and early adopters. '
# 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.14.2'
###################### 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.
########## BASE PACKAGES ##########
# Coq needs a patched ocamlfind to be relocatable by installers
PACKAGES="${PACKAGES} PIN.ocamlfind.1.9.5~relocatable" # TODO port patch to 1.9.6
# Since dune does support Coq, it is explicitly selected
PACKAGES="${PACKAGES} PIN.dune.3.16.1" # Note: 3.17.0 has issues on Windows
PACKAGES="${PACKAGES} PIN.dune-configurator.3.16.1"
# The Coq compiler coqc and the Coq standard library
PACKAGES="${PACKAGES} PIN.coq.8.20.0"
########## IDE PACKAGES ##########
# GTK based IDE for Coq - alternatives are VSCoq and Proofgeneral for Emacs
if [[ "${COQ_PLATFORM_EXTENT}" =~ ^[iIfFxX] ]]
then
PACKAGES="${PACKAGES} coqide.8.20.0"
fi
########## "FULL" COQ PLATFORM PACKAGES ##########
if [[ "${COQ_PLATFORM_EXTENT}" =~ ^[fFxX] ]]
then
# Some dependencies which need to be installed upfront to avoid recompilation
# sexplib depends on sexplib0 which has a version 0.17.0 compatible with OCaml 4.X, but sexplib 0.17.0 requires OCaml 5.X
# so if sexplib0 is installed first, we get 0.17.0 but later need to revert to 0.16.0 when sexpliv ist installed (required by coq-serapi)
PACKAGES="${PACKAGES} sexplib.v0.16.0"
# Standard library extensions
PACKAGES="${PACKAGES} coq-bignums.9.0.0+coq8.20"
PACKAGES="${PACKAGES} coq-ext-lib.0.13.0"
PACKAGES="${PACKAGES} coq-stdpp.1.11.0"
# General mathematics
PACKAGES="${PACKAGES} elpi.2.0.6 coq-elpi.2.3.0" # This would belong into the "Proof automation" section, but it is required by coq-hierarchy-builder
PACKAGES="${PACKAGES} coq-hierarchy-builder.1.8.0"
PACKAGES="${PACKAGES} coq-mathcomp-ssreflect.2.3.0"
PACKAGES="${PACKAGES} coq-mathcomp-fingroup.2.3.0"
PACKAGES="${PACKAGES} coq-mathcomp-algebra.2.3.0"
PACKAGES="${PACKAGES} coq-mathcomp-solvable.2.3.0"
PACKAGES="${PACKAGES} coq-mathcomp-field.2.3.0"
PACKAGES="${PACKAGES} coq-mathcomp-character.2.3.0"
PACKAGES="${PACKAGES} coq-mathcomp-bigenough.1.0.1"
PACKAGES="${PACKAGES} coq-mathcomp-finmap.2.1.0"
PACKAGES="${PACKAGES} coq-mathcomp-real-closed.2.0.2"
PACKAGES="${PACKAGES} coq-mathcomp-zify.1.5.0+2.0+8.16"
PACKAGES="${PACKAGES} coq-mathcomp-multinomials.2.3.0"
PACKAGES="${PACKAGES} coq-coquelicot.3.4.2"
# Number theory
PACKAGES="${PACKAGES} coq-coqprime.1.6.0"
PACKAGES="${PACKAGES} coq-coqprime-generator.1.1.1" #TODO: this points to https://github.com/thery/coqprime/archive/v8.14.1.tar.gz
# Numerical mathematics
PACKAGES="${PACKAGES} coq-flocq.4.2.0"
PACKAGES="${PACKAGES} coq-interval.4.11.1"
PACKAGES="${PACKAGES} coq-gappa.1.5.5"
PACKAGES="${PACKAGES} gappa.1.4.1"
# Constructive mathematics
PACKAGES="${PACKAGES} coq-math-classes.8.19.0"
PACKAGES="${PACKAGES} coq-corn.8.19.0"
# Homotopy Type Theory (HoTT)
PACKAGES="${PACKAGES} coq-hott.8.20"
# 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.20240923" ;;
[nN]) true ;;
*) echo "Illegal value for COQ_PLATFORM_UNIMATH - aborting"; false ;;
esac
fi
# Code extraction
PACKAGES="${PACKAGES} coq-simple-io.1.10.0"
# Proof automation / generation / helpers
# elpi + coq-elpi are already given above
PACKAGES="${PACKAGES} coq-menhirlib.20240715 menhir.20240715"
PACKAGES="${PACKAGES} coq-equations.1.3.1+8.20"
PACKAGES="${PACKAGES} coq-aac-tactics.8.20.0"
PACKAGES="${PACKAGES} coq-unicoq.1.6+8.20"
PACKAGES="${PACKAGES} coq-mtac2.1.4+8.20"
PACKAGES="${PACKAGES} coq-quickchick.2.0.5"
PACKAGES="${PACKAGES} coq-hammer-tactics.1.3.2+8.20"
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.20"
PACKAGES="${PACKAGES} eprover.3.1" # ToDo Check
PACKAGES="${PACKAGES} z3_tptp.4.13.0" # ToDo Check
fi
PACKAGES="${PACKAGES} coq-paramcoq.1.1.3+coq8.20"
PACKAGES="${PACKAGES} coq-coqeal.2.0.3"
PACKAGES="${PACKAGES} coq-libhyps.3.0.1"
PACKAGES="${PACKAGES} coq-itauto.8.20.0"
# General mathematics (which requires one of the above tools)
PACKAGES="${PACKAGES} coq-mathcomp-analysis.1.8.0"
PACKAGES="${PACKAGES} coq-mathcomp-algebra-tactics.1.2.3" # Works with version relaxation
PACKAGES="${PACKAGES} coq-relation-algebra.1.7.11"
# Formal languages, compilers and code verification
PACKAGES="${PACKAGES} coq-reglang.1.2.1"
PACKAGES="${PACKAGES} coq-iris.4.3.0"
PACKAGES="${PACKAGES} coq-iris-heap-lang.4.3.0"
PACKAGES="${PACKAGES} coq-ott.0.33"
PACKAGES="${PACKAGES} ott.0.33"
PACKAGES="${PACKAGES} coq-mathcomp-word.3.2" # Works with version relaxation
case "$COQ_PLATFORM_COMPCERT" in
[yY]) PACKAGES="${PACKAGES} coq-compcert.3.13.1" ;; # ToDo: there is CompCert 3.14, but VST requires 3.13.1
[nN]) true ;;
*) echo "Illegal value for COQ_PLATFORM_COMPCERT - aborting"; false ;;
esac
case "$COQ_PLATFORM_VST" in
[yY])
PACKAGES="${PACKAGES} coq-vst.2.14"
true ;;
[nN]) true ;;
*) echo "Illegal value for COQ_PLATFORM_VST - aborting"; false ;;
esac
# # Proof analysis and other tools
PACKAGES="${PACKAGES} coq-dpdgraph.1.0+8.20"
fi
########## EXTENDED" COQ PLATFORM PACKAGES ##########
if [[ "${COQ_PLATFORM_EXTENT}" =~ ^[xX] ]]
then
# Proof automation / generation / helpers
PACKAGES="${PACKAGES} coq-deriving.0.2.1"
if [ "${BITSIZE}" == "64" ]
then
PACKAGES="${PACKAGES} coq-metacoq.1.3.2+8.20"
fi
# General mathematics
PACKAGES="${PACKAGES} coq-extructures.0.5.0"
# Gallina extensions
PACKAGES="${PACKAGES} coq-reduction-effects.0.1.5"
PACKAGES="${PACKAGES} coq-record-update.0.3.4"
# Communication with coqtop
PACKAGES="${PACKAGES} coq-serapi.8.20.0+0.20.0"
# fiat crypto, bedrock2, rupicola and dependencies
if [ "${BITSIZE}" == "64" ]
then
case "$COQ_PLATFORM_FIATCRYPTO" in
[yY])
PACKAGES="${PACKAGES} coq-coqutil.0.0.6"
PACKAGES="${PACKAGES} coq-rewriter.0.0.12"
PACKAGES="${PACKAGES} coq-riscv.0.0.5"
PACKAGES="${PACKAGES} coq-bedrock2.0.0.8"
PACKAGES="${PACKAGES} coq-bedrock2-compiler.0.0.8"
PACKAGES="${PACKAGES} coq-rupicola.0.0.10"
PACKAGES="${PACKAGES} coq-fiat-crypto.0.1.3"
;;
[nN]) true ;;
*) echo "Illegal value for COQ_PLATFORM_FIATCRYPTO - aborting"; false ;;
esac
fi
fi