ITP001 Axioms: ITP097+5.ax


%------------------------------------------------------------------------------
% File     : ITP097+5 : TPTP v9.0.0. Bugfixed v7.5.0.
% Domain   : Interactive Theorem Proving
% Axioms   : HOL4 set theory export, chainy mode
% Version  : [BG+19] axioms.
% English  :

% Refs     : [BG+19] Brown et al. (2019), GRUNGE: A Grand Unified ATP Chall
%          : [Gau20] Gauthier (2020), Email to Geoff Sutcliffe
% Source   : [BG+19]
% Names    : comparison+2.ax [Gau20]
%          : HL4097+5.ax [TPAP]

% Status   : Satisfiable
% Syntax   : Number of formulae    :   62 (   8 unt;   0 def)
%            Number of atoms       :  465 ( 143 equ)
%            Maximal formula atoms :   56 (   7 avg)
%            Number of connectives :  406 (   3   ~;   2   |;  63   &)
%                                         (  24 <=>; 314  =>;   0  <=;   0 <~>)
%            Maximal formula depth :   39 (  10 avg)
%            Maximal term depth    :    9 (   2 avg)
%            Number of predicates  :    4 (   3 usr;   0 prp; 1-2 aty)
%            Number of functors    :   65 (  65 usr;  19 con; 0-4 aty)
%            Number of variables   :  289 ( 289   !;   0   ?)
% SPC      : FOF_SAT_RFO_SEQ

% Comments :
% Bugfixes : v7.5.0 - Fixes to the axioms.
%------------------------------------------------------------------------------
fof(mem_c_2Ecomparison_2Eequiv__inj,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => mem(c_2Ecomparison_2Eequiv__inj(A_27a,A_27b),arr(arr(A_27a,arr(A_27a,ty_2EternaryComparisons_2Eordering)),arr(arr(A_27b,arr(A_27b,ty_2EternaryComparisons_2Eordering)),arr(arr(A_27a,A_27b),bool)))) ) ) ).

fof(mem_c_2Ecomparison_2Egood__cmp,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => mem(c_2Ecomparison_2Egood__cmp(A_27a),arr(arr(A_27a,arr(A_27a,ty_2EternaryComparisons_2Eordering)),bool)) ) ).

fof(mem_c_2Ecomparison_2Eoption__cmp2,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => mem(c_2Ecomparison_2Eoption__cmp2(A_27a,A_27b),arr(arr(A_27a,arr(A_27b,ty_2EternaryComparisons_2Eordering)),arr(ty_2Eoption_2Eoption(A_27a),arr(ty_2Eoption_2Eoption(A_27b),ty_2EternaryComparisons_2Eordering)))) ) ) ).

fof(mem_c_2Ecomparison_2Eresp__equiv,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [A_27c] :
              ( ne(A_27c)
             => mem(c_2Ecomparison_2Eresp__equiv(A_27a,A_27b,A_27c),arr(arr(A_27a,arr(A_27a,ty_2EternaryComparisons_2Eordering)),arr(arr(A_27a,arr(A_27b,A_27c)),bool))) ) ) ) ).

fof(mem_c_2Ecomparison_2Eresp__equiv2,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => mem(c_2Ecomparison_2Eresp__equiv2(A_27a,A_27b),arr(arr(A_27a,arr(A_27a,ty_2EternaryComparisons_2Eordering)),arr(arr(A_27b,arr(A_27b,ty_2EternaryComparisons_2Eordering)),arr(arr(A_27a,A_27b),bool)))) ) ) ).

fof(ax_thm_2Ecomparison_2Egood__cmp__def,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [V0cmp] :
          ( mem(V0cmp,arr(A_27a,arr(A_27a,ty_2EternaryComparisons_2Eordering)))
         => ( p(ap(c_2Ecomparison_2Egood__cmp(A_27a),V0cmp))
          <=> ( ! [V1x] :
                  ( mem(V1x,A_27a)
                 => ap(ap(V0cmp,V1x),V1x) = c_2EternaryComparisons_2EEQUAL )
              & ! [V2x] :
                  ( mem(V2x,A_27a)
                 => ! [V3y] :
                      ( mem(V3y,A_27a)
                     => ( ap(ap(V0cmp,V2x),V3y) = c_2EternaryComparisons_2EEQUAL
                       => ap(ap(V0cmp,V3y),V2x) = c_2EternaryComparisons_2EEQUAL ) ) )
              & ! [V4x] :
                  ( mem(V4x,A_27a)
                 => ! [V5y] :
                      ( mem(V5y,A_27a)
                     => ( ap(ap(V0cmp,V4x),V5y) = c_2EternaryComparisons_2EGREATER
                      <=> ap(ap(V0cmp,V5y),V4x) = c_2EternaryComparisons_2ELESS ) ) )
              & ! [V6x] :
                  ( mem(V6x,A_27a)
                 => ! [V7y] :
                      ( mem(V7y,A_27a)
                     => ! [V8z] :
                          ( mem(V8z,A_27a)
                         => ( ( ap(ap(V0cmp,V6x),V7y) = c_2EternaryComparisons_2EEQUAL
                              & ap(ap(V0cmp,V7y),V8z) = c_2EternaryComparisons_2ELESS )
                           => ap(ap(V0cmp,V6x),V8z) = c_2EternaryComparisons_2ELESS ) ) ) )
              & ! [V9x] :
                  ( mem(V9x,A_27a)
                 => ! [V10y] :
                      ( mem(V10y,A_27a)
                     => ! [V11z] :
                          ( mem(V11z,A_27a)
                         => ( ( ap(ap(V0cmp,V9x),V10y) = c_2EternaryComparisons_2ELESS
                              & ap(ap(V0cmp,V10y),V11z) = c_2EternaryComparisons_2EEQUAL )
                           => ap(ap(V0cmp,V9x),V11z) = c_2EternaryComparisons_2ELESS ) ) ) )
              & ! [V12x] :
                  ( mem(V12x,A_27a)
                 => ! [V13y] :
                      ( mem(V13y,A_27a)
                     => ! [V14z] :
                          ( mem(V14z,A_27a)
                         => ( ( ap(ap(V0cmp,V12x),V13y) = c_2EternaryComparisons_2EEQUAL
                              & ap(ap(V0cmp,V13y),V14z) = c_2EternaryComparisons_2EEQUAL )
                           => ap(ap(V0cmp,V12x),V14z) = c_2EternaryComparisons_2EEQUAL ) ) ) )
              & ! [V15x] :
                  ( mem(V15x,A_27a)
                 => ! [V16y] :
                      ( mem(V16y,A_27a)
                     => ! [V17z] :
                          ( mem(V17z,A_27a)
                         => ( ( ap(ap(V0cmp,V15x),V16y) = c_2EternaryComparisons_2ELESS
                              & ap(ap(V0cmp,V16y),V17z) = c_2EternaryComparisons_2ELESS )
                           => ap(ap(V0cmp,V15x),V17z) = c_2EternaryComparisons_2ELESS ) ) ) ) ) ) ) ) ).

