src/HOLCF/Tr.ML
author nipkow
Tue, 09 Jan 2001 15:32:27 +0100
changeset 10834 a7897aebbffc
parent 9245 428385c4bc50
child 11655 923e4d0d36d5
permissions -rw-r--r--
*** empty log message ***
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2640
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
     1
(*  Title:      HOLCF/Tr.ML
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
     2
    ID:         $Id$
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
     3
    Author:     Franz Regensburger
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
     4
    Copyright   1993 Technische Universitaet Muenchen
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
     5
9245
428385c4bc50 removed most batch-style proofs
paulson
parents: 9169
diff changeset
     6
Introduce infix if_then_else_fi and boolean connectives andalso, orelse
2640
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
     7
*)
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
     8
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
     9
(* ------------------------------------------------------------------------ *)
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    10
(* Exhaustion and Elimination for type one                                  *)
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    11
(* ------------------------------------------------------------------------ *)
9245
428385c4bc50 removed most batch-style proofs
paulson
parents: 9169
diff changeset
    12
428385c4bc50 removed most batch-style proofs
paulson
parents: 9169
diff changeset
    13
Goalw [FF_def,TT_def] "t=UU | t = TT | t = FF";
428385c4bc50 removed most batch-style proofs
paulson
parents: 9169
diff changeset
    14
by (lift.induct_tac "t" 1);
428385c4bc50 removed most batch-style proofs
paulson
parents: 9169
diff changeset
    15
by (fast_tac HOL_cs 1);
428385c4bc50 removed most batch-style proofs
paulson
parents: 9169
diff changeset
    16
by (fast_tac (HOL_cs addss simpset()) 1);
428385c4bc50 removed most batch-style proofs
paulson
parents: 9169
diff changeset
    17
qed "Exh_tr";
2640
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    18
9169
85a47aa21f74 tidying and unbatchifying
paulson
parents: 7654
diff changeset
    19
val prems = Goal "[| p=UU ==> Q; p = TT ==>Q; p = FF ==>Q|] ==>Q";
85a47aa21f74 tidying and unbatchifying
paulson
parents: 7654
diff changeset
    20
by (rtac (Exh_tr RS disjE) 1);
85a47aa21f74 tidying and unbatchifying
paulson
parents: 7654
diff changeset
    21
by (eresolve_tac prems 1);
85a47aa21f74 tidying and unbatchifying
paulson
parents: 7654
diff changeset
    22
by (etac disjE 1);
85a47aa21f74 tidying and unbatchifying
paulson
parents: 7654
diff changeset
    23
by (eresolve_tac prems 1);
85a47aa21f74 tidying and unbatchifying
paulson
parents: 7654
diff changeset
    24
by (eresolve_tac prems 1);
85a47aa21f74 tidying and unbatchifying
paulson
parents: 7654
diff changeset
    25
qed "trE";
2640
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    26
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    27
(* ------------------------------------------------------------------------ *) 
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    28
(* tactic for tr-thms with case split                                       *)
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    29
(* ------------------------------------------------------------------------ *)
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    30
7654
57c4cea8b137 bind_thms;
wenzelm
parents: 5143
diff changeset
    31
bind_thms ("tr_defs", [andalso_def,orelse_def,neg_def,ifte_def,TT_def,FF_def]);
2640
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    32
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    33
fun prover t =  prove_goal thy t
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    34
 (fn prems =>
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    35
        [
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    36
        (res_inst_tac [("p","y")] trE 1),
4098
71e05eb27fb6 isatool fixclasimp;
wenzelm
parents: 3038
diff changeset
    37
	(REPEAT(asm_simp_tac (simpset() addsimps 
2640
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    38
		[o_def,flift1_def,flift2_def,inst_lift_po]@tr_defs) 1))
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    39
	]);
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    40
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    41
(* ------------------------------------------------------------------------ *) 
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    42
(* distinctness for type tr                                                 *) 
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    43
(* ------------------------------------------------------------------------ *)
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    44
7654
57c4cea8b137 bind_thms;
wenzelm
parents: 5143
diff changeset
    45
