src/HOL/MicroJava/BV/Step.thy
author kleing
Thu, 21 Sep 2000 10:42:49 +0200
changeset 10042 7164dc0d24d8
parent 9757 1024a2d80ac0
child 10496 f2d304bdf3cc
permissions -rw-r--r--
unsymbolized
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9549
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
     1
(*  Title:      HOL/MicroJava/BV/Step.thy
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
     2
    ID:         $Id$
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
     3
    Author:     Gerwin Klein
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
     4
    Copyright   2000 Technische Universitaet Muenchen
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
     5
*)
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
     6
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
     7
header {* Effect of instructions on the state type *}
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
     8
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
     9
9757
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    10
theory Step = Convert:
9549
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
    11
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
    12
9594
42d11e0a7a8b Convert.thy now in Isar, tuned
kleing
parents: 9585
diff changeset
    13
text "Effect of instruction on the state type:"
9549
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
    14
consts 
10042
7164dc0d24d8 unsymbolized
kleing
parents: 9757
diff changeset
    15
step' :: "instr \<times> jvm_prog \<times> state_type => state_type"
9549
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
    16
9757
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    17
recdef step' "{}"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    18
"step' (Load idx,  G, (ST, LT))          = (val (LT ! idx) # ST, LT)"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    19
"step' (Store idx, G, (ts#ST, LT))       = (ST, LT[idx:= Ok ts])"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    20
"step' (Bipush i, G, (ST, LT))           = (PrimT Integer # ST, LT)"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    21
"step' (Aconst_null, G, (ST, LT))        = (NT#ST,LT)"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    22
"step' (Getfield F C, G, (oT#ST, LT))    = (snd (the (field (G,C) F)) # ST, LT)"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    23
"step' (Putfield F C, G, (vT#oT#ST, LT)) = (ST,LT)"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    24
"step' (New C, G, (ST,LT))               = (Class C # ST, LT)"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    25
"step' (Checkcast C, G, (RefT rt#ST,LT)) = (Class C # ST,LT)"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    26
"step' (Pop, G, (ts#ST,LT))              = (ST,LT)"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    27
"step' (Dup, G, (ts#ST,LT))              = (ts#ts#ST,LT)"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    28
"step' (Dup_x1, G, (ts1#ts2#ST,LT))      = (ts1#ts2#ts1#ST,LT)"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    29
"step' (Dup_x2, G, (ts1#ts2#ts3#ST,LT))  = (ts1#ts2#ts3#ts1#ST,LT)"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    30
"step' (Swap, G, (ts1#ts2#ST,LT))        = (ts2#ts1#ST,LT)"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    31
"step' (IAdd, G, (PrimT Integer#PrimT Integer#ST,LT)) 
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    32
                                         = (PrimT Integer#ST,LT)"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    33
"step' (Ifcmpeq b, G, (ts1#ts2#ST,LT))   = (ST,LT)"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    34
"step' (Goto b, G, s)                    = s"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    35
  (* Return has no successor instruction in the same method: *)
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    36
(* "step' (Return, G, (T#ST,LT))            = None" *)
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    37
"step' (Invoke C mn fpTs, G, (ST,LT))    = (let ST' = drop (length fpTs) ST 
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    38
  in  (fst (snd (the (method (G,C) (mn,fpTs))))#(tl ST'),LT))" 
9549
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
    39
9757
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    40
(* "step' (i,G,s)                           = None" *)
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    41
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    42
constdefs
10042
7164dc0d24d8 unsymbolized
kleing
parents: 9757
diff changeset
    43
  step :: "instr => jvm_prog => state_type option => state_type option"
7164dc0d24d8 unsymbolized
kleing
parents: 9757
diff changeset
    44
  "step i G == option_map (\<lambda>s. step' (i,G,s))"
9549
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
    45
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
    46
9594
42d11e0a7a8b Convert.thy now in Isar, tuned
kleing
parents: 9585
diff changeset
    47
text "Conditions under which step is applicable:"
9549
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
    48
consts
10042
7164dc0d24d8 unsymbolized
kleing
parents: 9757
diff changeset
    49
app' :: "instr \<times> jvm_prog \<times> ty \<times> state_type => bool"
9549
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
    50
9757
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    51
recdef app' "{}"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    52
"app' (Load idx, G, rT, s)                  = (idx < length (snd s) \<and> 
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    53
                                              (snd s) ! idx \<noteq> Err)"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    54
"app' (Store idx, G, rT, (ts#ST, LT))       = (idx < length LT)"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    55
"app' (Bipush i, G, rT, s)                  = True"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    56
"app' (Aconst_null, G, rT, s)               = True"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    57
"app' (Getfield F C, G, rT, (oT#ST, LT))    = (is_class G C \<and> 
9580
kleing
parents: 9559
diff changeset
    58
                                              field (G,C) F \<noteq> None \<and>
kleing
parents: 9559
diff changeset
    59
                                              fst (the (field (G,C) F)) = C \<and>
kleing
parents: 9559
diff changeset
    60
                                              G \<turnstile> oT \<preceq> (Class C))"
