tidied and made to work with AddSIs [psubsetI]
authorpaulson
Mon, 22 May 2000 13:20:47 +0200
changeset 8919 d00b01ed8539
parent 8918 361a7f24be56
child 8920 af5e09b6c208
tidied and made to work with AddSIs [psubsetI]
src/HOL/Real/PReal.ML
--- a/src/HOL/Real/PReal.ML	Mon May 22 13:19:20 2000 +0200
+++ b/src/HOL/Real/PReal.ML	Mon May 22 13:20:47 2000 +0200
@@ -115,33 +115,22 @@
 
 (** preal_of_prat: the injection from prat to preal **)
 (** A few lemmas **)
-Goal "{} < {xa::prat. xa < y}";
-by (cut_facts_tac [qless_Ex] 1);
-by (auto_tac (claset() addEs [equalityCE],
-              simpset() addsimps [psubset_def]));
-qed "lemma_prat_less_set_Ex";
 
 Goal "{xa::prat. xa < y} : preal";
 by (cut_facts_tac [qless_Ex] 1);
-by Safe_tac;
-by (rtac lemma_prat_less_set_Ex 1);
-by (auto_tac (claset() addIs [prat_less_trans],
-    simpset() addsimps [psubset_def]));
-by (eres_inst_tac [("c","y")] equalityCE 1);
-by (auto_tac (claset() addDs [prat_less_irrefl],simpset()));
-by (dres_inst_tac [("q1.0","ya")] prat_dense 1);
-by (Fast_tac 1);
+by (auto_tac (claset() addIs[prat_less_trans]
+                       addSEs [equalityCE, prat_less_irrefl], 
+	      simpset()));
+by (blast_tac (claset() addDs [prat_dense]) 1);
 qed "lemma_prat_less_set_mem_preal";
 
 Goal "!!(x::prat). {xa. xa < x} = {x. x < y} ==> x = y";
 by (cut_inst_tac [("q1.0","x"),("q2.0","y")] prat_linear 1);
 by Auto_tac;
+by (dtac prat_dense 2 THEN etac exE 2);
 by (dtac prat_dense 1 THEN etac exE 1);
-by (eres_inst_tac [("c","xa")] equalityCE 1);
-by (auto_tac (claset() addDs [prat_less_not_sym],simpset()));
-by (dtac prat_dense 1 THEN etac exE 1);
-by (eres_inst_tac [("c","xa")] equalityCE 1);
-by (auto_tac (claset() addDs [prat_less_not_sym],simpset()));
+by (auto_tac (claset() addDs [prat_less_not_sym] addSEs [equalityCE],
+              simpset()));
 qed "lemma_prat_set_eq";
 
 Goal "inj(preal_of_prat)";