bind_thms ("dist_less_tr", map prover [
2640
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    46
			"~TT << UU",
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    47
			"~FF << UU",
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    48
			"~TT << FF",
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    49
			"~FF << TT"
7654
57c4cea8b137 bind_thms;
wenzelm
parents: 5143
diff changeset
    50
                        ]);
2640
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    51
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    52
val dist_eq_tr = map prover ["TT~=UU","FF~=UU","TT~=FF"];
7654
57c4cea8b137 bind_thms;
wenzelm
parents: 5143
diff changeset
    53
bind_thms ("dist_eq_tr", dist_eq_tr @ (map (fn thm => (thm RS not_sym)) dist_eq_tr));
2640
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    54
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    55
(* ------------------------------------------------------------------------ *) 
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    56
(* lemmas about andalso, orelse, neg and if                                 *) 
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    57
(* ------------------------------------------------------------------------ *)
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    58
7654
57c4cea8b137 bind_thms;
wenzelm
parents: 5143
diff changeset
    59
bind_thms ("andalso_thms", map prover [
2640
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    60
                        "(TT andalso y) = y",
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    61
                        "(FF andalso y) = FF",
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    62
                        "(UU andalso y) = UU",
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    63
			"(y andalso TT) = y",
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    64
		  	"(y andalso y) = y"
7654
57c4cea8b137 bind_thms;
wenzelm
parents: 5143
diff changeset
    65
                        ]);
2640
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    66
7654
57c4cea8b137 bind_thms;
wenzelm
parents: 5143
diff changeset
    67
bind_thms ("orelse_thms", map prover [
2640
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    68
                        "(TT orelse y) = TT",
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    69
                        "(FF orelse y) = y",
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    70
                        "(UU orelse y) = UU",
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    71
                        "(y orelse FF) = y",
7654
57c4cea8b137 bind_thms;
wenzelm
parents: 5143
diff changeset
    72
			"(y orelse y) = y"]);
2640
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    73
7654
57c4cea8b137 bind_thms;
wenzelm
parents: 5143
diff changeset
    74
bind_thms ("neg_thms", map prover [
10834
a7897aebbffc *** empty log message ***
nipkow
parents: 9245
diff changeset
    75
                        "neg$TT = FF",
a7897aebbffc *** empty log message ***
nipkow
parents: 9245
diff changeset
    76
                        "neg$FF = TT",
a7897aebbffc *** empty log message ***
nipkow
parents: 9245
diff changeset
    77
                        "neg$UU = UU"
7654
57c4cea8b137 bind_thms;
wenzelm
parents: 5143
diff changeset
    78
                        ]);
2640
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    79
7654
57c4cea8b137 bind_thms;
wenzelm
parents: 5143
diff changeset
    80
bind_thms ("ifte_thms", map prover [
2640
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    81
                        "If UU then e1 else e2 fi = UU",
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    82
                        "If FF then e1 else e2 fi = e2",
7654
57c4cea8b137 bind_thms;
wenzelm
parents: 5143
diff changeset
    83
                        "If TT then e1 else e2 fi = e1"]);
2640
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    84
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    85
Addsimps (dist_less_tr @ dist_eq_tr @ andalso_thms @ 
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    86
	  orelse_thms @ neg_thms @ ifte_thms);
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    87
3038
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
    88
(* ------------------------------------------------------------------- *)
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
    89
(*  split-tac for If via If2 because the constant has to be a constant *)
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
    90
(* ------------------------------------------------------------------- *)
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
    91
  
5068
fb28eaa07e01 isatool fixgoal;
wenzelm
parents: 4833
diff changeset
    92
Goalw [If2_def] 
3038
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
    93
  "P (If2 Q x y ) = ((Q=UU --> P UU) & (Q=TT --> P x) & (Q=FF --> P y))";
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
    94