9757
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    61
"app' (Putfield F C, G, rT, (vT#oT#ST, LT)) = (is_class G C \<and> 
9580
kleing
parents: 9559
diff changeset
    62
                                              field (G,C) F \<noteq> None \<and>
kleing
parents: 9559
diff changeset
    63
                                              fst (the (field (G,C) F)) = C \<and>
kleing
parents: 9559
diff changeset
    64
                                              G \<turnstile> oT \<preceq> (Class C) \<and>
kleing
parents: 9559
diff changeset
    65
                                              G \<turnstile> vT \<preceq> (snd (the (field (G,C) F))))" 
9757
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    66
"app' (New C, G, rT, s)                     = (is_class G C)"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    67
"app' (Checkcast C, G, rT, (RefT rt#ST,LT)) = (is_class G C)"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    68
"app' (Pop, G, rT, (ts#ST,LT))              = True"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    69
"app' (Dup, G, rT, (ts#ST,LT))              = True"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    70
"app' (Dup_x1, G, rT, (ts1#ts2#ST,LT))      = True"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    71
"app' (Dup_x2, G, rT, (ts1#ts2#ts3#ST,LT))  = True"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    72
"app' (Swap, G, rT, (ts1#ts2#ST,LT))        = True"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    73
"app' (IAdd, G, rT, (PrimT Integer#PrimT Integer#ST,LT)) 
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    74
                                            = True"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    75
