diff --git a/CONFIG b/CONFIG new file mode 100755 index 0000000..24ff41e --- /dev/null +++ b/CONFIG @@ -0,0 +1,2 @@ +#!/bin/sh +hol2dk config hol_upto_real.ml HOLLight_Real HOLLight_Real.v deps.mk erasing.lp diff --git a/README.md b/README.md index 1b66657..148cc2e 100644 --- a/README.md +++ b/README.md @@ -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). diff --git a/coq-hol-light-real.opam b/coq-hol-light-real.opam index 950faa3..52efc79 100644 --- a/coq-hol-light-real.opam +++ b/coq-hol-light-real.opam @@ -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. diff --git a/deps.mk b/deps.mk new file mode 100644 index 0000000..e3bddea --- /dev/null +++ b/deps.mk @@ -0,0 +1 @@ +HOLLight_Real.vo: diff --git a/reproduce b/reproduce index 2bcb6f9..4036033 100755 --- a/reproduce +++ b/reproduce @@ -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 @@ -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() { @@ -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 @@ -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 @@ -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