by (res_inst_tac [("p","Q")] trE 1);
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
    95
by (REPEAT (Asm_full_simp_tac 1));
4833
2e53109d4bc8 Renamed expand_const -> split_const
nipkow
parents: 4642
diff changeset
    96
qed"split_If2";
2640
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
    97
3038
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
    98
val split_If_tac =
4833
2e53109d4bc8 Renamed expand_const -> split_const
nipkow
parents: 4642
diff changeset
    99
  simp_tac (HOL_basic_ss addsimps [symmetric If2_def]) THEN' (split_tac [split_If2]);
2640
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
   100
3038
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
   101
 
2640
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
   102
3038
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
   103
(* ----------------------------------------------------------------- *)
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
   104
        section"Rewriting of HOLCF operations to HOL functions";
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
   105
(* ----------------------------------------------------------------- *)
2640
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
   106
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
   107
5068
fb28eaa07e01 isatool fixgoal;
wenzelm
parents: 4833
diff changeset
   108
Goal
3038
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
   109
"!!t.[|t~=UU|]==> ((t andalso s)=FF)=(t=FF | s=FF)";
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
   110
by (rtac iffI 1);
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
   111
by (res_inst_tac [("p","t")] trE 1);
4477
b3e5857d8d99 New Auto_tac (by Oheimb), and new syntax (without parens), and expandshort
paulson
parents: 4423
diff changeset
   112
by Auto_tac;
3038
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
   113
by (res_inst_tac [("p","t")] trE 1);
4477
b3e5857d8d99 New Auto_tac (by Oheimb), and new syntax (without parens), and expandshort
paulson
parents: 4423
diff changeset
   114
by Auto_tac;
3038
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
   115
qed"andalso_or";
2640
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
   116
5143
b94cd208f073 Removal of leading "\!\!..." from most Goal commands
paulson
parents: 5068
diff changeset
   117
Goal "[|t~=UU|]==> ((t andalso s)~=FF)=(t~=FF & s~=FF)";
2640
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
   118
by (rtac iffI 1);
3038
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
   119
by (res_inst_tac [("p","t")] trE 1);
4477
b3e5857d8d99 New Auto_tac (by Oheimb), and new syntax (without parens), and expandshort
paulson
parents: 4423
diff changeset
   120
by Auto_tac;
2640
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
   121
by (res_inst_tac [("p","t")] trE 1);
4477
b3e5857d8d99 New Auto_tac (by Oheimb), and new syntax (without parens), and expandshort
paulson
parents: 4423
diff changeset
   122
by Auto_tac;
2640
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
   123
qed"andalso_and";
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
   124
5068
fb28eaa07e01 isatool fixgoal;
wenzelm
parents: 4833
diff changeset
   125
Goal "(Def x ~=FF)= x";
4098
71e05eb27fb6 isatool fixclasimp;
wenzelm
parents: 3038
diff changeset
   126
by (simp_tac (simpset() addsimps [FF_def]) 1);
3038
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
   127
qed"Def_bool1";
2640
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
   128
5068
fb28eaa07e01 isatool fixgoal;
wenzelm
parents: 4833
diff changeset
   129
Goal "(Def x = FF) = (~x)";
4098
71e05eb27fb6 isatool fixclasimp;
wenzelm
parents: 3038
diff changeset
   130
by (simp_tac (simpset() addsimps [FF_def]) 1);
3038
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
   131
qed"Def_bool2";
2640
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
   132
5068
fb28eaa07e01 isatool fixgoal;
wenzelm
parents: 4833
diff changeset
   133
Goal "(Def x = TT) = x";
4098
71e05eb27fb6 isatool fixclasimp;
wenzelm
parents: 3038
diff changeset
   134
by (simp_tac (simpset() addsimps [TT_def]) 1);
3038
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
   135
qed"Def_bool3";
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
   136
5068
fb28eaa07e01 isatool fixgoal;
wenzelm
parents: 4833
diff changeset
   137
