%------------------------------------------------------------------------------
% File : NUN143_1 : TPTP v10.0.0. Released v10.0.0.
% Domain : Data Structures
% Problem : Three numbers are equal when the first two equal the last two.
% Version : Especial.
% English :
% Refs : [HH+21] Hajdu et al. (2021), Inductive Benchmarks for Automate
% : [Raw26] Rawson (2026), Email to Geoff Sutcliffe
% Source : [Raw26]
% Names : nat-crafted_equal-3.p [Raw26]
% Status : Theorem
% Rating : ? v10.0.0
% Syntax : Number of formulae : 11 ( 0 unt; 4 typ; 0 def)
% Number of atoms : 15 ( 2 equ)
% Maximal formula atoms : 3 ( 2 avg)
% Number of connectives : 9 ( 1 ~; 0 |; 1 &)
% ( 7 <=>; 0 =>; 0 <=; 0 <~>)
% Maximal formula depth : 6 ( 4 avg)
% Maximal term depth : 2 ( 1 avg)
% Number of types : 2 ( 1 usr; 0 ari; 1 dat; 0 cdt)
% Number of type conns : 4 ( 2 >; 2 *; 0 +; 0 <<)
% Number of predicates : 3 ( 1 usr; 1 prp; 0-3 aty)
% Number of functors : 2 ( 2 usr; 1 con; 0-1 aty)
% Number of variables : 14 ( 14 !; 0 ?; 14 :)
% 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(equal_type,type,
equal: ( nat * nat * nat ) > $o ).
tff(1,axiom,
( equal(zero,zero,zero)
<=> ~ $false ) ).
tff(2,axiom,
! [Y: nat,Z: nat] :
( equal(zero,s(Y),Z)
<=> $false ) ).
tff(3,axiom,
! [Y: nat,Z: nat] :
( equal(zero,Y,s(Z))
<=> $false ) ).
tff(4,axiom,
! [X: nat,Z: nat] :
( equal(s(X),zero,Z)
<=> $false ) ).
tff(5,axiom,
! [X: nat,Y: nat] :
( equal(s(X),Y,zero)
<=> $false ) ).
tff(6,axiom,
! [X: nat,Y: nat,Z: nat] :
( equal(s(X),s(Y),s(Z))
<=> equal(X,Y,Z) ) ).
tff(goal,conjecture,
! [X: nat,Y: nat,Z: nat] :
( equal(X,Y,Z)
<=> ( ( X = Y )
& ( Y = Z ) ) ) ).
%------------------------------------------------------------------------------