Skip to content

Commit e87ff76

Browse files
committed
Read OpenTheory package files
1 parent 3b8115a commit e87ff76

15 files changed

+2490
-1097
lines changed

README.md

+23
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,29 @@ Use [cabal][] to run the test suite:
2121

2222
cabal test
2323

24+
Run
25+
----
26+
27+
Use hol-package contains an executable called hol-pkg, which is run as follows:
28+
29+
Usage: hol-pkg INPUT
30+
where INPUT is one of the following forms:
31+
FILE.art : a proof article file
32+
FILE.thy : a theory package file
33+
NAME-VERSION : a specific version of an installed theory package
34+
NAME ... : the latest version of a list of packages
35+
36+
The hol-pkg program reads the INPUT to generate a set of theorems, which are pretty-printed to standard output together with the symbols they contain. For example, the command hol-pkg unit generates the following output:
37+
38+
3 type operators: (->) bool unit
39+
6 constants: (=) (!) (==>) (?) (?!) ()
40+
5 theorems:
41+
|- !v. v = ()
42+
|- !f g. f = g
43+
|- !e. ?fn. fn () = e
44+
|- !e. ?!fn. fn () = e
45+
|- !p. p () ==> !x. p x
46+
2447
Profile
2548
-------
2649

hol.cabal

+24-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ license: MIT
66
license-file: LICENSE
77
cabal-version: >= 1.8.0.2
88
build-type: Simple
9-
extra-source-files: README.md doc/axioms.txt doc/bool.txt test/bool.art test/bool.int test/bool.thy
9+
extra-source-files: README.md doc/axioms.txt doc/bool.txt test/bool.art test/bool.int test/bool.thy test/bool-def.art
1010
extra-tmp-files: hol-profile.aux hol-profile.hp hol-profile.pdf hol-profile.prof hol-profile.ps
1111
author: Joe Leslie-Hurd <[email protected]>
1212
maintainer: Joe Leslie-Hurd <[email protected]>
@@ -18,6 +18,7 @@ Library
1818
base >= 4.0 && < 5.0,
1919
bytestring >= 0.9 && < 0.10,
2020
containers >= 0.5 && < 0.6,
21+
filepath >= 1.3 && < 1.4,
2122
parsec >= 3.1 && < 3.2,
2223
pretty >= 1.1 && < 1.2,
2324
process >= 1.2 && < 1.3,
@@ -31,6 +32,9 @@ Library
3132
HOL.Data
3233
HOL.Name
3334
HOL.OpenTheory
35+
HOL.OpenTheory.Article
36+
HOL.OpenTheory.Interpret
37+
HOL.OpenTheory.Package
3438
HOL.Parse
3539
HOL.Print
3640
HOL.Rule
@@ -48,12 +52,29 @@ Library
4852
HOL.TypeVar
4953
HOL.Var
5054

55+
executable hol-pkg
56+
build-depends:
57+
base >= 4.0 && < 5.0,
58+
bytestring >= 0.9 && < 0.10,
59+
containers >= 0.5 && < 0.6,
60+
filepath >= 1.3 && < 1.4,
61+
parsec >= 3.1 && < 3.2,
62+
pretty >= 1.1 && < 1.2,
63+
process >= 1.2 && < 1.3,
64+
QuickCheck >= 2.4 && < 2.5,
65+
text >= 0.11 && < 0.12,
66+
transformers >= 0.3 && < 0.4
67+
hs-source-dirs: src
68+
ghc-options: -Wall -threaded "-with-rtsopts=-N" -rtsopts
69+
main-is: Main.hs
70+
5171
test-suite hol-test
5272
type: exitcode-stdio-1.0
5373
build-depends:
5474
base >= 4.0 && < 5.0,
5575
bytestring >= 0.9 && < 0.10,
5676
containers >= 0.5 && < 0.6,
77+
filepath >= 1.3 && < 1.4,
5778
parsec >= 3.1 && < 3.2,
5879
pretty >= 1.1 && < 1.2,
5980
process >= 1.2 && < 1.3,
@@ -70,13 +91,15 @@ benchmark hol-profile
7091
base >= 4.0 && < 5.0,
7192
bytestring >= 0.9 && < 0.10,
7293
containers >= 0.5 && < 0.6,
94+
filepath >= 1.3 && < 1.4,
7395
parsec >= 3.1 && < 3.2,
7496
pretty >= 1.1 && < 1.2,
7597
process >= 1.2 && < 1.3,
7698
text >= 0.11 && < 0.12,
7799
transformers >= 0.3 && < 0.4
78100
hs-source-dirs: src
79101
ghc-options:
102+
-Wall
80103
-fprof-auto-top
81104
"-with-rtsopts=-p -s -h -i0.1"
82105
main-is: Profile.hs

0 commit comments

Comments
 (0)