TPTP Problem File: COM047_5.p

View Solutions - Solve Problem

%------------------------------------------------------------------------------
% File     : COM047_5 : TPTP v8.2.0. Released v6.0.0.
% Domain   : Number Theory
% Problem  : Quantifier elimination for Presburger arithmetic line 87
% Version  : Especial.
% English  : 

% Refs     : [BN10]  Boehme & Nipkow (2010), Sledgehammer: Judgement Day
%          : [Nip08] Nipkow (2008), Linear Quantifier Elimination
%          : [Bla13] Blanchette (2011), Email to Geoff Sutcliffe
% Source   : [Bla13]
% Names    : qe_87 [Bla13]

% Status   : ContradictoryAxioms
% Rating   : 0.00 v8.1.0, 0.33 v7.4.0, 0.25 v7.1.0, 0.33 v6.4.0
% Syntax   : Number of formulae    :  185 (  78 unt;  61 typ;   0 def)
%            Number of atoms       :  201 ( 118 equ)
%            Maximal formula atoms :    6 (   1 avg)
%            Number of connectives :  115 (  38   ~;  12   |;  16   &)
%                                         (  18 <=>;  31  =>;   0  <=;   0 <~>)
%            Maximal formula depth :   11 (   5 avg)
%            Maximal term depth    :    7 (   2 avg)
%            Number of types       :    5 (   4 usr)
%            Number of type conns  :   76 (  38   >;  38   *;   0   +;   0  <<)
%            Number of predicates  :   15 (  14 usr;   0 prp; 1-3 aty)
%            Number of functors    :   43 (  43 usr;  10 con; 0-6 aty)
%            Number of variables   :  407 ( 356   !;   7   ?; 407   :)
%                                         (  44  !>;   0  ?*;   0  @-;   0  @+)
% SPC      : TF1_THM_EQU_NAR

% Comments : This file was generated by Isabelle (most likely Sledgehammer)
%            2011-12-13 16:17:09
%------------------------------------------------------------------------------
%----Should-be-implicit typings (6)
tff(ty_tc_HOL_Obool,type,
    bool: $tType ).

tff(ty_tc_Int_Oint,type,
    int: $tType ).

tff(ty_tc_List_Olist,type,
    list: $tType > $tType ).

tff(ty_tc_Nat_Onat,type,
    nat: $tType ).

tff(ty_tc_PresArith_Oatom,type,
    atom: $tType ).

tff(ty_tc_fun,type,
    fun: ( $tType * $tType ) > $tType ).

%----Explicit typings (55)
tff(sy_cl_Groups_Oone,type,
    one: 
      !>[A: $tType] : $o ).

tff(sy_cl_Rings_Oring,type,
    ring: 
      !>[A: $tType] : $o ).

tff(sy_cl_Groups_Ozero,type,
    zero: 
      !>[A: $tType] : $o ).

tff(sy_cl_Rings_Ozero__neq__one,type,
    zero_neq_one: 
      !>[A: $tType] : $o ).

tff(sy_cl_Divides_Osemiring__div,type,
    semiring_div: 
      !>[A: $tType] : $o ).

tff(sy_c_COMBB,type,
    combb: 
      !>[B: $tType,C: $tType,A: $tType] : ( ( fun(B,C) * fun(A,B) ) > fun(A,C) ) ).

tff(sy_c_COMBK,type,
    combk: 
      !>[A: $tType,B: $tType] : fun(A,fun(B,A)) ).

tff(sy_c_COMBS,type,
    combs: 
      !>[A: $tType,B: $tType,C: $tType] : ( ( fun(A,fun(B,C)) * fun(A,B) ) > fun(A,C) ) ).

tff(sy_c_Divides_Odiv__class_Omod,type,
    div_mod: 
      !>[A: $tType] : ( ( A * A ) > A ) ).

tff(sy_c_Groups_Oone__class_Oone,type,
    one_one: 
      !>[A: $tType] : A ).

tff(sy_c_Groups_Ozero__class_Ozero,type,
    zero_zero: 
      !>[A: $tType] : A ).

tff(sy_c_HOL_Oequal__class_Oequal,type,
    equal_equal: 
      !>[A: $tType] : ( ( A * A ) > $o ) ).

tff(sy_c_ListVector_Oiprod,type,
    iprod: 
      !>[A: $tType] : ( ( list(A) * list(A) ) > A ) ).

tff(sy_c_ListVector_Ozipwith0,type,
    zipwith0: 
      !>[A: $tType,B: $tType,C: $tType] : ( ( fun(A,fun(B,C)) * list(A) * list(B) ) > list(C) ) ).

tff(sy_c_List_OListMem,type,
    listMem: 
      !>[A: $tType] : ( ( A * list(A) ) > $o ) ).

tff(sy_c_List_Oinsert,type,
    insert: 
      !>[A: $tType] : ( ( A * list(A) ) > list(A) ) ).

tff(sy_c_List_Olist_OCons,type,
    cons: 
      !>[A: $tType] : ( ( A * list(A) ) > list(A) ) ).

tff(sy_c_List_Olist_ONil,type,
    nil: 
      !>[A: $tType] : list(A) ).