fof(conj_thm_2Ecomparison_2Egood__cmp__thm,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [V0cmp] :
          ( mem(V0cmp,arr(A_27a,arr(A_27a,ty_2EternaryComparisons_2Eordering)))
         => ( p(ap(c_2Ecomparison_2Egood__cmp(A_27a),V0cmp))
          <=> ( ! [V1x] :
                  ( mem(V1x,A_27a)
                 => ap(ap(V0cmp,V1x),V1x) = c_2EternaryComparisons_2EEQUAL )
              & ! [V2x] :
                  ( mem(V2x,A_27a)
                 => ! [V3y] :
                      ( mem(V3y,A_27a)
                     => ! [V4z] :
                          ( mem(V4z,A_27a)
                         => ( ( ap(ap(V0cmp,V2x),V3y) = c_2EternaryComparisons_2EGREATER
                            <=> ap(ap(V0cmp,V3y),V2x) = c_2EternaryComparisons_2ELESS )
                            & ( ( ap(ap(V0cmp,V2x),V3y) = c_2EternaryComparisons_2ELESS
                                & ap(ap(V0cmp,V3y),V4z) = c_2EternaryComparisons_2EEQUAL )
                             => ap(ap(V0cmp,V2x),V4z) = c_2EternaryComparisons_2ELESS )
                            & ( ( ap(ap(V0cmp,V2x),V3y) = c_2EternaryComparisons_2ELESS
                                & ap(ap(V0cmp,V3y),V4z) = c_2EternaryComparisons_2ELESS )
                             => ap(ap(V0cmp,V2x),V4z) = c_2EternaryComparisons_2ELESS ) ) ) ) ) ) ) ) ) ).

fof(conj_thm_2Ecomparison_2Ecmp__thms,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ( c_2EternaryComparisons_2ELESS != c_2EternaryComparisons_2EEQUAL
        & c_2EternaryComparisons_2ELESS != c_2EternaryComparisons_2EGREATER
        & c_2EternaryComparisons_2EEQUAL != c_2EternaryComparisons_2EGREATER
        & ! [V0v0] :
            ( mem(V0v0,A_27a)
           => ! [V1v1] :
                ( mem(V1v1,A_27a)
               => ! [V2v2] :
                    ( mem(V2v2,A_27a)
                   => ap(ap(ap(ap(c_2EternaryComparisons_2Eordering__CASE(A_27a),c_2EternaryComparisons_2ELESS),V0v0),V1v1),V2v2) = V0v0 ) ) )
        & ! [V3v0] :
            ( mem(V3v0,A_27a)
           => ! [V4v1] :
                ( mem(V4v1,A_27a)
               => ! [V5v2] :
                    ( mem(V5v2,A_27a)
                   => ap(ap(ap(ap(c_2EternaryComparisons_2Eordering__CASE(A_27a),c_2EternaryComparisons_2EEQUAL),V3v0),V4v1),V5v2) = V4v1 ) ) )
        & ! [V6v0] :
            ( mem(V6v0,A_27a)
           => ! [V7v1] :
                ( mem(V7v1,A_27a)
               => ! [V8v2] :
                    ( mem(V8v2,A_27a)
                   => ap(ap(ap(ap(c_2EternaryComparisons_2Eordering__CASE(A_27a),c_2EternaryComparisons_2EGREATER),V6v0),V7v1),V8v2) = V8v2 ) ) )
        & ! [V9a] :
            ( mem(V9a,ty_2EternaryComparisons_2Eordering)
           => ( V9a = c_2EternaryComparisons_2ELESS
              | V9a = c_2EternaryComparisons_2EEQUAL
              | V9a = c_2EternaryComparisons_2EGREATER ) )
        & ! [V10cmp] :
            ( mem(V10cmp,arr(A_27a,arr(A_27a,ty_2EternaryComparisons_2Eordering)))
           => ( p(ap(c_2Ecomparison_2Egood__cmp(A_27a),V10cmp))
            <=> ( ! [V11x] :
                    ( mem(V11x,A_27a)
                   => ap(ap(V10cmp,V11x),V11x) = c_2EternaryComparisons_2EEQUAL )
                & ! [V12x] :
                    ( mem(V12x,A_27a)
                   => ! [V13y] :
                        ( mem(V13y,A_27a)
                       => ( ap(ap(V10cmp,V12x),V13y) = c_2EternaryComparisons_2EEQUAL
                         => ap(ap(V10cmp,V13y),V12x) = c_2EternaryComparisons_2EEQUAL ) ) )
                & ! [V14x] :
                    ( mem(V14x,A_27a)
                   => ! [V15y] :
                        ( mem(V15y,A_27a)
                       => ( ap(ap(V10cmp,V14x),V15y) = c_2EternaryComparisons_2EGREATER
                        <=> ap(ap(V10cmp,V15y),V14x) = c_2EternaryComparisons_2ELESS ) ) )
                & ! [V16x] :
                    ( mem(V16x,A_27a)
                   => ! [V17y] :
                        ( mem(V17y,A_27a)
                       => ! [V18z] :
                            ( mem(V18z,A_27a)
                           => ( ( ap(ap(V10cmp,V16x),V17y) = c_2EternaryComparisons_2EEQUAL
                                & ap(ap(V10cmp,V17y),V18z) = c_2EternaryComparisons_2ELESS )
                             => ap(ap(V10cmp,V16x),V18z) = c_2EternaryComparisons_2ELESS ) ) ) )
                & ! [V19x] :
                    ( mem(V19x,A_27a)
                   => ! [V20y] :
                        ( mem(V20y,A_27a)
                       => ! [V21z] :
                            ( mem(V21z,A_27a)
                           => ( ( ap(ap(V10cmp,V19x),V20y) = c_2EternaryComparisons_2ELESS
                                & ap(ap(V10cmp,V20y),V21z) = c_2EternaryComparisons_2EEQUAL )
                             => ap(ap(V10cmp,V19x),V21z) = c_2EternaryComparisons_2ELESS ) ) ) )
                & ! [V22x] :
                    ( mem(V22x,A_27a)
                   => ! [V23y] :
                        ( mem(V23y,A_27a)
                       => ! [V24z] :
                            ( mem(V24z,A_27a)
                           => ( ( ap(ap(V10cmp,V22x),V23y) = c_2EternaryComparisons_2EEQUAL
                                & ap(ap(V10cmp,V23y),V24z) = c_2EternaryComparisons_2EEQUAL )
                             => ap(ap(V10cmp,V22x),V24z) = c_2EternaryComparisons_2EEQUAL ) ) ) )
                & ! [V25x] :
                    ( mem(V25x,A_27a)
                   => ! [V26y] :
                        ( mem(V26y,A_27a)
                       => ! [V27z] :
                            ( mem(V27z,A_27a)
                           => ( ( ap(ap(V10cmp,V25x),V26y) = c_2EternaryComparisons_2ELESS
                                & ap(ap(V10cmp,V26y),V27z) = c_2EternaryComparisons_2ELESS )
                             => ap(ap(V10cmp,V25x),V27z) = c_2EternaryComparisons_2ELESS ) ) ) ) ) ) ) ) ) ).

