Skip to content

Commit 3c7122a

Browse files
authored
Merge pull request #1276 from CakeML/checkthm_fastbuild
2 parents 65df60f + 44b4499 commit 3c7122a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
*.ui
88
*.o
99
.hol
10+
.HOLMK
11+
.hollogs
1012

1113
# TacticToe
1214
*Script_ttt.sml

misc/preamble.sml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@ fun impl_subgoal_tac th =
4747
(* -- *)
4848

4949
fun check_tag t = Tag.isEmpty t orelse Tag.isDisk t
50-
val check_thm = Lib.assert (check_tag o Thm.tag)
50+
fun check_thm t = (
51+
prove(T, fn g => (
52+
(if check_tag (Thm.tag t) then () else failwith "theorem depends on cheats");
53+
ACCEPT_TAC TRUTH g));
54+
t)
5155

5256
val option_bind_tm = prim_mk_const{Thy="option",Name="OPTION_BIND"};
5357
val option_ignore_bind_tm = prim_mk_const{Thy="option",Name="OPTION_IGNORE_BIND"};

0 commit comments

Comments
 (0)