tff(sy_c_List_Olist_Olist__case,type,
    list_case: 
      !>[T: $tType,A: $tType] : ( ( T * fun(A,fun(list(A),T)) * list(A) ) > T ) ).

tff(sy_c_List_Olist_Olist__rec,type,
    list_rec: 
      !>[T: $tType,A: $tType] : ( ( T * fun(A,fun(list(A),fun(T,T))) * list(A) ) > T ) ).

tff(sy_c_List_Olist_Olist__size,type,
    list_size: 
      !>[A: $tType] : ( ( fun(A,nat) * list(A) ) > nat ) ).

tff(sy_c_List_Olist__all,type,
    list_all: 
      !>[A: $tType] : ( ( fun(A,bool) * list(A) ) > $o ) ).

tff(sy_c_List_Olist__ex1,type,
    list_ex1: 
      !>[A: $tType] : ( ( fun(A,bool) * list(A) ) > $o ) ).

tff(sy_c_List_Omember,type,
    member1: 
      !>[A: $tType] : ( ( list(A) * A ) > $o ) ).

tff(sy_c_List_Onull,type,
    null: 
      !>[A: $tType] : ( list(A) > $o ) ).

tff(sy_c_List_Osplice,type,
    splice: 
      !>[A: $tType] : ( ( list(A) * list(A) ) > list(A) ) ).

tff(sy_c_List_Osublist,type,
    sublist: 
      !>[A: $tType] : ( ( list(A) * fun(nat,bool) ) > list(A) ) ).

tff(sy_c_List_Otl,type,
    tl: 
      !>[A: $tType] : ( list(A) > list(A) ) ).

tff(sy_c_Nat_Osize__class_Osize,type,
    size_size: 
      !>[A: $tType] : ( A > nat ) ).

tff(sy_c_PresArith_OI_092_060_094isub_062Z,type,
    i_Z: ( atom * list(int) ) > $o ).

tff(sy_c_PresArith_Oasubst,type,
    asubst: ( int * list(int) * atom ) > atom ).

tff(sy_c_PresArith_Oatom_ODvd,type,
    dvd: ( int * int * list(int) ) > atom ).

tff(sy_c_PresArith_Oatom_OLe,type,
    c_PresArith_Oatom_OLe: ( int * list(int) ) > atom ).

tff(sy_c_PresArith_Oatom_ONDvd,type,
    nDvd: ( int * int * list(int) ) > atom ).

tff(sy_c_PresArith_Oatom_Oatom__case,type,
    atom_case: 
      !>[T: $tType] : ( ( fun(int,fun(list(int),T)) * fun(int,fun(int,fun(list(int),T))) * fun(int,fun(int,fun(list(int),T))) * atom ) > T ) ).

tff(sy_c_PresArith_Oatom_Oatom__rec,type,
    atom_rec: 
      !>[T: $tType] : ( ( fun(int,fun(list(int),T)) * fun(int,fun(int,fun(list(int),T))) * fun(int,fun(int,fun(list(int),T))) * atom ) > T ) ).

tff(sy_c_PresArith_Oatom_Oatom__size,type,
    atom_size: atom > nat ).

tff(sy_c_PresArith_Odecr_092_060_094isub_062Z,type,
    decr_Z: atom > atom ).

tff(sy_c_PresArith_Odivisor,type,
    divisor: atom > int ).

tff(sy_c_PresArith_Ohd__coeff,type,
    hd_coeff: atom > int ).

tff(sy_c_PresArith_Ohd__coeff1,type,
    hd_coeff1: ( int * atom ) > atom ).

tff(sy_c_aa,type,
    aa: 
      !>[A: $tType,B: $tType] : ( ( fun(A,B) * A ) > B ) ).

tff(sy_c_fFalse,type,
    fFalse: bool ).

tff(sy_c_fNot,type,
    fNot: fun(bool,bool) ).

tff(sy_c_fTrue,type,
    fTrue: bool ).

tff(sy_c_fdisj,type,
    fdisj: fun(bool,fun(bool,bool)) ).

tff(sy_c_fequal,type,
    fequal: 
      !>[A: $tType] : ( A > fun(A,bool) ) ).

tff(sy_c_member,type,
    member: 
      !>[A: $tType] : ( ( A * fun(A,bool) ) > $o ) ).

tff(sy_c_pp,type,
    pp: bool > $o ).

tff(sy_v_a,type,
    a: atom ).

tff(sy_v_e,type,
    e: list(int) ).

tff(sy_v_i,type,
    i: int ).

tff(sy_v_int______,type,
    int1: int ).

tff(sy_v_j,type,
    j: int ).

tff(sy_v_list______,type,
    list1: list(int) ).

%----Relevant facts (98)
tff(fact_0_Le,axiom,
    a = c_PresArith_Oatom_OLe(int1,list1) ).

tff(fact_1_assms_I3_J,axiom,
    div_mod(int,i,divisor(a)) = div_mod(int,j,divisor(a)) ).

tff(fact_2_list_Oinject,axiom,
    ! [A: $tType,List3: list(A),A5: A,Lista: list(A),Aa: A] :
      ( ( cons(A,Aa,Lista) = cons(A,A5,List3) )
    <=> ( ( Aa = A5 )
        & ( Lista = List3 ) ) ) ).

