src/ZF/Trancl.ML
author paulson
Fri, 16 Feb 1996 18:00:47 +0100
changeset 1512 ce37c64244c0
parent 1461 6bcb44e4d6e5
child 2469 b50b8c0eec01
permissions -rw-r--r--
Elimination of fully-functorial style. Type tactic changed to a type abbrevation (from a datatype). Constructor tactic and function apply deleted.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1461
6bcb44e4d6e5 expanded tabs
clasohm
parents: 782
diff changeset
     1
(*  Title:      ZF/trancl.ML
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     2
    ID:         $Id$
1461
6bcb44e4d6e5 expanded tabs
clasohm
parents: 782
diff changeset
     3
    Author:     Lawrence C Paulson, Cambridge University Computer Laboratory
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     4
    Copyright   1992  University of Cambridge
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     5
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     6
For trancl.thy.  Transitive closure of a relation
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     7
*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     8
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     9
open Trancl;
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    10
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    11
goal Trancl.thy "bnd_mono(field(r)*field(r), %s. id(field(r)) Un (r O s))";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    12
by (rtac bnd_monoI 1);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    13
by (REPEAT (ares_tac [subset_refl, Un_mono, comp_mono] 2));
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    14
by (fast_tac comp_cs 1);
760
f0200e91b272 added qed and qed_goal[w]
clasohm
parents: 435
diff changeset
    15
qed "rtrancl_bnd_mono";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    16
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    17
val [prem] = goalw Trancl.thy [rtrancl_def] "r<=s ==> r^* <= s^*";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    18
by (rtac lfp_mono 1);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    19
by (REPEAT (resolve_tac [rtrancl_bnd_mono, prem, subset_refl, id_mono,
1461
6bcb44e4d6e5 expanded tabs
clasohm
parents: 782
diff changeset
    20
                         comp_mono, Un_mono, field_mono, Sigma_mono] 1));
760
f0200e91b272 added qed and qed_goal[w]
clasohm
parents: 435
diff changeset
    21
qed "rtrancl_mono";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    22
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    23
(* r^* = id(field(r)) Un ( r O r^* )    *)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    24
val rtrancl_unfold = rtrancl_bnd_mono RS (rtrancl_def RS def_lfp_Tarski);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    25
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    26
(** The relation rtrancl **)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    27
782
200a16083201 added bind_thm for theorems defined by "standard ..."
clasohm
parents: 760
diff changeset
    28
bind_thm ("rtrancl_type", (rtrancl_def RS def_lfp_subset));
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    29
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    30
(*Reflexivity of rtrancl*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    31
val [prem] = goal Trancl.thy "[| a: field(r) |] ==> <a,a> : r^*";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    32
by (resolve_tac [rtrancl_unfold RS ssubst] 1);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    33
by (rtac (prem RS idI RS UnI1) 1);
760
f0200e91b272 added qed and qed_goal[w]
clasohm
parents: 435
diff changeset
    34
qed "rtrancl_refl";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    35
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    36
(*Closure under composition with r  *)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    37
val prems = goal Trancl.thy
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    38
    "[| <a,b> : r^*;  <b,c> : r |] ==> <a,c> : r^*";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    39
by (resolve_tac [rtrancl_unfold RS ssubst] 1);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    40
by (rtac (compI RS UnI2) 1);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    41
by (resolve_tac prems 1);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    42
by (resolve_tac prems 1);
760
f0200e91b272 added qed and qed_goal[w]
clasohm
parents: 435
diff changeset
    43
qed "rtrancl_into_rtrancl";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    44
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    45
(*rtrancl of r contains all pairs in r  *)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    46
val prems = goal Trancl.thy "<a,b> : r ==> <a,b> : r^*";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    47
by (resolve_tac [rtrancl_refl RS rtrancl_into_rtrancl] 1);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    48
by (REPEAT (resolve_tac (prems@[fieldI1]) 1));
760
f0200e91b272 added qed and qed_goal[w]
clasohm
parents: 435
diff changeset
    49
qed "r_into_rtrancl";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    50
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    51
(*The premise ensures that r consists entirely of pairs*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    52
val prems = goal Trancl.thy "r <= Sigma(A,B) ==> r <= r^*";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    53
by (cut_facts_tac prems 1);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    54
by (fast_tac (ZF_cs addIs [r_into_rtrancl]) 1);
760
f0200e91b272 added qed and qed_goal[w]
clasohm
parents: 435
diff changeset
    55
qed "r_subset_rtrancl";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    56
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    57
goal Trancl.thy "field(r^*) = field(r)";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    58
by (fast_tac (eq_cs addIs [r_into_rtrancl] 
1461
6bcb44e4d6e5 expanded tabs
clasohm
parents: 782
diff changeset
    59
                    addSDs [rtrancl_type RS subsetD]) 1);
760
f0200e91b272 added qed and qed_goal[w]
clasohm
parents: 435
diff changeset
    60
qed "rtrancl_field";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    61
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    62
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    63
(** standard induction rule **)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    64
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    65
val major::prems = goal Trancl.thy
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    66
  "[| <a,b> : r^*; \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    67
\     !!x. x: field(r) ==> P(<x,x>); \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    68
\     !!x y z.[| P(<x,y>); <x,y>: r^*; <y,z>: r |]  ==>  P(<x,z>) |] \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    69
\  ==>  P(<a,b>)";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    70
by (rtac ([rtrancl_def, rtrancl_bnd_mono, major] MRS def_induct) 1);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    71
by (fast_tac (ZF_cs addIs prems addSEs [idE,compE]) 1);
760
f0200e91b272 added qed and qed_goal[w]
clasohm
parents: 435
diff changeset
    72
qed "rtrancl_full_induct";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    73
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    74
(*nice induction rule.
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    75
  Tried adding the typing hypotheses y,z:field(r), but these
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    76
  caused expensive case splits!*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    77
val major::prems = goal Trancl.thy
1461
6bcb44e4d6e5 expanded tabs
clasohm
parents: 782
diff changeset
    78
  "[| <a,b> : r^*;                                              \
6bcb44e4d6e5 expanded tabs
clasohm
parents: 782
diff changeset
    79
\     P(a);                                                     \
6bcb44e4d6e5 expanded tabs
clasohm
parents: 782
diff changeset
    80
\     !!y z.[| <a,y> : r^*;  <y,z> : r;  P(y) |] ==> P(z)       \
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    81
\  |] ==> P(b)";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    82
(*by induction on this formula*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    83
by (subgoal_tac "ALL y. <a,b> = <a,y> --> P(y)" 1);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    84
(*now solve first subgoal: this formula is sufficient*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    85
by (EVERY1 [etac (spec RS mp), rtac refl]);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    86
(*now do the induction*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    87
by (resolve_tac [major RS rtrancl_full_induct] 1);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    88
by (ALLGOALS (fast_tac (ZF_cs addIs prems)));
760
f0200e91b272 added qed and qed_goal[w]
clasohm
parents: 435
diff changeset
    89
qed "rtrancl_induct";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    90
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    91
(*transitivity of transitive closure!! -- by induction.*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    92
goalw Trancl.thy [trans_def] "trans(r^*)";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    93
by (REPEAT (resolve_tac [allI,impI] 1));
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    94
by (eres_inst_tac [("b","z")] rtrancl_induct 1);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    95
by (DEPTH_SOLVE (eresolve_tac [asm_rl, rtrancl_into_rtrancl] 1));
760
f0200e91b272 added qed and qed_goal[w]
clasohm
parents: 435
diff changeset
    96
qed "trans_rtrancl";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    97
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    98
(*elimination of rtrancl -- by induction on a special formula*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    99
val major::prems = goal Trancl.thy
1461
6bcb44e4d6e5 expanded tabs
clasohm
parents: 782
diff changeset
   100
    "[| <a,b> : r^*;  (a=b) ==> P;                       \
6bcb44e4d6e5 expanded tabs
clasohm
parents: 782
diff changeset
   101
\       !!y.[| <a,y> : r^*;   <y,b> : r |] ==> P |]      \
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   102
\    ==> P";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   103
by (subgoal_tac "a = b  | (EX y. <a,y> : r^* & <y,b> : r)" 1);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   104
(*see HOL/trancl*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   105
by (rtac (major RS rtrancl_induct) 2);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   106
by (ALLGOALS (fast_tac (ZF_cs addSEs prems)));
760
f0200e91b272 added qed and qed_goal[w]
clasohm
parents: 435
diff changeset
   107
qed "rtranclE";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   108
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   109
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   110
(**** The relation trancl ****)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   111
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   112
(*Transitivity of r^+ is proved by transitivity of r^*  *)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   113
goalw Trancl.thy [trans_def,trancl_def] "trans(r^+)";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   114
by (safe_tac comp_cs);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   115
by (rtac (rtrancl_into_rtrancl RS (trans_rtrancl RS transD RS compI)) 1);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   116
by (REPEAT (assume_tac 1));
760
f0200e91b272 added qed and qed_goal[w]
clasohm
parents: 435
diff changeset
   117
qed "trans_trancl";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   118
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   119
(** Conversions between trancl and rtrancl **)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   120
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   121
val [major] = goalw Trancl.thy [trancl_def] "<a,b> : r^+ ==> <a,b> : r^*";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   122
by (resolve_tac [major RS compEpair] 1);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   123
by (REPEAT (ares_tac [rtrancl_into_rtrancl] 1));
760
f0200e91b272 added qed and qed_goal[w]
clasohm
parents: 435
diff changeset
   124
qed "trancl_into_rtrancl";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   125
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   126
(*r^+ contains all pairs in r  *)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   127
val [prem] = goalw Trancl.thy [trancl_def] "<a,b> : r ==> <a,b> : r^+";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   128
by (REPEAT (ares_tac [prem,compI,rtrancl_refl,fieldI1] 1));
760
f0200e91b272 added qed and qed_goal[w]
clasohm
parents: 435
diff changeset
   129
qed "r_into_trancl";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   130
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   131
(*The premise ensures that r consists entirely of pairs*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   132
val prems = goal Trancl.thy "r <= Sigma(A,B) ==> r <= r^+";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   133
by (cut_facts_tac prems 1);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   134
by (fast_tac (ZF_cs addIs [r_into_trancl]) 1);
760
f0200e91b272 added qed and qed_goal[w]
clasohm
parents: 435
diff changeset
   135
qed "r_subset_trancl";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   136
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   137
(*intro rule by definition: from r^* and r  *)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   138
val prems = goalw Trancl.thy [trancl_def]
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   139
    "[| <a,b> : r^*;  <b,c> : r |]   ==>  <a,c> : r^+";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   140
by (REPEAT (resolve_tac ([compI]@prems) 1));
760
f0200e91b272 added qed and qed_goal[w]
clasohm
parents: 435
diff changeset
   141
qed "rtrancl_into_trancl1";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   142
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   143
(*intro rule from r and r^*  *)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   144
val prems = goal Trancl.thy
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   145
    "[| <a,b> : r;  <b,c> : r^* |]   ==>  <a,c> : r^+";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   146
by (resolve_tac (prems RL [rtrancl_induct]) 1);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   147
by (resolve_tac (prems RL [r_into_trancl]) 1);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   148
by (etac (trans_trancl RS transD) 1);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   149
by (etac r_into_trancl 1);
760
f0200e91b272 added qed and qed_goal[w]
clasohm
parents: 435
diff changeset
   150
qed "rtrancl_into_trancl2";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   151
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   152
(*Nice induction rule for trancl*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   153
val major::prems = goal Trancl.thy
1461
6bcb44e4d6e5 expanded tabs
clasohm
parents: 782
diff changeset
   154
  "[| <a,b> : r^+;                                      \
6bcb44e4d6e5 expanded tabs
clasohm
parents: 782
diff changeset
   155
\     !!y.  [| <a,y> : r |] ==> P(y);                   \
6bcb44e4d6e5 expanded tabs
clasohm
parents: 782
diff changeset
   156
\     !!y z.[| <a,y> : r^+;  <y,z> : r;  P(y) |] ==> P(z)       \
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   157
\  |] ==> P(b)";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   158
by (rtac (rewrite_rule [trancl_def] major  RS  compEpair) 1);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   159
(*by induction on this formula*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   160
by (subgoal_tac "ALL z. <y,z> : r --> P(z)" 1);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   161
(*now solve first subgoal: this formula is sufficient*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   162
by (fast_tac ZF_cs 1);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   163
by (etac rtrancl_induct 1);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   164
by (ALLGOALS (fast_tac (ZF_cs addIs (rtrancl_into_trancl1::prems))));
760
f0200e91b272 added qed and qed_goal[w]
clasohm
parents: 435
diff changeset
   165
qed "trancl_induct";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   166
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   167
(*elimination of r^+ -- NOT an induction rule*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   168
val major::prems = goal Trancl.thy
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   169
    "[| <a,b> : r^+;  \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   170
\       <a,b> : r ==> P; \
1461
6bcb44e4d6e5 expanded tabs
clasohm
parents: 782
diff changeset
   171
\       !!y.[| <a,y> : r^+; <y,b> : r |] ==> P  \
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   172
\    |] ==> P";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   173
by (subgoal_tac "<a,b> : r | (EX y. <a,y> : r^+  &  <y,b> : r)" 1);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   174
by (fast_tac (ZF_cs addIs prems) 1);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   175
by (rtac (rewrite_rule [trancl_def] major RS compEpair) 1);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   176
by (etac rtranclE 1);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   177
by (ALLGOALS (fast_tac (ZF_cs addIs [rtrancl_into_trancl1])));
760
f0200e91b272 added qed and qed_goal[w]
clasohm
parents: 435
diff changeset
   178
qed "tranclE";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   179
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   180
goalw Trancl.thy [trancl_def] "r^+ <= field(r)*field(r)";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   181
by (fast_tac (ZF_cs addEs [compE, rtrancl_type RS subsetD RS SigmaE2]) 1);
760
f0200e91b272 added qed and qed_goal[w]
clasohm
parents: 435
diff changeset
   182
qed "trancl_type";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   183
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   184
val [prem] = goalw Trancl.thy [trancl_def] "r<=s ==> r^+ <= s^+";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   185
by (REPEAT (resolve_tac [prem, comp_mono, rtrancl_mono] 1));
760
f0200e91b272 added qed and qed_goal[w]
clasohm
parents: 435
diff changeset
   186
qed "trancl_mono";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   187