src/Tools/isac/Knowledge/Isac.thy
author Walther Neuper <neuper@ist.tugraz.at>
Sun, 14 Oct 2012 20:00:27 +0200
changeset 48763 9b9936d79dbe
parent 42457 ca691a84b81a
child 48880 ea0c337066d9
permissions -rw-r--r--
2011-->2012: ...

modules ProgLang .. Frontend compile
thms renamed:
real_mult_assos --> mult_assoc
real_mult_commute --> mult_commute
neuper@37906
     1
(* theory collecting all knowledge defined so far
neuper@37906
     2
   WN.11.00
neuper@37906
     3
 *)
neuper@37906
     4
neuper@41929
     5
theory Isac 
neuper@48763
     6
imports "../Frontend/Frontend"
neuper@42278
     7
  PolyMinus PolyEq Vect DiffApp Biegelinie AlgEin (*InsSort +*) 
neuper@42280
     8
  DiophantEq Inverse_Z_Transform Test
neuper@41929
     9
begin
neuper@37906
    10
neuper@37954
    11
text {* dependencies alternative to those defined by R.Lang during his thesis:
neuper@37906
    12
neuper@37906
    13
   Poly				Root
neuper@37906
    14
     |\__________		 |
neuper@37906
    15
     |		 \ 		 |
neuper@37906
    16
     |		Rational	 |
neuper@37906
    17
     |		  |		 |
neuper@37906
    18
   PolyEq	RatEq		RootEq
neuper@37906
    19
      \         /  \           /
neuper@37906
    20
       \       /    \         /
neuper@37906
    21
	RatPolyEq    RatRootEq    etc.
neuper@37954
    22
*}
neuper@37954
    23
neuper@42413
    24
ML {* val version_isac = "isac version 120504 15:33"; *}
neuper@42412
    25
neuper@42457
    26
ML {* (* there are strange dependencies between tests:
neuper@42457
    27
         insert_fillpats in test/../thy_hierarchy.sml affects subsequent tests,
neuper@42457
    28
         see changeset 58e0a39e58b7.
neuper@42457
    29
         This function checks for data in ! mets, ! thehier set in Build_Thydata.thy *)
neuper@42457
    30
neuper@42457
    31
fun check_unsynchronized_ref () =
neuper@42457
    32
  let
neuper@42457
    33
    val met = get_met ["diff","differentiate_on_R"];
neuper@42457
    34
    val {errpats, ...} = met;
neuper@42457
    35
    val hthm = get_the ["IsacKnowledge", "Diff", "Theorems", "diff_sin_chain"];
neuper@42457
    36
    val Hthm {fillpats, ...} = hthm;
neuper@42457
    37
    val hrls = get_the ["IsacKnowledge", "Diff", "Rulesets", "norm_diff"];
neuper@42457
    38
    val Hrls {thy_rls = (thyID, rls), ...} = hrls
neuper@42457
    39
    val Rls {errpatts, ...} = rls;
neuper@42457
    40
  in
neuper@42457
    41
    case errpats of
neuper@42457
    42
      ("chain-rule-diff-both", _ :: _,_ :: _) :: _ => writeln "----- errpats original"
neuper@42457
    43
    | _ => writeln "##### errpats changed";
neuper@42457
    44
    case fillpats of
neuper@42457
    45
      ("fill-d_d-arg", _, "chain-rule-diff-both") :: ("fill-both-args", _, "chain-rule-diff-both") :: _ 
neuper@42457
    46
        => writeln "----- fillpats original"
neuper@42457
    47
    | _ => writeln "##### fillpats changed";
neuper@42457
    48
    case errpatts of 
neuper@42457
    49
      ["chain-rule-diff-both", "cancel"] => writeln "----- errpatIDs original"
neuper@42457
    50
    | _ => writeln "##### errpatIDs changed"
neuper@42457
    51
  end;
neuper@42457
    52
*}
neuper@42457
    53
neuper@37954
    54
end