tff(fact_3_assms_I1_J,axiom,
    pp(atom_case(bool,aa(fun(list(int),bool),fun(int,fun(list(int),bool)),combk(fun(list(int),bool),int),aa(bool,fun(list(int),bool),combk(bool,list(int)),fFalse)),aa(fun(int,fun(list(int),bool)),fun(int,fun(int,fun(list(int),bool))),combk(fun(int,fun(list(int),bool)),int),aa(fun(list(int),bool),fun(int,fun(list(int),bool)),combk(fun(list(int),bool),int),aa(bool,fun(list(int),bool),combk(bool,list(int)),fTrue))),aa(fun(int,fun(list(int),bool)),fun(int,fun(int,fun(list(int),bool))),combk(fun(int,fun(list(int),bool)),int),aa(fun(list(int),bool),fun(int,fun(list(int),bool)),combk(fun(list(int),bool),int),aa(bool,fun(list(int),bool),combk(bool,list(int)),fTrue))),a)) ).

tff(fact_4_assms_I2_J,axiom,
    hd_coeff(a) = one_one(int) ).

tff(fact_5_not__Cons__self,axiom,
    ! [A: $tType,X: A,Xs: list(A)] : Xs != cons(A,X,Xs) ).

tff(fact_6_not__Cons__self2,axiom,
    ! [A: $tType,Xs: list(A),X: A] : cons(A,X,Xs) != Xs ).

tff(fact_7_list_Osimps_I5_J,axiom,
    ! [A: $tType,B: $tType,Lista: list(B),Aa: B,F2: fun(B,fun(list(B),A)),F1: A] : list_case(A,B,F1,F2,cons(B,Aa,Lista)) = aa(list(B),A,aa(B,fun(list(B),A),F2,Aa),Lista) ).

tff(fact_8_splice_Osimps_I3_J,axiom,
    ! [A: $tType,Ys: list(A),Y: A,Xs: list(A),X: A] : splice(A,cons(A,X,Xs),cons(A,Y,Ys)) = cons(A,X,cons(A,Y,splice(A,Xs,Ys))) ).

tff(fact_9_list_Orecs_I2_J,axiom,
    ! [A: $tType,B: $tType,Lista: list(B),Aa: B,F2: fun(B,fun(list(B),fun(A,A))),F1: A] : list_rec(A,B,F1,F2,cons(B,Aa,Lista)) = aa(A,A,aa(list(B),fun(A,A),aa(B,fun(list(B),fun(A,A)),F2,Aa),Lista),list_rec(A,B,F1,F2,Lista)) ).

tff(fact_10_null__rec_I1_J,axiom,
    ! [A: $tType,Xs: list(A),X: A] : ~ null(A,cons(A,X,Xs)) ).

tff(fact_11_zipwith0_Osimps_I2_J,axiom,
    ! [B: $tType,A: $tType,C: $tType] :
      ( ( zero(C)
        & zero(B) )
     => ! [Ys1: list(C),Y1: C,Xs1: list(B),X2: B,F: fun(B,fun(C,A))] : zipwith0(B,C,A,F,cons(B,X2,Xs1),cons(C,Y1,Ys1)) = cons(A,aa(C,A,aa(B,fun(C,A),F,X2),Y1),zipwith0(B,C,A,F,Xs1,Ys1)) ) ).

tff(fact_12_elem,axiom,
    ! [A: $tType,Xs: list(A),X: A] : listMem(A,X,cons(A,X,Xs)) ).

tff(fact_13_insert,axiom,
    ! [A: $tType,Y: A,Xs: list(A),X: A] :
      ( listMem(A,X,Xs)
     => listMem(A,X,cons(A,Y,Xs)) ) ).

tff(fact_14_divisor_Osimps_I1_J,axiom,
    ! [Ks1: list(int),I1: int] : divisor(c_PresArith_Oatom_OLe(I1,Ks1)) = one_one(int) ).

tff(fact_15_atom_Osimps_I1_J,axiom,
    ! [List3: list(int),Int4: int,Lista: list(int),Inta: int] :
      ( ( c_PresArith_Oatom_OLe(Inta,Lista) = c_PresArith_Oatom_OLe(Int4,List3) )
    <=> ( ( Inta = Int4 )
        & ( Lista = List3 ) ) ) ).

tff(fact_16_atom_Osimps_I10_J,axiom,
    ! [A: $tType,Lista: list(int),Inta: int,F3: fun(int,fun(int,fun(list(int),A))),F2: fun(int,fun(int,fun(list(int),A))),F1: fun(int,fun(list(int),A))] : atom_case(A,F1,F2,F3,c_PresArith_Oatom_OLe(Inta,Lista)) = aa(list(int),A,aa(int,fun(list(int),A),F1,Inta),Lista) ).

tff(fact_17_mod__mod__trivial,axiom,
    ! [A: $tType] :
      ( semiring_div(A)
     => ! [B1: A,A1: A] : div_mod(A,div_mod(A,A1,B1),B1) = div_mod(A,A1,B1) ) ).

tff(fact_18_one__reorient,axiom,
    ! [A: $tType] :
      ( one(A)
     => ! [X2: A] :
          ( ( one_one(A) = X2 )
        <=> ( X2 = one_one(A) ) ) ) ).

