Skip to content

Commit

Permalink
Revert "make patricia play nice..."
Browse files Browse the repository at this point in the history
This reverts commit da47401.
Reason: qualified names in the list of add_persistent_funs exports are
supposed to work.
See comments on #73.
The reason why they probably weren't working before is that you need to
use a name like:
  "pred_set.FINITE_EMPTY"
not
  "pred_setTheory.FINITE_EMPTY"

Conflicts:
	src/list/src/listScript.sml
	src/patricia/patriciaScript.sml
	src/patricia/patricia_castsScript.sml
	src/pred_set/src/pred_setScript.sml

(Conflicts all due to change in add_persistent_funs interface.)
  • Loading branch information
xrchz committed Jul 31, 2012
1 parent ccba08b commit fa6472b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 21 deletions.
3 changes: 0 additions & 3 deletions src/list/src/listScript.sml
Expand Up @@ -2681,7 +2681,4 @@ fun dest_list M =
else raise ERR "dest_list" "not terminated with nil"
| SOME(h,t) => h::dest_list t

val _ = computeLib.add_persistent_funs ["LIST_TO_SET_THM"]

val _ = export_theory();

15 changes: 11 additions & 4 deletions src/patricia/patriciaScript.sml
Expand Up @@ -1040,10 +1040,17 @@ val DELETE_UNION = store_thm("DELETE_UNION",
SRW_TAC [] [pred_setTheory.EXTENSION] \\ METIS_TAC []);

val _ = computeLib.add_persistent_funs
["DELETE_UNION"
,"TRAVERSE_AUX"
,"ADD_INSERT"
,"PTREE_OF_NUMSET_EMPTY"];
["list.LIST_TO_SET_THM",
"pred_set.EMPTY_DELETE",
"pred_set.DELETE_INSERT",
"DELETE_UNION",
"pred_set.FINITE_EMPTY",
"pred_set.FINITE_INSERT",
"pred_set.FINITE_UNION",
"pred_set.FINITE_DELETE",
"TRAVERSE_AUX",
"ADD_INSERT",
"PTREE_OF_NUMSET_EMPTY"];

(* ------------------------------------------------------------------------- *)

Expand Down
5 changes: 4 additions & 1 deletion src/patricia/patricia_castsScript.sml
Expand Up @@ -380,7 +380,10 @@ val _ = add_listform {leftdelim = [TOK "-{"], rightdelim = [TOK "}-"],
block_info = (PP.INCONSISTENT, 0)};

val _ = computeLib.add_persistent_funs
["ADD_INSERT_WORD",
["pred_set.IMAGE_EMPTY",
"pred_set.IMAGE_INSERT",
"pred_set.IMAGE_UNION",
"ADD_INSERT_WORD",
"ADD_INSERT_STRING",
"THE_PTREE_SOME_PTREE"];

Expand Down
13 changes: 0 additions & 13 deletions src/pred_set/src/pred_setScript.sml
Expand Up @@ -5016,17 +5016,4 @@ val _ = adjoin_to_theory
" encode=NONE})];\n"
] end)};

val _ = computeLib.add_persistent_funs
["EMPTY_DELETE"
,"DELETE_INSERT"
,"FINITE_EMPTY"
,"FINITE_INSERT"
,"FINITE_UNION"
,"FINITE_DELETE"
,"IMAGE_EMPTY"
,"IMAGE_INSERT"
,"IMAGE_UNION"]

val _ = export_theory();


0 comments on commit fa6472b

Please sign in to comment.