updated to latest Isabelle
authorChristian Urban <urbanc@in.tum.de>
Mon, 30 Mar 2009 09:33:50 +0100
changeset 214 7e04dc2368b0
parent 213 e60dbcba719d
child 215 8d1a344a621e
child 220 fbcb89d84ba6
updated to latest Isabelle
ProgTutorial/Solutions.thy
ProgTutorial/Tactical.thy
progtutorial.pdf
--- a/ProgTutorial/Solutions.thy	Mon Mar 30 08:17:22 2009 +0000
+++ b/ProgTutorial/Solutions.thy	Mon Mar 30 09:33:50 2009 +0100
@@ -65,7 +65,7 @@
   val sum = HOLogic.mk_number @{typ "nat"} (n1 + n2)
   val goal = Logic.mk_equals (t, sum)
 in
-  Goal.prove ctxt [] [] goal (K (arith_tac ctxt 1))
+  Goal.prove ctxt [] [] goal (K (Arith_Data.arith_tac ctxt 1))
 end
 
 fun add_sp_aux ss t =
--- a/ProgTutorial/Tactical.thy	Mon Mar 30 08:17:22 2009 +0000
+++ b/ProgTutorial/Tactical.thy	Mon Mar 30 09:33:50 2009 +0100
@@ -1644,7 +1644,7 @@
   val num = HOLogic.mk_number @{typ "nat"} n
   val goal = Logic.mk_equals (t, num)
 in
-  Goal.prove ctxt [] [] goal (K (arith_tac ctxt 1))
+  Goal.prove ctxt [] [] goal (K (Arith_Data.arith_tac ctxt 1))
 end*}
 
 text {*
@@ -1652,7 +1652,8 @@
   @{text num} (Line 3), and then generates the meta-equation @{text "t \<equiv> num"} 
   (Line 4), which it proves by the arithmetic tactic in Line 6. 
 
-  For our purpose at the moment, proving the meta-equation using @{ML arith_tac} is
+  For our purpose at the moment, proving the meta-equation using 
+  @{ML Arith_Data.arith_tac} is
   fine, but there is also an alternative employing the simplifier with a very
   restricted simpset. For the kind of lemmas we want to prove, the simpset
   @{text "num_ss"} in the code will suffice.
@@ -1671,7 +1672,7 @@
 text {*
   The advantage of @{ML get_thm_alt} is that it leaves very little room for 
   something to go wrong; in contrast it is much more difficult to predict 
-  what happens with @{ML arith_tac}, especially in more complicated 
+  what happens with @{ML Arith_Data.arith_tac}, especially in more complicated 
   circumstances. The disatvantage of @{ML get_thm_alt} is to find a simpset
   that is sufficiently powerful to solve every instance of the lemmas
   we like to prove. This requires careful tuning, but is often necessary in 
Binary file progtutorial.pdf has changed