test/Tools/isac/Test_Isac.thy
author Walther Neuper <neuper@ist.tugraz.at>
Sun, 30 Jun 2013 17:27:34 +0200
changeset 48894 1920135f13c9
parent 48891 882e79a01a4f
child 48895 35751d90365e
permissions -rwxr-xr-x
Test_Isac.thy without errors on Isabelle2012, calchead.sml:

WN1130630 THE maximum example WORKS IN isabisac09-2;
MOST LIKELY IT IS BROKEN BY INTRODUCING ctxt in 2010.
Some tests have been broken much earlier,
see test/../calchead.sml "inhibit exn 010830". *)
     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 (*TRICK DOESNÄT WORK: 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"      (*complete, isac's Context broken at 2009-2 --> 2011, thehier!*)
   134   use "Interpret/script.sml"        (*!TODO/part.*)
   135   use "Interpret/solve.sml"         (*part.*)
   136   use "Interpret/inform.sml"        (*part.*)
   137 (*val it = "--------- embed fun check_error_patterns ------------------------": string
   138 :
   139 val it = "~~~~~ from inform return val:": string
   140  check_error_patterns broken                     ...CONCERNED WITH thehier
   141 *)
   142   use "Interpret/mathengine.sml"    (*!part.*)
   143   ML {*"%%%%%%%%%%%%%%%%% end Interpret.thy %%%%%%%%%%%%%%%%%%%%";*}
   144   ML {*"%%%%%%%%%%%%%%%%% start xmlsrc.thy %%%%%%%%%%%%%%%%%%%%%";*}
   145   use "xmlsrc/mathml.sml"            (*part.*)
   146   use "xmlsrc/datatypes.sml"         (*TODO/part.*)
   147   use "xmlsrc/pbl-met-hierarchy.sml" (*TODO after 2009-2/part.*)
   148 (*use "xmlsrc/thy-hierarchy.sml"     TODO after 2009-2/part | Isabelle2012-->13 !thehier! *)
   149 (*val it = "----------- ### thes2file ... Exception- Match raised -----------": string
   150 :
   151 val it = "~~~~~ fun thes2file, args:": string
   152 val p = "../../tmp/": path
   153 val it = (): unit
   154  exception Bind raised (line 359 of "~~/test/Tools/isac/xmlsrc/thy-hierarchy.sml")
   155                                                  ...CONCERNED WITH thehier
   156 *)
   157   use "xmlsrc/interface-xml.sml"     (*TODO after 2009-2*)
   158   ML {*"%%%%%%%%%%%%%%%%% end xmlsrc.thy %%%%%%%%%%%%%%%%%%%%%%%";*}
   159   ML {*"%%%%%%%%%%%%%%%%% start Frontend.thy %%%%%%%%%%%%%%%%%%%";*}
   160   use "Frontend/messages.sml"
   161   use "Frontend/states.sml"
   162   use "Frontend/interface.sml"
   163 (*... SAME ERROR HERE ON ISABELLE2012 AS IN ISAC ON ISABELLE2011*)
   164   use          "print_exn_G.sml"
   165   ML {*"%%%%%%%%%%%%%%%%% end Frontend.thy %%%%%%%%%%%%%%%%%%%%%";*}
   166   ML {*"%%%%%%%%%%%%%%%%% start Knowledge.thy %%%%%%%%%%%%%%%%%%";*}
   167   use "Knowledge/delete.sml"
   168   use "Knowledge/descript.sml"
   169   use "Knowledge/atools.sml"
   170   use "Knowledge/simplify.sml"
   171   use "Knowledge/poly.sml"
   172 (*THIS WAITS UNTIL Isabelle2013 IN THIS SEQUENCE (SEE Test_Some2.thy):0
   173   use "Knowledge/gcd_poly.sml" (*type error 'nth' etc*)
   174   use "Knowledge/gcd_poly_winkler.sml"*)
   175 (*use "Knowledge/rational.sml"  WN120317.TODO postponed to joint work with dmeindl *)
   176   use "Knowledge/equation.sml"
   177   use "Knowledge/root.sml"
   178   use "Knowledge/lineq.sml"
   179 (*use "Knowledge/rooteq.sml"    some complicated equations not recovered from 2002 *)
   180   use "Knowledge/rateq.sml"   (*some complicated equations not recovered from 2002 *)
   181   use "Knowledge/rootrat.sml"
   182   use "Knowledge/rootrateq.sml"(*ome complicated equations not recovered from 2002 *)
   183   use "Knowledge/partial_fractions.sml"
   184   use "Knowledge/polyeq.sml"
   185 (*use "Knowledge/rlang.sml"     much to clean up, not urgent due to similar tests  *)
   186   use "Knowledge/calculus.sml"
   187   use "Knowledge/trig.sml"
   188 (*use "Knowledge/logexp.sml"    not included as stuff for presentation of authoring*) 
   189   use "Knowledge/diff.sml"
   190   use "Knowledge/integrate.sml"
   191   use "Knowledge/eqsystem.sml"
   192   use "Knowledge/test.sml"
   193   use "Knowledge/polyminus.sml"
   194   use "Knowledge/vect.sml"
   195   use "Knowledge/diffapp.sml"        (* postponed to dev. specification | TP-prog. *)
   196   use "Knowledge/biegelinie.sml"
   197   use "Knowledge/algein.sml"
   198   use "Knowledge/diophanteq.sml"
   199   use "Knowledge/Inverse_Z_Transform/inverse_z_transform.sml"
   200   use "Knowledge/isac.sml"
   201   use "Knowledge/build_thydata.sml"
   202   ML {*"%%%%%%%%%%%%%%%%% end Knowledge.thy %%%%%%%%%%%%%%%%%%%%";*}
   203   ML {*"%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%";*}
   204   ML {*"%%%%%%%%%%%%%%%%% all tests successful %%%%%%%%%%%%%%%%%";*}
   205   ML {*"%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%";*}
   206 
   207 end
   208 (*========== inhibit exn 110628 ================================================
   209 ============ inhibit exn 110628 ==============================================*)
   210 
   211 (*-.-.-.-.-.-isolate response.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
   212 -.-.-.-.-.-.-isolate response.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.*)
   213