Skip to content

Commit

Permalink
reproduce: use a local switch (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
fblanqui authored Jan 13, 2025
1 parent 556e7c0 commit cf07bf7
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 10 deletions.
2 changes: 2 additions & 0 deletions CONFIG
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
hol2dk config hol_upto_real.ml HOLLight_Real HOLLight_Real.v deps.mk erasing.lp
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
HOL-Light definition of real numbers in Coq
-------------------------------------------
HOL-Light definition of real numbers in Coq using nat
-----------------------------------------------------

This library provides a translation in Coq of the definition of real numbers in HOL-Light.
This library provides a translation in Coq of the definition of real numbers in HOL-Light, using the Coq type nat for natural numbers.

It has been automatically generated from HOL-Light using [hol2dk](https://github.com/Deducteam/hol2dk) and [lambdapi](https://github.com/Deducteam/lambdapi).

Expand Down
2 changes: 1 addition & 1 deletion coq-hol-light-real.opam
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
opam-version: "2.0"
synopsis: "HOL-Light definition of real numbers in Coq"
synopsis: "HOL-Light definition of real numbers in Coq using nat"
description: """
This library contains an automatic translation in Coq of the HOL-Light
definition of real numbers using https://github.com/Deducteam/hol2dk.
Expand Down
1 change: 1 addition & 0 deletions deps.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
HOLLight_Real.vo:
16 changes: 10 additions & 6 deletions reproduce
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e # to exit as soon as there is an error

hollight_version=3.0.0 # for dependencies
hollight_commit=28e4aed
hol2dk_commit=a590067
hol2dk_commit=832a0ec
lambdapi_commit=ccfa0e77

opam_version=2.2.1
Expand Down Expand Up @@ -36,8 +36,8 @@ checkout_commit() {

create_opam_switch() {
line
echo create opam switch reproduce ...
opam switch create reproduce $ocaml_version || (echo 'you can remove the opam switch reproduce with:'; echo 'opam switch remove reproduce'; exit 1)
echo create opam switch ...
opam switch create . $ocaml_version
}

install_hol_light_deps() {
Expand Down Expand Up @@ -95,8 +95,8 @@ translate_proofs() {
echo translate HOL-Light proofs to lambdapi and coq ...
mkdir -p output
cd output
make $jobs clean-all || true
hol2dk link $base --root-path ../../$root_path.v --erasing ../../erasing.lp
if test -f Makefile; then make $jobs clean-all; fi
hol2dk config $base.ml $root_path ../../HOLLight_Real.v ../../deps.mk ../../erasing.lp
make split
make $jobs lp
make $jobs v
Expand Down Expand Up @@ -150,6 +150,11 @@ stage() {
fi
}

if test -n "$1"
then
expr $1 - 1 > STAGE
fi

stage 1 create_opam_switch
stage 2 install_hol_light_deps
stage 3 install_lambdapi
Expand All @@ -161,4 +166,3 @@ stage 8 dump_proofs
stage 9 translate_proofs
stage 10 check_proofs
stage 11 create_and_check_opam_library
#stage 12 remove_opam_switch

0 comments on commit cf07bf7

Please sign in to comment.