src/FOLP/ex/int.ML
author wenzelm
Tue, 10 Jul 2007 23:29:43 +0200
changeset 23719 ccd9cb15c062
parent 18678 dd0c569fa43d
permissions -rw-r--r--
more markup for inner and outer syntax; added enclose;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1464
a608f83e3421 expanded tabs; removed commit() from ROOT.ML
clasohm
parents: 1459
diff changeset
     1
(*  Title:      FOLP/ex/int.ML
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     2
    ID:         $Id$
1459
d12da312eff4 expanded tabs
clasohm
parents: 0
diff changeset
     3
    Author:     Lawrence C Paulson, Cambridge University Computer Laboratory
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     4
    Copyright   1991  University of Cambridge
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     5
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     6
Intuitionistic First-Order Logic
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     7
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     8
Single-step commands:
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
     9
by (IntPr.step_tac 1);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    10
by (biresolve_tac safe_brls 1);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    11
by (biresolve_tac haz_brls 1);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    12
by (assume_tac 1);
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
    13
by (IntPr.safe_tac 1);
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
    14
by (IntPr.mp_tac 1);
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
    15
by (IntPr.fast_tac 1);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    16
*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    17
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    18
(*Note: for PROPOSITIONAL formulae...
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    19
  ~A is classically provable iff it is intuitionistically provable.  
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    20
  Therefore A is classically provable iff ~~A is intuitionistically provable.
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    21
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    22
Let Q be the conjuction of the propositions A|~A, one for each atom A in
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    23
P.  If P is provable classically, then clearly P&Q is provable
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    24
intuitionistically, so ~~(P&Q) is also provable intuitionistically.
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    25
The latter is intuitionistically equivalent to ~~P&~~Q, hence to ~~P,
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    26
since ~~Q is intuitionistically provable.  Finally, if P is a negation then
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    27
~~P is intuitionstically equivalent to P.  [Andy Pitts]
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    28
*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    29
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
    30
goal (theory "IFOLP") "?p : ~~(P&Q) <-> ~~P & ~~Q";
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
    31
by (IntPr.fast_tac 1);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    32
result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    33
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
    34
goal (theory "IFOLP") "?p : ~~~P <-> ~P";
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
    35
by (IntPr.fast_tac 1);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    36
result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    37
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
    38
goal (theory "IFOLP") "?p : ~~((P --> Q | R)  -->  (P-->Q) | (P-->R))";
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
    39
by (IntPr.fast_tac 1);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    40
result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    41
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
    42
goal (theory "IFOLP") "?p : (P<->Q) <-> (Q<->P)";
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
    43
by (IntPr.fast_tac 1);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    44
result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    45
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    46
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    47
writeln"Lemmas for the propositional double-negation translation";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    48
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
    49
goal (theory "IFOLP") "?p : P --> ~~P";
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
    50
by (IntPr.fast_tac 1);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    51
result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    52
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
    53
goal (theory "IFOLP") "?p : ~~(~~P --> P)";
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
    54
by (IntPr.fast_tac 1);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    55
result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    56
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
    57
goal (theory "IFOLP") "?p : ~~P & ~~(P --> Q) --> ~~Q";
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
    58
by (IntPr.fast_tac 1);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    59
result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    60
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    61
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    62
writeln"The following are classically but not constructively valid.";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    63
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    64
(*The attempt to prove them terminates quickly!*)
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
    65
goal (theory "IFOLP") "?p : ((P-->Q) --> P)  -->  P";
18678
dd0c569fa43d sane ERROR handling;
wenzelm
parents: 17480
diff changeset
    66
by (IntPr.fast_tac 1) handle ERROR _ => writeln"Failed, as expected";  
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    67
(*Check that subgoals remain: proof failed.*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    68
getgoal 1;  
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    69
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
    70
goal (theory "IFOLP") "?p : (P&Q-->R)  -->  (P-->R) | (Q-->R)";
18678
dd0c569fa43d sane ERROR handling;
wenzelm
parents: 17480
diff changeset
    71
by (IntPr.fast_tac 1) handle ERROR _ => writeln"Failed, as expected";  
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    72
getgoal 1;  
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    73
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    74
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    75
writeln"Intuitionistic FOL: propositional problems based on Pelletier.";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    76
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    77
writeln"Problem ~~1";
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
    78
goal (theory "IFOLP") "?p : ~~((P-->Q)  <->  (~Q --> ~P))";
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
    79
by (IntPr.fast_tac 1);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    80
result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    81
(*5 secs*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    82
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    83
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    84
writeln"Problem ~~2";
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
    85
goal (theory "IFOLP") "?p : ~~(~~P  <->  P)";
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
    86
by (IntPr.fast_tac 1);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    87
result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    88
(*1 secs*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    89
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    90
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    91
writeln"Problem 3";
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
    92
goal (theory "IFOLP") "?p : ~(P-->Q) --> (Q-->P)";
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
    93
by (IntPr.fast_tac 1);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    94
result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    95
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    96
writeln"Problem ~~4";
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
    97
goal (theory "IFOLP") "?p : ~~((~P-->Q)  <->  (~Q --> P))";
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
    98
by (IntPr.fast_tac 1);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    99
result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   100
(*9 secs*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   101
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   102
writeln"Problem ~~5";
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
   103
goal (theory "IFOLP") "?p : ~~((P|Q-->P|R) --> P|(Q-->R))";
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
   104
by (IntPr.fast_tac 1);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   105
result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   106
(*10 secs*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   107
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   108
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   109
writeln"Problem ~~6";
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
   110
goal (theory "IFOLP") "?p : ~~(P | ~P)";
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
   111
by (IntPr.fast_tac 1);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   112
result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   113
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   114
writeln"Problem ~~7";
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
   115
goal (theory "IFOLP") "?p : ~~(P | ~~~P)";
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
   116
by (IntPr.fast_tac 1);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   117
result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   118
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   119
writeln"Problem ~~8.  Peirce's law";
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
   120
goal (theory "IFOLP") "?p : ~~(((P-->Q) --> P)  -->  P)";
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
   121
by (IntPr.fast_tac 1);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   122
result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   123
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   124
writeln"Problem 9";
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
   125
goal (theory "IFOLP") "?p : ((P|Q) & (~P|Q) & (P| ~Q)) --> ~ (~P | ~Q)";
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
   126
by (IntPr.fast_tac 1);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   127
result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   128
(*9 secs*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   129
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   130
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   131
writeln"Problem 10";
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
   132
goal (theory "IFOLP") "?p : (Q-->R) --> (R-->P&Q) --> (P-->(Q|R)) --> (P<->Q)";
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
   133
by (IntPr.fast_tac 1);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   134
result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   135
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   136
writeln"11.  Proved in each direction (incorrectly, says Pelletier!!) ";
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
   137
goal (theory "IFOLP") "?p : P<->P";
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
   138
by (IntPr.fast_tac 1);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   139
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   140
writeln"Problem ~~12.  Dijkstra's law  ";
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
   141
goal (theory "IFOLP") "?p : ~~(((P <-> Q) <-> R)  <->  (P <-> (Q <-> R)))";
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
   142
by (IntPr.fast_tac 1);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   143
result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   144
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
   145
goal (theory "IFOLP") "?p : ((P <-> Q) <-> R)  -->  ~~(P <-> (Q <-> R))";
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
   146
by (IntPr.fast_tac 1);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   147
result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   148
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   149
writeln"Problem 13.  Distributive law";
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
   150
goal (theory "IFOLP") "?p : P | (Q & R)  <-> (P | Q) & (P | R)";
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
   151
by (IntPr.fast_tac 1);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   152
result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   153
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   154
writeln"Problem ~~14";
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
   155
goal (theory "IFOLP") "?p : ~~((P <-> Q) <-> ((Q | ~P) & (~Q|P)))";
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
   156
by (IntPr.fast_tac 1);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   157
result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   158
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   159
writeln"Problem ~~15";
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
   160
goal (theory "IFOLP") "?p : ~~((P --> Q) <-> (~P | Q))";
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
   161
by (IntPr.fast_tac 1);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   162
result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   163
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   164
writeln"Problem ~~16";
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
   165
goal (theory "IFOLP") "?p : ~~((P-->Q) | (Q-->P))";
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
   166
by (IntPr.fast_tac 1);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   167
result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   168
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   169
writeln"Problem ~~17";
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
   170
goal (theory "IFOLP")
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   171
  "?p : ~~(((P & (Q-->R))-->S) <-> ((~P | Q | S) & (~P | ~R | S)))";
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
   172
by (IntPr.fast_tac 1);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   173
(*over 5 minutes?? -- printing the proof term takes 40 secs!!*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   174
result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   175
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   176
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   177
writeln"** Examples with quantifiers **";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   178
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   179
writeln"The converse is classical in the following implications...";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   180
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
   181
goal (theory "IFOLP") "?p : (EX x. P(x)-->Q)  -->  (ALL x. P(x)) --> Q";
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
   182
by (IntPr.fast_tac 1); 
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   183
result();  
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   184
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
   185
goal (theory "IFOLP") "?p : ((ALL x. P(x))-->Q) --> ~ (ALL x. P(x) & ~Q)";
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
   186
by (IntPr.fast_tac 1); 
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   187
result();  
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   188
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
   189
goal (theory "IFOLP") "?p : ((ALL x. ~P(x))-->Q)  -->  ~ (ALL x. ~ (P(x)|Q))";
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
   190
by (IntPr.fast_tac 1); 
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   191
result();  
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   192
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
   193
goal (theory "IFOLP") "?p : (ALL x. P(x)) | Q  -->  (ALL x. P(x) | Q)";
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
   194
by (IntPr.fast_tac 1); 
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   195
result();  
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   196
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
   197
goal (theory "IFOLP") "?p : (EX x. P --> Q(x)) --> (P --> (EX x. Q(x)))";
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
   198
by (IntPr.fast_tac 1);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   199
result();  
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   200
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   201
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   202
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   203
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   204
writeln"The following are not constructively valid!";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   205
(*The attempt to prove them terminates quickly!*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   206
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
   207
goal (theory "IFOLP") "?p : ((ALL x. P(x))-->Q) --> (EX x. P(x)-->Q)";
18678
dd0c569fa43d sane ERROR handling;
wenzelm
parents: 17480
diff changeset
   208
by (IntPr.fast_tac 1) handle ERROR _ => writeln"Failed, as expected";  
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   209
getgoal 1; 
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   210
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
   211
goal (theory "IFOLP") "?p : (P --> (EX x. Q(x))) --> (EX x. P-->Q(x))";
18678
dd0c569fa43d sane ERROR handling;
wenzelm
parents: 17480
diff changeset
   212
by (IntPr.fast_tac 1) handle ERROR _ => writeln"Failed, as expected";  
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   213
getgoal 1; 
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   214
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
   215
goal (theory "IFOLP") "?p : (ALL x. P(x) | Q) --> ((ALL x. P(x)) | Q)";
18678
dd0c569fa43d sane ERROR handling;
wenzelm
parents: 17480
diff changeset
   216
by (IntPr.fast_tac 1) handle ERROR _ => writeln"Failed, as expected";  
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   217
getgoal 1; 
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   218
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
   219
goal (theory "IFOLP") "?p : (ALL x. ~~P(x)) --> ~~(ALL x. P(x))";
18678
dd0c569fa43d sane ERROR handling;
wenzelm
parents: 17480
diff changeset
   220
by (IntPr.fast_tac 1) handle ERROR _ => writeln"Failed, as expected";  
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   221
getgoal 1; 
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   222
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   223
(*Classically but not intuitionistically valid.  Proved by a bug in 1986!*)
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
   224
goal (theory "IFOLP") "?p : EX x. Q(x) --> (ALL x. Q(x))";
18678
dd0c569fa43d sane ERROR handling;
wenzelm
parents: 17480
diff changeset
   225
by (IntPr.fast_tac 1) handle ERROR _ => writeln"Failed, as expected";  
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   226
getgoal 1; 
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   227
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   228
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   229
writeln"Hard examples with quantifiers";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   230
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   231
(*The ones that have not been proved are not known to be valid!
15661
9ef583b08647 reverted renaming of Some/None in comments and strings;
wenzelm
parents: 15531
diff changeset
   232
  Some will require quantifier duplication -- not currently available*)
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   233
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   234
writeln"Problem ~~18";
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
   235
goal (theory "IFOLP") "?p : ~~(EX y. ALL x. P(y)-->P(x))";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   236
(*NOT PROVED*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   237
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   238
writeln"Problem ~~19";
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
   239
goal (theory "IFOLP") "?p : ~~(EX x. ALL y z. (P(y)-->Q(z)) --> (P(x)-->Q(x)))";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   240
(*NOT PROVED*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   241
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   242
writeln"Problem 20";
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
   243
goal (theory "IFOLP") "?p : (ALL x y. EX z. ALL w. (P(x)&Q(y)-->R(z)&S(w)))     \
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   244
\   --> (EX x y. P(x) & Q(y)) --> (EX z. R(z))";
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
   245
by (IntPr.fast_tac 1); 
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   246
result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   247
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   248
writeln"Problem 21";
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
   249
goal (theory "IFOLP")
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   250
    "?p : (EX x. P-->Q(x)) & (EX x. Q(x)-->P) --> ~~(EX x. P<->Q(x))";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   251
(*NOT PROVED*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   252
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   253
writeln"Problem 22";
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
   254
goal (theory "IFOLP") "?p : (ALL x. P <-> Q(x))  -->  (P <-> (ALL x. Q(x)))";
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
   255
by (IntPr.fast_tac 1); 
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   256
result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   257
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   258
writeln"Problem ~~23";
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
   259
goal (theory "IFOLP") "?p : ~~ ((ALL x. P | Q(x))  <->  (P | (ALL x. Q(x))))";
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
   260
by (IntPr.best_tac 1);  
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   261
result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   262
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   263
writeln"Problem 24";
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
   264
goal (theory "IFOLP") "?p : ~(EX x. S(x)&Q(x)) & (ALL x. P(x) --> Q(x)|R(x)) &  \
3836
f1a1817659e6 fixed dots;
wenzelm
parents: 2603
diff changeset
   265
\    (~(EX x. P(x)) --> (EX x. Q(x))) & (ALL x. Q(x)|R(x) --> S(x))  \
2573
f3e04805895a Correction to Problem 24 (with unsatisfactory proof)
paulson
parents: 1464
diff changeset
   266
\   --> ~~(EX x. P(x)&R(x))";
f3e04805895a Correction to Problem 24 (with unsatisfactory proof)
paulson
parents: 1464
diff changeset
   267
(*Not clear why fast_tac, best_tac, ASTAR and ITER_DEEPEN all take forever*)
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
   268
by IntPr.safe_tac; 
2573
f3e04805895a Correction to Problem 24 (with unsatisfactory proof)
paulson
parents: 1464
diff changeset
   269
by (etac impE 1);
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
   270
by (IntPr.fast_tac 1); 
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
   271
by (IntPr.fast_tac 1); 
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   272
result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   273
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   274
writeln"Problem 25";
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
   275
goal (theory "IFOLP") "?p : (EX x. P(x)) &  \
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   276
\       (ALL x. L(x) --> ~ (M(x) & R(x))) &  \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   277
\       (ALL x. P(x) --> (M(x) & L(x))) &   \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   278
\       ((ALL x. P(x)-->Q(x)) | (EX x. P(x)&R(x)))  \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   279
\   --> (EX x. Q(x)&P(x))";
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
   280
by (IntPr.best_tac 1);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   281
result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   282
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   283
writeln"Problem 29.  Essentially the same as Principia Mathematica *11.71";
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
   284
goal (theory "IFOLP") "?p : (EX x. P(x)) & (EX y. Q(y))  \
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   285
\   --> ((ALL x. P(x)-->R(x)) & (ALL y. Q(y)-->S(y))   <->     \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   286
\        (ALL x y. P(x) & Q(y) --> R(x) & S(y)))";
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
   287
by (IntPr.fast_tac 1); 
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   288
result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   289
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   290
writeln"Problem ~~30";
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
   291
goal (theory "IFOLP") "?p : (ALL x. (P(x) | Q(x)) --> ~ R(x)) & \
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   292
\       (ALL x. (Q(x) --> ~ S(x)) --> P(x) & R(x))  \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   293
\   --> (ALL x. ~~S(x))";
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
   294
by (IntPr.fast_tac 1);  
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   295
result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   296
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   297
writeln"Problem 31";
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
   298
goal (theory "IFOLP") "?p : ~(EX x. P(x) & (Q(x) | R(x))) & \
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   299
\       (EX x. L(x) & P(x)) & \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   300
\       (ALL x. ~ R(x) --> M(x))  \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   301
\   --> (EX x. L(x) & M(x))";
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
   302
by (IntPr.fast_tac 1);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   303
result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   304
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   305
writeln"Problem 32";
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
   306
goal (theory "IFOLP") "?p : (ALL x. P(x) & (Q(x)|R(x))-->S(x)) & \
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   307
\       (ALL x. S(x) & R(x) --> L(x)) & \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   308
\       (ALL x. M(x) --> R(x))  \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   309
\   --> (ALL x. P(x) & M(x) --> L(x))";
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
   310
by (IntPr.best_tac 1);  (*SLOW*)
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   311
result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   312
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   313
writeln"Problem 39";
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
   314
goal (theory "IFOLP") "?p : ~ (EX x. ALL y. F(y,x) <-> ~F(y,y))";
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
   315
by (IntPr.fast_tac 1);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   316
result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   317
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   318
writeln"Problem 40.  AMENDED";
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
   319
goal (theory "IFOLP") "?p : (EX y. ALL x. F(x,y) <-> F(x,x)) -->  \
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   320
\             ~(ALL x. EX y. ALL z. F(z,y) <-> ~ F(z,x))";
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
   321
by (IntPr.fast_tac 1);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   322
result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   323
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   324
writeln"Problem 44";
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
   325
goal (theory "IFOLP") "?p : (ALL x. f(x) -->                                   \
1459
d12da312eff4 expanded tabs
clasohm
parents: 0
diff changeset
   326
\             (EX y. g(y) & h(x,y) & (EX y. g(y) & ~ h(x,y))))  &       \
d12da312eff4 expanded tabs
clasohm
parents: 0
diff changeset
   327
\             (EX x. j(x) & (ALL y. g(y) --> h(x,y)))                   \
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   328
\             --> (EX x. j(x) & ~f(x))";
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
   329
by (IntPr.fast_tac 1);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   330
result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   331
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   332
writeln"Problem 48";
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
   333
goal (theory "IFOLP") "?p : (a=b | c=d) & (a=c | b=d) --> a=d | b=c";
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
   334
by (IntPr.fast_tac 1);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   335
result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   336
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   337
writeln"Problem 51";
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
   338
goal (theory "IFOLP")
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   339
    "?p : (EX z w. ALL x y. P(x,y) <->  (x=z & y=w)) -->  \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   340
\    (EX z. ALL x. EX w. (ALL y. P(x,y) <-> y=w) <-> x=z)";
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
   341
by (IntPr.best_tac 1);  (*60 seconds*)
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   342
result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   343
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   344
writeln"Problem 56";
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
   345
goal (theory "IFOLP")
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   346
    "?p : (ALL x. (EX y. P(y) & x=f(y)) --> P(x)) <-> (ALL x. P(x) --> P(f(x)))";
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
   347
by (IntPr.fast_tac 1);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   348
result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   349
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   350
writeln"Problem 57";
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
   351
goal (theory "IFOLP")
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   352
    "?p : P(f(a,b), f(b,c)) & P(f(b,c), f(a,c)) & \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   353
\    (ALL x y z. P(x,y) & P(y,z) --> P(x,z))    -->   P(f(a,b), f(a,c))";
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
   354
by (IntPr.fast_tac 1);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   355
result();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   356
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   357
writeln"Problem 60";
17480
fd19f77dcf60 converted to Isar theory format;
wenzelm
parents: 15661
diff changeset
   358
goal (theory "IFOLP")
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   359
    "?p : ALL x. P(x,f(x)) <-> (EX y. (ALL z. P(z,y) --> P(z,f(x))) & P(x,y))";
2603
4988dda71c0b Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents: 2573
diff changeset
   360
by (IntPr.fast_tac 1);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
   361
result();