fof(conj_thm_2Ecomparison_2Eoption__cmp__def,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [V0c] :
              ( mem(V0c,arr(A_27a,arr(A_27b,ty_2EternaryComparisons_2Eordering)))
             => ! [V1v0] :
                  ( mem(V1v0,A_27b)
                 => ! [V2v3] :
                      ( mem(V2v3,A_27a)
                     => ! [V3v1] :
                          ( mem(V3v1,A_27a)
                         => ! [V4v2] :
                              ( mem(V4v2,A_27b)
                             => ( ap(ap(ap(c_2EternaryComparisons_2Eoption__compare(A_27a,A_27b),V0c),c_2Eoption_2ENONE(A_27a)),c_2Eoption_2ENONE(A_27b)) = c_2EternaryComparisons_2EEQUAL
                                & ap(ap(ap(c_2EternaryComparisons_2Eoption__compare(A_27a,A_27b),V0c),c_2Eoption_2ENONE(A_27a)),ap(c_2Eoption_2ESOME(A_27b),V1v0)) = c_2EternaryComparisons_2ELESS
                                & ap(ap(ap(c_2EternaryComparisons_2Eoption__compare(A_27a,A_27b),V0c),ap(c_2Eoption_2ESOME(A_27a),V2v3)),c_2Eoption_2ENONE(A_27b)) = c_2EternaryComparisons_2EGREATER
                                & ap(ap(ap(c_2EternaryComparisons_2Eoption__compare(A_27a,A_27b),V0c),ap(c_2Eoption_2ESOME(A_27a),V3v1)),ap(c_2Eoption_2ESOME(A_27b),V4v2)) = ap(ap(V0c,V3v1),V4v2) ) ) ) ) ) ) ) ) ).

fof(conj_thm_2Ecomparison_2Eoption__cmp2__ind,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [V0P] :
              ( mem(V0P,arr(arr(A_27a,arr(A_27b,ty_2EternaryComparisons_2Eordering)),arr(ty_2Eoption_2Eoption(A_27a),arr(ty_2Eoption_2Eoption(A_27b),bool))))
             => ( ( ! [V1cmp] :
                      ( mem(V1cmp,arr(A_27a,arr(A_27b,ty_2EternaryComparisons_2Eordering)))
                     => p(ap(ap(ap(V0P,V1cmp),c_2Eoption_2ENONE(A_27a)),c_2Eoption_2ENONE(A_27b))) )
                  & ! [V2cmp] :
                      ( mem(V2cmp,arr(A_27a,arr(A_27b,ty_2EternaryComparisons_2Eordering)))
                     => ! [V3x] :
                          ( mem(V3x,A_27b)
                         => p(ap(ap(ap(V0P,V2cmp),c_2Eoption_2ENONE(A_27a)),ap(c_2Eoption_2ESOME(A_27b),V3x))) ) )
                  & ! [V4cmp] :
                      ( mem(V4cmp,arr(A_27a,arr(A_27b,ty_2EternaryComparisons_2Eordering)))
                     => ! [V5x] :
                          ( mem(V5x,A_27a)
                         => p(ap(ap(ap(V0P,V4cmp),ap(c_2Eoption_2ESOME(A_27a),V5x)),c_2Eoption_2ENONE(A_27b))) ) )
                  & ! [V6cmp] :
                      ( mem(V6cmp,arr(A_27a,arr(A_27b,ty_2EternaryComparisons_2Eordering)))
                     => ! [V7x] :
                          ( mem(V7x,A_27a)
                         => ! [V8y] :
                              ( mem(V8y,A_27b)
                             => p(ap(ap(ap(V0P,V6cmp),ap(c_2Eoption_2ESOME(A_27a),V7x)),ap(c_2Eoption_2ESOME(A_27b),V8y))) ) ) ) )
               => ! [V9v] :
                    ( mem(V9v,arr(A_27a,arr(A_27b,ty_2EternaryComparisons_2Eordering)))
                   => ! [V10v1] :
                        ( mem(V10v1,ty_2Eoption_2Eoption(A_27a))
                       => ! [V11v2] :
                            ( mem(V11v2,ty_2Eoption_2Eoption(A_27b))
                           => p(ap(ap(ap(V0P,V9v),V10v1),V11v2)) ) ) ) ) ) ) ) ).

fof(conj_thm_2Ecomparison_2Eoption__cmp2__def,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [V0cmp] :
              ( mem(V0cmp,arr(A_27a,arr(A_27b,ty_2EternaryComparisons_2Eordering)))
             => ! [V1x_27] :
                  ( mem(V1x_27,A_27b)
                 => ! [V2x] :
                      ( mem(V2x,A_27a)
                     => ! [V3y] :
                          ( mem(V3y,A_27b)
                         => ( ap(ap(ap(c_2Ecomparison_2Eoption__cmp2(A_27a,A_27b),V0cmp),c_2Eoption_2ENONE(A_27a)),c_2Eoption_2ENONE(A_27b)) = c_2EternaryComparisons_2EEQUAL
                            & ap(ap(ap(c_2Ecomparison_2Eoption__cmp2(A_27a,A_27b),V0cmp),c_2Eoption_2ENONE(A_27a)),ap(c_2Eoption_2ESOME(A_27b),V1x_27)) = c_2EternaryComparisons_2EGREATER
                            & ap(ap(ap(c_2Ecomparison_2Eoption__cmp2(A_27a,A_27b),V0cmp),ap(c_2Eoption_2ESOME(A_27a),V2x)),c_2Eoption_2ENONE(A_27b)) = c_2EternaryComparisons_2ELESS
                            & ap(ap(ap(c_2Ecomparison_2Eoption__cmp2(A_27a,A_27b),V0cmp),ap(c_2Eoption_2ESOME(A_27a),V2x)),ap(c_2Eoption_2ESOME(A_27b),V3y)) = ap(ap(V0cmp,V2x),V3y) ) ) ) ) ) ) ) ).

fof(conj_thm_2Ecomparison_2Epair__cmp__def,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [A_27c] :
              ( ne(A_27c)
             => ! [A_27d] :
                  ( ne(A_27d)
                 => ! [V0c1] :
                      ( mem(V0c1,arr(A_27a,arr(A_27b,ty_2EternaryComparisons_2Eordering)))
                     => ! [V1c2] :
                          ( mem(V1c2,arr(A_27c,arr(A_27d,ty_2EternaryComparisons_2Eordering)))
                         => ! [V2x] :
                              ( mem(V2x,ty_2Epair_2Eprod(A_27a,A_27c))
                             => ! [V3y] :
                                  ( mem(V3y,ty_2Epair_2Eprod(A_27b,A_27d))
                                 => ap(ap(ap(ap(c_2EternaryComparisons_2Epair__compare(A_27a,A_27b,A_27c,A_27d),V0c1),V1c2),V2x),V3y) = ap(ap(ap(ap(c_2EternaryComparisons_2Eordering__CASE(ty_2EternaryComparisons_2Eordering),ap(ap(V0c1,ap(c_2Epair_2EFST(A_27a,A_27c),V2x)),ap(c_2Epair_2EFST(A_27b,A_27d),V3y))),c_2EternaryComparisons_2ELESS),ap(ap(V1c2,ap(c_2Epair_2ESND(A_27a,A_27c),V2x)),ap(c_2Epair_2ESND(A_27b,A_27d),V3y))),c_2EternaryComparisons_2EGREATER) ) ) ) ) ) ) ) ) ).

fof(conj_thm_2Ecomparison_2Ebool__cmp__def,axiom,
    ( ap(ap(c_2EternaryComparisons_2Ebool__compare,c_2Ebool_2ET),c_2Ebool_2ET) = c_2EternaryComparisons_2EEQUAL
    & ap(ap(c_2EternaryComparisons_2Ebool__compare,c_2Ebool_2EF),c_2Ebool_2EF) = c_2EternaryComparisons_2EEQUAL
    & ap(ap(c_2EternaryComparisons_2Ebool__compare,c_2Ebool_2ET),c_2Ebool_2EF) = c_2EternaryComparisons_2EGREATER
    & ap(ap(c_2EternaryComparisons_2Ebool__compare,c_2Ebool_2EF),c_2Ebool_2ET) = c_2EternaryComparisons_2ELESS ) ).

