%------------------------------------------------------------------------------
% File : DAT463_1 : TPTP v10.0.0. Released v10.0.0.
% Domain : Data Structures
% Problem : List concatenation is associative (special case).
% 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_reverse_expressions-3.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 ( 2 avg)
% Maximal term depth : 4 ( 2 avg)
% Number of types : 2 ( 2 usr; 0 ari; 2 dat; 0 cdt)
% Number of type conns : 6 ( 4 >; 2 *; 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 : 7 ( 7 !; 0 ?; 7 :)
% 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(app_type,type,
app: ( lst * lst ) > lst ).
tff(rev_type,type,
rev: lst > lst ).
tff(1,axiom,
! [R: lst] : ( app(nil,R) = R ) ).
tff(2,axiom,
! [A: nat,L: lst,R: lst] : ( app(cons(A,L),R) = cons(A,app(L,R)) ) ).
tff(3,axiom,
rev(nil) = nil ).
tff(4,axiom,
! [X: nat,Xs: lst] : ( rev(cons(X,Xs)) = app(rev(Xs),cons(X,nil)) ) ).
tff(goal,conjecture,
! [X: lst] : ( app(X,app(rev(X),X)) = app(app(X,rev(X)),X) ) ).
%------------------------------------------------------------------------------