-
Notifications
You must be signed in to change notification settings - Fork 1
/
reproduce.sh
executable file
·52 lines (44 loc) · 972 Bytes
/
reproduce.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
#!/bin/sh
set -e # to exit as soon as there is an error
mkdir reproduce
cd reproduce
echo install hol2dk ...
git clone https://github.com/Deducteam/hol2dk.git
cd hol2dk
export HOL2DK_DIR=`pwd`
git checkout 3330bf7
dune build && dune install
cd ..
echo install and patch hol-light ...
git clone https://github.com/jrh13/hol-light.git
cd hol-light
export HOLLIGHT_DIR=`pwd`
git checkout 3d231f3
make
hol2dk patch
echo extract hol-light proofs ...
cp ../../coq_hol_light.ml .
hol2dk dump-simp-use coq_hol_light.ml # 39s
cd ..
echo install lambdapi ...
git clone https://github.com/Deducteam/lambdapi.git
cd lambdapi
git checkout 1bb724cf
opam install -y .
cd ..
echo translate HOL-Light proofs to lambdapi and coq ...
mkdir output
cd output
hol2dk link coq_hol_light
make split # 0s
make -j32 lp # 10s
make dep-lpo # 10s
make -j32 v # 9s
make dep-vo # 0s
make -j32 vo # 4m
make opam
cd ..
echo create opam library ...
mkdir opam
cd opam
../../create-lib.sh ../output