%------------------------------------------------------------------------------
% File : NUN145_1 : TPTP v10.0.0. Released v10.0.0.
% Domain : Data Structures
% Problem : A product is even if either factor is even.
% 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_even-1.p [Raw26]
% Status : Theorem
% Rating : ? v10.0.0
% Syntax : Number of formulae : 14 ( 6 unt; 6 typ; 0 def)
% Number of atoms : 11 ( 4 equ)
% Maximal formula atoms : 3 ( 1 avg)
% Number of connectives : 4 ( 1 ~; 1 |; 0 &)
% ( 1 <=>; 1 =>; 0 <=; 0 <~>)
% Maximal formula depth : 5 ( 3 avg)
% Maximal term depth : 3 ( 2 avg)
% Number of types : 2 ( 1 usr; 0 ari; 1 dat; 0 cdt)
% Number of type conns : 6 ( 4 >; 2 *; 0 +; 0 <<)
% Number of predicates : 2 ( 1 usr; 0 prp; 1-2 aty)
% Number of functors : 4 ( 4 usr; 1 con; 0-2 aty)
% Number of variables : 9 ( 9 !; 0 ?; 9 :)
% 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(even_type,type,
even: nat > $o ).
tff(mul_type,type,
mul: ( nat * nat ) > nat ).
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,
even(zero) ).
tff(4,axiom,
~ even(s(zero)) ).
tff(5,axiom,
! [X: nat] :
( even(s(s(X)))
<=> even(X) ) ).
tff(6,axiom,
! [Y: nat] : ( mul(zero,Y) = zero ) ).
tff(7,axiom,
! [X: nat,Y: nat] : ( mul(s(X),Y) = add(mul(X,Y),Y) ) ).
tff(goal,conjecture,
! [X: nat,Y: nat] :
( ( even(X)
| even(Y) )
=> even(mul(X,Y)) ) ).
%------------------------------------------------------------------------------