↑ Up

DAT449_1.p

Prepare problem in
SystemB4TPTP
Solve problem in
SystemOnTPTP
Download .tgz
%------------------------------------------------------------------------------
% File     : DAT449_1 : TPTP v10.0.0. Released v10.0.0.
% Domain   : Data Structures
% Problem  : A list whose self-concatenation has unchanged length is empty.
% 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-12.p [Raw26]

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

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

tff(lst_type,type-datatype,
    lst: $tType ).

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

tff(zero_type,type-datatype_constructor,
    zero: 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(mul_type,type,
    mul: ( nat * nat ) > nat ).

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

tff(len_type,type,
    len: lst > nat ).

tff(outOfBounds_type,type,
    outOfBounds: nat > nat ).

tff(get_type,type,
    get: ( lst * nat ) > nat ).

tff(cnt_type,type,
    cnt: ( lst * nat ) > nat ).

tff(rev_type,type,
    rev: lst > lst ).

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

tff(less_type,type,
    less: ( nat * nat ) > $o ).

tff(pref_type,type,
    pref: ( lst * lst ) > $o ).

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

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

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

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

tff(5,axiom,
    ! [X: nat] :
      ( leq(zero,X)
    <=> $true ) ).

tff(6,axiom,
    ! [X: nat] :
      ( leq(s(X),zero)
    <=> $false ) ).

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

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

tff(9,axiom,
    ! [R: lst] : ( app(nil,R) = R ) ).

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

tff(11,axiom,
    ! [X: lst] : pref(nil,X) ).

tff(12,axiom,
    ! [A: nat,X: lst] : ~ pref(cons(A,X),nil) ).

tff(13,axiom,
    ! [A: nat,B: nat,X: lst,Y: lst] :
      ( pref(cons(A,X),cons(B,Y))
    <=> ( ( A = B )
        & pref(X,Y) ) ) ).

tff(14,axiom,
    len(nil) = zero ).

tff(15,axiom,
    ! [E: nat,L: lst] : ( len(cons(E,L)) = s(len(L)) ) ).

tff(16,axiom,
    ! [Tail: lst,X: nat] : ( get(cons(X,Tail),zero) = X ) ).

tff(17,axiom,
    ! [I: nat,Tail: lst,X: nat] : ( get(cons(X,Tail),s(I)) = get(Tail,I) ) ).

tff(18,axiom,
    ! [I: nat] : ( get(nil,I) = outOfBounds(I) ) ).

tff(19,axiom,
    ! [X: nat] : ( cnt(nil,X) = zero ) ).

tff(20,axiom,
    ! [E: nat,Tail: lst,X: nat] :
      ( ( E != X )
     => ( cnt(cons(E,Tail),X) = cnt(Tail,E) ) ) ).

tff(21,axiom,
    ! [E: nat,Tail: lst] : ( cnt(cons(E,Tail),E) = s(cnt(Tail,E)) ) ).

tff(22,axiom,
    ! [X: nat,Xs: lst] : ( rev(cons(X,Xs)) = app(rev(Xs),cons(X,nil)) ) ).

tff(23,axiom,
    rev(nil) = nil ).

tff(goal,conjecture,
    ! [X: lst] :
      ( ( len(app(X,X)) = len(X) )
     => ( X = nil ) ) ).

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