tff(fact_19_ListMem_Osimps,axiom,
    ! [A: $tType,A21: list(A),A11: A] :
      ( listMem(A,A11,A21)
    <=> ( ? [X3: A,Xs3: list(A)] :
            ( ( A11 = X3 )
            & ( A21 = cons(A,X3,Xs3) ) )
        | ? [X3: A,Xs3: list(A),Y2: A] :
            ( ( A11 = X3 )
            & ( A21 = cons(A,Y2,Xs3) )
            & listMem(A,X3,Xs3) ) ) ) ).

tff(fact_20_member__rec_I1_J,axiom,
    ! [A: $tType,Y1: A,Xs1: list(A),X2: A] :
      ( member1(A,cons(A,X2,Xs1),Y1)
    <=> ( ( X2 = Y1 )
        | member1(A,Xs1,Y1) ) ) ).

tff(fact_21_splice_Osimps_I2_J,axiom,
    ! [A: $tType,Va: list(A),V: A] : splice(A,cons(A,V,Va),nil(A)) = cons(A,V,Va) ).

tff(fact_22_zipwith0_Osimps_I1_J,axiom,
    ! [C: $tType,B: $tType,A: $tType] :
      ( ( zero(B)
        & zero(C) )
     => ! [F: fun(B,fun(C,A))] : zipwith0(B,C,A,F,nil(B),nil(C)) = nil(A) ) ).

tff(fact_23_member__rec_I2_J,axiom,
    ! [A: $tType,Y: A] : ~ member1(A,nil(A),Y) ).

tff(fact_24_list_Osimps_I2_J,axiom,
    ! [A: $tType,List1: list(A),A4: A] : nil(A) != cons(A,A4,List1) ).

tff(fact_25_list_Osimps_I3_J,axiom,
    ! [A: $tType,List1: list(A),A4: A] : cons(A,A4,List1) != nil(A) ).

tff(fact_26_list_Osimps_I4_J,axiom,
    ! [B: $tType,A: $tType,F2: fun(B,fun(list(B),A)),F1: A] : list_case(A,B,F1,F2,nil(B)) = F1 ).

tff(fact_27_eq__Nil__null,axiom,
    ! [A: $tType,Xs1: list(A)] :
      ( ( Xs1 = nil(A) )
    <=> null(A,Xs1) ) ).

tff(fact_28_splice__Nil2,axiom,
    ! [A: $tType,Xs: list(A)] : splice(A,Xs,nil(A)) = Xs ).

tff(fact_29_splice_Osimps_I1_J,axiom,
    ! [A: $tType,Ys: list(A)] : splice(A,nil(A),Ys) = Ys ).

tff(fact_30_List_Onull__def,axiom,
    ! [A: $tType,Xs1: list(A)] :
      ( null(A,Xs1)
    <=> ( Xs1 = nil(A) ) ) ).

tff(fact_31_null__rec_I2_J,axiom,
    ! [B: $tType] : null(B,nil(B)) ).

tff(fact_32_list_Orecs_I1_J,axiom,
    ! [B: $tType,A: $tType,F2: fun(B,fun(list(B),fun(A,A))),F1: A] : list_rec(A,B,F1,F2,nil(B)) = F1 ).

tff(fact_33_neq__Nil__conv,axiom,
    ! [A: $tType,Xs1: list(A)] :
      ( ( Xs1 != nil(A) )
    <=> ? [Y2: A,Ys2: list(A)] : Xs1 = cons(A,Y2,Ys2) ) ).

tff(fact_34_list_Oexhaust,axiom,
    ! [A: $tType,Y: list(A)] :
      ( ( Y != nil(A) )
     => ~ ! [A3: A,List: list(A)] : Y != cons(A,A3,List) ) ).

tff(fact_35_insert__Nil,axiom,
    ! [A: $tType,X: A] : insert(A,X,nil(A)) = cons(A,X,nil(A)) ).

tff(fact_36_equal__Nil__null,axiom,
    ! [A: $tType,Xs1: list(A)] :
      ( equal_equal(list(A),Xs1,nil(A))
    <=> null(A,Xs1) ) ).

tff(fact_37_zipwith0_Osimps_I3_J,axiom,
    ! [B: $tType,A: $tType,C: $tType] :
      ( ( zero(C)
        & zero(B) )
     => ! [Xs1: list(B),X2: B,F: fun(B,fun(C,A))] : zipwith0(B,C,A,F,cons(B,X2,Xs1),nil(C)) = cons(A,aa(C,A,aa(B,fun(C,A),F,X2),zero_zero(C)),zipwith0(B,C,A,F,Xs1,nil(C))) ) ).

tff(fact_38_zipwith0_Osimps_I4_J,axiom,
    ! [B: $tType,A: $tType,C: $tType] :
      ( ( zero(C)
        & zero(B) )
     => ! [Ys1: list(C),Y1: C,F: fun(B,fun(C,A))] : zipwith0(B,C,A,F,nil(B),cons(C,Y1,Ys1)) = cons(A,aa(C,A,aa(B,fun(C,A),F,zero_zero(B)),Y1),zipwith0(B,C,A,F,nil(B),Ys1)) ) ).

