src/ZF/QUniv.ML
author wenzelm
Mon, 13 Mar 2000 13:21:39 +0100
changeset 8434 5e4bba59bfaa
parent 6070 032babd0120b
child 9211 6236c5285bd8
permissions -rw-r--r--
use HOLogic.Not; export indexify_names;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1461
6bcb44e4d6e5 expanded tabs
clasohm
parents: 838
diff changeset
     1
(*  Title:      ZF/quniv
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     2
    ID:         $Id$
1461
6bcb44e4d6e5 expanded tabs
clasohm
parents: 838
diff changeset
     3
    Author:     Lawrence C Paulson, Cambridge University Computer Laboratory
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     4
    Copyright   1993  University of Cambridge
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     5
5809
bacf85370ce0 removed obsolete comment and "open" declaration
paulson
parents: 5321
diff changeset
     6
A small universe for lazy recursive types
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     7
*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     8
838
120edb26ee93 Moved Transset_includes_summands and Transset_sum_Int_subset
lcp
parents: 803
diff changeset
     9
(** Properties involving Transset and Sum **)
120edb26ee93 Moved Transset_includes_summands and Transset_sum_Int_subset
lcp
parents: 803
diff changeset
    10
120edb26ee93 Moved Transset_includes_summands and Transset_sum_Int_subset
lcp
parents: 803
diff changeset
    11
val [prem1,prem2] = goalw QUniv.thy [sum_def]
120edb26ee93 Moved Transset_includes_summands and Transset_sum_Int_subset
lcp
parents: 803
diff changeset
    12
    "[| Transset(C); A+B <= C |] ==> A <= C & B <= C";
120edb26ee93 Moved Transset_includes_summands and Transset_sum_Int_subset
lcp
parents: 803
diff changeset
    13
by (rtac (prem2 RS (Un_subset_iff RS iffD1) RS conjE) 1);
120edb26ee93 Moved Transset_includes_summands and Transset_sum_Int_subset
lcp
parents: 803
diff changeset
    14
by (REPEAT (etac (prem1 RS Transset_includes_range) 1
120edb26ee93 Moved Transset_includes_summands and Transset_sum_Int_subset
lcp
parents: 803
diff changeset
    15
     ORELSE resolve_tac [conjI, singletonI] 1));
120edb26ee93 Moved Transset_includes_summands and Transset_sum_Int_subset
lcp
parents: 803
diff changeset
    16
qed "Transset_includes_summands";
120edb26ee93 Moved Transset_includes_summands and Transset_sum_Int_subset
lcp
parents: 803
diff changeset
    17
120edb26ee93 Moved Transset_includes_summands and Transset_sum_Int_subset
lcp
parents: 803
diff changeset
    18
val [prem] = goalw QUniv.thy [sum_def]
120edb26ee93 Moved Transset_includes_summands and Transset_sum_Int_subset
lcp
parents: 803
diff changeset
    19
    "Transset(C) ==> (A+B) Int C <= (A Int C) + (B Int C)";
2033
639de962ded4 Ran expandshort; used stac instead of ssubst
paulson
parents: 1461
diff changeset
    20
by (stac Int_Un_distrib 1);
4091
771b1f6422a8 isatool fixclasimp;
wenzelm
parents: 3016
diff changeset
    21
by (blast_tac (claset() addSDs [prem RS Transset_Pair_D]) 1);
838
120edb26ee93 Moved Transset_includes_summands and Transset_sum_Int_subset
lcp
parents: 803
diff changeset
    22
qed "Transset_sum_Int_subset";
120edb26ee93 Moved Transset_includes_summands and Transset_sum_Int_subset
lcp
parents: 803
diff changeset
    23
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    24
(** Introduction and elimination rules avoid tiresome folding/unfolding **)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    25
5067
62b6288e6005 isatool fixgoal;
wenzelm
parents: 4091
diff changeset
    26
Goalw [quniv_def]
5147
825877190618 More tidying and removal of "\!\!... from Goal commands
paulson
parents: 5137
diff changeset
    27
    "X <= univ(eclose(A)) ==> X : quniv(A)";
15
6c6d2f6e3185 ex/{bin.ML,comb.ML,prop.ML}: replaced NewSext by Syntax.simple_sext
lcp
parents: 6
diff changeset
    28
by (etac PowI 1);
760
f0200e91b272 added qed and qed_goal[w]
clasohm
parents: 170
diff changeset
    29
qed "qunivI";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    30
5067
62b6288e6005 isatool fixgoal;
wenzelm
parents: 4091
diff changeset
    31
Goalw [quniv_def]
5147
825877190618 More tidying and removal of "\!\!... from Goal commands
paulson
parents: 5137
diff changeset
    32
    "X : quniv(A) ==> X <= univ(eclose(A))";
15
6c6d2f6e3185 ex/{bin.ML,comb.ML,prop.ML}: replaced NewSext by Syntax.simple_sext
lcp
parents: 6
diff changeset
    33
by (etac PowD 1);
760
f0200e91b272 added qed and qed_goal[w]
clasohm
parents: 170
diff changeset
    34
qed "qunivD";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    35
5137
60205b0de9b9 Huge tidy-up: removal of leading \!\!
paulson
parents: 5067
diff changeset
    36
Goalw [quniv_def] "A<=B ==> quniv(A) <= quniv(B)";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    37
by (etac (eclose_mono RS univ_mono RS Pow_mono) 1);
760
f0200e91b272 added qed and qed_goal[w]
clasohm
parents: 170
diff changeset
    38
qed "quniv_mono";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    39
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    40
(*** Closure properties ***)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    41
5067
62b6288e6005 isatool fixgoal;
wenzelm
parents: 4091
diff changeset
    42
Goalw [quniv_def] "univ(eclose(A)) <= quniv(A)";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    43
by (rtac (Transset_iff_Pow RS iffD1) 1);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    44
by (rtac (Transset_eclose RS Transset_univ) 1);
760
f0200e91b272 added qed and qed_goal[w]
clasohm
parents: 170
diff changeset
    45
qed "univ_eclose_subset_quniv";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    46
170
590c9d1e0d73 ZF/quniv/QPair_Int_Vset_subset_UN: new, isolates key argument of many
lcp
parents: 129
diff changeset
    47
(*Key property for proving A_subset_quniv; requires eclose in def of quniv*)
5067
62b6288e6005 isatool fixgoal;
wenzelm
parents: 4091
diff changeset
    48
Goal "univ(A) <= quniv(A)";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    49
by (rtac (arg_subset_eclose RS univ_mono RS subset_trans) 1);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    50
by (rtac univ_eclose_subset_quniv 1);
760
f0200e91b272 added qed and qed_goal[w]
clasohm
parents: 170
diff changeset
    51
qed "univ_subset_quniv";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    52
803
4c8333ab3eae changed useless "qed" calls for lemmas back to uses of "result",
lcp
parents: 782
diff changeset
    53
bind_thm ("univ_into_quniv", univ_subset_quniv RS subsetD);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    54
5067
62b6288e6005 isatool fixgoal;
wenzelm
parents: 4091
diff changeset
    55
Goalw [quniv_def] "Pow(univ(A)) <= quniv(A)";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    56
by (rtac (arg_subset_eclose RS univ_mono RS Pow_mono) 1);
760
f0200e91b272 added qed and qed_goal[w]
clasohm
parents: 170
diff changeset
    57
qed "Pow_univ_subset_quniv";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    58
803
4c8333ab3eae changed useless "qed" calls for lemmas back to uses of "result",
lcp
parents: 782
diff changeset
    59
bind_thm ("univ_subset_into_quniv", 
1461
6bcb44e4d6e5 expanded tabs
clasohm
parents: 838
diff changeset
    60
          PowI RS (Pow_univ_subset_quniv RS subsetD));
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    61
803
4c8333ab3eae changed useless "qed" calls for lemmas back to uses of "result",
lcp
parents: 782
diff changeset
    62
bind_thm ("zero_in_quniv", zero_in_univ RS univ_into_quniv);
4c8333ab3eae changed useless "qed" calls for lemmas back to uses of "result",
lcp
parents: 782
diff changeset
    63
bind_thm ("one_in_quniv", one_in_univ RS univ_into_quniv);
4c8333ab3eae changed useless "qed" calls for lemmas back to uses of "result",
lcp
parents: 782
diff changeset
    64
bind_thm ("two_in_quniv", two_in_univ RS univ_into_quniv);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    65
803
4c8333ab3eae changed useless "qed" calls for lemmas back to uses of "result",
lcp
parents: 782
diff changeset
    66
bind_thm ("A_subset_quniv",
1461
6bcb44e4d6e5 expanded tabs
clasohm
parents: 838
diff changeset
    67
          [A_subset_univ, univ_subset_quniv] MRS subset_trans);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    68
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    69
val A_into_quniv = A_subset_quniv RS subsetD;
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    70
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    71
(*** univ(A) closure for Quine-inspired pairs and injections ***)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    72
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    73
(*Quine ordered pairs*)
5067
62b6288e6005 isatool fixgoal;
wenzelm
parents: 4091
diff changeset
    74
Goalw [QPair_def]
5147
825877190618 More tidying and removal of "\!\!... from Goal commands
paulson
parents: 5137
diff changeset
    75
    "[| a <= univ(A);  b <= univ(A) |] ==> <a;b> <= univ(A)";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    76
by (REPEAT (ares_tac [sum_subset_univ] 1));
760
f0200e91b272 added qed and qed_goal[w]
clasohm
parents: 170
diff changeset
    77
qed "QPair_subset_univ";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    78
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    79
(** Quine disjoint sum **)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    80
5137
60205b0de9b9 Huge tidy-up: removal of leading \!\!
paulson
parents: 5067
diff changeset
    81
Goalw [QInl_def] "a <= univ(A) ==> QInl(a) <= univ(A)";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    82
by (etac (empty_subsetI RS QPair_subset_univ) 1);
760
f0200e91b272 added qed and qed_goal[w]
clasohm
parents: 170
diff changeset
    83
qed "QInl_subset_univ";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    84
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    85
val naturals_subset_nat =
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    86
    rewrite_rule [Transset_def] (Ord_nat RS Ord_is_Transset)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    87
    RS bspec;
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    88
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    89
val naturals_subset_univ = 
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    90
    [naturals_subset_nat, nat_subset_univ] MRS subset_trans;
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    91
5137
60205b0de9b9 Huge tidy-up: removal of leading \!\!
paulson
parents: 5067
diff changeset
    92
Goalw [QInr_def] "a <= univ(A) ==> QInr(a) <= univ(A)";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    93
by (etac (nat_1I RS naturals_subset_univ RS QPair_subset_univ) 1);
760
f0200e91b272 added qed and qed_goal[w]
clasohm
parents: 170
diff changeset
    94
qed "QInr_subset_univ";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    95
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    96
(*** Closure for Quine-inspired products and sums ***)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    97
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    98
(*Quine ordered pairs*)
5067
62b6288e6005 isatool fixgoal;
wenzelm
parents: 4091
diff changeset
    99
Goalw [quniv_def,QPair_def]
5147
825877190618 More tidying and removal of "\!\!... from Goal commands
paulson
parents: 5137
diff changeset
   100
    "[| a: quniv(A);  b: quniv(A) |] ==> <a;b> : quniv(A)";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   101
by (REPEAT (dtac PowD 1));
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   102
by (REPEAT (ares_tac [PowI, sum_subset_univ] 1));
760
f0200e91b272 added qed and qed_goal[w]
clasohm
parents: 170
diff changeset
   103
qed "QPair_in_quniv";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   104
5067
62b6288e6005 isatool fixgoal;
wenzelm
parents: 4091
diff changeset
   105
Goal "quniv(A) <*> quniv(A) <= quniv(A)";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   106
by (REPEAT (ares_tac [subsetI, QPair_in_quniv] 1
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   107
     ORELSE eresolve_tac [QSigmaE, ssubst] 1));
760
f0200e91b272 added qed and qed_goal[w]
clasohm
parents: 170
diff changeset
   108
qed "QSigma_quniv";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   109
803
4c8333ab3eae changed useless "qed" calls for lemmas back to uses of "result",
lcp
parents: 782
diff changeset
   110
bind_thm ("QSigma_subset_quniv",
1461
6bcb44e4d6e5 expanded tabs
clasohm
parents: 838
diff changeset
   111
          [QSigma_mono, QSigma_quniv] MRS subset_trans);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   112
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   113
(*The opposite inclusion*)
5067
62b6288e6005 isatool fixgoal;
wenzelm
parents: 4091
diff changeset
   114
Goalw [quniv_def,QPair_def]
5147
825877190618 More tidying and removal of "\!\!... from Goal commands
paulson
parents: 5137
diff changeset
   115
    "<a;b> : quniv(A) ==> a: quniv(A) & b: quniv(A)";
129
dc50a4b96d7b expandshort and other trivial changes
lcp
parents: 120
diff changeset
   116
by (etac ([Transset_eclose RS Transset_univ, PowD] MRS 
1461
6bcb44e4d6e5 expanded tabs
clasohm
parents: 838
diff changeset
   117
          Transset_includes_summands RS conjE) 1);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   118
by (REPEAT (ares_tac [conjI,PowI] 1));
760
f0200e91b272 added qed and qed_goal[w]
clasohm
parents: 170
diff changeset
   119
qed "quniv_QPair_D";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   120
803
4c8333ab3eae changed useless "qed" calls for lemmas back to uses of "result",
lcp
parents: 782
diff changeset
   121
bind_thm ("quniv_QPair_E", quniv_QPair_D RS conjE);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   122
5067
62b6288e6005 isatool fixgoal;
wenzelm
parents: 4091
diff changeset
   123
Goal "<a;b> : quniv(A) <-> a: quniv(A) & b: quniv(A)";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   124
by (REPEAT (ares_tac [iffI, QPair_in_quniv, quniv_QPair_D] 1
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   125
     ORELSE etac conjE 1));
760
f0200e91b272 added qed and qed_goal[w]
clasohm
parents: 170
diff changeset
   126
qed "quniv_QPair_iff";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   127
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   128
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   129
(** Quine disjoint sum **)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   130
5137
60205b0de9b9 Huge tidy-up: removal of leading \!\!
paulson
parents: 5067
diff changeset
   131
Goalw [QInl_def] "a: quniv(A) ==> QInl(a) : quniv(A)";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   132
by (REPEAT (ares_tac [zero_in_quniv,QPair_in_quniv] 1));
760
f0200e91b272 added qed and qed_goal[w]
clasohm
parents: 170
diff changeset
   133
qed "QInl_in_quniv";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   134
5137
60205b0de9b9 Huge tidy-up: removal of leading \!\!
paulson
parents: 5067
diff changeset
   135
Goalw [QInr_def] "b: quniv(A) ==> QInr(b) : quniv(A)";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   136
by (REPEAT (ares_tac [one_in_quniv, QPair_in_quniv] 1));
760
f0200e91b272 added qed and qed_goal[w]
clasohm
parents: 170
diff changeset
   137
qed "QInr_in_quniv";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   138
5067
62b6288e6005 isatool fixgoal;
wenzelm
parents: 4091
diff changeset
   139
Goal "quniv(C) <+> quniv(C) <= quniv(C)";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   140
by (REPEAT (ares_tac [subsetI, QInl_in_quniv, QInr_in_quniv] 1
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   141
     ORELSE eresolve_tac [qsumE, ssubst] 1));
760
f0200e91b272 added qed and qed_goal[w]
clasohm
parents: 170
diff changeset
   142
qed "qsum_quniv";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   143
803
4c8333ab3eae changed useless "qed" calls for lemmas back to uses of "result",
lcp
parents: 782
diff changeset
   144
bind_thm ("qsum_subset_quniv", [qsum_mono, qsum_quniv] MRS subset_trans);
4c8333ab3eae changed useless "qed" calls for lemmas back to uses of "result",
lcp
parents: 782
diff changeset
   145
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   146
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   147
(*** The natural numbers ***)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   148
803
4c8333ab3eae changed useless "qed" calls for lemmas back to uses of "result",
lcp
parents: 782
diff changeset
   149
bind_thm ("nat_subset_quniv",
1461
6bcb44e4d6e5 expanded tabs
clasohm
parents: 838
diff changeset
   150
          [nat_subset_univ, univ_subset_quniv] MRS subset_trans);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   151
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   152
(* n:nat ==> n:quniv(A) *)
782
200a16083201 added bind_thm for theorems defined by "standard ..."
clasohm
parents: 760
diff changeset
   153
bind_thm ("nat_into_quniv", (nat_subset_quniv RS subsetD));
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   154
803
4c8333ab3eae changed useless "qed" calls for lemmas back to uses of "result",
lcp
parents: 782
diff changeset
   155
bind_thm ("bool_subset_quniv",
1461
6bcb44e4d6e5 expanded tabs
clasohm
parents: 838
diff changeset
   156
          [bool_subset_univ, univ_subset_quniv] MRS subset_trans);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   157
803
4c8333ab3eae changed useless "qed" calls for lemmas back to uses of "result",
lcp
parents: 782
diff changeset
   158
bind_thm ("bool_into_quniv", bool_subset_quniv RS subsetD);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   159
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   160
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   161
(*** Intersecting <a;b> with Vfrom... ***)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   162
5067
62b6288e6005 isatool fixgoal;
wenzelm
parents: 4091
diff changeset
   163
Goalw [QPair_def,sum_def]
5147
825877190618 More tidying and removal of "\!\!... from Goal commands
paulson
parents: 5137
diff changeset
   164
 "Transset(X) ==>          \
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   165
\      <a;b> Int Vfrom(X, succ(i))  <=  <a Int Vfrom(X,i);  b Int Vfrom(X,i)>";
2033
639de962ded4 Ran expandshort; used stac instead of ssubst
paulson
parents: 1461
diff changeset
   166
by (stac Int_Un_distrib 1);
15
6c6d2f6e3185 ex/{bin.ML,comb.ML,prop.ML}: replaced NewSext by Syntax.simple_sext
lcp
parents: 6
diff changeset
   167
by (rtac Un_mono 1);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   168
by (REPEAT (ares_tac [product_Int_Vfrom_subset RS subset_trans,
1461
6bcb44e4d6e5 expanded tabs
clasohm
parents: 838
diff changeset
   169
                      [Int_lower1, subset_refl] MRS Sigma_mono] 1));
760
f0200e91b272 added qed and qed_goal[w]
clasohm
parents: 170
diff changeset
   170
qed "QPair_Int_Vfrom_succ_subset";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   171
170
590c9d1e0d73 ZF/quniv/QPair_Int_Vset_subset_UN: new, isolates key argument of many
lcp
parents: 129
diff changeset
   172
(**** "Take-lemma" rules for proving a=b by coinduction and c: quniv(A) ****)
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   173
170
590c9d1e0d73 ZF/quniv/QPair_Int_Vset_subset_UN: new, isolates key argument of many
lcp
parents: 129
diff changeset
   174
(*Rule for level i -- preserving the level, not decreasing it*)
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   175
5067
62b6288e6005 isatool fixgoal;
wenzelm
parents: 4091
diff changeset
   176
Goalw [QPair_def]
5147
825877190618 More tidying and removal of "\!\!... from Goal commands
paulson
parents: 5137
diff changeset
   177
 "Transset(X) ==>          \
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   178
\      <a;b> Int Vfrom(X,i)  <=  <a Int Vfrom(X,i);  b Int Vfrom(X,i)>";
15
6c6d2f6e3185 ex/{bin.ML,comb.ML,prop.ML}: replaced NewSext by Syntax.simple_sext
lcp
parents: 6
diff changeset
   179
by (etac (Transset_Vfrom RS Transset_sum_Int_subset) 1);
760
f0200e91b272 added qed and qed_goal[w]
clasohm
parents: 170
diff changeset
   180
qed "QPair_Int_Vfrom_subset";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   181
170
590c9d1e0d73 ZF/quniv/QPair_Int_Vset_subset_UN: new, isolates key argument of many
lcp
parents: 129
diff changeset
   182
(*[| a Int Vset(i) <= c; b Int Vset(i) <= d |] ==> <a;b> Int Vset(i) <= <c;d>*)
803
4c8333ab3eae changed useless "qed" calls for lemmas back to uses of "result",
lcp
parents: 782
diff changeset
   183
bind_thm ("QPair_Int_Vset_subset_trans", 
1461
6bcb44e4d6e5 expanded tabs
clasohm
parents: 838
diff changeset
   184
          [Transset_0 RS QPair_Int_Vfrom_subset, QPair_mono] MRS subset_trans);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   185
5268
59ef39008514 even more tidying of Goal commands
paulson
parents: 5147
diff changeset
   186
Goal "Ord(i) ==> <a;b> Int Vset(i) <= (UN j:i. <a Int Vset(j); b Int Vset(j)>)";
170
590c9d1e0d73 ZF/quniv/QPair_Int_Vset_subset_UN: new, isolates key argument of many
lcp
parents: 129
diff changeset
   187
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
   188
(*0 case*)
2033
639de962ded4 Ran expandshort; used stac instead of ssubst
paulson
parents: 1461
diff changeset
   189
by (stac Vfrom_0 1);
2469
b50b8c0eec01 Implicit simpsets and clasets for FOL and ZF
paulson
parents: 2033
diff changeset
   190
by (Fast_tac 1);
170
590c9d1e0d73 ZF/quniv/QPair_Int_Vset_subset_UN: new, isolates key argument of many
lcp
parents: 129
diff changeset
   191
(*succ(j) case*)
590c9d1e0d73 ZF/quniv/QPair_Int_Vset_subset_UN: new, isolates key argument of many
lcp
parents: 129
diff changeset
   192
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
   193
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
   194
(*Limit(i) case*)
5268
59ef39008514 even more tidying of Goal commands
paulson
parents: 5147
diff changeset
   195
by (asm_simp_tac
6070
032babd0120b ZF: the natural numbers as a datatype
paulson
parents: 5809
diff changeset
   196
    (simpset() addsimps [Limit_Vfrom_eq, Int_UN_distrib, 
5268
59ef39008514 even more tidying of Goal commands
paulson
parents: 5147
diff changeset
   197
			 UN_mono, QPair_Int_Vset_subset_trans]) 1);
760
f0200e91b272 added qed and qed_goal[w]
clasohm
parents: 170
diff changeset
   198
qed "QPair_Int_Vset_subset_UN";