"app' (Ifcmpeq b, G, rT, (ts#ts'#ST,LT))    = ((\<exists>p. ts = PrimT p \<and> ts' = PrimT p) \<or> 
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    76
                                              (\<exists>r r'. ts = RefT r \<and> ts' = RefT r'))"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    77
"app' (Goto b, G, rT, s)                    = True"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    78
"app' (Return, G, rT, (T#ST,LT))            = (G \<turnstile> T \<preceq> rT)"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    79
"app' (Invoke C mn fpTs, G, rT, s)          = 
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    80
   (length fpTs < length (fst s) \<and> 
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    81
   (let apTs = rev (take (length fpTs) (fst s));
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    82
        X    = hd (drop (length fpTs) (fst s)) 
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    83
    in  
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    84
        G \<turnstile> X \<preceq> Class C \<and> method (G,C) (mn,fpTs) \<noteq> None \<and> 
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    85
        (\<forall>(aT,fT)\<in>set(zip apTs fpTs). G \<turnstile> aT \<preceq> fT)))"
9549
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
    86
9757
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    87
"app' (i,G,rT,s)                            = False"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    88
9549
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
    89
9757
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
    90
constdefs
10042
7164dc0d24d8 unsymbolized
kleing
parents: 9757
diff changeset
    91
  app :: "instr => jvm_prog => ty => state_type option => bool"
7164dc0d24d8 unsymbolized
kleing
parents: 9757
diff changeset
    92
  "app i G rT s == case s of None => True | Some t => app' (i,G,rT,t)"
9549
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
    93
9594
42d11e0a7a8b Convert.thy now in Isar, tuned
kleing
parents: 9585
diff changeset
    94
text {* program counter of successor instructions: *}
9559
kleing
parents: 9549
diff changeset
    95
9549
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
    96
consts
10042
7164dc0d24d8 unsymbolized
kleing
parents: 9757
diff changeset
    97
succs :: "instr => p_count => p_count list"
9549
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
    98
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
    99
primrec 
9757
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   100
"succs (Load idx) pc         = [pc+1]"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   101
"succs (Store idx) pc        = [pc+1]"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   102
"succs (Bipush i) pc         = [pc+1]"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   103
"succs (Aconst_null) pc      = [pc+1]"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   104
"succs (Getfield F C) pc     = [pc+1]"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   105
"succs (Putfield F C) pc     = [pc+1]"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   106
"succs (New C) pc            = [pc+1]"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   107
"succs (Checkcast C) pc      = [pc+1]"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   108
"succs Pop pc                = [pc+1]"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   109
"succs Dup pc                = [pc+1]"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   110
"succs Dup_x1 pc             = [pc+1]"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   111
"succs Dup_x2 pc             = [pc+1]"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   112
"succs Swap pc               = [pc+1]"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   113
"succs IAdd pc               = [pc+1]"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   114
"succs (Ifcmpeq b) pc        = [pc+1, nat (int pc + b)]"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   115
"succs (Goto b) pc           = [nat (int pc + b)]"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   116
"succs Return pc             = []"  
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   117
"succs (Invoke C mn fpTs) pc = [pc+1]"
9549
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   118
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   119
10042
7164dc0d24d8 unsymbolized
kleing
parents: 9757
diff changeset
   120
lemma 1: "2 < length a ==> (\<exists>l l' l'' ls. a = l#l'#l''#ls)"
9549
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   121
proof (cases a)
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   122
  fix x xs assume "a = x#xs" "2 < length a"
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   123
  thus ?thesis by - (cases xs, simp, cases "tl xs", auto)
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   124
qed auto
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   125
10042
7164dc0d24d8 unsymbolized
kleing
parents: 9757
diff changeset
   126
lemma 2: "\<not>(2 < length a) ==> a = [] \<or> (\<exists> l. a = [l]) \<or> (\<exists> l l'. a = [l,l'])"
9549
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   127
proof -;
9580
kleing
parents: 9559
diff changeset
   128
  assume "\<not>(2 < length a)"
9549
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   129
  hence "length a < (Suc 2)" by simp
9757
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   130
  hence * : "length a = 0 \<or> length a = 1 \<or> length a = 2" 
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   131
    by (auto simp add: less_Suc_eq)
9549
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   132
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   133
  { 
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   134
    fix x 
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   135
    assume "length x = 1"
9580
kleing
parents: 9559
diff changeset
   136
    hence "\<exists> l. x = [l]"  by - (cases x, auto)
9549
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   137
  } note 0 = this
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   138
10042
7164dc0d24d8 unsymbolized
kleing
parents: 9757
diff changeset
   139
  have "length a = 2 ==> \<exists>l l'. a = [l,l']" by (cases a, auto dest: 0)
9549
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   140
  with * show ?thesis by (auto dest: 0)
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   141
qed
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   142
9559
kleing
parents: 9549
diff changeset
   143
text {* 
9585
f0e811a54254 fixed document preparation;
wenzelm
parents: 9580
diff changeset
   144
\medskip
9757
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   145
simp rules for @{term app}
9559
kleing
parents: 9549
diff changeset
   146
*}
9757
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   147
lemma appNone[simp]:
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   148
"app i G rT None = True"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   149
  by (simp add: app_def)
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   150
9549
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   151
9757
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   152
lemma appLoad[simp]:
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   153
"(app (Load idx) G rT (Some s)) = (idx < length (snd s) \<and> (snd s) ! idx \<noteq> Err)"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   154
  by (simp add: app_def)
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   155
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   156
lemma appStore[simp]:
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   157
"(app (Store idx) G rT (Some s)) = (\<exists> ts ST LT. s = (ts#ST,LT) \<and> idx < length LT)"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   158
  by (cases s, cases "2 < length (fst s)", auto dest: 1 2 simp add: app_def)
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   159
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   160
lemma appBipush[simp]:
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   161
"(app (Bipush i) G rT (Some s)) = True"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   162
  by (simp add: app_def)
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   163
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   164
lemma appAconst[simp]:
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   165
"(app Aconst_null G rT (Some s)) = True"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   166
  by (simp add: app_def)
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   167
9549
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   168
lemma appGetField[simp]:
9757
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   169
"(app (Getfield F C) G rT (Some s)) = 
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   170
 (\<exists> oT vT ST LT. s = (oT#ST, LT) \<and> is_class G C \<and>  
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   171
  field (G,C) F = Some (C,vT) \<and> G \<turnstile> oT \<preceq> (Class C))"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   172
  by (cases s, cases "2 < length (fst s)", auto dest!: 1 2 simp add: app_def)
9549
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   173
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   174
lemma appPutField[simp]:
9757
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   175
"(app (Putfield F C) G rT (Some s)) = 
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   176
 (\<exists> vT vT' oT ST LT. s = (vT#oT#ST, LT) \<and> is_class G C \<and> 
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   177
  field (G,C) F = Some (C, vT') \<and> G \<turnstile> oT \<preceq> (Class C) \<and> G \<turnstile> vT \<preceq> vT')"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   178
  by (cases s, cases "2 < length (fst s)", auto dest!: 1 2 simp add: app_def)
9549
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   179
9757
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   180
lemma appNew[simp]:
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   181
"(app (New C) G rT (Some s)) = is_class G C"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   182
  by (simp add: app_def)
9549
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   183
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   184
lemma appCheckcast[simp]:
9757
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   185
"(app (Checkcast C) G rT (Some s)) = (\<exists>rT ST LT. s = (RefT rT#ST,LT) \<and> is_class G C)"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   186
  by (cases s, cases "fst s", simp add: app_def)
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   187
     (cases "hd (fst s)", auto simp add: app_def)
9549
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   188
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   189
lemma appPop[simp]:
9757
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   190
"(app Pop G rT (Some s)) = (\<exists>ts ST LT. s = (ts#ST,LT))" 
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   191
  by (cases s, cases "2 < length (fst s)", auto dest: 1 2 simp add: app_def)
9549
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   192
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   193
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   194
lemma appDup[simp]:
9757
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   195
"(app Dup G rT (Some s)) = (\<exists>ts ST LT. s = (ts#ST,LT))" 
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   196
  by (cases s, cases "2 < length (fst s)", auto dest: 1 2 simp add: app_def)
9549
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   197
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   198
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   199
lemma appDup_x1[simp]:
9757
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   200
"(app Dup_x1 G rT (Some s)) = (\<exists>ts1 ts2 ST LT. s = (ts1#ts2#ST,LT))" 
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   201
  by (cases s, cases "2 < length (fst s)", auto dest: 1 2 simp add: app_def)
9549
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   202
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   203
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   204
lemma appDup_x2[simp]:
9757
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   205
"(app Dup_x2 G rT (Some s)) = (\<exists>ts1 ts2 ts3 ST LT. s = (ts1#ts2#ts3#ST,LT))"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   206
  by (cases s, cases "2 < length (fst s)", auto dest: 1 2 simp add: app_def)
9549
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   207
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   208
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   209
lemma appSwap[simp]:
9757
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   210
"app Swap G rT (Some s) = (\<exists>ts1 ts2 ST LT. s = (ts1#ts2#ST,LT))" 
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   211
  by (cases s, cases "2 < length (fst s)", auto dest: 1 2 simp add: app_def)
9549
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   212
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   213
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   214
lemma appIAdd[simp]:
9757
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   215
"app IAdd G rT (Some s) = (\<exists> ST LT. s = (PrimT Integer#PrimT Integer#ST,LT))"  
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   216
  (is "?app s = ?P s")
9664
4cae97480a6d open cases;
wenzelm
parents: 9594
diff changeset
   217
proof (cases (open) s)
9549
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   218
  case Pair
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   219
  have "?app (a,b) = ?P (a,b)"
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   220
  proof (cases "a")
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   221
    fix t ts assume a: "a = t#ts"
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   222
    show ?thesis
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   223
    proof (cases t)
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   224
      fix p assume p: "t = PrimT p"
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   225
      show ?thesis
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   226
      proof (cases p)
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   227
        assume ip: "p = Integer"
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   228
        show ?thesis
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   229
        proof (cases ts)
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   230
          fix t' ts' assume t': "ts = t' # ts'"
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   231
          show ?thesis
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   232
          proof (cases t')
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   233
            fix p' assume "t' = PrimT p'"
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   234
            with t' ip p a
9757
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   235
            show ?thesis by - (cases p', auto simp add: app_def)
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   236
          qed (auto simp add: a p ip t' app_def)
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   237
        qed (auto simp add: a p ip app_def)
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   238
      qed (auto simp add: a p app_def)
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   239
    qed (auto simp add: a app_def)
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   240
  qed (auto simp add: app_def)
9549
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   241
  with Pair show ?thesis by simp
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   242
qed
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   243
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   244
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   245
lemma appIfcmpeq[simp]:
9757
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   246
"app (Ifcmpeq b) G rT (Some s) = (\<exists>ts1 ts2 ST LT. s = (ts1#ts2#ST,LT) \<and> 
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   247
 ((\<exists> p. ts1 = PrimT p \<and> ts2 = PrimT p) \<or> (\<exists>r r'. ts1 = RefT r \<and> ts2 = RefT r')))" 
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   248
  by (cases s, cases "2 < length (fst s)", auto dest: 1 2 simp add: app_def)
9549
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   249
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   250
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   251
lemma appReturn[simp]:
9757
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   252
"app Return G rT (Some s) = (\<exists>T ST LT. s = (T#ST,LT) \<and> (G \<turnstile> T \<preceq> rT))" 
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   253
  by (cases s, cases "2 < length (fst s)", auto dest: 1 2 simp add: app_def)
9549
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   254
9757
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   255
lemma appGoto[simp]:
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   256
"app (Goto branch) G rT (Some s) = True"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   257
  by (simp add: app_def)
9549
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   258
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   259
lemma appInvoke[simp]:
9757
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   260
"app (Invoke C mn fpTs) G rT (Some s) = (\<exists>apTs X ST LT mD' rT' b'.
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   261
  s = ((rev apTs) @ (X # ST), LT) \<and> length apTs = length fpTs \<and> 
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   262
  G \<turnstile> X \<preceq> Class C \<and> (\<forall>(aT,fT)\<in>set(zip apTs fpTs). G \<turnstile> aT \<preceq> fT) \<and> 
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   263
  method (G,C) (mn,fpTs) = Some (mD', rT', b'))" (is "?app s = ?P s")
9664
4cae97480a6d open cases;
wenzelm
parents: 9594
diff changeset
   264
proof (cases (open) s)
9549
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   265
  case Pair
10042
7164dc0d24d8 unsymbolized
kleing
parents: 9757
diff changeset
   266
  have "?app (a,b) ==> ?P (a,b)"
9549
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   267
  proof -
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   268
    assume app: "?app (a,b)"
9757
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   269
    hence "a = (rev (rev (take (length fpTs) a))) @ (drop (length fpTs) a) \<and> 
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   270
           length fpTs < length a" (is "?a \<and> ?l") 
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   271
      by (auto simp add: app_def)
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   272
    hence "?a \<and> 0 < length (drop (length fpTs) a)" (is "?a \<and> ?l") 
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   273
      by auto
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   274
    hence "?a \<and> ?l \<and> length (rev (take (length fpTs) a)) = length fpTs" 
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   275
      by (auto simp add: min_def)
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   276
    hence "\<exists>apTs ST. a = rev apTs @ ST \<and> length apTs = length fpTs \<and> 0 < length ST" 
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   277
      by blast
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   278
    hence "\<exists>apTs ST. a = rev apTs @ ST \<and> length apTs = length fpTs \<and> ST \<noteq> []" 
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   279
      by blast
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   280
    hence "\<exists>apTs ST. a = rev apTs @ ST \<and> length apTs = length fpTs \<and> 
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   281
           (\<exists>X ST'. ST = X#ST')" 
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   282
      by (simp add: neq_Nil_conv)
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   283
    hence "\<exists>apTs X ST. a = rev apTs @ X # ST \<and> length apTs = length fpTs" 
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   284
      by blast
9549
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   285
    with app
9757
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   286
    show ?thesis by (auto simp add: app_def) blast
9549
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   287
  qed
10042
7164dc0d24d8 unsymbolized
kleing
parents: 9757
diff changeset
   288
  with Pair have "?app s ==> ?P s" by simp
9757
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   289
  thus ?thesis by (auto simp add: app_def)
9549
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   290
qed 
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   291
9757
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   292
lemma step_Some:
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   293
  "step i G (Some s) \<noteq> None"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   294
  by (simp add: step_def)
9580
kleing
parents: 9559
diff changeset
   295
9757
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   296
lemma step_None [simp]:
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   297
  "step i G None = None"
1024a2d80ac0 functional LBV style, dead code, type safety -> Isar
kleing
parents: 9664
diff changeset
   298
  by (simp add: step_def)
9580
kleing
parents: 9559
diff changeset
   299
9549
40d64cb4f4e6 BV and LBV specified in terms of app and step functions
kleing
parents:
diff changeset
   300
end