-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A test-case demonstrating the problem with github issue #115.
Currently failing so I've put this onto a branch of its own.
- Loading branch information
Showing
2 changed files
with
29 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
open HolKernel Parse boolLib bossLib | ||
|
||
val _ = new_theory "github115a" | ||
|
||
open arithmeticTheory | ||
|
||
val _ = overload_on ("foo", ``\x. x + y``) | ||
|
||
val sample = store_thm( | ||
"sample", | ||
``!y:bool. foo x < foo z ==> x < z``, | ||
SRW_TAC [ARITH_ss][]) | ||
|
||
val _ = export_theory() |
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,15 @@ | ||
open HolKernel Parse boolLib bossLib | ||
|
||
open github115aTheory | ||
|
||
(* this theory is in the test-case solely to force Holmake to check that the | ||
github115aTheory.sml file is loadable (it isn't when the bug is evident | ||
because the exception in the execution of export_theory results in a | ||
corrupt Theory.sml file) | ||
*) | ||
|
||
val _ = new_theory "github115b" | ||
|
||
val sample2 = save_thm("sample2", AND_CLAUSES) | ||
|
||
val _ = export_theory() |