src/ZF/quniv.ML
author paulson
Fri, 16 Feb 1996 18:00:47 +0100
changeset 1512 ce37c64244c0
parent 170 590c9d1e0d73
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:
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     1
(*  Title: 	ZF/quniv
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     2
    ID:         $Id$
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     3
    Author: 	Lawrence C Paulson, Cambridge University Computer Laboratory
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     4
    Copyright   1993  University of Cambridge
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     5
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     6
For quniv.thy.  A small universe for lazy recursive types
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 QUniv;
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    10
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    11
(** Introduction and elimination rules avoid tiresome folding/unfolding **)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    12
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    13
goalw QUniv.thy [quniv_def]
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    14
    "!!X A. X <= univ(eclose(A)) ==> X : quniv(A)";
14
1c0926788772 ex/{bin.ML,comb.ML,prop.ML}: replaced NewSext by Syntax.simple_sext
lcp
parents: 6
diff changeset
    15
by (etac PowI 1);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    16
val qunivI = result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    17
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    18
goalw QUniv.thy [quniv_def]
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    19
    "!!X A. X : quniv(A) ==> X <= univ(eclose(A))";
14
1c0926788772 ex/{bin.ML,comb.ML,prop.ML}: replaced NewSext by Syntax.simple_sext
lcp
parents: 6
diff changeset
    20
by (etac PowD 1);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    21
val qunivD = result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    22
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    23
goalw QUniv.thy [quniv_def] "!!A B. A<=B ==> quniv(A) <= quniv(B)";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    24
by (etac (eclose_mono RS univ_mono RS Pow_mono) 1);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    25
val quniv_mono = result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    26
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    27
(*** Closure properties ***)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    28
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    29
goalw QUniv.thy [quniv_def] "univ(eclose(A)) <= quniv(A)";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    30
by (rtac (Transset_iff_Pow RS iffD1) 1);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    31
by (rtac (Transset_eclose RS Transset_univ) 1);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    32
val univ_eclose_subset_quniv = result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    33
170
590c9d1e0d73 ZF/quniv/QPair_Int_Vset_subset_UN: new, isolates key argument of many
lcp
parents: 129
diff changeset
    34
(*Key property for proving A_subset_quniv; requires eclose in def of quniv*)
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    35
goal QUniv.thy "univ(A) <= quniv(A)";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    36
by (rtac (arg_subset_eclose RS univ_mono RS subset_trans) 1);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    37
by (rtac univ_eclose_subset_quniv 1);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    38
val univ_subset_quniv = result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    39
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    40
val univ_into_quniv = standard (univ_subset_quniv RS subsetD);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    41
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    42
goalw QUniv.thy [quniv_def] "Pow(univ(A)) <= quniv(A)";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    43
by (rtac (arg_subset_eclose RS univ_mono RS Pow_mono) 1);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    44
val Pow_univ_subset_quniv = result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    45
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    46
val univ_subset_into_quniv = standard
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    47
	(PowI RS (Pow_univ_subset_quniv RS subsetD));
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    48
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    49
val zero_in_quniv = standard (zero_in_univ RS univ_into_quniv);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    50
val one_in_quniv = standard (one_in_univ RS univ_into_quniv);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    51
val two_in_quniv = standard (two_in_univ RS univ_into_quniv);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    52
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    53
val A_subset_quniv = standard
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    54
	([A_subset_univ, univ_subset_quniv] MRS subset_trans);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    55
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    56
val A_into_quniv = A_subset_quniv RS subsetD;
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    57
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    58
(*** univ(A) closure for Quine-inspired pairs and injections ***)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    59
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    60
(*Quine ordered pairs*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    61
goalw QUniv.thy [QPair_def]
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    62
    "!!A a. [| a <= univ(A);  b <= univ(A) |] ==> <a;b> <= univ(A)";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    63
by (REPEAT (ares_tac [sum_subset_univ] 1));
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    64
val QPair_subset_univ = result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    65
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    66
(** Quine disjoint sum **)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    67
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    68
goalw QUniv.thy [QInl_def] "!!A a. a <= univ(A) ==> QInl(a) <= univ(A)";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    69
by (etac (empty_subsetI RS QPair_subset_univ) 1);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    70
val QInl_subset_univ = result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    71
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    72
val naturals_subset_nat =
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    73
    rewrite_rule [Transset_def] (Ord_nat RS Ord_is_Transset)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    74
    RS bspec;
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    75
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    76
val naturals_subset_univ = 
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    77
    [naturals_subset_nat, nat_subset_univ] MRS subset_trans;
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    78
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    79
goalw QUniv.thy [QInr_def] "!!A a. a <= univ(A) ==> QInr(a) <= univ(A)";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    80
by (etac (nat_1I RS naturals_subset_univ RS QPair_subset_univ) 1);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    81
val QInr_subset_univ = result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    82
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    83
(*** Closure for Quine-inspired products and sums ***)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    84
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    85
(*Quine ordered pairs*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    86
goalw QUniv.thy [quniv_def,QPair_def]
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    87
    "!!A a. [| a: quniv(A);  b: quniv(A) |] ==> <a;b> : quniv(A)";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    88
by (REPEAT (dtac PowD 1));
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    89
by (REPEAT (ares_tac [PowI, sum_subset_univ] 1));
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    90
val QPair_in_quniv = result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    91
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    92
goal QUniv.thy "quniv(A) <*> quniv(A) <= quniv(A)";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    93
by (REPEAT (ares_tac [subsetI, QPair_in_quniv] 1
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    94
     ORELSE eresolve_tac [QSigmaE, ssubst] 1));
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    95
val QSigma_quniv = result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    96
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    97
val QSigma_subset_quniv = standard
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    98
    (QSigma_mono RS (QSigma_quniv RSN (2,subset_trans)));
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    99
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   100
(*The opposite inclusion*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   101
goalw QUniv.thy [quniv_def,QPair_def]
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   102
    "!!A a b. <a;b> : quniv(A) ==> a: quniv(A) & b: quniv(A)";
129
dc50a4b96d7b expandshort and other trivial changes
lcp
parents: 120
diff changeset
   103
by (etac ([Transset_eclose RS Transset_univ, PowD] MRS 
dc50a4b96d7b expandshort and other trivial changes
lcp
parents: 120
diff changeset
   104
	  Transset_includes_summands RS conjE) 1);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   105
by (REPEAT (ares_tac [conjI,PowI] 1));
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   106
val quniv_QPair_D = result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   107
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   108
val quniv_QPair_E = standard (quniv_QPair_D RS conjE);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   109
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   110
goal QUniv.thy "<a;b> : quniv(A) <-> a: quniv(A) & b: quniv(A)";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   111
by (REPEAT (ares_tac [iffI, QPair_in_quniv, quniv_QPair_D] 1
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   112
     ORELSE etac conjE 1));
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   113
val quniv_QPair_iff = result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   114
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   115
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   116
(** Quine disjoint sum **)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   117
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   118
goalw QUniv.thy [QInl_def] "!!A a. a: quniv(A) ==> QInl(a) : quniv(A)";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   119
by (REPEAT (ares_tac [zero_in_quniv,QPair_in_quniv] 1));
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   120
val QInl_in_quniv = result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   121
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   122
goalw QUniv.thy [QInr_def] "!!A b. b: quniv(A) ==> QInr(b) : quniv(A)";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   123
by (REPEAT (ares_tac [one_in_quniv, QPair_in_quniv] 1));
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   124
val QInr_in_quniv = result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   125
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   126
goal QUniv.thy "quniv(C) <+> quniv(C) <= quniv(C)";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   127
by (REPEAT (ares_tac [subsetI, QInl_in_quniv, QInr_in_quniv] 1
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   128
     ORELSE eresolve_tac [qsumE, ssubst] 1));
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   129
val qsum_quniv = result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   130
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   131
val qsum_subset_quniv = standard
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   132
    (qsum_mono RS (qsum_quniv RSN (2,subset_trans)));
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   133
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   134
(*** The natural numbers ***)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   135
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   136
val nat_subset_quniv = standard
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   137
	([nat_subset_univ, univ_subset_quniv] MRS subset_trans);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   138
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   139
(* n:nat ==> n:quniv(A) *)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   140
val nat_into_quniv = standard (nat_subset_quniv RS subsetD);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   141
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   142
val bool_subset_quniv = standard
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   143
	([bool_subset_univ, univ_subset_quniv] MRS subset_trans);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   144
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   145
val bool_into_quniv = standard (bool_subset_quniv RS subsetD);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   146
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   147
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   148
(**** Properties of Vfrom analogous to the "take-lemma" ****)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   149
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   150
(*** Intersecting a*b with Vfrom... ***)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   151
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   152
(*This version says a, b exist one level down, in the smaller set Vfrom(X,i)*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   153
goal Univ.thy
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   154
    "!!X. [| {a,b} : Vfrom(X,succ(i));  Transset(X) |] ==> \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   155
\         a: Vfrom(X,i)  &  b: Vfrom(X,i)";
14
1c0926788772 ex/{bin.ML,comb.ML,prop.ML}: replaced NewSext by Syntax.simple_sext
lcp
parents: 6
diff changeset
   156
by (dtac (Transset_Vfrom_succ RS equalityD1 RS subsetD RS PowD) 1);
1c0926788772 ex/{bin.ML,comb.ML,prop.ML}: replaced NewSext by Syntax.simple_sext
lcp
parents: 6
diff changeset
   157
by (assume_tac 1);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   158
by (fast_tac ZF_cs 1);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   159
val doubleton_in_Vfrom_D = result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   160
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   161
(*This weaker version says a, b exist at the same level*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   162
val Vfrom_doubleton_D = standard (Transset_Vfrom RS Transset_doubleton_D);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   163
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   164
(** Using only the weaker theorem would prove <a,b> : Vfrom(X,i)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   165
      implies a, b : Vfrom(X,i), which is useless for induction.
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   166
    Using only the stronger theorem would prove <a,b> : Vfrom(X,succ(succ(i)))
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   167
      implies a, b : Vfrom(X,i), leaving the succ(i) case untreated.
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   168
    The combination gives a reduction by precisely one level, which is
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   169
      most convenient for proofs.
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   170
**)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   171
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   172
goalw Univ.thy [Pair_def]
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   173
    "!!X. [| <a,b> : Vfrom(X,succ(i));  Transset(X) |] ==> \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   174
\         a: Vfrom(X,i)  &  b: Vfrom(X,i)";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   175
by (fast_tac (ZF_cs addSDs [doubleton_in_Vfrom_D, Vfrom_doubleton_D]) 1);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   176
val Pair_in_Vfrom_D = result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   177
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   178
goal Univ.thy
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   179
 "!!X. Transset(X) ==> 		\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   180
\      (a*b) Int Vfrom(X, succ(i)) <= (a Int Vfrom(X,i)) * (b Int Vfrom(X,i))";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   181
by (fast_tac (ZF_cs addSDs [Pair_in_Vfrom_D]) 1);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   182
val product_Int_Vfrom_subset = result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   183
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   184
(*** Intersecting <a;b> with Vfrom... ***)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   185
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   186
goalw QUniv.thy [QPair_def,sum_def]
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   187
 "!!X. Transset(X) ==> 		\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   188
\      <a;b> Int Vfrom(X, succ(i))  <=  <a Int Vfrom(X,i);  b Int Vfrom(X,i)>";
14
1c0926788772 ex/{bin.ML,comb.ML,prop.ML}: replaced NewSext by Syntax.simple_sext
lcp
parents: 6
diff changeset
   189
by (rtac (Int_Un_distrib RS ssubst) 1);
1c0926788772 ex/{bin.ML,comb.ML,prop.ML}: replaced NewSext by Syntax.simple_sext
lcp
parents: 6
diff changeset
   190
by (rtac Un_mono 1);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   191
by (REPEAT (ares_tac [product_Int_Vfrom_subset RS subset_trans,
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   192
		      [Int_lower1, subset_refl] MRS Sigma_mono] 1));
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   193
val QPair_Int_Vfrom_succ_subset = result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   194
170
590c9d1e0d73 ZF/quniv/QPair_Int_Vset_subset_UN: new, isolates key argument of many
lcp
parents: 129
diff changeset
   195
(**** "Take-lemma" rules for proving a=b by coinduction and c: quniv(A) ****)
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   196
170
590c9d1e0d73 ZF/quniv/QPair_Int_Vset_subset_UN: new, isolates key argument of many
lcp
parents: 129
diff changeset
   197
(*Rule for level i -- preserving the level, not decreasing it*)
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   198
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   199
goalw QUniv.thy [QPair_def]
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   200
 "!!X. Transset(X) ==> 		\
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   201
\      <a;b> Int Vfrom(X,i)  <=  <a Int Vfrom(X,i);  b Int Vfrom(X,i)>";
14
1c0926788772 ex/{bin.ML,comb.ML,prop.ML}: replaced NewSext by Syntax.simple_sext
lcp
parents: 6
diff changeset
   202
by (etac (Transset_Vfrom RS Transset_sum_Int_subset) 1);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   203
val QPair_Int_Vfrom_subset = result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   204
170
590c9d1e0d73 ZF/quniv/QPair_Int_Vset_subset_UN: new, isolates key argument of many
lcp
parents: 129
diff changeset
   205
(*[| a Int Vset(i) <= c; b Int Vset(i) <= d |] ==> <a;b> Int Vset(i) <= <c;d>*)
590c9d1e0d73 ZF/quniv/QPair_Int_Vset_subset_UN: new, isolates key argument of many
lcp
parents: 129
diff changeset
   206
val QPair_Int_Vset_subset_trans = standard
590c9d1e0d73 ZF/quniv/QPair_Int_Vset_subset_UN: new, isolates key argument of many
lcp
parents: 129
diff changeset
   207
       ([Transset_0 RS QPair_Int_Vfrom_subset, QPair_mono] MRS subset_trans);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   208
170
590c9d1e0d73 ZF/quniv/QPair_Int_Vset_subset_UN: new, isolates key argument of many
lcp
parents: 129
diff changeset
   209
goal QUniv.thy 
590c9d1e0d73 ZF/quniv/QPair_Int_Vset_subset_UN: new, isolates key argument of many
lcp
parents: 129
diff changeset
   210
 "!!i. [| Ord(i) \
590c9d1e0d73 ZF/quniv/QPair_Int_Vset_subset_UN: new, isolates key argument of many
lcp
parents: 129
diff changeset
   211
\      |] ==> <a;b> Int Vset(i)  <=  (UN j:i. <a Int Vset(j); b Int Vset(j)>)";
590c9d1e0d73 ZF/quniv/QPair_Int_Vset_subset_UN: new, isolates key argument of many
lcp
parents: 129
diff changeset
   212
by (etac Ord_cases 1 THEN REPEAT_FIRST hyp_subst_tac);
590c9d1e0d73 ZF/quniv/QPair_Int_Vset_subset_UN: new, isolates key argument of many
lcp
parents: 129
diff changeset
   213
(*0 case*)
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   214
by (rtac (Vfrom_0 RS ssubst) 1);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   215
by (fast_tac ZF_cs 1);
170
590c9d1e0d73 ZF/quniv/QPair_Int_Vset_subset_UN: new, isolates key argument of many
lcp
parents: 129
diff changeset
   216
(*succ(j) case*)
590c9d1e0d73 ZF/quniv/QPair_Int_Vset_subset_UN: new, isolates key argument of many
lcp
parents: 129
diff changeset
   217
by (rtac (Transset_0 RS QPair_Int_Vfrom_succ_subset RS subset_trans) 1);
590c9d1e0d73 ZF/quniv/QPair_Int_Vset_subset_UN: new, isolates key argument of many
lcp
parents: 129
diff changeset
   218
by (rtac (succI1 RS UN_upper) 1);
590c9d1e0d73 ZF/quniv/QPair_Int_Vset_subset_UN: new, isolates key argument of many
lcp
parents: 129
diff changeset
   219
(*Limit(i) case*)
590c9d1e0d73 ZF/quniv/QPair_Int_Vset_subset_UN: new, isolates key argument of many
lcp
parents: 129
diff changeset
   220
by (asm_simp_tac (ZF_ss addsimps [Limit_Vfrom_eq, Int_UN_distrib, subset_refl,
590c9d1e0d73 ZF/quniv/QPair_Int_Vset_subset_UN: new, isolates key argument of many
lcp
parents: 129
diff changeset
   221
				  UN_mono, QPair_Int_Vset_subset_trans]) 1);
590c9d1e0d73 ZF/quniv/QPair_Int_Vset_subset_UN: new, isolates key argument of many
lcp
parents: 129
diff changeset
   222
val QPair_Int_Vset_subset_UN = result();