fof(conj_thm_2Ecomparison_2Enum__cmp__def,axiom,
    ! [V0n1] :
      ( mem(V0n1,ty_2Enum_2Enum)
     => ! [V1n2] :
          ( mem(V1n2,ty_2Enum_2Enum)
         => ap(ap(c_2EternaryComparisons_2Enum__compare,V0n1),V1n2) = ap(ap(ap(c_2Ebool_2ECOND(ty_2EternaryComparisons_2Eordering),ap(ap(c_2Emin_2E_3D(ty_2Enum_2Enum),V0n1),V1n2)),c_2EternaryComparisons_2EEQUAL),ap(ap(ap(c_2Ebool_2ECOND(ty_2EternaryComparisons_2Eordering),ap(ap(c_2Eprim__rec_2E_3C,V0n1),V1n2)),c_2EternaryComparisons_2ELESS),c_2EternaryComparisons_2EGREATER)) ) ) ).

fof(conj_thm_2Ecomparison_2Echar__cmp__def,axiom,
    ! [V0c1] :
      ( mem(V0c1,ty_2Estring_2Echar)
     => ! [V1c2] :
          ( mem(V1c2,ty_2Estring_2Echar)
         => ap(ap(c_2EternaryComparisons_2Echar__compare,V0c1),V1c2) = ap(ap(c_2EternaryComparisons_2Enum__compare,ap(c_2Estring_2EORD,V0c1)),ap(c_2Estring_2EORD,V1c2)) ) ) ).

fof(conj_thm_2Ecomparison_2Estring__cmp__def,axiom,
    c_2EternaryComparisons_2Estring__compare = ap(c_2EternaryComparisons_2Elist__compare(ty_2Estring_2Echar,ty_2Estring_2Echar),c_2EternaryComparisons_2Echar__compare) ).

fof(conj_thm_2Ecomparison_2ETotOrder__imp__good__cmp,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [V0cmp] :
          ( mem(V0cmp,arr(A_27a,arr(A_27a,ty_2EternaryComparisons_2Eordering)))
         => ( p(ap(c_2Etoto_2ETotOrd(A_27a),V0cmp))
           => p(ap(c_2Ecomparison_2Egood__cmp(A_27a),V0cmp)) ) ) ) ).

fof(conj_thm_2Ecomparison_2ETO__inv__invert,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [V0c] :
          ( mem(V0c,arr(A_27a,arr(A_27a,ty_2EternaryComparisons_2Eordering)))
         => ( p(ap(c_2Etoto_2ETotOrd(A_27a),V0c))
           => ap(c_2Etoto_2ETO__inv(A_27a),V0c) = ap(c_2Epair_2ECURRY(A_27a,A_27a,ty_2EternaryComparisons_2Eordering),ap(ap(c_2Ecombin_2Eo(ty_2Epair_2Eprod(A_27a,A_27a),ty_2EternaryComparisons_2Eordering,ty_2EternaryComparisons_2Eordering),c_2EternaryComparisons_2Einvert__comparison),ap(c_2Epair_2EUNCURRY(A_27a,A_27a,ty_2EternaryComparisons_2Eordering),V0c))) ) ) ) ).

fof(conj_thm_2Ecomparison_2Eoption__cmp2__TO__inv,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [V0c] :
          ( mem(V0c,arr(A_27a,arr(A_27a,ty_2EternaryComparisons_2Eordering)))
         => ap(c_2Ecomparison_2Eoption__cmp2(A_27a,A_27a),V0c) = ap(c_2Etoto_2ETO__inv(ty_2Eoption_2Eoption(A_27a)),ap(c_2EternaryComparisons_2Eoption__compare(A_27a,A_27a),ap(c_2Etoto_2ETO__inv(A_27a),V0c))) ) ) ).

fof(conj_thm_2Ecomparison_2Elist__cmp__ListOrd,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [V0c] :
          ( mem(V0c,arr(A_27a,arr(A_27a,ty_2EternaryComparisons_2Eordering)))
         => ( p(ap(c_2Etoto_2ETotOrd(A_27a),V0c))
           => ap(c_2EternaryComparisons_2Elist__compare(A_27a,A_27a),V0c) = ap(c_2Etoto_2EListOrd(A_27a),ap(c_2Etoto_2ETO(A_27a),V0c)) ) ) ) ).

fof(conj_thm_2Ecomparison_2ETotOrd__list__cmp,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [V0c] :
          ( mem(V0c,arr(A_27a,arr(A_27a,ty_2EternaryComparisons_2Eordering)))
         => ( p(ap(c_2Etoto_2ETotOrd(A_27a),V0c))
           => p(ap(c_2Etoto_2ETotOrd(ty_2Elist_2Elist(A_27a)),ap(c_2EternaryComparisons_2Elist__compare(A_27a,A_27a),V0c))) ) ) ) ).

fof(conj_thm_2Ecomparison_2Epair__cmp__lexTO,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [V0R] :
              ( mem(V0R,arr(A_27a,arr(A_27a,ty_2EternaryComparisons_2Eordering)))
             => ! [V1V] :
                  ( mem(V1V,arr(A_27b,arr(A_27b,ty_2EternaryComparisons_2Eordering)))
                 => ( ( p(ap(c_2Etoto_2ETotOrd(A_27a),V0R))
                      & p(ap(c_2Etoto_2ETotOrd(A_27b),V1V)) )
                   => ap(ap(c_2EternaryComparisons_2Epair__compare(A_27a,A_27a,A_27b,A_27b),V0R),V1V) = ap(ap(c_2Etoto_2ElexTO(A_27a,A_27b),V0R),V1V) ) ) ) ) ) ).

fof(conj_thm_2Ecomparison_2Enum__cmp__numOrd,axiom,
    c_2EternaryComparisons_2Enum__compare = c_2Etoto_2EnumOrd ).

fof(conj_thm_2Ecomparison_2Echar__cmp__charOrd,axiom,
    c_2EternaryComparisons_2Echar__compare = c_2Etoto_2EcharOrd ).

fof(conj_thm_2Ecomparison_2Estring__cmp__stringto,axiom,
    c_2EternaryComparisons_2Estring__compare = ap(c_2Etoto_2Eapto(ty_2Elist_2Elist(ty_2Estring_2Echar)),c_2Etoto_2Estringto) ).

fof(conj_thm_2Ecomparison_2Eoption__cmp__good,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [V0cmp] :
          ( mem(V0cmp,arr(A_27a,arr(A_27a,ty_2EternaryComparisons_2Eordering)))
         => ( p(ap(c_2Ecomparison_2Egood__cmp(A_27a),V0cmp))
           => p(ap(c_2Ecomparison_2Egood__cmp(ty_2Eoption_2Eoption(A_27a)),ap(c_2EternaryComparisons_2Eoption__compare(A_27a,A_27a),V0cmp))) ) ) ) ).

fof(conj_thm_2Ecomparison_2Eoption__cmp2__good,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [V0cmp] :
          ( mem(V0cmp,arr(A_27a,arr(A_27a,ty_2EternaryComparisons_2Eordering)))
         => ( p(ap(c_2Ecomparison_2Egood__cmp(A_27a),V0cmp))
           => p(ap(c_2Ecomparison_2Egood__cmp(ty_2Eoption_2Eoption(A_27a)),ap(c_2Ecomparison_2Eoption__cmp2(A_27a,A_27a),V0cmp))) ) ) ) ).

fof(conj_thm_2Ecomparison_2Elist__cmp__good,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [V0cmp] :
          ( mem(V0cmp,arr(A_27a,arr(A_27a,ty_2EternaryComparisons_2Eordering)))
         => ( p(ap(c_2Ecomparison_2Egood__cmp(A_27a),V0cmp))
           => p(ap(c_2Ecomparison_2Egood__cmp(ty_2Elist_2Elist(A_27a)),ap(c_2EternaryComparisons_2Elist__compare(A_27a,A_27a),V0cmp))) ) ) ) ).

fof(conj_thm_2Ecomparison_2Epair__cmp__good,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [V0cmp1] :
              ( mem(V0cmp1,arr(A_27a,arr(A_27a,ty_2EternaryComparisons_2Eordering)))
             => ! [V1cmp2] :
                  ( mem(V1cmp2,arr(A_27b,arr(A_27b,ty_2EternaryComparisons_2Eordering)))
                 => ( ( p(ap(c_2Ecomparison_2Egood__cmp(A_27a),V0cmp1))
                      & p(ap(c_2Ecomparison_2Egood__cmp(A_27b),V1cmp2)) )
                   => p(ap(c_2Ecomparison_2Egood__cmp(ty_2Epair_2Eprod(A_27a,A_27b)),ap(ap(c_2EternaryComparisons_2Epair__compare(A_27a,A_27a,A_27b,A_27b),V0cmp1),V1cmp2))) ) ) ) ) ) ).

fof(conj_thm_2Ecomparison_2Ebool__cmp__good,axiom,
    p(ap(c_2Ecomparison_2Egood__cmp(bool),c_2EternaryComparisons_2Ebool__compare)) ).

fof(conj_thm_2Ecomparison_2Enum__cmp__good,axiom,
    p(ap(c_2Ecomparison_2Egood__cmp(ty_2Enum_2Enum),c_2EternaryComparisons_2Enum__compare)) ).

fof(conj_thm_2Ecomparison_2Echar__cmp__good,axiom,
    p(ap(c_2Ecomparison_2Egood__cmp(ty_2Estring_2Echar),c_2EternaryComparisons_2Echar__compare)) ).

fof(conj_thm_2Ecomparison_2Estring__cmp__good,axiom,
    p(ap(c_2Ecomparison_2Egood__cmp(ty_2Elist_2Elist(ty_2Estring_2Echar)),c_2EternaryComparisons_2Estring__compare)) ).

fof(conj_thm_2Ecomparison_2Elist__cmp__cong,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [V0cmp] :
              ( mem(V0cmp,arr(A_27a,arr(A_27b,ty_2EternaryComparisons_2Eordering)))
             => ! [V1l1] :
                  ( mem(V1l1,ty_2Elist_2Elist(A_27a))
                 => ! [V2l2] :
                      ( mem(V2l2,ty_2Elist_2Elist(A_27b))
                     => ! [V3cmp_27] :
                          ( mem(V3cmp_27,arr(A_27a,arr(A_27b,ty_2EternaryComparisons_2Eordering)))
                         => ! [V4l1_27] :
                              ( mem(V4l1_27,ty_2Elist_2Elist(A_27a))
                             => ! [V5l2_27] :
                                  ( mem(V5l2_27,ty_2Elist_2Elist(A_27b))
                                 => ( ( V1l1 = V4l1_27
                                      & V2l2 = V5l2_27
                                      & ! [V6x] :
                                          ( mem(V6x,A_27a)
                                         => ! [V7x_27] :
                                              ( mem(V7x_27,A_27b)
                                             => ( ( p(ap(ap(c_2Ebool_2EIN(A_27a),V6x),ap(c_2Elist_2ELIST__TO__SET(A_27a),V4l1_27)))
                                                  & p(ap(ap(c_2Ebool_2EIN(A_27b),V7x_27),ap(c_2Elist_2ELIST__TO__SET(A_27b),V5l2_27))) )
                                               => ap(ap(V0cmp,V6x),V7x_27) = ap(ap(V3cmp_27,V6x),V7x_27) ) ) ) )
                                   => ap(ap(ap(c_2EternaryComparisons_2Elist__compare(A_27a,A_27b),V0cmp),V1l1),V2l2) = ap(ap(ap(c_2EternaryComparisons_2Elist__compare(A_27a,A_27b),V3cmp_27),V4l1_27),V5l2_27) ) ) ) ) ) ) ) ) ) ).

fof(conj_thm_2Ecomparison_2Eoption__cmp__cong,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [V0cmp] :
              ( mem(V0cmp,arr(A_27a,arr(A_27b,ty_2EternaryComparisons_2Eordering)))
             => ! [V1v1] :
                  ( mem(V1v1,ty_2Eoption_2Eoption(A_27a))
                 => ! [V2v2] :
                      ( mem(V2v2,ty_2Eoption_2Eoption(A_27b))
                     => ! [V3cmp_27] :
                          ( mem(V3cmp_27,arr(A_27a,arr(A_27b,ty_2EternaryComparisons_2Eordering)))
                         => ! [V4v1_27] :
                              ( mem(V4v1_27,ty_2Eoption_2Eoption(A_27a))
                             => ! [V5v2_27] :
                                  ( mem(V5v2_27,ty_2Eoption_2Eoption(A_27b))
                                 => ( ( V1v1 = V4v1_27
                                      & V2v2 = V5v2_27
                                      & ! [V6x] :
                                          ( mem(V6x,A_27a)
                                         => ! [V7x_27] :
                                              ( mem(V7x_27,A_27b)
                                             => ( ( V4v1_27 = ap(c_2Eoption_2ESOME(A_27a),V6x)
                                                  & V5v2_27 = ap(c_2Eoption_2ESOME(A_27b),V7x_27) )
                                               => ap(ap(V0cmp,V6x),V7x_27) = ap(ap(V3cmp_27,V6x),V7x_27) ) ) ) )
                                   => ap(ap(ap(c_2EternaryComparisons_2Eoption__compare(A_27a,A_27b),V0cmp),V1v1),V2v2) = ap(ap(ap(c_2EternaryComparisons_2Eoption__compare(A_27a,A_27b),V3cmp_27),V4v1_27),V5v2_27) ) ) ) ) ) ) ) ) ) ).

fof(conj_thm_2Ecomparison_2Eoption__cmp2__cong,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [V0cmp] :
              ( mem(V0cmp,arr(A_27a,arr(A_27b,ty_2EternaryComparisons_2Eordering)))
             => ! [V1v1] :
                  ( mem(V1v1,ty_2Eoption_2Eoption(A_27a))
                 => ! [V2v2] :
                      ( mem(V2v2,ty_2Eoption_2Eoption(A_27b))
                     => ! [V3cmp_27] :
                          ( mem(V3cmp_27,arr(A_27a,arr(A_27b,ty_2EternaryComparisons_2Eordering)))
                         => ! [V4v1_27] :
                              ( mem(V4v1_27,ty_2Eoption_2Eoption(A_27a))
                             => ! [V5v2_27] :
                                  ( mem(V5v2_27,ty_2Eoption_2Eoption(A_27b))
                                 => ( ( V1v1 = V4v1_27
                                      & V2v2 = V5v2_27
                                      & ! [V6x] :
                                          ( mem(V6x,A_27a)
                                         => ! [V7x_27] :
                                              ( mem(V7x_27,A_27b)
                                             => ( ( V4v1_27 = ap(c_2Eoption_2ESOME(A_27a),V6x)
                                                  & V5v2_27 = ap(c_2Eoption_2ESOME(A_27b),V7x_27) )
                                               => ap(ap(V0cmp,V6x),V7x_27) = ap(ap(V3cmp_27,V6x),V7x_27) ) ) ) )
                                   => ap(ap(ap(c_2Ecomparison_2Eoption__cmp2(A_27a,A_27b),V0cmp),V1v1),V2v2) = ap(ap(ap(c_2Ecomparison_2Eoption__cmp2(A_27a,A_27b),V3cmp_27),V4v1_27),V5v2_27) ) ) ) ) ) ) ) ) ) ).

fof(conj_thm_2Ecomparison_2Epair__cmp__cong,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [A_27c] :
              ( ne(A_27c)
             => ! [A_27d] :
                  ( ne(A_27d)
                 => ! [V0cmp1] :
                      ( mem(V0cmp1,arr(A_27a,arr(A_27b,ty_2EternaryComparisons_2Eordering)))
                     => ! [V1cmp2] :
                          ( mem(V1cmp2,arr(A_27c,arr(A_27d,ty_2EternaryComparisons_2Eordering)))
                         => ! [V2v1] :
                              ( mem(V2v1,ty_2Epair_2Eprod(A_27a,A_27c))
                             => ! [V3v2] :
                                  ( mem(V3v2,ty_2Epair_2Eprod(A_27b,A_27d))
                                 => ! [V4cmp1_27] :
                                      ( mem(V4cmp1_27,arr(A_27a,arr(A_27b,ty_2EternaryComparisons_2Eordering)))
                                     => ! [V5cmp2_27] :
                                          ( mem(V5cmp2_27,arr(A_27c,arr(A_27d,ty_2EternaryComparisons_2Eordering)))
                                         => ! [V6v1_27] :
                                              ( mem(V6v1_27,ty_2Epair_2Eprod(A_27a,A_27c))
                                             => ! [V7v2_27] :
                                                  ( mem(V7v2_27,ty_2Epair_2Eprod(A_27b,A_27d))
                                                 => ( ( V2v1 = V6v1_27
                                                      & V3v2 = V7v2_27
                                                      & ! [V8a] :
                                                          ( mem(V8a,A_27a)
                                                         => ! [V9b] :
                                                              ( mem(V9b,A_27c)
                                                             => ! [V10c] :
                                                                  ( mem(V10c,A_27b)
                                                                 => ! [V11d] :
                                                                      ( mem(V11d,A_27d)
                                                                     => ( ( V6v1_27 = ap(ap(c_2Epair_2E_2C(A_27a,A_27c),V8a),V9b)
                                                                          & V7v2_27 = ap(ap(c_2Epair_2E_2C(A_27b,A_27d),V10c),V11d) )
                                                                       => ap(ap(V0cmp1,V8a),V10c) = ap(ap(V4cmp1_27,V8a),V10c) ) ) ) ) )
                                                      & ! [V12a] :
                                                          ( mem(V12a,A_27a)
                                                         => ! [V13b] :
                                                              ( mem(V13b,A_27c)
                                                             => ! [V14c] :
                                                                  ( mem(V14c,A_27b)
                                                                 => ! [V15d] :
                                                                      ( mem(V15d,A_27d)
                                                                     => ( ( V6v1_27 = ap(ap(c_2Epair_2E_2C(A_27a,A_27c),V12a),V13b)
                                                                          & V7v2_27 = ap(ap(c_2Epair_2E_2C(A_27b,A_27d),V14c),V15d) )
                                                                       => ap(ap(V1cmp2,V13b),V15d) = ap(ap(V5cmp2_27,V13b),V15d) ) ) ) ) ) )
                                                   => ap(ap(ap(ap(c_2EternaryComparisons_2Epair__compare(A_27a,A_27b,A_27c,A_27d),V0cmp1),V1cmp2),V2v1),V3v2) = ap(ap(ap(ap(c_2EternaryComparisons_2Epair__compare(A_27a,A_27b,A_27c,A_27d),V4cmp1_27),V5cmp2_27),V6v1_27),V7v2_27) ) ) ) ) ) ) ) ) ) ) ) ) ) ).

fof(lameq_f2280,axiom,
    ! [A_27b,A_27a,V1k] :
      ( mem(V1k,A_27a)
     => ! [V0cmp] :
          ( mem(V0cmp,arr(A_27a,arr(A_27a,ty_2EternaryComparisons_2Eordering)))
         => ! [V3k_27] : ap(f2280(A_27b,A_27a,V1k,V0cmp),V3k_27) = k(A_27b,ap(ap(c_2Emin_2E_3D(ty_2EternaryComparisons_2Eordering),ap(ap(V0cmp,V1k),V3k_27)),c_2EternaryComparisons_2ELESS)) ) ) ).

fof(lameq_f2281,axiom,
    ! [A_27b,A_27a,V0cmp] :
      ( mem(V0cmp,arr(A_27a,arr(A_27a,ty_2EternaryComparisons_2Eordering)))
     => ! [V1k] : ap(f2281(A_27b,A_27a,V0cmp),V1k) = k(A_27b,ap(c_2Epair_2EUNCURRY(A_27a,A_27b,bool),f2280(A_27b,A_27a,V1k,V0cmp))) ) ).

fof(conj_thm_2Ecomparison_2Egood__cmp__trans,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [V0cmp] :
              ( mem(V0cmp,arr(A_27a,arr(A_27a,ty_2EternaryComparisons_2Eordering)))
             => ( p(ap(c_2Ecomparison_2Egood__cmp(A_27a),V0cmp))
               => p(ap(c_2Erelation_2Etransitive(ty_2Epair_2Eprod(A_27a,A_27b)),ap(c_2Epair_2EUNCURRY(A_27a,A_27b,arr(ty_2Epair_2Eprod(A_27a,A_27b),bool)),f2281(A_27b,A_27a,V0cmp)))) ) ) ) ) ).

fof(lameq_f2282,axiom,
    ! [A_27a,V1k] :
      ( mem(V1k,A_27a)
     => ! [V0cmp] :
          ( mem(V0cmp,arr(A_27a,arr(A_27a,ty_2EternaryComparisons_2Eordering)))
         => ! [V2k_27] : ap(f2282(A_27a,V1k,V0cmp),V2k_27) = ap(ap(c_2Emin_2E_3D(ty_2EternaryComparisons_2Eordering),ap(ap(V0cmp,V1k),V2k_27)),c_2EternaryComparisons_2ELESS) ) ) ).

fof(lameq_f2283,axiom,
    ! [A_27a,V0cmp] :
      ( mem(V0cmp,arr(A_27a,arr(A_27a,ty_2EternaryComparisons_2Eordering)))
     => ! [V1k] : ap(f2283(A_27a,V0cmp),V1k) = f2282(A_27a,V1k,V0cmp) ) ).

fof(conj_thm_2Ecomparison_2Egood__cmp__Less__trans,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [V0cmp] :
          ( mem(V0cmp,arr(A_27a,arr(A_27a,ty_2EternaryComparisons_2Eordering)))
         => ( p(ap(c_2Ecomparison_2Egood__cmp(A_27a),V0cmp))
           => p(ap(c_2Erelation_2Etransitive(A_27a),f2283(A_27a,V0cmp))) ) ) ) ).

fof(lameq_f2284,axiom,
    ! [A_27a,V3k] :
      ( mem(V3k,A_27a)
     => ! [V0cmp] :
          ( mem(V0cmp,arr(A_27a,arr(A_27a,ty_2EternaryComparisons_2Eordering)))
         => ! [V4k_27] : ap(f2284(A_27a,V3k,V0cmp),V4k_27) = ap(ap(c_2Emin_2E_3D(ty_2EternaryComparisons_2Eordering),ap(ap(V0cmp,V3k),V4k_27)),c_2EternaryComparisons_2ELESS) ) ) ).

fof(lameq_f2285,axiom,
    ! [A_27a,V0cmp] :
      ( mem(V0cmp,arr(A_27a,arr(A_27a,ty_2EternaryComparisons_2Eordering)))
     => ! [V3k] : ap(f2285(A_27a,V0cmp),V3k) = f2284(A_27a,V3k,V0cmp) ) ).

fof(conj_thm_2Ecomparison_2Egood__cmp__Less__irrefl__trans,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [V0cmp] :
          ( mem(V0cmp,arr(A_27a,arr(A_27a,ty_2EternaryComparisons_2Eordering)))
         => ( p(ap(c_2Ecomparison_2Egood__cmp(A_27a),V0cmp))
           => ( p(ap(c_2Erelation_2Eirreflexive(A_27a),f2283(A_27a,V0cmp)))
              & p(ap(c_2Erelation_2Etransitive(A_27a),f2285(A_27a,V0cmp))) ) ) ) ) ).

fof(conj_thm_2Ecomparison_2Ebool__cmp__antisym,axiom,
    ! [V0x] :
      ( mem(V0x,bool)
     => ! [V1y] :
          ( mem(V1y,bool)
         => ( ap(ap(c_2EternaryComparisons_2Ebool__compare,V0x),V1y) = c_2EternaryComparisons_2EEQUAL
          <=> ( p(V0x)
            <=> p(V1y) ) ) ) ) ).

fof(conj_thm_2Ecomparison_2Enum__cmp__antisym,axiom,
    ! [V0x] :
      ( mem(V0x,ty_2Enum_2Enum)
     => ! [V1y] :
          ( mem(V1y,ty_2Enum_2Enum)
         => ( ap(ap(c_2EternaryComparisons_2Enum__compare,V0x),V1y) = c_2EternaryComparisons_2EEQUAL
          <=> V0x = V1y ) ) ) ).

fof(conj_thm_2Ecomparison_2Echar__cmp__antisym,axiom,
    ! [V0x] :
      ( mem(V0x,ty_2Estring_2Echar)
     => ! [V1y] :
          ( mem(V1y,ty_2Estring_2Echar)
         => ( ap(ap(c_2EternaryComparisons_2Echar__compare,V0x),V1y) = c_2EternaryComparisons_2EEQUAL
          <=> V0x = V1y ) ) ) ).

fof(conj_thm_2Ecomparison_2Elist__cmp__antisym,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [V0cmp] :
          ( mem(V0cmp,arr(A_27a,arr(A_27a,ty_2EternaryComparisons_2Eordering)))
         => ! [V1x] :
              ( mem(V1x,ty_2Elist_2Elist(A_27a))
             => ! [V2y] :
                  ( mem(V2y,ty_2Elist_2Elist(A_27a))
                 => ( ! [V3x] :
                        ( mem(V3x,A_27a)
                       => ! [V4y] :
                            ( mem(V4y,A_27a)
                           => ( ap(ap(V0cmp,V3x),V4y) = c_2EternaryComparisons_2EEQUAL
                            <=> V3x = V4y ) ) )
                   => ( ap(ap(ap(c_2EternaryComparisons_2Elist__compare(A_27a,A_27a),V0cmp),V1x),V2y) = c_2EternaryComparisons_2EEQUAL
                    <=> V1x = V2y ) ) ) ) ) ) ).

fof(conj_thm_2Ecomparison_2Estring__cmp__antisym,axiom,
    ! [V0x] :
      ( mem(V0x,ty_2Elist_2Elist(ty_2Estring_2Echar))
     => ! [V1y] :
          ( mem(V1y,ty_2Elist_2Elist(ty_2Estring_2Echar))
         => ( ap(ap(c_2EternaryComparisons_2Estring__compare,V0x),V1y) = c_2EternaryComparisons_2EEQUAL
          <=> V0x = V1y ) ) ) ).

fof(conj_thm_2Ecomparison_2Epair__cmp__antisym,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [V0cmp1] :
              ( mem(V0cmp1,arr(A_27a,arr(A_27a,ty_2EternaryComparisons_2Eordering)))
             => ! [V1cmp2] :
                  ( mem(V1cmp2,arr(A_27b,arr(A_27b,ty_2EternaryComparisons_2Eordering)))
                 => ! [V2x] :
                      ( mem(V2x,ty_2Epair_2Eprod(A_27a,A_27b))
                     => ! [V3y] :
                          ( mem(V3y,ty_2Epair_2Eprod(A_27a,A_27b))
                         => ( ( ! [V4x] :
                                  ( mem(V4x,A_27a)
                                 => ! [V5y] :
                                      ( mem(V5y,A_27a)
                                     => ( ap(ap(V0cmp1,V4x),V5y) = c_2EternaryComparisons_2EEQUAL
                                      <=> V4x = V5y ) ) )
                              & ! [V6x] :
                                  ( mem(V6x,A_27b)
                                 => ! [V7y] :
                                      ( mem(V7y,A_27b)
                                     => ( ap(ap(V1cmp2,V6x),V7y) = c_2EternaryComparisons_2EEQUAL
                                      <=> V6x = V7y ) ) ) )
                           => ( ap(ap(ap(ap(c_2EternaryComparisons_2Epair__compare(A_27a,A_27a,A_27b,A_27b),V0cmp1),V1cmp2),V2x),V3y) = c_2EternaryComparisons_2EEQUAL
                            <=> V2x = V3y ) ) ) ) ) ) ) ) ).

fof(conj_thm_2Ecomparison_2Eoption__cmp__antisym,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [V0cmp] :
          ( mem(V0cmp,arr(A_27a,arr(A_27a,ty_2EternaryComparisons_2Eordering)))
         => ! [V1x] :
              ( mem(V1x,ty_2Eoption_2Eoption(A_27a))
             => ! [V2y] :
                  ( mem(V2y,ty_2Eoption_2Eoption(A_27a))
                 => ( ! [V3x] :
                        ( mem(V3x,A_27a)
                       => ! [V4y] :
                            ( mem(V4y,A_27a)
                           => ( ap(ap(V0cmp,V3x),V4y) = c_2EternaryComparisons_2EEQUAL
                            <=> V3x = V4y ) ) )
                   => ( ap(ap(ap(c_2EternaryComparisons_2Eoption__compare(A_27a,A_27a),V0cmp),V1x),V2y) = c_2EternaryComparisons_2EEQUAL
                    <=> V1x = V2y ) ) ) ) ) ) ).

fof(conj_thm_2Ecomparison_2Eoption__cmp2__antisym,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [V0cmp] :
          ( mem(V0cmp,arr(A_27a,arr(A_27a,ty_2EternaryComparisons_2Eordering)))
         => ! [V1x] :
              ( mem(V1x,ty_2Eoption_2Eoption(A_27a))
             => ! [V2y] :
                  ( mem(V2y,ty_2Eoption_2Eoption(A_27a))
                 => ( ! [V3x] :
                        ( mem(V3x,A_27a)
                       => ! [V4y] :
                            ( mem(V4y,A_27a)
                           => ( ap(ap(V0cmp,V3x),V4y) = c_2EternaryComparisons_2EEQUAL
                            <=> V3x = V4y ) ) )
                   => ( ap(ap(ap(c_2Ecomparison_2Eoption__cmp2(A_27a,A_27a),V0cmp),V1x),V2y) = c_2EternaryComparisons_2EEQUAL
                    <=> V1x = V2y ) ) ) ) ) ) ).

fof(ax_thm_2Ecomparison_2Eresp__equiv__def,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [A_27c] :
              ( ne(A_27c)
             => ! [V0cmp] :
                  ( mem(V0cmp,arr(A_27a,arr(A_27a,ty_2EternaryComparisons_2Eordering)))
                 => ! [V1f] :
                      ( mem(V1f,arr(A_27a,arr(A_27b,A_27c)))
                     => ( p(ap(ap(c_2Ecomparison_2Eresp__equiv(A_27a,A_27b,A_27c),V0cmp),V1f))
                      <=> ! [V2k1] :
                            ( mem(V2k1,A_27a)
                           => ! [V3k2] :
                                ( mem(V3k2,A_27a)
                               => ! [V4v] :
                                    ( mem(V4v,A_27b)
                                   => ( ap(ap(V0cmp,V2k1),V3k2) = c_2EternaryComparisons_2EEQUAL
                                     => ap(ap(V1f,V2k1),V4v) = ap(ap(V1f,V3k2),V4v) ) ) ) ) ) ) ) ) ) ) ).

fof(ax_thm_2Ecomparison_2Eresp__equiv2__def,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [V0cmp] :
              ( mem(V0cmp,arr(A_27a,arr(A_27a,ty_2EternaryComparisons_2Eordering)))
             => ! [V1cmp2] :
                  ( mem(V1cmp2,arr(A_27b,arr(A_27b,ty_2EternaryComparisons_2Eordering)))
                 => ! [V2f] :
                      ( mem(V2f,arr(A_27a,A_27b))
                     => ( p(ap(ap(ap(c_2Ecomparison_2Eresp__equiv2(A_27a,A_27b),V0cmp),V1cmp2),V2f))
                      <=> ! [V3k1] :
                            ( mem(V3k1,A_27a)
                           => ! [V4k2] :
                                ( mem(V4k2,A_27a)
                               => ( ap(ap(V0cmp,V3k1),V4k2) = c_2EternaryComparisons_2EEQUAL
                                 => ap(ap(V1cmp2,ap(V2f,V3k1)),ap(V2f,V4k2)) = c_2EternaryComparisons_2EEQUAL ) ) ) ) ) ) ) ) ) ).

fof(ax_thm_2Ecomparison_2Eequiv__inj__def,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [V0cmp] :
              ( mem(V0cmp,arr(A_27a,arr(A_27a,ty_2EternaryComparisons_2Eordering)))
             => ! [V1cmp2] :
                  ( mem(V1cmp2,arr(A_27b,arr(A_27b,ty_2EternaryComparisons_2Eordering)))
                 => ! [V2f] :
                      ( mem(V2f,arr(A_27a,A_27b))
                     => ( p(ap(ap(ap(c_2Ecomparison_2Eequiv__inj(A_27a,A_27b),V0cmp),V1cmp2),V2f))
                      <=> ! [V3k1] :
                            ( mem(V3k1,A_27a)
                           => ! [V4k2] :
                                ( mem(V4k2,A_27a)
                               => ( ap(ap(V1cmp2,ap(V2f,V3k1)),ap(V2f,V4k2)) = c_2EternaryComparisons_2EEQUAL
                                 => ap(ap(V0cmp,V3k1),V4k2) = c_2EternaryComparisons_2EEQUAL ) ) ) ) ) ) ) ) ) ).

fof(conj_thm_2Ecomparison_2Eantisym__resp__equiv,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [A_27c] :
              ( ne(A_27c)
             => ! [V0cmp] :
                  ( mem(V0cmp,arr(A_27a,arr(A_27a,ty_2EternaryComparisons_2Eordering)))
                 => ! [V1f] :
                      ( mem(V1f,arr(A_27a,arr(A_27b,A_27c)))
                     => ( ! [V2x] :
                            ( mem(V2x,A_27a)
                           => ! [V3y] :
                                ( mem(V3y,A_27a)
                               => ( ap(ap(V0cmp,V2x),V3y) = c_2EternaryComparisons_2EEQUAL
                                 => V2x = V3y ) ) )
                       => ( p(ap(ap(c_2Ecomparison_2Eresp__equiv(A_27a,A_27b,A_27c),V0cmp),V1f))
                          & ! [V4cmp2] :
                              ( mem(V4cmp2,arr(arr(A_27b,A_27c),arr(arr(A_27b,A_27c),ty_2EternaryComparisons_2Eordering)))
                             => ( p(ap(c_2Ecomparison_2Egood__cmp(arr(A_27b,A_27c)),V4cmp2))
                               => p(ap(ap(ap(c_2Ecomparison_2Eresp__equiv2(A_27a,arr(A_27b,A_27c)),V0cmp),V4cmp2),V1f)) ) ) ) ) ) ) ) ) ) ).

fof(lameq_f2286,axiom,
    ! [A_27a,A_27b,V3x] :
      ( mem(V3x,A_27a)
     => ! [V0cmp] :
          ( mem(V0cmp,arr(A_27a,arr(A_27b,ty_2EternaryComparisons_2Eordering)))
         => ! [V4y] : ap(f2286(A_27a,A_27b,V3x,V0cmp),V4y) = ap(ap(c_2Emin_2E_3D(ty_2EternaryComparisons_2Eordering),ap(ap(V0cmp,V3x),V4y)),c_2EternaryComparisons_2EEQUAL) ) ) ).

fof(lameq_f2287,axiom,
    ! [A_27b,A_27a,V0cmp] :
      ( mem(V0cmp,arr(A_27a,arr(A_27b,ty_2EternaryComparisons_2Eordering)))
     => ! [V3x] : ap(f2287(A_27b,A_27a,V0cmp),V3x) = f2286(A_27a,A_27b,V3x,V0cmp) ) ).

fof(conj_thm_2Ecomparison_2Elist__cmp__equal__list__rel,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [V0cmp] :
              ( mem(V0cmp,arr(A_27a,arr(A_27b,ty_2EternaryComparisons_2Eordering)))
             => ! [V1l1] :
                  ( mem(V1l1,ty_2Elist_2Elist(A_27a))
                 => ! [V2l2] :
                      ( mem(V2l2,ty_2Elist_2Elist(A_27b))
                     => ( ap(ap(ap(c_2EternaryComparisons_2Elist__compare(A_27a,A_27b),V0cmp),V1l1),V2l2) = c_2EternaryComparisons_2EEQUAL
                      <=> p(ap(ap(ap(c_2Elist_2ELIST__REL(A_27a,A_27b),f2287(A_27b,A_27a,V0cmp)),V1l1),V2l2)) ) ) ) ) ) ) ).

fof(conj_thm_2Ecomparison_2ETO__of__LinearOrder__LLEX,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [V0R] :
          ( mem(V0R,arr(A_27a,arr(A_27a,bool)))
         => ( p(ap(c_2Erelation_2Eirreflexive(A_27a),V0R))
           => ap(c_2Etoto_2ETO__of__LinearOrder(ty_2Elist_2Elist(A_27a)),ap(c_2Elist_2ELLEX(A_27a),V0R)) = ap(c_2EternaryComparisons_2Elist__compare(A_27a,A_27a),ap(c_2Etoto_2ETO__of__LinearOrder(A_27a),V0R)) ) ) ) ).

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