tff(fact_39_list__ex1__simps_I1_J,axiom,
    ! [A: $tType,P1: fun(A,bool)] : ~ list_ex1(A,P1,nil(A)) ).

tff(fact_40_zmod__zero,axiom,
    ! [B1: int] : div_mod(int,zero_zero(int),B1) = zero_zero(int) ).

tff(fact_41_zmod__self,axiom,
    ! [A1: int] : div_mod(int,A1,A1) = zero_zero(int) ).

tff(fact_42_mod__0,axiom,
    ! [A: $tType] :
      ( semiring_div(A)
     => ! [A1: A] : div_mod(A,zero_zero(A),A1) = zero_zero(A) ) ).

tff(fact_43_mod__self,axiom,
    ! [A: $tType] :
      ( semiring_div(A)
     => ! [A1: A] : div_mod(A,A1,A1) = zero_zero(A) ) ).

tff(fact_44_hd__coeff_Osimps_I1_J,axiom,
    ! [Ks2: list(int),Ia: int] : hd_coeff(c_PresArith_Oatom_OLe(Ia,Ks2)) = list_case(int,int,zero_zero(int),combk(int,list(int)),Ks2) ).

tff(fact_45_mod__by__1,axiom,
    ! [A: $tType] :
      ( semiring_div(A)
     => ! [A1: A] : div_mod(A,A1,one_one(A)) = zero_zero(A) ) ).

tff(fact_46_zero__reorient,axiom,
    ! [A: $tType] :
      ( zero(A)
     => ! [X2: A] :
          ( ( zero_zero(A) = X2 )
        <=> ( X2 = zero_zero(A) ) ) ) ).

tff(fact_47_equal__list__def,axiom,
    ! [A: $tType,Y1: list(A),X2: list(A)] :
      ( equal_equal(list(A),X2,Y1)
    <=> ( X2 = Y1 ) ) ).

tff(fact_48_mod__by__0,axiom,
    ! [A: $tType] :
      ( semiring_div(A)
     => ! [A1: A] : div_mod(A,A1,zero_zero(A)) = A1 ) ).

tff(fact_49_atom_Osize_I1_J,axiom,
    ! [List2: list(int),Int3: int] : atom_size(c_PresArith_Oatom_OLe(Int3,List2)) = zero_zero(nat) ).

tff(fact_50_atom_Osize_I4_J,axiom,
    ! [List2: list(int),Int3: int] : size_size(atom,c_PresArith_Oatom_OLe(Int3,List2)) = zero_zero(nat) ).

tff(fact_51_zero__neq__one,axiom,
    ! [A: $tType] :
      ( zero_neq_one(A)
     => ( zero_zero(A) != one_one(A) ) ) ).

tff(fact_52_one__neq__zero,axiom,
    ! [A: $tType] :
      ( zero_neq_one(A)
     => ( one_one(A) != zero_zero(A) ) ) ).

tff(fact_53_list__ex1__simps_I2_J,axiom,
    ! [A: $tType,Xs1: list(A),X2: A,P1: fun(A,bool)] :
      ( list_ex1(A,P1,cons(A,X2,Xs1))
    <=> ( ( pp(aa(A,bool,P1,X2))
         => list_all(A,combs(A,bool,bool,combb(bool,fun(bool,bool),A,fdisj,combb(bool,bool,A,fNot,P1)),fequal(A,X2)),Xs1) )
        & ( ~ pp(aa(A,bool,P1,X2))
         => list_ex1(A,P1,Xs1) ) ) ) ).

tff(fact_54_list__all__simps_I1_J,axiom,
    ! [A: $tType,Xs1: list(A),X2: A,P1: fun(A,bool)] :
      ( list_all(A,P1,cons(A,X2,Xs1))
    <=> ( pp(aa(A,bool,P1,X2))
        & list_all(A,P1,Xs1) ) ) ).

tff(fact_55_list__all__simps_I2_J,axiom,
    ! [A: $tType,P1: fun(A,bool)] : list_all(A,P1,nil(A)) ).

tff(fact_56_hd__coeff_Osimps_I3_J,axiom,
    ! [Ks2: list(int),Ia: int,D1: int] : hd_coeff(nDvd(D1,Ia,Ks2)) = list_case(int,int,zero_zero(int),combk(int,list(int)),Ks2) ).

tff(fact_57_hd__coeff_Osimps_I2_J,axiom,
    ! [Ks2: list(int),Ia: int,D1: int] : hd_coeff(dvd(D1,Ia,Ks2)) = list_case(int,int,zero_zero(int),combk(int,list(int)),Ks2) ).

tff(fact_58_sublist__singleton,axiom,
    ! [A: $tType,X2: A,A2: fun(nat,bool)] :
      ( ( member(nat,zero_zero(nat),A2)
       => ( sublist(A,cons(A,X2,nil(A)),A2) = cons(A,X2,nil(A)) ) )
      & ( ~ member(nat,zero_zero(nat),A2)
       => ( sublist(A,cons(A,X2,nil(A)),A2) = nil(A) ) ) ) ).

