%------------------------------------------------------------------------------
% File     : DAT001_1 : TPTP v10.0.0. Released v10.0.0.
% Domain   : Data Structures
% Problem  :
% Version  : Especial.
% English  :

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

% Status   : Theorem
% Rating   : ? v10.0.0
% Syntax   : Number of formulae    :   11 (   5 unt;   5 typ;   0 def)
%            Number of atoms       :    7 (   3 equ)
%            Maximal formula atoms :    2 (   1 avg)
%            Number of connectives :    2 (   1   ~;   0   |;   0   &)
%                                         (   1 <=>;   0  =>;   0  <=;   0 <~>)
%            Maximal formula depth :    4 (   3 avg)
%            Maximal term depth    :    5 (   2 avg)
%            Number of types       :    2 (   1 usr;   0 ari;   1 dat;   0 cdt)
%            Number of type conns  :    5 (   3   >;   2   *;   0   +;   0  <<)
%            Number of predicates  :    2 (   1 usr;   0 prp; 2-2 aty)
%            Number of functors    :    3 (   3 usr;   1 con; 0-2 aty)
%            Number of variables   :   10 (  10   !;   0   ?;  10   :)
% SPC      : TF0_THM_EQU_NAR_DAT

% Comments :
%------------------------------------------------------------------------------
tff(nat_type,type-datatype,
    nat: $tType ).

tff(zero_type,type-datatype_constructor,
    zero: nat ).

tff(s_type,type-datatype_constructor,
    s: nat > nat ).

tff(add_type,type,
    add: ( nat * nat ) > nat ).

tff(leq_type,type,
    leq: ( nat * nat ) > $o ).

tff(1,axiom,
    ! [Y: nat] : ( add(zero,Y) = Y ) ).

tff(2,axiom,
    ! [X: nat,Y: nat] : ( add(s(X),Y) = s(add(X,Y)) ) ).

tff(3,axiom,
    ! [Y: nat] : leq(zero,Y) ).

tff(4,axiom,
    ! [X: nat] : ~ leq(s(X),zero) ).

tff(5,axiom,
    ! [X: nat,Y: nat] :
      ( leq(s(X),s(Y))
    <=> leq(X,Y) ) ).

tff(goal,conjecture,
    ! [V0: nat,V1: nat,V2: nat] : ( add(add(add(V2,V1),V1),add(V2,add(add(V1,V0),V1))) = add(add(add(V2,V1),add(V1,add(V1,V1))),add(V2,V0)) ) ).

%------------------------------------------------------------------------------
