summaryrefslogtreecommitdiff
path: root/test/regress/regress0/tptp/SYN000_1.p
blob: ed683c0702ee53116f1a1ae48399fe91d0c30040 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
%------------------------------------------------------------------------------
% File     : SYN000_1 : TPTP v5.5.0. Released v5.0.0.
% Domain   : Syntactic
% Problem  : Basic TPTP TFF syntax without arithmetic
% Version  : Biased.
% English  : Basic TPTP TFF syntax that you can't survive without parsing.

% Refs     :
% Source   : [TPTP]
% Names    :

% Status   : Theorem
% Rating   : 0.40 v5.5.0, 0.25 v5.4.0, 0.33 v5.2.0, 0.67 v5.0.0
% Syntax   : Number of formulae    :   38 (  21 unit;  25 type)
%            Number of atoms       :   74 (   3 equality)
%            Maximal formula depth :    7 (   3 average)
%            Number of connectives :   28 (   9   ~;  10   |;   3   &)
%                                         (   1 <=>;   3  =>;   1  <=;   1 <~>)
%                                         (   0  ~|;   0  ~&)
%            Number of type conns  :   17 (  10   >;   7   *;   0   +;   0  <<)
%            Number of predicates  :   37 (  30 propositional; 0-3 arity)
%            Number of functors    :   10 (   6 constant; 0-3 arity)
%            Number of variables   :   14 (   1 sgn;   6   !;   8   ?)
%            Maximal term depth    :    4 (   2 average)
% SPC      : TFF_THM_EQU_NAR

% Comments :
%------------------------------------------------------------------------------
%----Propositional
tff(p0_type,type,(
    p0: $o )).

tff(q0_type,type,(
    q0: $o )).

tff(r0_type,type,(
    r0: $o )).

tff(s0_type,type,(
    s0: $o )).

tff(propositional,axiom,
    ( ( p0
      & ~ q0 )
   => ( r0
      | ~ s0 ) )).

%----First-order
tff(a_type,type,(
    a: $i )).

tff(b_type,type,(
    b: $i )).

tff(h_type,type,(
    h: $i )).

tff(f_type,type,(
    f: $i > $i )).

tff(g_type,type,(
    g: ( $i * $i * $i ) > $i )).

tff(p_type,type,(
    p: $i > $o )).

tff(q_type,type,(
    q: ( $i * $i ) > $o )).

tff(r_type,type,(
    r: ( $i * $i * $i ) > $o )).

tff(s_type,type,(
    s: $i > $o )).

tff(first_order,axiom,(
    ! [X: $i] :
      ( ( p(X)
        | ~ q(X,a) )
     => ? [Y: $i,Z: $i] :
          ( r(X,f(Y),g(X,f(Y),Z))
          & ~ s(f(f(f(b)))) ) ) )).

%----Equality
tff(equality,axiom,(
    ? [Y: $i] :
    ! [X: $i,Z: $i] :
      ( f(Y) = g(X,f(Y),Z)
      | f(f(f(b))) != a
      | X = f(Y) ) )).

%----True and false
tff(true_false,axiom,
    ( $true
    | $false )).

tff(quoted_proposition_type,type,(
    'A proposition': $o )).

tff(quoted_predicate_type,type,(
    'A predicate': $i > $o )).

tff(quoted_constant_type,type,(
    'A constant': $i )).

tff(quoted_function_type,type,(
    'A function': $i > $i )).

tff(quoted_escape_type,type,(
    'A \'quoted \\ escape\'': $i )).

%----Quoted symbols
tff(single_quoted,axiom,
    ( 'A proposition'
    | 'A predicate'(a)
    | p('A constant')
    | p('A function'(a))
    | p('A \'quoted \\ escape\'') )).

%----Connectives - seen |, &, =>, ~ already
tff(useful_connectives,axiom,(
    ! [X: $i] :
      ( ( p(X)
       <= ~ q(X,a) )
    <=> ? [Y: $i,Z: $i] :
          ( r(X,f(Y),g(X,f(Y),Z))
        <~> ~ s(f(f(f(b)))) ) ) )).

%----New types
tff(new_type,type,(
    new: $tType )).

tff(newc_type,type,(
    newc: new )).

tff(newf_type,type,(
    newf: ( new * $i ) > new )).

tff(newp_type,type,(
    newp: ( new * $i ) > $o )).

tff(new_axiom,axiom,(
    ! [X: new] : newp(newf(newc,a),a) )).

%----Annotated formula names
tff(123,axiom,(
    ! [X: $i] :
      ( ( p(X)
        | ~ q(X,a) )
     => ? [Y: $i,Z: $i] :
          ( r(X,f(Y),g(X,f(Y),Z))
          & ~ s(f(f(f(b)))) ) ) )).

%----Roles
tff(role_hypothesis,hypothesis,(
    p(h) )).

tff(role_conjecture,conjecture,(
    ? [X: $i] : p(X) )).

%----Include directive
include('Axioms/SYN000_0.ax').

%----Comments
/* This
   is a block
   comment.
*/

%------------------------------------------------------------------------------
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback