TPTP Problem File: COM029_5.p

View Solutions - Solve Problem

%------------------------------------------------------------------------------
% File     : COM029_5 : TPTP v8.2.0. Released v6.0.0.
% Domain   : Number Theory
% Problem  : Quantifier elimination for Presburger arithmetic line 26
% 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_26 [Bla13]

% Status   : Unknown
% Rating   : 1.00 v6.4.0
% Syntax   : Number of formulae    :  183 (  39 unt;  54 typ;   0 def)
%            Number of atoms       :  329 (  70 equ)
%            Maximal formula atoms :    6 (   1 avg)
%            Number of connectives :  217 (  17   ~;   8   |;  11   &)
%                                         (  26 <=>; 155  =>;   0  <=;   0 <~>)
%            Maximal formula depth :    9 (   5 avg)
%            Maximal term depth    :    5 (   1 avg)
%            Number of types       :    4 (   3 usr)
%            Number of type conns  :   33 (  19   >;  14   *;   0   +;   0  <<)
%            Number of predicates  :   32 (  31 usr;   0 prp; 1-3 aty)
%            Number of functors    :   20 (  20 usr;   5 con; 0-5 aty)
%            Number of variables   :  377 ( 327   !;   8   ?; 377   :)
%                                         (  42  !>;   0  ?*;   0  @-;   0  @+)
% SPC      : TF1_UNK_EQU_NAR

% Comments : This file was generated by Isabelle (most likely Sledgehammer)
%            2011-12-13 16:16:27
%------------------------------------------------------------------------------
%----Should-be-implicit typings (5)
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_PresArith_Oatom,type,
    atom: $tType ).

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

%----Explicit typings (49)
tff(sy_cl_Rings_Odvd,type,
    dvd: 
      !>[A: $tType] : $o ).

tff(sy_cl_Rings_Oidom,type,
    idom: 
      !>[A: $tType] : $o ).

tff(sy_cl_Groups_Oplus,type,
    cl_Groups_Oplus: 
      !>[A: $tType] : $o ).

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

tff(sy_cl_Rings_Osemiring,type,
    semiring: 
      !>[A: $tType] : $o ).

tff(sy_cl_Rings_Omult__zero,type,
    mult_zero: 
      !>[A: $tType] : $o ).

tff(sy_cl_Groups_Omonoid__add,type,
    monoid_add: 
      !>[A: $tType] : $o ).

tff(sy_cl_Rings_Ocomm__semiring,type,
    comm_semiring: 
      !>[A: $tType] : $o ).

tff(sy_cl_Rings_Ocomm__semiring__1,type,
    comm_semiring_1: 
      !>[A: $tType] : $o ).

tff(sy_cl_Rings_Olinordered__idom,type,
    linordered_idom: 
      !>[A: $tType] : $o ).

tff(sy_cl_Rings_Olinordered__ring,type,
    linordered_ring: 
      !>[A: $tType] : $o ).

tff(sy_cl_Groups_Ocomm__monoid__add,type,
    comm_monoid_add: 
      !>[A: $tType] : $o ).

tff(sy_cl_Rings_Ono__zero__divisors,type,
    no_zero_divisors: 
      !>[A: $tType] : $o ).

tff(sy_cl_Groups_Oab__semigroup__add,type,
    ab_semigroup_add: 
      !>[A: $tType] : $o ).

tff(sy_cl_Groups_Oab__semigroup__mult,type,
    ab_semigroup_mult: 
      !>[A: $tType] : $o ).

tff(sy_cl_Rings_Olinordered__semidom,type,
    linordered_semidom: 
      !>[A: $tType] : $o ).

tff(sy_cl_Groups_Ocancel__semigroup__add,type,
    cancel_semigroup_add: 
      !>[A: $tType] : $o ).

tff(sy_cl_Rings_Oring__no__zero__divisors,type,
    ring_n68954251visors: 
      !>[A: $tType] : $o ).

tff(sy_cl_Rings_Olinordered__ring__strict,type,
    linord581940658strict: 
      !>[A: $tType] : $o ).

tff(sy_cl_Groups_Ocancel__ab__semigroup__add,type,
    cancel146912293up_add: 
      !>[A: $tType] : $o ).

tff(sy_cl_Groups_Olinordered__ab__group__add,type,
    linord219039673up_add: 
      !>[A: $tType] : $o ).

tff(sy_cl_Groups_Oordered__comm__monoid__add,type,
    ordere216010020id_add: 
      !>[A: $tType] : $o ).

tff(sy_cl_Rings_Olinordered__semiring__strict,type,
    linord20386208strict: 
      !>[A: $tType] : $o ).

tff(sy_cl_Rings_Olinordered__comm__semiring__strict,type,
    linord893533164strict: 
      !>[A: $tType] : $o ).

tff(sy_cl_Groups_Oordered__ab__semigroup__add__imp__le,type,
    ordere236663937imp_le: 
      !>[A: $tType] : $o ).

tff(sy_cl_Groups_Oordered__cancel__ab__semigroup__add,type,
    ordere223160158up_add: 
      !>[A: $tType] : $o ).

tff(sy_c_Groups_Oplus__class_Oplus,type,
    plus_plus: 
      !>[A: $tType] : ( ( A * A ) > A ) ).

tff(sy_c_Groups_Otimes__class_Otimes,type,
    times_times: 
      !>[A: $tType] : ( ( A * A ) > A ) ).

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

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_Olist__case,type,
    list_case: 
      !>[T: $tType,A: $tType] : ( ( T * fun(A,fun(list(A),T)) * list(A) ) > T ) ).

tff(sy_c_List_Omap,type,
    map: 
      !>[A: $tType,B1: $tType] : ( ( fun(A,B1) * list(A) ) > list(B1) ) ).

tff(sy_c_List_Oremdups,type,
    remdups: 
      !>[A: $tType] : ( list(A) > list(A) ) ).

tff(sy_c_List_Oset,type,
    set: 
      !>[A: $tType] : ( list(A) > fun(A,bool) ) ).

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

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

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

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

tff(sy_c_PresArith_Ozlcms,type,
    zlcms: list(int) > int ).

tff(sy_c_QEpres__Mirabelle__iocckttzyp_Ohd__coeffs1,type,
    qEpres1907640072oeffs1: list(atom) > list(atom) ).

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

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

tff(sy_c_fFalse,type,
    fFalse: bool ).

tff(sy_c_fTrue,type,
    fTrue: 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_as,type,
    as: list(atom) ).

tff(sy_v_xs,type,
    xs: list(int) ).

%----Relevant facts (99)
tff(fact_0__C0_C,axiom,
    ! [X4: atom] :
      ( member(atom,X4,set(atom,as))
     => ( aa(atom,int,hd_coeff,X4) != zero_zero(int) ) ) ).

tff(fact_1__096_IEX_Ax_O_AALL_Aa_058set_Aas_O_AI_092_060_094isub_062Z_Aa_A_Ix_A_D_Axs_J_J_A_061_IEX_Ax_O_Azlcms_A_Imap_Ahd__coeff_Aas_J_Advd_Ax_A_L_A0_A_G_A_IALL_Aa_058set_Aas_O_AI_092_060_094isub_062Z_A_Ihd__coeff1_A_Izlcms_A_Imap_Ahd__coeff_Aas_J_J_Aa_J_A_Ix_A_D_Axs_J_J_J_096,axiom,
    ( ? [X: int] :
      ! [Xa: atom] :
        ( member(atom,Xa,set(atom,as))
       => i_Z(Xa,cons(int,X,xs)) )
  <=> ? [X: int] :
        ( dvd_dvd(int,zlcms(map(atom,int,hd_coeff,as)),plus_plus(int,X,zero_zero(int)))
        & ! [Xa: atom] :
            ( member(atom,Xa,set(atom,as))
           => i_Z(hd_coeff1(zlcms(map(atom,int,hd_coeff,as)),Xa),cons(int,X,xs)) ) ) ) ).

tff(fact_2_list_Oinject,axiom,
    ! [A: $tType,List1: list(A),A4: A,List: list(A),A2: A] :
      ( ( cons(A,A2,List) = cons(A,A4,List1) )
    <=> ( ( A2 = A4 )
        & ( List = List1 ) ) ) ).

tff(fact_3_set__ConsD,axiom,
    ! [A: $tType,Xsa: list(A),X1: A,Y1: A] :
      ( member(A,Y1,set(A,cons(A,X1,Xsa)))
     => ( ( Y1 = X1 )
        | member(A,Y1,set(A,Xsa)) ) ) ).

tff(fact_4__096_IEX_Ax_O_AALL_Aa_058set_Aas_O_AI_092_060_094isub_062Z_Aa_A_Ix_A_D_Axs_J_J_A_061_IEX_Ax_O_AALL_Aa_058set_Aas_O_AI_092_060_094isub_062Z_A_Ihd__coeff1_A_Izlcms_A_Imap_Ahd__coeff_Aas_J_J_Aa_J_A_Izlcms_A_Imap_Ahd__coeff_Aas_J_A_K_Ax_A_D_Axs_J_J_096,axiom,
    ( ? [X: int] :
      ! [Xa: atom] :
        ( member(atom,Xa,set(atom,as))
       => i_Z(Xa,cons(int,X,xs)) )
  <=> ? [X: int] :
      ! [Xa: atom] :
        ( member(atom,Xa,set(atom,as))
       => i_Z(hd_coeff1(zlcms(map(atom,int,hd_coeff,as)),Xa),cons(int,times_times(int,zlcms(map(atom,int,hd_coeff,as)),X),xs)) ) ) ).

tff(fact_5__096_IEX_Ax_O_AALL_Aa_058set_Aas_O_AI_092_060_094isub_062Z_A_Ihd__coeff1_A_Izlcms_A_Imap_Ahd__coeff_Aas_J_J_Aa_J_A_Izlcms_A_Imap_Ahd__coeff_Aas_J_A_K_Ax_A_D_Axs_J_J_A_061_IEX_Ax_O_Azlcms_A_Imap_Ahd__coeff_Aas_J_Advd_Ax_A_L_A0_A_G_A_IALL_Aa_058set_Aas_O_AI_092_060_094isub_062Z_A_Ihd__coeff1_A_Izlcms_A_Imap_Ahd__coeff_Aas_J_J_Aa_J_A_Ix_A_D_Axs_J_J_J_096,axiom,
    ( ? [X: int] :
      ! [Xa: atom] :
        ( member(atom,Xa,set(atom,as))
       => i_Z(hd_coeff1(zlcms(map(atom,int,hd_coeff,as)),Xa),cons(int,times_times(int,zlcms(map(atom,int,hd_coeff,as)),X),xs)) )
  <=> ? [X: int] :
        ( dvd_dvd(int,zlcms(map(atom,int,hd_coeff,as)),plus_plus(int,X,zero_zero(int)))
        & ! [Xa: atom] :
            ( member(atom,Xa,set(atom,as))
           => i_Z(hd_coeff1(zlcms(map(atom,int,hd_coeff,as)),Xa),cons(int,X,xs)) ) ) ) ).

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

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

tff(fact_8_map__eq__conv,axiom,
    ! [A: $tType,B1: $tType,G: fun(B1,A),Xsa: list(B1),F: fun(B1,A)] :
      ( ( map(B1,A,F,Xsa) = map(B1,A,G,Xsa) )
    <=> ! [X: B1] :
          ( member(B1,X,set(B1,Xsa))
         => ( aa(B1,A,F,X) = aa(B1,A,G,X) ) ) ) ).

tff(fact_9_map_Osimps_I2_J,axiom,
    ! [A: $tType,B1: $tType,Xsa: list(B1),X1: B1,F: fun(B1,A)] : map(B1,A,F,cons(B1,X1,Xsa)) = cons(A,aa(B1,A,F,X1),map(B1,A,F,Xsa)) ).

tff(fact_10_List_Oinsert__def,axiom,
    ! [A: $tType,Xsa: list(A),X1: A] :
      ( ( member(A,X1,set(A,Xsa))
       => ( insert(A,X1,Xsa) = Xsa ) )
      & ( ~ member(A,X1,set(A,Xsa))
       => ( insert(A,X1,Xsa) = cons(A,X1,Xsa) ) ) ) ).

tff(fact_11_not__in__set__insert,axiom,
    ! [A: $tType,Xsa: list(A),X1: A] :
      ( ~ member(A,X1,set(A,Xsa))
     => ( insert(A,X1,Xsa) = cons(A,X1,Xsa) ) ) ).

tff(fact_12_remdups_Osimps_I2_J,axiom,
    ! [A: $tType,Xsa: list(A),X1: A] :
      ( ( member(A,X1,set(A,Xsa))
       => ( remdups(A,cons(A,X1,Xsa)) = remdups(A,Xsa) ) )
      & ( ~ member(A,X1,set(A,Xsa))
       => ( remdups(A,cons(A,X1,Xsa)) = cons(A,X1,remdups(A,Xsa)) ) ) ) ).

tff(fact_13_list_Osimps_I5_J,axiom,
    ! [A: $tType,B1: $tType,List: list(B1),A2: B1,F2: fun(B1,fun(list(B1),A)),F1: A] : list_case(A,B1,F1,F2,cons(B1,A2,List)) = aa(list(B1),A,aa(B1,fun(list(B1),A),F2,A2),List) ).

tff(fact_14_set__remdups,axiom,
    ! [A: $tType,Xsa: list(A)] : set(A,remdups(A,Xsa)) = set(A,Xsa) ).

tff(fact_15_remdups__remdups,axiom,
    ! [A: $tType,Xs: list(A)] : remdups(A,remdups(A,Xs)) = remdups(A,Xs) ).

tff(fact_16_remdups__map__remdups,axiom,
    ! [A: $tType,B1: $tType,Xsa: list(B1),F: fun(B1,A)] : remdups(A,map(B1,A,F,remdups(B1,Xsa))) = remdups(A,map(B1,A,F,Xsa)) ).

tff(fact_17_insert__remdups,axiom,
    ! [A: $tType,Xs: list(A),X3: A] : insert(A,X3,remdups(A,Xs)) = remdups(A,insert(A,X3,Xs)) ).

tff(fact_18_in__set__insert,axiom,
    ! [A: $tType,Xsa: list(A),X1: A] :
      ( member(A,X1,set(A,Xsa))
     => ( insert(A,X1,Xsa) = Xsa ) ) ).

tff(fact_19_dvd__mult__cancel__right,axiom,
    ! [A: $tType] :
      ( idom(A)
     => ! [B2: A,C1: A,A2: A] :
          ( dvd_dvd(A,times_times(A,A2,C1),times_times(A,B2,C1))
        <=> ( ( C1 = zero_zero(A) )
            | dvd_dvd(A,A2,B2) ) ) ) ).

tff(fact_20_dvd__mult__cancel__left,axiom,
    ! [A: $tType] :
      ( idom(A)
     => ! [B2: A,A2: A,C1: A] :
          ( dvd_dvd(A,times_times(A,C1,A2),times_times(A,C1,B2))
        <=> ( ( C1 = zero_zero(A) )
            | dvd_dvd(A,A2,B2) ) ) ) ).

tff(fact_21_zlcms0__iff,axiom,
    ! [Is: list(int)] :
      ( ( zlcms(Is) = zero_zero(int) )
    <=> member(int,zero_zero(int),set(int,Is)) ) ).

tff(fact_22__0960_A_060_Azlcms_A_Imap_Ahd__coeff_Aas_J_096,axiom,
    ord_less(int,zero_zero(int),zlcms(map(atom,int,hd_coeff,as))) ).

tff(fact_23_list__add__Cons,axiom,
    ! [A: $tType] :
      ( ( cl_Groups_Oplus(A)
        & zero(A) )
     => ! [Ys: list(A),Y: A,Xs: list(A),X3: A] : plus_plus(list(A),cons(A,X3,Xs),cons(A,Y,Ys)) = cons(A,plus_plus(A,X3,Y),plus_plus(list(A),Xs,Ys)) ) ).

tff(fact_24_dvd__0__right,axiom,
    ! [A: $tType] :
      ( comm_semiring_1(A)
     => ! [A1: A] : dvd_dvd(A,A1,zero_zero(A)) ) ).

tff(fact_25_double__zero__sym,axiom,
    ! [A: $tType] :
      ( linord219039673up_add(A)
     => ! [A2: A] :
          ( ( zero_zero(A) = plus_plus(A,A2,A2) )
        <=> ( A2 = zero_zero(A) ) ) ) ).

tff(fact_26_double__eq__0__iff,axiom,
    ! [A: $tType] :
      ( linord219039673up_add(A)
     => ! [A2: A] :
          ( ( plus_plus(A,A2,A2) = zero_zero(A) )
        <=> ( A2 = zero_zero(A) ) ) ) ).

tff(fact_27_mult__zero__left,axiom,
    ! [A: $tType] :
      ( mult_zero(A)
     => ! [A1: A] : times_times(A,zero_zero(A),A1) = zero_zero(A) ) ).

tff(fact_28_add__right__cancel,axiom,
    ! [A: $tType] :
      ( cancel_semigroup_add(A)
     => ! [C1: A,A2: A,B2: A] :
          ( ( plus_plus(A,B2,A2) = plus_plus(A,C1,A2) )
        <=> ( B2 = C1 ) ) ) ).

tff(fact_29_add__left__cancel,axiom,
    ! [A: $tType] :
      ( cancel_semigroup_add(A)
     => ! [C1: A,B2: A,A2: A] :
          ( ( plus_plus(A,A2,B2) = plus_plus(A,A2,C1) )
        <=> ( B2 = C1 ) ) ) ).

tff(fact_30_mult__eq__0__iff,axiom,
    ! [A: $tType] :
      ( ring_n68954251visors(A)
     => ! [B2: A,A2: A] :
          ( ( times_times(A,A2,B2) = zero_zero(A) )
        <=> ( ( A2 = zero_zero(A) )
            | ( B2 = zero_zero(A) ) ) ) ) ).

tff(fact_31_mult__zero__right,axiom,
    ! [A: $tType] :
      ( mult_zero(A)
     => ! [A1: A] : times_times(A,A1,zero_zero(A)) = zero_zero(A) ) ).

tff(fact_32_add__less__cancel__left,axiom,
    ! [A: $tType] :
      ( ordere236663937imp_le(A)
     => ! [B2: A,A2: A,C1: A] :
          ( ord_less(A,plus_plus(A,C1,A2),plus_plus(A,C1,B2))
        <=> ord_less(A,A2,B2) ) ) ).

tff(fact_33_add__less__cancel__right,axiom,
    ! [A: $tType] :
      ( ordere236663937imp_le(A)
     => ! [B2: A,C1: A,A2: A] :
          ( ord_less(A,plus_plus(A,A2,C1),plus_plus(A,B2,C1))
        <=> ord_less(A,A2,B2) ) ) ).

tff(fact_34_double__add__less__zero__iff__single__add__less__zero,axiom,
    ! [A: $tType] :
      ( linord219039673up_add(A)
     => ! [A2: A] :
          ( ord_less(A,plus_plus(A,A2,A2),zero_zero(A))
        <=> ord_less(A,A2,zero_zero(A)) ) ) ).

tff(fact_35_zero__less__double__add__iff__zero__less__single__add,axiom,
    ! [A: $tType] :
      ( linord219039673up_add(A)
     => ! [A2: A] :
          ( ord_less(A,zero_zero(A),plus_plus(A,A2,A2))
        <=> ord_less(A,zero_zero(A),A2) ) ) ).

tff(fact_36_list__add__assoc,axiom,
    ! [A: $tType] :
      ( monoid_add(A)
     => ! [Zs: list(A),Ys: list(A),Xs: list(A)] : plus_plus(list(A),plus_plus(list(A),Xs,Ys),Zs) = plus_plus(list(A),Xs,plus_plus(list(A),Ys,Zs)) ) ).

tff(fact_37_add__strict__right__mono,axiom,
    ! [A: $tType] :
      ( ordere223160158up_add(A)
     => ! [C: A,B: A,A1: A] :
          ( ord_less(A,A1,B)
         => ord_less(A,plus_plus(A,A1,C),plus_plus(A,B,C)) ) ) ).

tff(fact_38_add__strict__left__mono,axiom,
    ! [A: $tType] :
      ( ordere223160158up_add(A)
     => ! [C: A,B: A,A1: A] :
          ( ord_less(A,A1,B)
         => ord_less(A,plus_plus(A,C,A1),plus_plus(A,C,B)) ) ) ).

tff(fact_39_add__strict__mono,axiom,
    ! [A: $tType] :
      ( ordere223160158up_add(A)
     => ! [D: A,C: A,B: A,A1: A] :
          ( ord_less(A,A1,B)
         => ( ord_less(A,C,D)
           => ord_less(A,plus_plus(A,A1,C),plus_plus(A,B,D)) ) ) ) ).

tff(fact_40_add__less__imp__less__right,axiom,
    ! [A: $tType] :
      ( ordere236663937imp_le(A)
     => ! [B: A,C: A,A1: A] :
          ( ord_less(A,plus_plus(A,A1,C),plus_plus(A,B,C))
         => ord_less(A,A1,B) ) ) ).

tff(fact_41_add__less__imp__less__left,axiom,
    ! [A: $tType] :
      ( ordere236663937imp_le(A)
     => ! [B: A,A1: A,C: A] :
          ( ord_less(A,plus_plus(A,C,A1),plus_plus(A,C,B))
         => ord_less(A,A1,B) ) ) ).

tff(fact_42_linorder__neqE__linordered__idom,axiom,
    ! [A: $tType] :
      ( linordered_idom(A)
     => ! [Y: A,X3: A] :
          ( ( X3 != Y )
         => ( ~ ord_less(A,X3,Y)
           => ord_less(A,Y,X3) ) ) ) ).

tff(fact_43_mult__strict__left__mono__neg,axiom,
    ! [A: $tType] :
      ( linord581940658strict(A)
     => ! [C: A,A1: A,B: A] :
          ( ord_less(A,B,A1)
         => ( ord_less(A,C,zero_zero(A))
           => ord_less(A,times_times(A,C,A1),times_times(A,C,B)) ) ) ) ).

tff(fact_44_mult__strict__right__mono__neg,axiom,
    ! [A: $tType] :
      ( linord581940658strict(A)
     => ! [C: A,A1: A,B: A] :
          ( ord_less(A,B,A1)
         => ( ord_less(A,C,zero_zero(A))
           => ord_less(A,times_times(A,A1,C),times_times(A,B,C)) ) ) ) ).

tff(fact_45_comm__mult__strict__left__mono,axiom,
    ! [A: $tType] :
      ( linord893533164strict(A)
     => ! [C: A,B: A,A1: A] :
          ( ord_less(A,A1,B)
         => ( ord_less(A,zero_zero(A),C)
           => ord_less(A,times_times(A,C,A1),times_times(A,C,B)) ) ) ) ).

tff(fact_46_mult__strict__left__mono,axiom,
    ! [A: $tType] :
      ( linord20386208strict(A)
     => ! [C: A,B: A,A1: A] :
          ( ord_less(A,A1,B)
         => ( ord_less(A,zero_zero(A),C)
           => ord_less(A,times_times(A,C,A1),times_times(A,C,B)) ) ) ) ).

tff(fact_47_mult__strict__right__mono,axiom,
    ! [A: $tType] :
      ( linord20386208strict(A)
     => ! [C: A,B: A,A1: A] :
          ( ord_less(A,A1,B)
         => ( ord_less(A,zero_zero(A),C)
           => ord_less(A,times_times(A,A1,C),times_times(A,B,C)) ) ) ) ).

tff(fact_48_mult__neg__neg,axiom,
    ! [A: $tType] :
      ( linord581940658strict(A)
     => ! [B: A,A1: A] :
          ( ord_less(A,A1,zero_zero(A))
         => ( ord_less(A,B,zero_zero(A))
           => ord_less(A,zero_zero(A),times_times(A,A1,B)) ) ) ) ).

tff(fact_49_mult__neg__pos,axiom,
    ! [A: $tType] :
      ( linord20386208strict(A)
     => ! [B: A,A1: A] :
          ( ord_less(A,A1,zero_zero(A))
         => ( ord_less(A,zero_zero(A),B)
           => ord_less(A,times_times(A,A1,B),zero_zero(A)) ) ) ) ).

tff(fact_50_mult__less__cancel__left__neg,axiom,
    ! [A: $tType] :
      ( linord581940658strict(A)
     => ! [B2: A,A2: A,C1: A] :
          ( ord_less(A,C1,zero_zero(A))
         => ( ord_less(A,times_times(A,C1,A2),times_times(A,C1,B2))
          <=> ord_less(A,B2,A2) ) ) ) ).

tff(fact_51_zero__less__mult__pos2,axiom,
    ! [A: $tType] :
      ( linord20386208strict(A)
     => ! [A1: A,B: A] :
          ( ord_less(A,zero_zero(A),times_times(A,B,A1))
         => ( ord_less(A,zero_zero(A),A1)
           => ord_less(A,zero_zero(A),B) ) ) ) ).

tff(fact_52_zero__less__mult__pos,axiom,
    ! [A: $tType] :
      ( linord20386208strict(A)
     => ! [B: A,A1: A] :
          ( ord_less(A,zero_zero(A),times_times(A,A1,B))
         => ( ord_less(A,zero_zero(A),A1)
           => ord_less(A,zero_zero(A),B) ) ) ) ).

tff(fact_53_mult__pos__neg2,axiom,
    ! [A: $tType] :
      ( linord20386208strict(A)
     => ! [B: A,A1: A] :
          ( ord_less(A,zero_zero(A),A1)
         => ( ord_less(A,B,zero_zero(A))
           => ord_less(A,times_times(A,B,A1),zero_zero(A)) ) ) ) ).

tff(fact_54_mult__pos__neg,axiom,
    ! [A: $tType] :
      ( linord20386208strict(A)
     => ! [B: A,A1: A] :
          ( ord_less(A,zero_zero(A),A1)
         => ( ord_less(A,B,zero_zero(A))
           => ord_less(A,times_times(A,A1,B),zero_zero(A)) ) ) ) ).

tff(fact_55_mult__pos__pos,axiom,
    ! [A: $tType] :
      ( linord20386208strict(A)
     => ! [B: A,A1: A] :
          ( ord_less(A,zero_zero(A),A1)
         => ( ord_less(A,zero_zero(A),B)
           => ord_less(A,zero_zero(A),times_times(A,A1,B)) ) ) ) ).

tff(fact_56_mult__less__cancel__left__pos,axiom,
    ! [A: $tType] :
      ( linord581940658strict(A)
     => ! [B2: A,A2: A,C1: A] :
          ( ord_less(A,zero_zero(A),C1)
         => ( ord_less(A,times_times(A,C1,A2),times_times(A,C1,B2))
          <=> ord_less(A,A2,B2) ) ) ) ).

tff(fact_57_mult__less__cancel__left__disj,axiom,
    ! [A: $tType] :
      ( linord581940658strict(A)
     => ! [B2: A,A2: A,C1: A] :
          ( ord_less(A,times_times(A,C1,A2),times_times(A,C1,B2))
        <=> ( ( ord_less(A,zero_zero(A),C1)
              & ord_less(A,A2,B2) )
            | ( ord_less(A,C1,zero_zero(A))
              & ord_less(A,B2,A2) ) ) ) ) ).

tff(fact_58_mult__less__cancel__right__disj,axiom,
    ! [A: $tType] :
      ( linord581940658strict(A)
     => ! [B2: A,C1: A,A2: A] :
          ( ord_less(A,times_times(A,A2,C1),times_times(A,B2,C1))
        <=> ( ( ord_less(A,zero_zero(A),C1)
              & ord_less(A,A2,B2) )
            | ( ord_less(A,C1,zero_zero(A))
              & ord_less(A,B2,A2) ) ) ) ) ).

tff(fact_59_not__square__less__zero,axiom,
    ! [A: $tType] :
      ( linordered_ring(A)
     => ! [A1: A] : ~ ord_less(A,times_times(A,A1,A1),zero_zero(A)) ) ).

tff(fact_60_add__neg__neg,axiom,
    ! [A: $tType] :
      ( ordere216010020id_add(A)
     => ! [B: A,A1: A] :
          ( ord_less(A,A1,zero_zero(A))
         => ( ord_less(A,B,zero_zero(A))
           => ord_less(A,plus_plus(A,A1,B),zero_zero(A)) ) ) ) ).

tff(fact_61_pos__add__strict,axiom,
    ! [A: $tType] :
      ( linordered_semidom(A)
     => ! [C: A,B: A,A1: A] :
          ( ord_less(A,zero_zero(A),A1)
         => ( ord_less(A,B,C)
           => ord_less(A,B,plus_plus(A,A1,C)) ) ) ) ).

tff(fact_62_add__pos__pos,axiom,
    ! [A: $tType] :
      ( ordere216010020id_add(A)
     => ! [B: A,A1: A] :
          ( ord_less(A,zero_zero(A),A1)
         => ( ord_less(A,zero_zero(A),B)
           => ord_less(A,zero_zero(A),plus_plus(A,A1,B)) ) ) ) ).

tff(fact_63_even__less__0__iff,axiom,
    ! [A: $tType] :
      ( linordered_idom(A)
     => ! [A2: A] :
          ( ord_less(A,plus_plus(A,A2,A2),zero_zero(A))
        <=> ord_less(A,A2,zero_zero(A)) ) ) ).

tff(fact_64_zmult__zless__mono2,axiom,
    ! [K: int,J: int,I1: int] :
      ( ord_less(int,I1,J)
     => ( ord_less(int,zero_zero(int),K)
       => ord_less(int,times_times(int,K,I1),times_times(int,K,J)) ) ) ).

tff(fact_65_zdvd__not__zless,axiom,
    ! [N: int,M: int] :
      ( ord_less(int,zero_zero(int),M)
     => ( ord_less(int,M,N)
       => ~ dvd_dvd(int,N,M) ) ) ).

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

tff(fact_67_ab__semigroup__mult__class_Omult__ac_I1_J,axiom,
    ! [A: $tType] :
      ( ab_semigroup_mult(A)
     => ! [C: A,B: A,A1: A] : times_times(A,times_times(A,A1,B),C) = times_times(A,A1,times_times(A,B,C)) ) ).

tff(fact_68_add__right__imp__eq,axiom,
    ! [A: $tType] :
      ( cancel_semigroup_add(A)
     => ! [C: A,A1: A,B: A] :
          ( ( plus_plus(A,B,A1) = plus_plus(A,C,A1) )
         => ( B = C ) ) ) ).

tff(fact_69_add__imp__eq,axiom,
    ! [A: $tType] :
      ( cancel146912293up_add(A)
     => ! [C: A,B: A,A1: A] :
          ( ( plus_plus(A,A1,B) = plus_plus(A,A1,C) )
         => ( B = C ) ) ) ).

tff(fact_70_add__left__imp__eq,axiom,
    ! [A: $tType] :
      ( cancel_semigroup_add(A)
     => ! [C: A,B: A,A1: A] :
          ( ( plus_plus(A,A1,B) = plus_plus(A,A1,C) )
         => ( B = C ) ) ) ).

tff(fact_71_ab__semigroup__add__class_Oadd__ac_I1_J,axiom,
    ! [A: $tType] :
      ( ab_semigroup_add(A)
     => ! [C: A,B: A,A1: A] : plus_plus(A,plus_plus(A,A1,B),C) = plus_plus(A,A1,plus_plus(A,B,C)) ) ).

tff(fact_72_dvd__trans,axiom,
    ! [A: $tType] :
      ( comm_semiring_1(A)
     => ! [C: A,B: A,A1: A] :
          ( dvd_dvd(A,A1,B)
         => ( dvd_dvd(A,B,C)
           => dvd_dvd(A,A1,C) ) ) ) ).

tff(fact_73_dvd__refl,axiom,
    ! [A: $tType] :
      ( comm_semiring_1(A)
     => ! [A1: A] : dvd_dvd(A,A1,A1) ) ).

tff(fact_74_ext,axiom,
    ! [B1: $tType,A: $tType,G: fun(A,B1),F: fun(A,B1)] :
      ( ! [X2: A] : aa(A,B1,F,X2) = aa(A,B1,G,X2)
     => ( F = G ) ) ).

tff(fact_75_mem__def,axiom,
    ! [A: $tType,A3: fun(A,bool),X1: A] :
      ( member(A,X1,A3)
    <=> pp(aa(A,bool,A3,X1)) ) ).

tff(fact_76_I__hd__coeff1__mult__a,axiom,
    ! [Xsa: list(int),X1: int,A2: atom,M1: int] :
      ( ord_less(int,zero_zero(int),M1)
     => ( ( dvd_dvd(int,aa(atom,int,hd_coeff,A2),M1)
          | ( aa(atom,int,hd_coeff,A2) = zero_zero(int) ) )
       => ( i_Z(hd_coeff1(M1,A2),cons(int,times_times(int,M1,X1),Xsa))
        <=> i_Z(A2,cons(int,X1,Xsa)) ) ) ) ).

tff(fact_77_divisors__zero,axiom,
    ! [A: $tType] :
      ( no_zero_divisors(A)
     => ! [B: A,A1: A] :
          ( ( times_times(A,A1,B) = zero_zero(A) )
         => ( ( A1 = zero_zero(A) )
            | ( B = zero_zero(A) ) ) ) ) ).

tff(fact_78_no__zero__divisors,axiom,
    ! [A: $tType] :
      ( no_zero_divisors(A)
     => ! [B: A,A1: A] :
          ( ( A1 != zero_zero(A) )
         => ( ( B != zero_zero(A) )
           => ( times_times(A,A1,B) != zero_zero(A) ) ) ) ) ).

tff(fact_79_add_Ocomm__neutral,axiom,
    ! [A: $tType] :
      ( comm_monoid_add(A)
     => ! [A1: A] : plus_plus(A,A1,zero_zero(A)) = A1 ) ).

tff(fact_80_add__0__right,axiom,
    ! [A: $tType] :
      ( monoid_add(A)
     => ! [A1: A] : plus_plus(A,A1,zero_zero(A)) = A1 ) ).

tff(fact_81_add__0,axiom,
    ! [A: $tType] :
      ( comm_monoid_add(A)
     => ! [A1: A] : plus_plus(A,zero_zero(A),A1) = A1 ) ).

tff(fact_82_add__0__left,axiom,
    ! [A: $tType] :
      ( monoid_add(A)
     => ! [A1: A] : plus_plus(A,zero_zero(A),A1) = A1 ) ).

tff(fact_83_dvd__0__left,axiom,
    ! [A: $tType] :
      ( comm_semiring_1(A)
     => ! [A1: A] :
          ( dvd_dvd(A,zero_zero(A),A1)
         => ( A1 = zero_zero(A) ) ) ) ).

tff(fact_84_combine__common__factor,axiom,
    ! [A: $tType] :
      ( semiring(A)
     => ! [C: A,B: A,E: A,A1: A] : plus_plus(A,times_times(A,A1,E),plus_plus(A,times_times(A,B,E),C)) = plus_plus(A,times_times(A,plus_plus(A,A1,B),E),C) ) ).

tff(fact_85_comm__semiring__class_Odistrib,axiom,
    ! [A: $tType] :
      ( comm_semiring(A)
     => ! [C: A,B: A,A1: A] : times_times(A,plus_plus(A,A1,B),C) = plus_plus(A,times_times(A,A1,C),times_times(A,B,C)) ) ).

tff(fact_86_dvd__mult__right,axiom,
    ! [A: $tType] :
      ( comm_semiring_1(A)
     => ! [C: A,B: A,A1: A] :
          ( dvd_dvd(A,times_times(A,A1,B),C)
         => dvd_dvd(A,B,C) ) ) ).

tff(fact_87_dvd__mult__left,axiom,
    ! [A: $tType] :
      ( comm_semiring_1(A)
     => ! [C: A,B: A,A1: A] :
          ( dvd_dvd(A,times_times(A,A1,B),C)
         => dvd_dvd(A,A1,C) ) ) ).

tff(fact_88_dvdI,axiom,
    ! [A: $tType] :
      ( dvd(A)
     => ! [K: A,B: A,A1: A] :
          ( ( A1 = times_times(A,B,K) )
         => dvd_dvd(A,B,A1) ) ) ).

tff(fact_89_mult__dvd__mono,axiom,
    ! [A: $tType] :
      ( comm_semiring_1(A)
     => ! [D: A,C: A,B: A,A1: A] :
          ( dvd_dvd(A,A1,B)
         => ( dvd_dvd(A,C,D)
           => dvd_dvd(A,times_times(A,A1,C),times_times(A,B,D)) ) ) ) ).

tff(fact_90_dvd__mult,axiom,
    ! [A: $tType] :
      ( comm_semiring_1(A)
     => ! [B: A,C: A,A1: A] :
          ( dvd_dvd(A,A1,C)
         => dvd_dvd(A,A1,times_times(A,B,C)) ) ) ).

tff(fact_91_dvd__mult2,axiom,
    ! [A: $tType] :
      ( comm_semiring_1(A)
     => ! [C: A,B: A,A1: A] :
          ( dvd_dvd(A,A1,B)
         => dvd_dvd(A,A1,times_times(A,B,C)) ) ) ).

tff(fact_92_dvd__triv__right,axiom,
    ! [A: $tType] :
      ( comm_semiring_1(A)
     => ! [B: A,A1: A] : dvd_dvd(A,A1,times_times(A,B,A1)) ) ).

tff(fact_93_dvd__triv__left,axiom,
    ! [A: $tType] :
      ( comm_semiring_1(A)
     => ! [B: A,A1: A] : dvd_dvd(A,A1,times_times(A,A1,B)) ) ).

tff(fact_94_dvd__add,axiom,
    ! [A: $tType] :
      ( comm_semiring_1(A)
     => ! [C: A,B: A,A1: A] :
          ( dvd_dvd(A,A1,B)
         => ( dvd_dvd(A,A1,C)
           => dvd_dvd(A,A1,plus_plus(A,B,C)) ) ) ) ).

tff(fact_95_int__distrib_I1_J,axiom,
    ! [W: int,Z2: int,Z1: int] : times_times(int,plus_plus(int,Z1,Z2),W) = plus_plus(int,times_times(int,Z1,W),times_times(int,Z2,W)) ).

tff(fact_96_int__distrib_I2_J,axiom,
    ! [Z2: int,Z1: int,W: int] : times_times(int,W,plus_plus(int,Z1,Z2)) = plus_plus(int,times_times(int,W,Z1),times_times(int,W,Z2)) ).

tff(fact_97_dvd__zlcms,axiom,
    ! [Is: list(int),I: int] :
      ( member(int,I,set(int,Is))
     => dvd_dvd(int,I,zlcms(Is)) ) ).

tff(fact_98_zdvd__mult__cancel,axiom,
    ! [N: int,M: int,K: int] :
      ( dvd_dvd(int,times_times(int,K,M),times_times(int,K,N))
     => ( ( K != zero_zero(int) )
       => dvd_dvd(int,M,N) ) ) ).

%----Arities (27)
tff(arity_Int_Oint___Groups_Oordered__cancel__ab__semigroup__add,axiom,
    ordere223160158up_add(int) ).

tff(arity_Int_Oint___Groups_Oordered__ab__semigroup__add__imp__le,axiom,
    ordere236663937imp_le(int) ).

tff(arity_Int_Oint___Rings_Olinordered__comm__semiring__strict,axiom,
    linord893533164strict(int) ).

tff(arity_Int_Oint___Rings_Olinordered__semiring__strict,axiom,
    linord20386208strict(int) ).

tff(arity_Int_Oint___Groups_Oordered__comm__monoid__add,axiom,
    ordere216010020id_add(int) ).

tff(arity_Int_Oint___Groups_Olinordered__ab__group__add,axiom,
    linord219039673up_add(int) ).

tff(arity_Int_Oint___Groups_Ocancel__ab__semigroup__add,axiom,
    cancel146912293up_add(int) ).

tff(arity_Int_Oint___Rings_Olinordered__ring__strict,axiom,
    linord581940658strict(int) ).

tff(arity_Int_Oint___Rings_Oring__no__zero__divisors,axiom,
    ring_n68954251visors(int) ).

tff(arity_Int_Oint___Groups_Ocancel__semigroup__add,axiom,
    cancel_semigroup_add(int) ).

tff(arity_Int_Oint___Rings_Olinordered__semidom,axiom,
    linordered_semidom(int) ).

tff(arity_Int_Oint___Groups_Oab__semigroup__mult,axiom,
    ab_semigroup_mult(int) ).

tff(arity_Int_Oint___Groups_Oab__semigroup__add,axiom,
    ab_semigroup_add(int) ).

tff(arity_Int_Oint___Rings_Ono__zero__divisors,axiom,
    no_zero_divisors(int) ).

tff(arity_Int_Oint___Groups_Ocomm__monoid__add,axiom,
    comm_monoid_add(int) ).

tff(arity_Int_Oint___Rings_Olinordered__ring,axiom,
    linordered_ring(int) ).

tff(arity_Int_Oint___Rings_Olinordered__idom,axiom,
    linordered_idom(int) ).

tff(arity_Int_Oint___Rings_Ocomm__semiring__1,axiom,
    comm_semiring_1(int) ).

tff(arity_Int_Oint___Rings_Ocomm__semiring,axiom,
    comm_semiring(int) ).

tff(arity_Int_Oint___Groups_Omonoid__add,axiom,
    monoid_add(int) ).

tff(arity_Int_Oint___Rings_Omult__zero,axiom,
    mult_zero(int) ).

tff(arity_Int_Oint___Rings_Osemiring,axiom,
    semiring(int) ).

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

tff(arity_Int_Oint___Groups_Oplus,axiom,
    cl_Groups_Oplus(int) ).

tff(arity_Int_Oint___Rings_Oidom,axiom,
    idom(int) ).

tff(arity_Int_Oint___Rings_Odvd,axiom,
    dvd(int) ).

tff(arity_List_Olist___Groups_Oplus,axiom,
    ! [T_1: $tType] :
      ( ( zero(T_1)
        & cl_Groups_Oplus(T_1) )
     => cl_Groups_Oplus(list(T_1)) ) ).

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

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

%----Conjectures (1)
tff(conj_0,conjecture,
    ~ ( ? [X: int] :
        ! [Xa: atom] :
          ( member(atom,Xa,set(atom,qEpres1907640072oeffs1(as)))
         => i_Z(Xa,cons(int,X,xs)) )
    <=> ~ ? [X: int] :
          ! [Xa: atom] :
            ( member(atom,Xa,set(atom,as))
           => i_Z(Xa,cons(int,X,xs)) ) ) ).

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