tff(fact_59_atom_Osimps_I2_J,axiom,
    ! [List3: list(int),Int24: int,Int14: int,Lista: list(int),Int2: int,Int1: int] :
      ( ( dvd(Int1,Int2,Lista) = dvd(Int14,Int24,List3) )
    <=> ( ( Int1 = Int14 )
        & ( Int2 = Int24 )
        & ( Lista = List3 ) ) ) ).

tff(fact_60_atom_Osimps_I3_J,axiom,
    ! [List3: list(int),Int24: int,Int14: int,Lista: list(int),Int2: int,Int1: int] :
      ( ( nDvd(Int1,Int2,Lista) = nDvd(Int14,Int24,List3) )
    <=> ( ( Int1 = Int14 )
        & ( Int2 = Int24 )
        & ( Lista = List3 ) ) ) ).

tff(fact_61_sublist__nil,axiom,
    ! [A: $tType,A2: fun(nat,bool)] : sublist(A,nil(A),A2) = nil(A) ).

tff(fact_62_atom_Osize_I5_J,axiom,
    ! [List2: list(int),Int23: int,Int13: int] : size_size(atom,dvd(Int13,Int23,List2)) = zero_zero(nat) ).

tff(fact_63_atom_Osize_I2_J,axiom,
    ! [List2: list(int),Int23: int,Int13: int] : atom_size(dvd(Int13,Int23,List2)) = zero_zero(nat) ).

tff(fact_64_atom_Osize_I6_J,axiom,
    ! [List2: list(int),Int23: int,Int13: int] : size_size(atom,nDvd(Int13,Int23,List2)) = zero_zero(nat) ).

tff(fact_65_atom_Osize_I3_J,axiom,
    ! [List2: list(int),Int23: int,Int13: int] : atom_size(nDvd(Int13,Int23,List2)) = zero_zero(nat) ).

tff(fact_66_divisor_Osimps_I2_J,axiom,
    ! [Ks1: list(int),I1: int,D: int] : divisor(dvd(D,I1,Ks1)) = D ).

tff(fact_67_divisor_Osimps_I3_J,axiom,
    ! [Ks1: list(int),I1: int,D: int] : divisor(nDvd(D,I1,Ks1)) = D ).

tff(fact_68_atom_Osimps_I9_J,axiom,
    ! [List2: list(int),Int23: int,Int13: int,List1: list(int),Int22: int,Int12: int] : nDvd(Int12,Int22,List1) != dvd(Int13,Int23,List2) ).

tff(fact_69_atom_Osimps_I8_J,axiom,
    ! [List1: list(int),Int22: int,Int12: int,List2: list(int),Int23: int,Int13: int] : dvd(Int13,Int23,List2) != nDvd(Int12,Int22,List1) ).

tff(fact_70_atom_Osimps_I4_J,axiom,
    ! [List1: list(int),Int22: int,Int12: int,List2: list(int),Int3: int] : c_PresArith_Oatom_OLe(Int3,List2) != dvd(Int12,Int22,List1) ).

tff(fact_71_atom_Osimps_I5_J,axiom,
    ! [List2: list(int),Int3: int,List1: list(int),Int22: int,Int12: int] : dvd(Int12,Int22,List1) != c_PresArith_Oatom_OLe(Int3,List2) ).

tff(fact_72_atom_Osimps_I6_J,axiom,
    ! [List1: list(int),Int22: int,Int12: int,List2: list(int),Int3: int] : c_PresArith_Oatom_OLe(Int3,List2) != nDvd(Int12,Int22,List1) ).

tff(fact_73_mem__def,axiom,
    ! [A: $tType,A2: fun(A,bool),X2: A] :
      ( member(A,X2,A2)
    <=> pp(aa(A,bool,A2,X2)) ) ).

tff(fact_74_atom_Osimps_I7_J,axiom,
    ! [List2: list(int),Int3: int,List1: list(int),Int22: int,Int12: int] : nDvd(Int12,Int22,List1) != c_PresArith_Oatom_OLe(Int3,List2) ).

tff(fact_75_atom_Osimps_I11_J,axiom,
    ! [A: $tType,Lista: list(int),Int2: int,Int1: int,F3: fun(int,fun(int,fun(list(int),A))),F2: fun(int,fun(int,fun(list(int),A))),F1: fun(int,fun(list(int),A))] : atom_case(A,F1,F2,F3,dvd(Int1,Int2,Lista)) = aa(list(int),A,aa(int,fun(list(int),A),aa(int,fun(int,fun(list(int),A)),F2,Int1),Int2),Lista) ).

tff(fact_76_atom_Osimps_I12_J,axiom,
    ! [A: $tType,Lista: list(int),Int2: int,Int1: int,F3: fun(int,fun(int,fun(list(int),A))),F2: fun(int,fun(int,fun(list(int),A))),F1: fun(int,fun(list(int),A))] : atom_case(A,F1,F2,F3,nDvd(Int1,Int2,Lista)) = aa(list(int),A,aa(int,fun(list(int),A),aa(int,fun(int,fun(list(int),A)),F3,Int1),Int2),Lista) ).

tff(fact_77_Z_Onot__dep__decr,axiom,
    ! [Xs1: list(int),X2: int,Aa: atom] :
      ( ( hd_coeff(Aa) = zero_zero(int) )
     => ( i_Z(Aa,cons(int,X2,Xs1))
      <=> i_Z(decr_Z(Aa),Xs1) ) ) ).