Goal "(Def x ~= TT) = (~x)";
4098
71e05eb27fb6 isatool fixclasimp;
wenzelm
parents: 3038
diff changeset
   138
by (simp_tac (simpset() addsimps [TT_def]) 1);
3038
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
   139
qed"Def_bool4";
2640
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
   140
5068
fb28eaa07e01 isatool fixgoal;
wenzelm
parents: 4833
diff changeset
   141
Goal 
2640
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
   142
  "(If Def P then A else B fi)= (if P then A else B)";
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
   143
by (res_inst_tac [("p","Def P")]  trE 1);
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
   144
by (Asm_full_simp_tac 1);
4098
71e05eb27fb6 isatool fixclasimp;
wenzelm
parents: 3038
diff changeset
   145
by (asm_full_simp_tac (simpset() addsimps tr_defs@[flift1_def,o_def]) 1);
71e05eb27fb6 isatool fixclasimp;
wenzelm
parents: 3038
diff changeset
   146
by (asm_full_simp_tac (simpset() addsimps tr_defs@[flift1_def,o_def]) 1);
2640
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
   147
qed"If_and_if";
ee4dfce170a0 Changes of HOLCF from Oscar Slotosch:
slotosch
parents:
diff changeset
   148
3038
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
   149
Addsimps [Def_bool1,Def_bool2,Def_bool3,Def_bool4];
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
   150
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
   151
(* ----------------------------------------------------------------- *)
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
   152
        section"admissibility";
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
   153
(* ----------------------------------------------------------------- *)
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
   154
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
   155
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
   156
(* The following rewrite rules for admissibility should in the future be 
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
   157
   replaced by a more general admissibility test that also checks 
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
   158
   chain-finiteness, of which these lemmata are specific examples *)
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
   159
5068
fb28eaa07e01 isatool fixgoal;
wenzelm
parents: 4833
diff changeset
   160
Goal "x~=FF = (x=TT|x=UU)";
3038
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
   161
by (res_inst_tac [("p","x")] trE 1);
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
   162
by (TRYALL (Asm_full_simp_tac));
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
   163
qed"adm_trick_1";
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
   164
5068
fb28eaa07e01 isatool fixgoal;
wenzelm
parents: 4833
diff changeset
   165
Goal "x~=TT = (x=FF|x=UU)";
3038
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
   166
by (res_inst_tac [("p","x")] trE 1);
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
   167
by (TRYALL (Asm_full_simp_tac));
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
   168
qed"adm_trick_2";
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
   169
7654
57c4cea8b137 bind_thms;
wenzelm
parents: 5143
diff changeset
   170
bind_thms ("adm_tricks", [adm_trick_1,adm_trick_2]);
3038
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
   171
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
   172
5143
b94cd208f073 Removal of leading "\!\!..." from most Goal commands
paulson
parents: 5068
diff changeset
   173
Goal "cont(f) ==> adm (%x. (f x)~=TT)";
3038
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
   174
by (simp_tac (HOL_basic_ss addsimps adm_tricks) 1);
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
   175
by (REPEAT ((resolve_tac (adm_lemmas@cont_lemmas1) 1) ORELSE atac 1));
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
   176
qed"adm_nTT";
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
   177
5143
b94cd208f073 Removal of leading "\!\!..." from most Goal commands
paulson
parents: 5068
diff changeset
   178
Goal "cont(f) ==> adm (%x. (f x)~=FF)";
3038
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
   179
by (simp_tac (HOL_basic_ss addsimps adm_tricks) 1);
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
   180
by (REPEAT ((resolve_tac (adm_lemmas@cont_lemmas1) 1) ORELSE atac 1));
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
   181
qed"adm_nFF";
bb2ded320911 Main changes are:
mueller
parents: 2646
diff changeset
   182
4642
2d3910d6ab10 *** empty log message ***
nipkow
parents: 4477
diff changeset
   183
Addsimps [adm_nTT,adm_nFF];