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