tff(fact_78_atom_Oexhaust,axiom,
    ! [Y: atom] :
      ( ! [Int: int,List: list(int)] : Y != c_PresArith_Oatom_OLe(Int,List)
     => ( ! [Int11: int,Int21: int,List: list(int)] : Y != dvd(Int11,Int21,List)
       => ~ ! [Int11: int,Int21: int,List: list(int)] : Y != nDvd(Int11,Int21,List) ) ) ).

tff(fact_79_list_Osize_I1_J,axiom,
    ! [A: $tType,Fa: fun(A,nat)] : list_size(A,Fa,nil(A)) = zero_zero(nat) ).

tff(fact_80_Z_Oanormal__decr,axiom,
    ! [A1: atom] :
      ( ( hd_coeff(A1) = zero_zero(int) )
     => ( ( divisor(A1) != zero_zero(int) )
       => ( divisor(decr_Z(A1)) != zero_zero(int) ) ) ) ).

tff(fact_81_iprod__Nil2,axiom,
    ! [A: $tType] :
      ( ring(A)
     => ! [Xs: list(A)] : iprod(A,Xs,nil(A)) = zero_zero(A) ) ).

tff(fact_82_iprod__Nil,axiom,
    ! [A: $tType] :
      ( ring(A)
     => ! [Ys: list(A)] : iprod(A,nil(A),Ys) = zero_zero(A) ) ).

tff(fact_83_atom_Orecs_I3_J,axiom,
    ! [A: $tType,Lista: list(int),Int2: int,Int1: int,F3: fun(int,fun(int,fun(list(int),A))),F2: fun(int,fun(int,fun(list(int),A))),F1: fun(int,fun(list(int),A))] : atom_rec(A,F1,F2,F3,nDvd(Int1,Int2,Lista)) = aa(list(int),A,aa(int,fun(list(int),A),aa(int,fun(int,fun(list(int),A)),F3,Int1),Int2),Lista) ).

tff(fact_84_atom_Orecs_I2_J,axiom,
    ! [A: $tType,Lista: list(int),Int2: int,Int1: int,F3: fun(int,fun(int,fun(list(int),A))),F2: fun(int,fun(int,fun(list(int),A))),F1: fun(int,fun(list(int),A))] : atom_rec(A,F1,F2,F3,dvd(Int1,Int2,Lista)) = aa(list(int),A,aa(int,fun(list(int),A),aa(int,fun(int,fun(list(int),A)),F2,Int1),Int2),Lista) ).

tff(fact_85_atom_Orecs_I1_J,axiom,
    ! [A: $tType,Lista: list(int),Inta: int,F3: fun(int,fun(int,fun(list(int),A))),F2: fun(int,fun(int,fun(list(int),A))),F1: fun(int,fun(list(int),A))] : atom_rec(A,F1,F2,F3,c_PresArith_Oatom_OLe(Inta,Lista)) = aa(list(int),A,aa(int,fun(list(int),A),F1,Inta),Lista) ).

tff(fact_86_list__nonempty__induct,axiom,
    ! [A: $tType,P1: fun(list(A),bool),Xs1: list(A)] :
      ( ( Xs1 != nil(A) )
     => ( ! [X1: A] : pp(aa(list(A),bool,P1,cons(A,X1,nil(A))))
       => ( ! [X1: A,Xs2: list(A)] :
              ( ( Xs2 != nil(A) )
             => ( pp(aa(list(A),bool,P1,Xs2))
               => pp(aa(list(A),bool,P1,cons(A,X1,Xs2))) ) )
         => pp(aa(list(A),bool,P1,Xs1)) ) ) ) ).

tff(fact_87_decr_092_060_094isub_062Z_Osimps_I3_J,axiom,
    ! [Ks1: list(int),I1: int,D: int] : decr_Z(nDvd(D,I1,Ks1)) = nDvd(D,I1,tl(int,Ks1)) ).

tff(fact_88_tl_Osimps_I1_J,axiom,
    ! [A: $tType] : tl(A,nil(A)) = nil(A) ).

tff(fact_89_decr_092_060_094isub_062Z_Osimps_I1_J,axiom,
    ! [Ks1: list(int),I1: int] : decr_Z(c_PresArith_Oatom_OLe(I1,Ks1)) = c_PresArith_Oatom_OLe(I1,tl(int,Ks1)) ).

tff(fact_90_decr_092_060_094isub_062Z_Osimps_I2_J,axiom,
    ! [Ks1: list(int),I1: int,D: int] : decr_Z(dvd(D,I1,Ks1)) = dvd(D,I1,tl(int,Ks1)) ).

tff(fact_91_tl_Osimps_I2_J,axiom,
    ! [A: $tType,Xs: list(A),X: A] : tl(A,cons(A,X,Xs)) = Xs ).

tff(fact_92_asubst_Osimps_I6_J,axiom,
    ! [Va: int,V: int,Ks: list(int),I: int] : asubst(I,Ks,nDvd(V,Va,nil(int))) = nDvd(V,Va,nil(int)) ).

tff(fact_93_hd__coeff1_Osimps_I6_J,axiom,
    ! [Va: int,V: int,Uu: int] : hd_coeff1(Uu,nDvd(V,Va,nil(int))) = nDvd(V,Va,nil(int)) ).

