↑ Up

DAT437_1.p

Prepare problem in
SystemB4TPTP
Solve problem in
SystemOnTPTP
Download .tgz
%------------------------------------------------------------------------------
% File     : DAT437_1 : TPTP v10.0.0. Released v10.0.0.
% Domain   : Data Structures
% Problem  : A fact about list concatenation, cons cells and addition.
% Version  : Especial.
% English  :

% Refs     : [HH+21] Hajdu et al. (2021), Inductive Benchmarks for Automate
%          : [Raw26] Rawson (2026), Email to Geoff Sutcliffe
% Source   : [Raw26]
% Names    : list-crafted_assorted-0.p [Raw26]

% Status   : Theorem
% Rating   : ? v10.0.0
% Syntax   : Number of formulae    :   13 (   5 unt;   8 typ;   0 def)
%            Number of atoms       :    5 (   5 equ)
%            Maximal formula atoms :    1 (   1 avg)
%            Number of connectives :    0 (   0   ~;   0   |;   0   &)
%                                         (   0 <=>;   0  =>;   0  <=;   0 <~>)
%            Maximal formula depth :    4 (   3 avg)
%            Maximal term depth    :    6 (   2 avg)
%            Number of types       :    2 (   2 usr;   0 ari;   2 dat;   0 cdt)
%            Number of type conns  :    7 (   4   >;   3   *;   0   +;   0  <<)
%            Number of predicates  :    1 (   0 usr;   0 prp; 2-2 aty)
%            Number of functors    :    6 (   6 usr;   2 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(lst_type,type-datatype,
    lst: $tType ).

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

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

tff(nil_type,type-datatype_constructor,
    nil: lst ).

tff(cons_type,type-datatype_constructor,
    cons: ( nat * lst ) > lst ).

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

tff(app_type,type,
    app: ( lst * lst ) > lst ).

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,
    ! [R: lst] : ( app(nil,R) = R ) ).

tff(4,axiom,
    ! [A: nat,L: lst,R: lst] : ( app(cons(A,L),R) = cons(A,app(L,R)) ) ).

tff(goal,conjecture,
    ! [N: nat,X: lst] : ( app(cons(add(N,s(N)),X),app(X,X)) = app(app(cons(add(s(N),N),X),X),X) ) ).

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