added Isar_examples/Cantor.ML;
authorwenzelm
Tue, 27 Apr 1999 10:45:20 +0200
changeset 6516 09207771cc7c
parent 6515 18e113be12ee
child 6517 239c0eff6ce8
added Isar_examples/Cantor.ML;
src/HOL/IsaMakefile
src/HOL/Isar_examples/Cantor.ML
--- a/src/HOL/IsaMakefile	Tue Apr 27 10:44:42 1999 +0200
+++ b/src/HOL/IsaMakefile	Tue Apr 27 10:45:20 1999 +0200
@@ -325,8 +325,9 @@
 HOL-Isar_examples: HOL $(LOG)/HOL-Isar_examples.gz
 
 $(LOG)/HOL-Isar_examples.gz: $(OUT)/HOL Isar_examples/BasicLogic.thy \
-  Isar_examples/Cantor.thy Isar_examples/ExprCompiler.thy \
-  Isar_examples/Peirce.thy Isar_examples/ROOT.ML
+  Isar_examples/Cantor.ML Isar_examples/Cantor.thy \
+  Isar_examples/ExprCompiler.thy Isar_examples/Peirce.thy \
+  Isar_examples/ROOT.ML
 	@$(ISATOOL) usedir $(OUT)/HOL Isar_examples
 
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/HOL/Isar_examples/Cantor.ML	Tue Apr 27 10:45:20 1999 +0200
@@ -0,0 +1,20 @@
+
+(* tactic script -- single steps *)
+
+Goal "EX S. S ~: range(f :: 'a => 'a set)";
+  br exI 1;
+  br notI 1;
+  be rangeE 1;
+  be equalityCE 1;
+  bd CollectD 1;
+  by (contr_tac 1);
+  by (swap_res_tac [CollectI] 1);
+  ba 1;
+qed "it";
+
+
+(* tactic script -- automatic *)
+
+Goal "EX S. S ~: range(f :: 'a => 'a set)";
+  by (best_tac (claset() addSEs [equalityCE]) 1);
+qed "it";