tff(fact_94_divisor__asubst,axiom,
    ! [A1: atom,Ks1: list(int),I1: int] : divisor(asubst(I1,Ks1,A1)) = divisor(A1) ).

tff(fact_95_hd__coeff1_Osimps_I4_J,axiom,
    ! [V: int,Uu: int] : hd_coeff1(Uu,c_PresArith_Oatom_OLe(V,nil(int))) = c_PresArith_Oatom_OLe(V,nil(int)) ).

tff(fact_96_asubst_Osimps_I4_J,axiom,
    ! [V: int,Ks: list(int),I: int] : asubst(I,Ks,c_PresArith_Oatom_OLe(V,nil(int))) = c_PresArith_Oatom_OLe(V,nil(int)) ).

tff(fact_97_hd__coeff1_Osimps_I5_J,axiom,
    ! [Va: int,V: int,Uu: int] : hd_coeff1(Uu,dvd(V,Va,nil(int))) = dvd(V,Va,nil(int)) ).

%----Arities (9)
tff(arity_Int_Oint___Divides_Osemiring__div,axiom,
    semiring_div(int) ).

tff(arity_Int_Oint___Rings_Ozero__neq__one,axiom,
    zero_neq_one(int) ).

tff(arity_Int_Oint___Groups_Ozero,axiom,
    zero(int) ).

tff(arity_Int_Oint___Rings_Oring,axiom,
    ring(int) ).

tff(arity_Int_Oint___Groups_Oone,axiom,
    one(int) ).

tff(arity_Nat_Onat___Divides_Osemiring__div,axiom,
    semiring_div(nat) ).

tff(arity_Nat_Onat___Rings_Ozero__neq__one,axiom,
    zero_neq_one(nat) ).

tff(arity_Nat_Onat___Groups_Ozero,axiom,
    zero(nat) ).

tff(arity_Nat_Onat___Groups_Oone,axiom,
    one(nat) ).

%----Helper facts (16)
tff(help_pp_1_1_U,axiom,
    ~ pp(fFalse) ).

tff(help_pp_2_1_U,axiom,
    pp(fTrue) ).

tff(help_fNot_1_1_U,axiom,
    ! [P: bool] :
      ( ~ pp(aa(bool,bool,fNot,P))
      | ~ pp(P) ) ).

tff(help_fNot_2_1_U,axiom,
    ! [P: bool] :
      ( pp(P)
      | pp(aa(bool,bool,fNot,P)) ) ).

tff(help_COMBB_1_1_U,axiom,
    ! [C: $tType,B: $tType,A: $tType,R: A,Q: fun(A,B),P: fun(B,C)] : aa(A,C,combb(B,C,A,P,Q),R) = aa(B,C,P,aa(A,B,Q,R)) ).

tff(help_COMBK_1_1_U,axiom,
    ! [B: $tType,A: $tType,Q: B,P: A] : aa(B,A,aa(A,fun(B,A),combk(A,B),P),Q) = P ).

tff(help_COMBS_1_1_U,axiom,
    ! [C: $tType,B: $tType,A: $tType,R: A,Q: fun(A,B),P: fun(A,fun(B,C))] : aa(A,C,combs(A,B,C,P,Q),R) = aa(B,C,aa(A,fun(B,C),P,R),aa(A,B,Q,R)) ).

tff(help_fTrue_1_1_U,axiom,
    pp(fTrue) ).

tff(help_fTrue_1_1_T,axiom,
    ! [P: bool] :
      ( ( P = fTrue )
      | ( P = fFalse ) ) ).

tff(help_fdisj_1_1_U,axiom,
    ! [Q: bool,P: bool] :
      ( ~ pp(P)
      | pp(aa(bool,bool,aa(bool,fun(bool,bool),fdisj,P),Q)) ) ).

tff(help_fdisj_2_1_U,axiom,
    ! [P: bool,Q: bool] :
      ( ~ pp(Q)
      | pp(aa(bool,bool,aa(bool,fun(bool,bool),fdisj,P),Q)) ) ).

tff(help_fdisj_3_1_U,axiom,
    ! [Q: bool,P: bool] :
      ( ~ pp(aa(bool,bool,aa(bool,fun(bool,bool),fdisj,P),Q))
      | pp(P)
      | pp(Q) ) ).

tff(help_fFalse_1_1_U,axiom,
    ~ pp(fFalse) ).

tff(help_fFalse_1_1_T,axiom,
    ! [P: bool] :
      ( ( P = fTrue )
      | ( P = fFalse ) ) ).

tff(help_fequal_1_1_T,axiom,
    ! [A: $tType,Y: A,X: A] :
      ( ~ pp(aa(A,bool,fequal(A,X),Y))
      | ( X = Y ) ) ).

tff(help_fequal_2_1_T,axiom,
    ! [A: $tType,Y: A,X: A] :
      ( ( X != Y )
      | pp(aa(A,bool,fequal(A,X),Y)) ) ).

%----Conjectures (1)
tff(conj_0,conjecture,
    ( i_Z(a,cons(int,i,e))
  <=> i_Z(a,cons(int,j,e)) ) ).

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