test/Tools/isac/Interpret/ptyps.thy
author Walther Neuper <walther.neuper@jku.at>
Wed, 22 Apr 2020 14:36:27 +0200
changeset 59903 5037ca1b112b
parent 59898 68883c046963
child 59964 05944144a692
permissions -rw-r--r--
use "Spec", "Problem", "Method" for renaming identifiers
     1 (*  Title:      ~~test/../Interpret/ptyps.thy
     2     Author:     Walther Neuper
     3 *)
     4 
     5 theory ptyps
     6 imports Isac.Build_Isac
     7 begin
     8 
     9 text \<open>
    10   *setup* KEStore_Elems.add_pbts is impossible in *.sml files.
    11   The respective test/../ptyps.sml is called in Test_Isac.thy.
    12 \<close>
    13 
    14 section \<open>data for test "-ptyps.thy: store test-pbtyps by 'setup' ---"\<close>
    15 setup \<open>KEStore_Elems.add_pbts
    16 [(Specify.prep_pbt thy "pbl_test_refine" [] Problem.id_empty
    17   (["refine", "test"], [], Rule_Set.empty, NONE, [])),
    18 (Specify.prep_pbt @{theory DiffApp} "pbl_pbla" [] Problem.id_empty
    19   (["pbla", "refine", "test"],         
    20   [("#Given", ["fixedValues a_a"])], Rule_Set.empty, NONE, [])),
    21 (Specify.prep_pbt @{theory DiffApp} "pbl_pbla1" [] Problem.id_empty
    22   (["pbla1","pbla", "refine", "test"], 
    23   [("#Given", ["fixedValues a_a","maximum a_1"])], Rule_Set.empty, NONE, [])),
    24 (Specify.prep_pbt @{theory DiffApp} "pbl_pbla2" [] Problem.id_empty
    25   (["pbla2","pbla", "refine", "test"], 
    26   [("#Given", ["fixedValues a_a","valuesFor a_2"])], Rule_Set.empty, NONE, [])),
    27 (Specify.prep_pbt @{theory DiffApp} "pbl_pbla2x" [] Problem.id_empty
    28   (["pbla2x","pbla2","pbla", "refine", "test"],
    29   [("#Given", ["fixedValues a_a","valuesFor a_2","functionOf a2_x"])], 
    30   Rule_Set.empty, NONE, [])),
    31 (Specify.prep_pbt @{theory DiffApp} "pbl_pbla2y" [] Problem.id_empty
    32   (["pbla2y","pbla2","pbla", "refine", "test"],
    33   [("#Given" ,["fixedValues a_a","valuesFor a_2","boundVariable a2_y"])], 
    34   Rule_Set.empty, NONE, [])),
    35 (Specify.prep_pbt @{theory DiffApp} "pbl_pbla2z" [] Problem.id_empty
    36   (["pbla2z","pbla2","pbla", "refine", "test"],
    37   [("#Given" ,["fixedValues a_a","valuesFor a_2","interval a2_z"])], 
    38   Rule_Set.empty, NONE, [])),
    39 (Specify.prep_pbt @{theory DiffApp} "pbl_pbla3" [] Problem.id_empty
    40  (["pbla3","pbla", "refine", "test"],
    41   [("#Given" ,["fixedValues a_a","relations a_3"])], 
    42   Rule_Set.empty, NONE, []))]
    43 \<close>
    44 
    45 (*ML_file "ptyps.sml"    ... is called in Test_Isac.thy *)
    46 
    47 end