|
InstallHolLight
Instructions on getting HOL-Light installed and running, especially for Windows. SVN instructions.
Featured This page is to help new users to get HOL-Light installed and runningHOL-Light will run on almost any operation system (Windows, Linux, OSX,...). The download page is HOL-Light. Detailed installation instructions can be found in Harrison's tutorial on page 5. Cygwin is not needed to run HOL-Light on Windows. HOL Light on WindowsThis section describes how to make a simple installation on Windows.
Using the Flyspeck Google Code with Windows
Tortoise SVN and Google Code
Here are the instructions from Nguyen Duc Phuong:
URL of repository: "link of the file that your group is now working on" for example, my group is workoing over: https://flyspeck.googlecode.com/svn/trunk/text_formalization/collect_geom.ml Checkout directory: you choose where the file ( whose link is above) will be put there. For example: C:\Documents and Settings\ndphuong\Desktop\text_formalization\
From now on, after you had finished installed tortoisesvn, everytime you want to upload files let do from step 2 and so on. Enjoy your work by seeing them (next to your name ^.^) appear in Flyspeck googlepage ! WARNING: If you checkout using http://..., you will not be able to check it back in. (It will ask for your password, but not accept your password.) You must first checkout using https://.... if you plan to check back in. Using Emacs on WindowsEventually, you will want to edit HOL-Light sessions with a powerful text editor. To install the emacs editor, follow steps 1,2,3,4,8 (or all steps for a full installation) of how to install emacs. After installing emacs, you should install the major mode hol-light-mode. This can be found in the flyspeck emacs directory. CheckpointingSince ocaml provides no method for storing the current state of the toplevel, it becomes useful to have an external utility that can start/stop a ocaml process that has hol/flyspeck already loaded into memory. One way to achieve this, is to build Berkeley Lab Checkpoint/Restart. This is only applicable to certain versions of linux. Even if you do not run Linux, you can always use VirtualBox to host a copy of Linux on your current OS. BLCR only works on Linux kernel versions <= 2.6.30. One distribution of Linux which has been tested with this setup is Ubuntu Hardy Desktop. I found that once BLCR is configured, one should run cr_run ocampl -I hol_light -I text_formalization where ocampl is as in flyspeck/text_formalization/strictbuild.hl, hol_light is the path to the directory containing the source of hol_light, and text_formalization is the path to the text_formalization in the flyspeck directory. This will open ocaml. You should then issue #use "hol.ml";; and #use "strictbuild.ml";; or whatever you do not want to have to sit through every time you want to start working. After waiting for ocaml to finish, you can then run ps -A to find the PID for ocaml. Then run cr_checkpoint -f <filename.cr> --term <ocaml PID>, where filename.cr is what you want to call the saved process. Then whenever you want to restart just run cr_restart --no-restore-pid -S 2 <filename.cr>. It would probably be convenient to make a bash script called hol_light on your PATH so that running from emacs in hol-light-mode is simplified. The advantage of BLCR is that multiple instances of the same image can be active at once. Also the images can be migrated to other computers with the same kernel. I have not personally tested the claim about migration, but this is what the BLCR claims to be able to do. Making a version of Objective CAML with "num" preloadedIn Windows, the library nums.cma is generally preloaded. In unix/linux/Mac OS X, a new top level can be created (called ocamlnum with "num" preloaded. Just execute ocamlmktop -o ocamlnum nums.cma from the directory that contains the ocaml executable. Type which ocaml to determine the directory. |