forked from jrh13/hol-light
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a new file "compute.ml" from Alexey Solovyev containing tools
for doing ML-style call-by-value reduction of terms by inference inside the logic. This is a port of the HOL4 "computeLib" library originally developed by Bruno Barras (see "Programming and Computing in HOL", TPHOLs 2000). Made a few documentation and test fixes to keep in step with recent changes. Also added a few simple extra theorems about initial segments of N and sums over them: ITERATE_CLAUSES_NUMSEG_LE ITERATE_CLAUSES_NUMSEG_LT NSUM_CLAUSES_NUMSEG_LE NSUM_CLAUSES_NUMSEG_LT NUMSEG_CLAUSES_LE NUMSEG_CLAUSES_LT SUM_CLAUSES_NUMSEG_LE SUM_CLAUSES_NUMSEG_LT
- Loading branch information
Showing
15 changed files
with
985 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
\DOC pp_print_fpf | ||
|
||
\TYPE {pp_print_fpf : Format.formatter -> ('a, 'b) func -> unit} | ||
|
||
\SYNOPSIS | ||
Print a finite partial function to a formatter. | ||
|
||
\DESCRIBE | ||
This prints a finite partial function but only as a trivial string `{<func>}', | ||
to the given formatter. Installed automatically at the top level and probably | ||
not useful for most users. | ||
|
||
\FAILURE | ||
Never fails. | ||
|
||
\COMMENTS | ||
The usual case where the formatter is the standard output is {print_fpf}. | ||
|
||
\SEEALSO | ||
|->, |=>, apply, applyd, choose, combine, defined, dom, foldl, foldr, | ||
graph, is_undefined, mapf, print_fpf, ran, tryapplyd, undefine, undefined. | ||
|
||
\ENDDOC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
\DOC pp_print_num | ||
|
||
\TYPE {pp_print_num : Format.formatter -> num -> unit} | ||
|
||
\SYNOPSIS | ||
Print an arbitrary-precision number to the given formatter. | ||
|
||
\DESCRIBE | ||
This function prints an arbitrary-precision (type {num}) number to the | ||
formatter given as first argument. It is automatically invoked on anything of | ||
type {num} at the toplevel anyway, but it may sometimes be useful to issue it | ||
under user control. | ||
|
||
\FAILURE | ||
Never fails. | ||
|
||
\COMMENTS | ||
The usual case where the formatter is the standard output is {print_num}. | ||
|
||
\SEEALSO | ||
print_num. | ||
|
||
\ENDDOC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.