test/Tools/isac/Test_Isac.thy
author Walther Neuper <neuper@ist.tugraz.at>
Fri, 21 Jun 2013 08:06:16 +0200
changeset 48889 4592ea17edd8
parent 48888 4eb0d1968d46
child 48891 882e79a01a4f
permissions -rwxr-xr-x
plans for isac's transitions Isabelle2011-->12 in more detail; errors in tests

the errors in Test_Isac.thy are
(1) the same for Isabelle2011 and Isabelle2012, or
(2) concern "thehier" which is not updated due to Build_Thydata.thy
"subsubsection {* Transition Isabelle2011-->12 with minimal effort *}"
     1 (* Title:  All tests on isac; observe outcommented
     2    Author: Walther Neuper 101001
     3    (c) copyright due to lincense terms.
     4 
     5 $ cd /usr/local/isabisac/test/Tools/isac
     6 $ /usr/local/isabisac/bin/isabelle jedit -l Isac Test_Isac.thy &
     7 *)
     8 
     9 theory Test_Isac imports Isac
    10   "ADDTESTS/Ctxt"
    11   "ADDTESTS/test-depend/Build_Test"
    12   "ADDTESTS/All_Ctxt"
    13   "ADDTESTS/course/phst11/T1_Basics"
    14   "ADDTESTS/course/phst11/T2_Rewriting"
    15   "ADDTESTS/course/phst11/T3_MathEngine"
    16   "ADDTESTS/file-depend/Build_Test"
    17   "ADDTESTS/course/SignalProcess/Build_Inverse_Z_Transform"
    18   "../../Pure/Isar/Test_Parsers"
    19 (*"../../Pure/Isar/Pure/Isar/Struct_Deriv" update 2009-2-->2011*)
    20   "../../Pure/Isar/Test_Parse_Term"
    21 
    22 uses 
    23   (         "library.sml")
    24   (         "calcelems.sml")
    25   ("ProgLang/termC.sml")      
    26   ("ProgLang/calculate.sml")
    27   ("ProgLang/rewrite.sml")
    28   ("ProgLang/listC.sml")
    29   ("ProgLang/scrtools.sml")
    30   ("ProgLang/tools.sml")
    31 
    32   ("Minisubpbl/000-comments.sml")
    33   ("Minisubpbl/100-init-rootpbl.sml")
    34   ("Minisubpbl/150-add-given.sml")
    35   ("Minisubpbl/200-start-method.sml")
    36   ("Minisubpbl/300-init-subpbl.sml")
    37   ("Minisubpbl/400-start-meth-subpbl.sml")
    38   ("Minisubpbl/490-nxt-Check_Postcond.sml")
    39   ("Minisubpbl/500-met-sub-to-root.sml")
    40   ("Minisubpbl/530-error-Check_Elementwise.sml")
    41   ("Minisubpbl/600-postcond.sml")
    42 
    43   ("Interpret/mstools.sml") 
    44   ("Interpret/ctree.sml")
    45   ("Interpret/ptyps.sml") 
    46   ("Interpret/generate.sml")
    47   ("Interpret/calchead.sml") 
    48   ("Interpret/appl.sml")
    49   ("Interpret/rewtools.sml") 
    50   ("Interpret/script.sml")
    51   ("Interpret/solve.sml") 
    52   ("Interpret/inform.sml")
    53   ("Interpret/mathengine.sml")
    54 
    55   ("xmlsrc/mathml.sml")
    56   ("xmlsrc/datatypes.sml")
    57   ("xmlsrc/pbl-met-hierarchy.sml")
    58   ("xmlsrc/thy-hierarchy.sml")
    59   ("xmlsrc/interface-xml.sml")
    60 
    61   ("Frontend/messages.sml")
    62   ("Frontend/states.sml")
    63   ("Frontend/interface.sml")
    64   ("print_exn_G.sml")
    65 
    66   ("Knowledge/delete.sml")
    67   ("Knowledge/descript.sml")
    68   ("Knowledge/atools.sml")
    69   ("Knowledge/simplify.sml")
    70   ("Knowledge/poly.sml")
    71 (*THIS WAITS UNTIL Isabelle2013: ("Knowledge/gcd_poly.sml") ("Knowledge/gcd_poly_winkler.sml")
    72   IN THIS SEQUENCE: SEE Test_Some2.thy*)
    73   ("Knowledge/rational.sml")
    74   ("Knowledge/equation.sml")
    75   ("Knowledge/root.sml")
    76   ("Knowledge/lineq.sml")
    77   ("Knowledge/rooteq.sml")
    78   ("Knowledge/rateq.sml")
    79   ("Knowledge/rootrateq.sml")
    80   ("Knowledge/polyeq.sml")
    81   ("Knowledge/calculus.sml")
    82   ("Knowledge/trig.sml")
    83   ("Knowledge/logexp.sml")
    84   ("Knowledge/diff.sml")
    85   ("Knowledge/integrate.sml")
    86   ("Knowledge/eqsystem.sml")
    87   ("Knowledge/test.sml")
    88   ("Knowledge/partial_fractions.sml")
    89   ("Knowledge/polyminus.sml")
    90   ("Knowledge/vect.sml")
    91   ("Knowledge/diffapp.sml")
    92   ("Knowledge/biegelinie.sml")
    93   ("Knowledge/algein.sml")
    94   ("Knowledge/diophanteq.sml")
    95   ("Knowledge/Inverse_Z_Transform/inverse_z_transform.sml")
    96   ("Knowledge/isac.sml")
    97   ("Knowledge/build_thydata.sml")
    98 
    99 begin
   100 
   101   ML {*"%%%%%%%%%%%%%%%%% start ProgLang.thy %%%%%%%%%%%%%%%%%%%";*}  
   102   use          "library.sml"
   103   use          "calcelems.sml"
   104   use "ProgLang/termC.sml"
   105   use "ProgLang/calculate.sml"
   106   use "ProgLang/rewrite.sml"
   107 (*use "ProgLang/listC.sml"            2002*)
   108   use "ProgLang/scrtools.sml"
   109   use "ProgLang/tools.sml"
   110   ML {*"%%%%%%%%%%%%%%%%% end ProgLang.thy %%%%%%%%%%%%%%%%%%%%%";*}
   111   ML {*"%%%%%%%%%%%%%%%%% start Minisubpbl %%%%%%%%%%%%%%%%%%%%%";*}
   112   use "Minisubpbl/000-comments.sml"
   113   use "Minisubpbl/100-init-rootpbl.sml"
   114   use "Minisubpbl/150-add-given.sml"
   115   use "Minisubpbl/200-start-method.sml"
   116   use "Minisubpbl/300-init-subpbl.sml"
   117   use "Minisubpbl/400-start-meth-subpbl.sml"
   118   use "Minisubpbl/490-nxt-Check_Postcond.sml"
   119   use "Minisubpbl/500-met-sub-to-root.sml"
   120   use "Minisubpbl/530-error-Check_Elementwise.sml"
   121   use "Minisubpbl/600-postcond.sml"
   122   ML {*"%%%%%%%%%%%%%%%%% end Minisubpbl.thy %%%%%%%%%%%%%%%%%%%%%%%";*}
   123   ML {*"%%%%%%%%%%%%%%%%% start Interpret.thy %%%%%%%%%%%%%%%%%%";*}
   124   use "Interpret/mstools.sml"
   125   use "Interpret/ctree.sml"         (*!...!see(25)*)
   126   use "Interpret/ptyps.sml"
   127   ML {* check_unsynchronized_ref (); (*==== trick on error: CUT AND PASTE THIS LINE =========*) *}
   128 (*get_pbt not found: ["IsacKnowledge","Diff","Theorems","diff_sin_chain"]*)
   129   use "Interpret/generate.sml"
   130 (*... SAME ERROR HERE ON ISABELLE2012 AS IN ISAC ON ISABELLE2011*)
   131   use "Interpret/calchead.sml"      (*part.*)
   132   use "Interpret/appl.sml"          (*!complete WEGEN INTERMED TESTCODE*)
   133   use "Interpret/rewtools.sml"      (*TODO/part.WN120406*)
   134 (*val it = "----------- fun thy_containing_rls ---------------------": string
   135 :
   136  thy_containing_rls changed 1                    ...CONCERNED WITH thehier
   137 *)
   138   use "Interpret/script.sml"        (*!TODO/part.*)
   139   use "Interpret/solve.sml"         (*part.*)
   140   use "Interpret/inform.sml"        (*part.*)
   141 (*val it = "--------- embed fun check_error_patterns ------------------------": string
   142 :
   143 val it = "~~~~~ from inform return val:": string
   144  check_error_patterns broken                     ...CONCERNED WITH thehier
   145 *)
   146   use "Interpret/mathengine.sml"    (*!part.*)
   147   ML {*"%%%%%%%%%%%%%%%%% end Interpret.thy %%%%%%%%%%%%%%%%%%%%";*}
   148   ML {*"%%%%%%%%%%%%%%%%% start xmlsrc.thy %%%%%%%%%%%%%%%%%%%%%";*}
   149   use "xmlsrc/mathml.sml"            (*part.*)
   150   use "xmlsrc/datatypes.sml"         (*TODO/part.*)
   151   use "xmlsrc/pbl-met-hierarchy.sml" (*TODO after 2009-2/part.*)
   152   use "xmlsrc/thy-hierarchy.sml"     (*TODO after 2009-2/part.*)
   153 (*val it = "----------- ### thes2file ... Exception- Match raised -----------": string
   154 :
   155 val it = "~~~~~ fun thes2file, args:": string
   156 val p = "../../tmp/": path
   157 val it = (): unit
   158  exception Bind raised (line 359 of "~~/test/Tools/isac/xmlsrc/thy-hierarchy.sml")
   159                                                  ...CONCERNED WITH thehier
   160 *)
   161   use "xmlsrc/interface-xml.sml"     (*TODO after 2009-2*)
   162   ML {*"%%%%%%%%%%%%%%%%% end xmlsrc.thy %%%%%%%%%%%%%%%%%%%%%%%";*}
   163   ML {*"%%%%%%%%%%%%%%%%% start Frontend.thy %%%%%%%%%%%%%%%%%%%";*}
   164   use "Frontend/messages.sml"
   165   use "Frontend/states.sml"
   166   use "Frontend/interface.sml"
   167 (*... SAME ERROR HERE ON ISABELLE2012 AS IN ISAC ON ISABELLE2011*)
   168   use          "print_exn_G.sml"
   169   ML {*"%%%%%%%%%%%%%%%%% end Frontend.thy %%%%%%%%%%%%%%%%%%%%%";*}
   170   ML {*"%%%%%%%%%%%%%%%%% start Knowledge.thy %%%%%%%%%%%%%%%%%%";*}
   171   use "Knowledge/delete.sml"
   172   use "Knowledge/descript.sml"
   173   use "Knowledge/atools.sml"
   174   use "Knowledge/simplify.sml"
   175   use "Knowledge/poly.sml"
   176 (*THIS WAITS UNTIL Isabelle2013 IN THIS SEQUENCE (SEE Test_Some2.thy):0
   177   use "Knowledge/gcd_poly.sml" (*type error 'nth' etc*)
   178   use "Knowledge/gcd_poly_winkler.sml"*)
   179 (*use "Knowledge/rational.sml"  WN120317.TODO postponed to joint work with dmeindl *)
   180   use "Knowledge/equation.sml"
   181   use "Knowledge/root.sml"
   182   use "Knowledge/lineq.sml"
   183 (*use "Knowledge/rooteq.sml"    some complicated equations not recovered from 2002 *)
   184   use "Knowledge/rateq.sml"   (*some complicated equations not recovered from 2002 *)
   185   use "Knowledge/rootrat.sml"
   186   use "Knowledge/rootrateq.sml"(*ome complicated equations not recovered from 2002 *)
   187   use "Knowledge/partial_fractions.sml"
   188   use "Knowledge/polyeq.sml"
   189 (*use "Knowledge/rlang.sml"     much to clean up, not urgent due to similar tests  *)
   190   use "Knowledge/calculus.sml"
   191   use "Knowledge/trig.sml"
   192 (*use "Knowledge/logexp.sml"    not included as stuff for presentation of authoring*) 
   193   use "Knowledge/diff.sml"
   194   use "Knowledge/integrate.sml"
   195   use "Knowledge/eqsystem.sml"
   196   use "Knowledge/test.sml"
   197   use "Knowledge/polyminus.sml"
   198   use "Knowledge/vect.sml"
   199   use "Knowledge/diffapp.sml"        (* postponed to dev. specification | TP-prog. *)
   200   use "Knowledge/biegelinie.sml"
   201   use "Knowledge/algein.sml"
   202   use "Knowledge/diophanteq.sml"
   203   use "Knowledge/Inverse_Z_Transform/inverse_z_transform.sml"
   204   use "Knowledge/isac.sml"
   205   use "Knowledge/build_thydata.sml"
   206   ML {*"%%%%%%%%%%%%%%%%% end Knowledge.thy %%%%%%%%%%%%%%%%%%%%";*}
   207   ML {*"%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%";*}
   208   ML {*"%%%%%%%%%%%%%%%%% all tests successful %%%%%%%%%%%%%%%%%";*}
   209   ML {*"%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%";*}
   210 
   211 end
   212 (*========== inhibit exn 110628 ================================================
   213 ============ inhibit exn 110628 ==============================================*)
   214 
   215 (*-.-.-.-.-.-isolate response.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
   216 -.-.-.-.-.-.-isolate response.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.*)
   217