removed obsolete BasisLibrary;
authorwenzelm
Sat Sep 17 18:11:25 2005 +0200 (2005-09-17)
changeset 1746593fc1211603f
parent 17464 a4090ccf14a8
child 17466 92d36be64b46
removed obsolete BasisLibrary;
TFL/tfl.ML
src/HOL/Integ/presburger.ML
src/HOL/MicroJava/BV/BVExample.thy
src/HOL/Tools/Presburger/presburger.ML
src/HOL/Tools/comm_ring.ML
src/HOL/ex/svc_funcs.ML
src/HOLCF/IOA/Modelcheck/MuIOA.ML
src/HOLCF/domain/theorems.ML
     1.1 --- a/TFL/tfl.ML	Sat Sep 17 18:11:24 2005 +0200
     1.2 +++ b/TFL/tfl.ML	Sat Sep 17 18:11:25 2005 +0200
     1.3 @@ -45,8 +45,6 @@
     1.4  
     1.5  val trace = ref false;
     1.6  
     1.7 -open BasisLibrary;
     1.8 -
     1.9  structure R = Rules;
    1.10  structure S = USyntax;
    1.11  structure U = Utils;
     2.1 --- a/src/HOL/Integ/presburger.ML	Sat Sep 17 18:11:24 2005 +0200
     2.2 +++ b/src/HOL/Integ/presburger.ML	Sat Sep 17 18:11:25 2005 +0200
     2.3 @@ -2,10 +2,12 @@
     2.4      ID:         $Id$
     2.5      Author:     Amine Chaieb and Stefan Berghofer, TU Muenchen
     2.6  
     2.7 -Tactic for solving arithmetical Goals in Presburger Arithmetic
     2.8 -*)
     2.9 +Tactic for solving arithmetical Goals in Presburger Arithmetic.
    2.10  
    2.11 -(* This version of presburger deals with occurences of functional symbols in the subgoal and abstract over them to try to prove the more general formula. It then resolves with the subgoal. To enable this feature call the procedure with the parameter abs
    2.12 +This version of presburger deals with occurences of functional symbols
    2.13 +in the subgoal and abstract over them to try to prove the more general
    2.14 +formula. It then resolves with the subgoal. To enable this feature
    2.15 +call the procedure with the parameter abs.
    2.16  *)
    2.17  
    2.18  signature PRESBURGER = 
    2.19 @@ -237,7 +239,7 @@
    2.20  
    2.21  fun presburger_tac q a i = ObjectLogic.atomize_tac i THEN (fn st =>
    2.22    let
    2.23 -    val g = BasisLibrary.List.nth (prems_of st, i - 1)
    2.24 +    val g = List.nth (prems_of st, i - 1)
    2.25      val sg = sign_of_thm st
    2.26      (* The Abstraction step *)
    2.27      val g' = if a then abstract_pres sg g else g
     3.1 --- a/src/HOL/MicroJava/BV/BVExample.thy	Sat Sep 17 18:11:24 2005 +0200
     3.2 +++ b/src/HOL/MicroJava/BV/BVExample.thy	Sat Sep 17 18:11:25 2005 +0200
     3.3 @@ -454,7 +454,7 @@
     3.4    "op :"   ("(_ mem _)")
     3.5    "op Un"  ("(_ union _)")
     3.6    "image"  ("map")
     3.7 -  "UNION"  ("(fn A => fn f => BasisLibrary.List.concat (map f A))")
     3.8 +  "UNION"  ("(fn A => fn f => List.concat (map f A))")
     3.9    "Bex"    ("(fn A => fn f => exists f A)")
    3.10    "Ball"   ("(fn A => fn f => forall f A)")
    3.11    "some_elem" ("hd")
     4.1 --- a/src/HOL/Tools/Presburger/presburger.ML	Sat Sep 17 18:11:24 2005 +0200
     4.2 +++ b/src/HOL/Tools/Presburger/presburger.ML	Sat Sep 17 18:11:25 2005 +0200
     4.3 @@ -2,10 +2,12 @@
     4.4      ID:         $Id$
     4.5      Author:     Amine Chaieb and Stefan Berghofer, TU Muenchen
     4.6  
     4.7 -Tactic for solving arithmetical Goals in Presburger Arithmetic
     4.8 -*)
     4.9 +Tactic for solving arithmetical Goals in Presburger Arithmetic.
    4.10  
    4.11 -(* This version of presburger deals with occurences of functional symbols in the subgoal and abstract over them to try to prove the more general formula. It then resolves with the subgoal. To enable this feature call the procedure with the parameter abs
    4.12 +This version of presburger deals with occurences of functional symbols
    4.13 +in the subgoal and abstract over them to try to prove the more general
    4.14 +formula. It then resolves with the subgoal. To enable this feature
    4.15 +call the procedure with the parameter abs.
    4.16  *)
    4.17  
    4.18  signature PRESBURGER = 
    4.19 @@ -237,7 +239,7 @@
    4.20  
    4.21  fun presburger_tac q a i = ObjectLogic.atomize_tac i THEN (fn st =>
    4.22    let
    4.23 -    val g = BasisLibrary.List.nth (prems_of st, i - 1)
    4.24 +    val g = List.nth (prems_of st, i - 1)
    4.25      val sg = sign_of_thm st
    4.26      (* The Abstraction step *)
    4.27      val g' = if a then abstract_pres sg g else g
     5.1 --- a/src/HOL/Tools/comm_ring.ML	Sat Sep 17 18:11:24 2005 +0200
     5.2 +++ b/src/HOL/Tools/comm_ring.ML	Sat Sep 17 18:11:25 2005 +0200
     5.3 @@ -1,7 +1,8 @@
     5.4  (*  ID:         $Id$
     5.5      Author:     Amine Chaieb
     5.6  
     5.7 -Tactic for solving equalities over commutative rings *)
     5.8 +Tactic for solving equalities over commutative rings.
     5.9 +*)
    5.10  
    5.11  signature COMM_RING =
    5.12  sig
    5.13 @@ -114,7 +115,7 @@
    5.14  val norm_eq = thm "norm_eq"
    5.15  fun comm_ring_tac i =(fn st =>
    5.16      let
    5.17 -        val g = BasisLibrary.List.nth (prems_of st, i - 1)
    5.18 +        val g = List.nth (prems_of st, i - 1)
    5.19          val sg = sign_of_thm st
    5.20          val (ca,cvs,clhs,crhs) = reif_eq sg (HOLogic.dest_Trueprop g)
    5.21          val norm_eq_th = simplify cring_ss
     6.1 --- a/src/HOL/ex/svc_funcs.ML	Sat Sep 17 18:11:24 2005 +0200
     6.2 +++ b/src/HOL/ex/svc_funcs.ML	Sat Sep 17 18:11:25 2005 +0200
     6.3 @@ -30,8 +30,6 @@
     6.4     | Int of IntInf.int
     6.5     | Rat of IntInf.int * IntInf.int;
     6.6  
     6.7 - open BasisLibrary
     6.8 -
     6.9   fun signedInt i =
    6.10       if i < 0 then "-" ^ IntInf.toString (~i)
    6.11       else IntInf.toString i;
     7.1 --- a/src/HOLCF/IOA/Modelcheck/MuIOA.ML	Sat Sep 17 18:11:24 2005 +0200
     7.2 +++ b/src/HOLCF/IOA/Modelcheck/MuIOA.ML	Sat Sep 17 18:11:25 2005 +0200
     7.3 @@ -120,40 +120,40 @@
     7.4  structured_tuple [] _ = raise malformed;
     7.5  
     7.6  fun varlist_of _ _ [] = [] |
     7.7 -varlist_of n s (a::r) = (s ^ (BasisLibrary.Int.toString(n))) :: (varlist_of (n+1) s r);
     7.8 +varlist_of n s (a::r) = (s ^ (Int.toString(n))) :: (varlist_of (n+1) s r);
     7.9  
    7.10  fun string_of [] = "" |
    7.11  string_of (a::r) = a ^ " " ^ (string_of r);
    7.12  
    7.13  fun tupel_typed_of _ _ _ [] = "" |
    7.14 -tupel_typed_of sign s n [a] = s ^ (BasisLibrary.Int.toString(n)) ^ "::" ^ a |
    7.15 +tupel_typed_of sign s n [a] = s ^ (Int.toString(n)) ^ "::" ^ a |
    7.16  tupel_typed_of sign s n (a::r) =
    7.17 - s ^ (BasisLibrary.Int.toString(n)) ^ "::" ^ a ^ "," ^ (tupel_typed_of sign s (n+1) r);
    7.18 + s ^ (Int.toString(n)) ^ "::" ^ a ^ "," ^ (tupel_typed_of sign s (n+1) r);
    7.19  
    7.20  fun double_tupel_typed_of _ _ _ _ [] = "" |
    7.21  double_tupel_typed_of sign s t n [a] =
    7.22 - s ^ (BasisLibrary.Int.toString(n)) ^ "::" ^ a ^ "," ^
    7.23 - t ^ (BasisLibrary.Int.toString(n)) ^ "::" ^ a |
    7.24 + s ^ (Int.toString(n)) ^ "::" ^ a ^ "," ^
    7.25 + t ^ (Int.toString(n)) ^ "::" ^ a |
    7.26  double_tupel_typed_of sign s t n (a::r) =
    7.27 - s ^ (BasisLibrary.Int.toString(n)) ^ "::" ^ a ^ "," ^
    7.28 - t ^ (BasisLibrary.Int.toString(n)) ^ "::" ^ a ^ "," ^ (double_tupel_typed_of sign s t (n+1) r);
    7.29 + s ^ (Int.toString(n)) ^ "::" ^ a ^ "," ^
    7.30 + t ^ (Int.toString(n)) ^ "::" ^ a ^ "," ^ (double_tupel_typed_of sign s t (n+1) r);
    7.31  
    7.32  fun tupel_of _ _ _ [] = "" |
    7.33 -tupel_of sign s n [a] = s ^ (BasisLibrary.Int.toString(n)) |
    7.34 -tupel_of sign s n (a::r) = s ^ (BasisLibrary.Int.toString(n)) ^ "," ^ (tupel_of sign s (n+1) r);
    7.35 +tupel_of sign s n [a] = s ^ (Int.toString(n)) |
    7.36 +tupel_of sign s n (a::r) = s ^ (Int.toString(n)) ^ "," ^ (tupel_of sign s (n+1) r);
    7.37  
    7.38  fun double_tupel_of _ _ _ _ [] = "" |
    7.39 -double_tupel_of sign s t n [a] = s ^ (BasisLibrary.Int.toString(n)) ^ "," ^
    7.40 -				 t ^ (BasisLibrary.Int.toString(n)) |
    7.41 -double_tupel_of sign s t n (a::r) = s ^ (BasisLibrary.Int.toString(n)) ^ "," ^
    7.42 -		t ^ (BasisLibrary.Int.toString(n)) ^ "," ^ (double_tupel_of sign s t (n+1) r);
    7.43 +double_tupel_of sign s t n [a] = s ^ (Int.toString(n)) ^ "," ^
    7.44 +				 t ^ (Int.toString(n)) |
    7.45 +double_tupel_of sign s t n (a::r) = s ^ (Int.toString(n)) ^ "," ^
    7.46 +		t ^ (Int.toString(n)) ^ "," ^ (double_tupel_of sign s t (n+1) r);
    7.47  
    7.48  fun eq_string _ _ _ [] = "" |
    7.49 -eq_string s t n [a] = s ^ (BasisLibrary.Int.toString(n)) ^ " = " ^
    7.50 -			 t ^ (BasisLibrary.Int.toString(n)) |
    7.51 +eq_string s t n [a] = s ^ (Int.toString(n)) ^ " = " ^
    7.52 +			 t ^ (Int.toString(n)) |
    7.53  eq_string s t n (a::r) =
    7.54 - s ^ (BasisLibrary.Int.toString(n)) ^ " = " ^
    7.55 - t ^ (BasisLibrary.Int.toString(n)) ^ " & " ^ (eq_string s t (n+1) r);
    7.56 + s ^ (Int.toString(n)) ^ " = " ^
    7.57 + t ^ (Int.toString(n)) ^ " & " ^ (eq_string s t (n+1) r);
    7.58  
    7.59  fun merge_var_and_type [] [] = "" |
    7.60  merge_var_and_type (a::r) (b::s) = "(" ^ a ^ " ::" ^ b ^ ") " ^ (merge_var_and_type r s) |
     8.1 --- a/src/HOLCF/domain/theorems.ML	Sat Sep 17 18:11:24 2005 +0200
     8.2 +++ b/src/HOLCF/domain/theorems.ML	Sat Sep 17 18:11:25 2005 +0200
     8.3 @@ -269,7 +269,6 @@
     8.4          if nonlazy args1 = [] then [eq1, eq1 RS not_sym] else
     8.5          if nonlazy args2 = [] then [eq2, eq2 RS not_sym] else
     8.6                                          [eq1, eq2] end;
     8.7 -    open BasisLibrary (*restore original List*)
     8.8      fun distincts []      = []
     8.9      |   distincts ((c,leqs)::cs) = List.concat
    8.10  	            (ListPair.map (distinct c) ((map #1 cs),leqs)) @