ITP001 Axioms: ITP034+5.ax


%------------------------------------------------------------------------------
% File     : ITP034+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    : errorStateMonad+2.ax [Gau20]
%          : HL4034+5.ax [TPAP]

% Status   : Satisfiable
% Syntax   : Number of formulae    :  116 (   8 unt;   0 def)
%            Number of atoms       :  457 ( 100 equ)
%            Maximal formula atoms :   13 (   3 avg)
%            Number of connectives :  342 (   1   ~;   0   |;   6   &)
%                                         (   0 <=>; 335  =>;   0  <=;   0 <~>)
%            Maximal formula depth :   21 (   8 avg)
%            Maximal term depth    :   14 (   2 avg)
%            Number of predicates  :    4 (   3 usr;   0 prp; 1-2 aty)
%            Number of functors    :  108 ( 108 usr;  15 con; 0-6 aty)
%            Number of variables   :  470 ( 470   !;   0   ?)
% SPC      : FOF_SAT_RFO_SEQ

% Comments :
% Bugfixes : v7.5.0 - Fixes to the axioms.
%------------------------------------------------------------------------------
fof(mem_c_2EerrorStateMonad_2EBIND,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [A_27c] :
              ( ne(A_27c)
             => mem(c_2EerrorStateMonad_2EBIND(A_27a,A_27b,A_27c),arr(arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a))),arr(arr(A_27b,arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27c,A_27a)))),arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27c,A_27a)))))) ) ) ) ).

fof(mem_c_2EerrorStateMonad_2EES__APPLY,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [A_27c] :
              ( ne(A_27c)
             => mem(c_2EerrorStateMonad_2EES__APPLY(A_27a,A_27b,A_27c),arr(arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(arr(A_27c,A_27b),A_27a))),arr(arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27c,A_27a))),arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a)))))) ) ) ) ).

fof(mem_c_2EerrorStateMonad_2EES__CHOICE,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => mem(c_2EerrorStateMonad_2EES__CHOICE(A_27a,A_27b),arr(arr(A_27b,ty_2Eoption_2Eoption(A_27a)),arr(arr(A_27b,ty_2Eoption_2Eoption(A_27a)),arr(A_27b,ty_2Eoption_2Eoption(A_27a))))) ) ) ).

fof(mem_c_2EerrorStateMonad_2EES__FAIL,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => mem(c_2EerrorStateMonad_2EES__FAIL(A_27a,A_27b),arr(A_27b,ty_2Eoption_2Eoption(A_27a))) ) ) ).

fof(mem_c_2EerrorStateMonad_2EES__GUARD,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => mem(c_2EerrorStateMonad_2EES__GUARD(A_27a),arr(bool,arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27a))))) ) ).

fof(mem_c_2EerrorStateMonad_2EES__LIFT2,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [A_27c] :
              ( ne(A_27c)
             => ! [A_27d] :
                  ( ne(A_27d)
                 => mem(c_2EerrorStateMonad_2EES__LIFT2(A_27a,A_27b,A_27c,A_27d),arr(arr(A_27c,arr(A_27d,A_27b)),arr(arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27c,A_27a))),arr(arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27d,A_27a))),arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a))))))) ) ) ) ) ).

fof(mem_c_2EerrorStateMonad_2EEXT,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [A_27c] :
              ( ne(A_27c)
             => mem(c_2EerrorStateMonad_2EEXT(A_27a,A_27b,A_27c),arr(arr(A_27c,arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a)))),arr(arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27c,A_27a))),arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a)))))) ) ) ) ).

fof(mem_c_2EerrorStateMonad_2EFOR,axiom,
    ! [A_27state] :
      ( ne(A_27state)
     => mem(c_2EerrorStateMonad_2EFOR(A_27state),arr(ty_2Epair_2Eprod(ty_2Enum_2Enum,ty_2Epair_2Eprod(ty_2Enum_2Enum,arr(ty_2Enum_2Enum,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))),arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state))))) ) ).

fof(mem_c_2EerrorStateMonad_2EFOREACH,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27state] :
          ( ne(A_27state)
         => mem(c_2EerrorStateMonad_2EFOREACH(A_27a,A_27state),arr(ty_2Epair_2Eprod(ty_2Elist_2Elist(A_27a),arr(A_27a,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state))))),arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state))))) ) ) ).

fof(mem_c_2EerrorStateMonad_2EIGNORE__BIND,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [A_27c] :
              ( ne(A_27c)
             => mem(c_2EerrorStateMonad_2EIGNORE__BIND(A_27a,A_27b,A_27c),arr(arr(A_27b,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27a,A_27b))),arr(arr(A_27b,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27c,A_27b))),arr(A_27b,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27c,A_27b)))))) ) ) ) ).

fof(mem_c_2EerrorStateMonad_2EJOIN,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => mem(c_2EerrorStateMonad_2EJOIN(A_27a,A_27b),arr(arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a))),A_27a))),arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a))))) ) ) ).

fof(mem_c_2EerrorStateMonad_2EMCOMP,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [A_27c] :
              ( ne(A_27c)
             => ! [A_27d] :
                  ( ne(A_27d)
                 => ! [A_27e] :
                      ( ne(A_27e)
                     => mem(c_2EerrorStateMonad_2EMCOMP(A_27a,A_27b,A_27c,A_27d,A_27e),arr(arr(A_27d,arr(A_27e,ty_2Eoption_2Eoption(A_27c))),arr(arr(A_27a,arr(A_27b,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27d,A_27e)))),arr(A_27a,arr(A_27b,ty_2Eoption_2Eoption(A_27c)))))) ) ) ) ) ) ).

fof(mem_c_2EerrorStateMonad_2EMMAP,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [A_27c] :
              ( ne(A_27c)
             => mem(c_2EerrorStateMonad_2EMMAP(A_27a,A_27b,A_27c),arr(arr(A_27c,A_27b),arr(arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27c,A_27a))),arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a)))))) ) ) ) ).

fof(mem_c_2EerrorStateMonad_2ENARROW,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [A_27state] :
              ( ne(A_27state)
             => mem(c_2EerrorStateMonad_2ENARROW(A_27a,A_27b,A_27state),arr(A_27b,arr(arr(ty_2Epair_2Eprod(A_27b,A_27state),ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27a,ty_2Epair_2Eprod(A_27b,A_27state)))),arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27a,A_27state)))))) ) ) ) ).

fof(mem_c_2EerrorStateMonad_2EREAD,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27state] :
          ( ne(A_27state)
         => mem(c_2EerrorStateMonad_2EREAD(A_27a,A_27state),arr(arr(A_27state,A_27a),arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27a,A_27state))))) ) ) ).

fof(mem_c_2EerrorStateMonad_2EUNIT,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => mem(c_2EerrorStateMonad_2EUNIT(A_27a,A_27b),arr(A_27b,arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a))))) ) ) ).

fof(mem_c_2EerrorStateMonad_2EWIDEN,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [A_27state] :
              ( ne(A_27state)
             => mem(c_2EerrorStateMonad_2EWIDEN(A_27a,A_27b,A_27state),arr(arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27a,A_27state))),arr(ty_2Epair_2Eprod(A_27b,A_27state),ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27a,ty_2Epair_2Eprod(A_27b,A_27state)))))) ) ) ) ).

fof(mem_c_2EerrorStateMonad_2EWRITE,axiom,
    ! [A_27state] :
      ( ne(A_27state)
     => mem(c_2EerrorStateMonad_2EWRITE(A_27state),arr(arr(A_27state,A_27state),arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state))))) ) ).

fof(mem_c_2EerrorStateMonad_2EmapM,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [A_27c] :
              ( ne(A_27c)
             => mem(c_2EerrorStateMonad_2EmapM(A_27a,A_27b,A_27c),arr(arr(A_27a,arr(A_27b,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27c,A_27b)))),arr(ty_2Elist_2Elist(A_27a),arr(A_27b,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Elist_2Elist(A_27c),A_27b)))))) ) ) ) ).

fof(mem_c_2EerrorStateMonad_2Esequence,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => mem(c_2EerrorStateMonad_2Esequence(A_27a,A_27b),arr(ty_2Elist_2Elist(arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a)))),arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Elist_2Elist(A_27b),A_27a))))) ) ) ).

fof(lameq_f536,axiom,
    ! [A_27b,A_27a,V0x] :
      ( mem(V0x,A_27b)
     => ! [V1s] : ap(f536(A_27b,A_27a,V0x),V1s) = ap(c_2Eoption_2ESOME(ty_2Epair_2Eprod(A_27b,A_27a)),ap(ap(c_2Epair_2E_2C(A_27b,A_27a),V0x),V1s)) ) ).

fof(ax_thm_2EerrorStateMonad_2EUNIT__DEF,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [V0x] :
              ( mem(V0x,A_27b)
             => ap(c_2EerrorStateMonad_2EUNIT(A_27a,A_27b),V0x) = f536(A_27b,A_27a,V0x) ) ) ) ).

fof(lameq_f537,axiom,
    ! [A_27c,A_27b,A_27a,V4b] :
      ( mem(V4b,A_27b)
     => ! [V1f] :
          ( mem(V1f,arr(A_27b,arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27c,A_27a)))))
         => ! [V5s] : ap(f537(A_27c,A_27b,A_27a,V4b,V1f),V5s) = ap(ap(V1f,V4b),V5s) ) ) ).

fof(lameq_f538,axiom,
    ! [A_27a,A_27c,A_27b,V1f] :
      ( mem(V1f,arr(A_27b,arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27c,A_27a)))))
     => ! [V4b] : ap(f538(A_27a,A_27c,A_27b,V1f),V4b) = f537(A_27c,A_27b,A_27a,V4b,V1f) ) ).

fof(lameq_f539,axiom,
    ! [A_27c,A_27b,A_27a,V1f] :
      ( mem(V1f,arr(A_27b,arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27c,A_27a)))))
     => ! [V3v] : ap(f539(A_27c,A_27b,A_27a,V1f),V3v) = ap(ap(c_2Epair_2Epair__CASE(ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27c,A_27a)),A_27b,A_27a),V3v),f538(A_27a,A_27c,A_27b,V1f)) ) ).

fof(ax_thm_2EerrorStateMonad_2EBIND__DEF,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [A_27c] :
              ( ne(A_27c)
             => ! [V0g] :
                  ( mem(V0g,arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a))))
                 => ! [V1f] :
                      ( mem(V1f,arr(A_27b,arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27c,A_27a)))))
                     => ! [V2s0] :
                          ( mem(V2s0,A_27a)
                         => ap(ap(ap(c_2EerrorStateMonad_2EBIND(A_27a,A_27b,A_27c),V0g),V1f),V2s0) = ap(ap(ap(c_2Eoption_2Eoption__CASE(ty_2Epair_2Eprod(A_27b,A_27a),ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27c,A_27a))),ap(V0g,V2s0)),c_2Eoption_2ENONE(ty_2Epair_2Eprod(A_27c,A_27a))),f539(A_27c,A_27b,A_27a,V1f)) ) ) ) ) ) ) ).

fof(ax_thm_2EerrorStateMonad_2EIGNORE__BIND__DEF,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [A_27c] :
              ( ne(A_27c)
             => ! [V0f] :
                  ( mem(V0f,arr(A_27b,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27a,A_27b))))
                 => ! [V1g] :
                      ( mem(V1g,arr(A_27b,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27c,A_27b))))
                     => ap(ap(c_2EerrorStateMonad_2EIGNORE__BIND(A_27a,A_27b,A_27c),V0f),V1g) = ap(ap(c_2EerrorStateMonad_2EBIND(A_27b,A_27a,A_27c),V0f),k(A_27a,V1g)) ) ) ) ) ) ).

fof(ax_thm_2EerrorStateMonad_2EMMAP__DEF,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [A_27c] :
              ( ne(A_27c)
             => ! [V0f] :
                  ( mem(V0f,arr(A_27c,A_27b))
                 => ! [V1m] :
                      ( mem(V1m,arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27c,A_27a))))
                     => ap(ap(c_2EerrorStateMonad_2EMMAP(A_27a,A_27b,A_27c),V0f),V1m) = ap(ap(c_2EerrorStateMonad_2EBIND(A_27a,A_27c,A_27b),V1m),ap(ap(c_2Ecombin_2Eo(A_27c,arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a))),A_27b),c_2EerrorStateMonad_2EUNIT(A_27a,A_27b)),V0f)) ) ) ) ) ) ).

fof(ax_thm_2EerrorStateMonad_2EJOIN__DEF,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [V0z] :
              ( mem(V0z,arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a))),A_27a))))
             => ap(c_2EerrorStateMonad_2EJOIN(A_27a,A_27b),V0z) = ap(ap(c_2EerrorStateMonad_2EBIND(A_27a,arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a))),A_27b),V0z),c_2Ecombin_2EI(arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a))))) ) ) ) ).

fof(ax_thm_2EerrorStateMonad_2EEXT__DEF,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [A_27c] :
              ( ne(A_27c)
             => ! [V0g] :
                  ( mem(V0g,arr(A_27c,arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a)))))
                 => ! [V1m] :
                      ( mem(V1m,arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27c,A_27a))))
                     => ap(ap(c_2EerrorStateMonad_2EEXT(A_27a,A_27b,A_27c),V0g),V1m) = ap(ap(c_2EerrorStateMonad_2EBIND(A_27a,A_27c,A_27b),V1m),V0g) ) ) ) ) ) ).

fof(ax_thm_2EerrorStateMonad_2EMCOMP__DEF,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [A_27c] :
              ( ne(A_27c)
             => ! [A_27d] :
                  ( ne(A_27d)
                 => ! [A_27e] :
                      ( ne(A_27e)
                     => ! [V0g] :
                          ( mem(V0g,arr(A_27d,arr(A_27e,ty_2Eoption_2Eoption(A_27c))))
                         => ! [V1f] :
                              ( mem(V1f,arr(A_27a,arr(A_27b,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27d,A_27e)))))
                             => ap(ap(c_2EerrorStateMonad_2EMCOMP(A_27a,A_27b,A_27c,A_27d,A_27e),V0g),V1f) = ap(c_2Epair_2ECURRY(A_27a,A_27b,ty_2Eoption_2Eoption(A_27c)),ap(ap(c_2Eoption_2EOPTION__MCOMP(A_27c,ty_2Epair_2Eprod(A_27d,A_27e),ty_2Epair_2Eprod(A_27a,A_27b)),ap(c_2Epair_2EUNCURRY(A_27d,A_27e,ty_2Eoption_2Eoption(A_27c)),V0g)),ap(c_2Epair_2EUNCURRY(A_27a,A_27b,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27d,A_27e))),V1f))) ) ) ) ) ) ) ) ).

fof(lameq_f540,axiom,
    ! [A_27state,V1a] :
      ( mem(V1a,arr(ty_2Enum_2Enum,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))
     => ! [V0R] :
          ( mem(V0R,arr(ty_2Epair_2Eprod(ty_2Enum_2Enum,ty_2Epair_2Eprod(ty_2Enum_2Enum,arr(ty_2Enum_2Enum,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))),arr(ty_2Epair_2Eprod(ty_2Enum_2Enum,ty_2Epair_2Eprod(ty_2Enum_2Enum,arr(ty_2Enum_2Enum,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))),bool)))
         => ! [V2j] :
              ( mem(V2j,ty_2Enum_2Enum)
             => ! [V3i] : ap(f540(A_27state,V1a,V0R,V2j),V3i) = ap(ap(c_2Emin_2E_3D_3D_3E,ap(c_2Ebool_2E_7E,ap(ap(c_2Emin_2E_3D(ty_2Enum_2Enum),V3i),V2j))),ap(ap(V0R,ap(ap(c_2Epair_2E_2C(ty_2Enum_2Enum,ty_2Epair_2Eprod(ty_2Enum_2Enum,arr(ty_2Enum_2Enum,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))),ap(ap(ap(c_2Ebool_2ECOND(ty_2Enum_2Enum),ap(ap(c_2Eprim__rec_2E_3C,V3i),V2j)),ap(ap(c_2Earithmetic_2E_2B,V3i),ap(c_2Earithmetic_2ENUMERAL,ap(c_2Earithmetic_2EBIT1,c_2Earithmetic_2EZERO)))),ap(ap(c_2Earithmetic_2E_2D,V3i),ap(c_2Earithmetic_2ENUMERAL,ap(c_2Earithmetic_2EBIT1,c_2Earithmetic_2EZERO))))),ap(ap(c_2Epair_2E_2C(ty_2Enum_2Enum,arr(ty_2Enum_2Enum,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state))))),V2j),V1a))),ap(ap(c_2Epair_2E_2C(ty_2Enum_2Enum,ty_2Epair_2Eprod(ty_2Enum_2Enum,arr(ty_2Enum_2Enum,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))),V3i),ap(ap(c_2Epair_2E_2C(ty_2Enum_2Enum,arr(ty_2Enum_2Enum,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state))))),V2j),V1a)))) ) ) ) ).

fof(lameq_f541,axiom,
    ! [A_27state,V0R] :
      ( mem(V0R,arr(ty_2Epair_2Eprod(ty_2Enum_2Enum,ty_2Epair_2Eprod(ty_2Enum_2Enum,arr(ty_2Enum_2Enum,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))),arr(ty_2Epair_2Eprod(ty_2Enum_2Enum,ty_2Epair_2Eprod(ty_2Enum_2Enum,arr(ty_2Enum_2Enum,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))),bool)))
     => ! [V1a] :
          ( mem(V1a,arr(ty_2Enum_2Enum,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))
         => ! [V2j] : ap(f541(A_27state,V0R,V1a),V2j) = ap(c_2Ebool_2E_21(ty_2Enum_2Enum),f540(A_27state,V1a,V0R,V2j)) ) ) ).

fof(lameq_f542,axiom,
    ! [A_27state,V0R] :
      ( mem(V0R,arr(ty_2Epair_2Eprod(ty_2Enum_2Enum,ty_2Epair_2Eprod(ty_2Enum_2Enum,arr(ty_2Enum_2Enum,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))),arr(ty_2Epair_2Eprod(ty_2Enum_2Enum,ty_2Epair_2Eprod(ty_2Enum_2Enum,arr(ty_2Enum_2Enum,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))),bool)))
     => ! [V1a] : ap(f542(A_27state,V0R),V1a) = ap(c_2Ebool_2E_21(ty_2Enum_2Enum),f541(A_27state,V0R,V1a)) ) ).

fof(lameq_f543,axiom,
    ! [A_27state,V0R] : ap(f543(A_27state),V0R) = ap(ap(c_2Ebool_2E_2F_5C,ap(c_2Erelation_2EWF(ty_2Epair_2Eprod(ty_2Enum_2Enum,ty_2Epair_2Eprod(ty_2Enum_2Enum,arr(ty_2Enum_2Enum,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state))))))),V0R)),ap(c_2Ebool_2E_21(arr(ty_2Enum_2Enum,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state))))),f542(A_27state,V0R))) ).

fof(lameq_f544,axiom,
    ! [A_27state,V6i] :
      ( mem(V6i,ty_2Enum_2Enum)
     => ! [V8j] :
          ( mem(V8j,ty_2Enum_2Enum)
         => ! [V4FOR] :
              ( mem(V4FOR,arr(ty_2Epair_2Eprod(ty_2Enum_2Enum,ty_2Epair_2Eprod(ty_2Enum_2Enum,arr(ty_2Enum_2Enum,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))),arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))
             => ! [V9a] : ap(f544(A_27state,V6i,V8j,V4FOR),V9a) = ap(c_2Ecombin_2EI(arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))),ap(ap(ap(c_2Ebool_2ECOND(arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))),ap(ap(c_2Emin_2E_3D(ty_2Enum_2Enum),V6i),V8j)),ap(V9a,V6i)),ap(ap(c_2EerrorStateMonad_2EBIND(A_27state,ty_2Eone_2Eone,ty_2Eone_2Eone),ap(V9a,V6i)),k(ty_2Eone_2Eone,ap(V4FOR,ap(ap(c_2Epair_2E_2C(ty_2Enum_2Enum,ty_2Epair_2Eprod(ty_2Enum_2Enum,arr(ty_2Enum_2Enum,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))),ap(ap(ap(c_2Ebool_2ECOND(ty_2Enum_2Enum),ap(ap(c_2Eprim__rec_2E_3C,V6i),V8j)),ap(ap(c_2Earithmetic_2E_2B,V6i),ap(c_2Earithmetic_2ENUMERAL,ap(c_2Earithmetic_2EBIT1,c_2Earithmetic_2EZERO)))),ap(ap(c_2Earithmetic_2E_2D,V6i),ap(c_2Earithmetic_2ENUMERAL,ap(c_2Earithmetic_2EBIT1,c_2Earithmetic_2EZERO))))),ap(ap(c_2Epair_2E_2C(ty_2Enum_2Enum,arr(ty_2Enum_2Enum,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state))))),V8j),V9a))))))) ) ) ) ).

fof(lameq_f545,axiom,
    ! [A_27state,V6i] :
      ( mem(V6i,ty_2Enum_2Enum)
     => ! [V4FOR] :
          ( mem(V4FOR,arr(ty_2Epair_2Eprod(ty_2Enum_2Enum,ty_2Epair_2Eprod(ty_2Enum_2Enum,arr(ty_2Enum_2Enum,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))),arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))
         => ! [V8j] : ap(f545(A_27state,V6i,V4FOR),V8j) = f544(A_27state,V6i,V8j,V4FOR) ) ) ).

fof(lameq_f546,axiom,
    ! [A_27state,V4FOR] :
      ( mem(V4FOR,arr(ty_2Epair_2Eprod(ty_2Enum_2Enum,ty_2Epair_2Eprod(ty_2Enum_2Enum,arr(ty_2Enum_2Enum,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))),arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))
     => ! [V6i] :
          ( mem(V6i,ty_2Enum_2Enum)
         => ! [V7v1] : ap(f546(A_27state,V4FOR,V6i),V7v1) = ap(ap(c_2Epair_2Epair__CASE(arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state))),ty_2Enum_2Enum,arr(ty_2Enum_2Enum,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state))))),V7v1),f545(A_27state,V6i,V4FOR)) ) ) ).

fof(lameq_f547,axiom,
    ! [A_27state,V4FOR] :
      ( mem(V4FOR,arr(ty_2Epair_2Eprod(ty_2Enum_2Enum,ty_2Epair_2Eprod(ty_2Enum_2Enum,arr(ty_2Enum_2Enum,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))),arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))
     => ! [V6i] : ap(f547(A_27state,V4FOR),V6i) = f546(A_27state,V4FOR,V6i) ) ).

fof(lameq_f548,axiom,
    ! [A_27state,V4FOR] :
      ( mem(V4FOR,arr(ty_2Epair_2Eprod(ty_2Enum_2Enum,ty_2Epair_2Eprod(ty_2Enum_2Enum,arr(ty_2Enum_2Enum,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))),arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))
     => ! [V5a_27] : ap(f548(A_27state,V4FOR),V5a_27) = ap(ap(c_2Epair_2Epair__CASE(arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state))),ty_2Enum_2Enum,ty_2Epair_2Eprod(ty_2Enum_2Enum,arr(ty_2Enum_2Enum,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))),V5a_27),f547(A_27state,V4FOR)) ) ).

fof(lameq_f549,axiom,
    ! [A_27state,V4FOR] : ap(f549(A_27state),V4FOR) = f548(A_27state,V4FOR) ).

fof(ax_thm_2EerrorStateMonad_2EFOR__primitive__def,axiom,
    ! [A_27state] :
      ( ne(A_27state)
     => c_2EerrorStateMonad_2EFOR(A_27state) = ap(ap(c_2Erelation_2EWFREC(ty_2Epair_2Eprod(ty_2Enum_2Enum,ty_2Epair_2Eprod(ty_2Enum_2Enum,arr(ty_2Enum_2Enum,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))),arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))),ap(c_2Emin_2E_40(arr(ty_2Epair_2Eprod(ty_2Enum_2Enum,ty_2Epair_2Eprod(ty_2Enum_2Enum,arr(ty_2Enum_2Enum,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))),arr(ty_2Epair_2Eprod(ty_2Enum_2Enum,ty_2Epair_2Eprod(ty_2Enum_2Enum,arr(ty_2Enum_2Enum,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))),bool))),f543(A_27state))),f549(A_27state)) ) ).

fof(conj_thm_2EerrorStateMonad_2EFOR__ind,axiom,
    ! [A_27state] :
      ( ne(A_27state)
     => ! [V0P] :
          ( mem(V0P,arr(ty_2Epair_2Eprod(ty_2Enum_2Enum,ty_2Epair_2Eprod(ty_2Enum_2Enum,arr(ty_2Enum_2Enum,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))),bool))
         => ( ! [V1i] :
                ( mem(V1i,ty_2Enum_2Enum)
               => ! [V2j] :
                    ( mem(V2j,ty_2Enum_2Enum)
                   => ! [V3a] :
                        ( mem(V3a,arr(ty_2Enum_2Enum,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))
                       => ( ( V1i != V2j
                           => p(ap(V0P,ap(ap(c_2Epair_2E_2C(ty_2Enum_2Enum,ty_2Epair_2Eprod(ty_2Enum_2Enum,arr(ty_2Enum_2Enum,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))),ap(ap(ap(c_2Ebool_2ECOND(ty_2Enum_2Enum),ap(ap(c_2Eprim__rec_2E_3C,V1i),V2j)),ap(ap(c_2Earithmetic_2E_2B,V1i),ap(c_2Earithmetic_2ENUMERAL,ap(c_2Earithmetic_2EBIT1,c_2Earithmetic_2EZERO)))),ap(ap(c_2Earithmetic_2E_2D,V1i),ap(c_2Earithmetic_2ENUMERAL,ap(c_2Earithmetic_2EBIT1,c_2Earithmetic_2EZERO))))),ap(ap(c_2Epair_2E_2C(ty_2Enum_2Enum,arr(ty_2Enum_2Enum,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state))))),V2j),V3a)))) )
                         => p(ap(V0P,ap(ap(c_2Epair_2E_2C(ty_2Enum_2Enum,ty_2Epair_2Eprod(ty_2Enum_2Enum,arr(ty_2Enum_2Enum,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))),V1i),ap(ap(c_2Epair_2E_2C(ty_2Enum_2Enum,arr(ty_2Enum_2Enum,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state))))),V2j),V3a)))) ) ) ) )
           => ! [V4v] :
                ( mem(V4v,ty_2Enum_2Enum)
               => ! [V5v1] :
                    ( mem(V5v1,ty_2Enum_2Enum)
                   => ! [V6v2] :
                        ( mem(V6v2,arr(ty_2Enum_2Enum,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))
                       => p(ap(V0P,ap(ap(c_2Epair_2E_2C(ty_2Enum_2Enum,ty_2Epair_2Eprod(ty_2Enum_2Enum,arr(ty_2Enum_2Enum,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))),V4v),ap(ap(c_2Epair_2E_2C(ty_2Enum_2Enum,arr(ty_2Enum_2Enum,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state))))),V5v1),V6v2)))) ) ) ) ) ) ) ).

fof(conj_thm_2EerrorStateMonad_2EFOR__def,axiom,
    ! [A_27state] :
      ( ne(A_27state)
     => ! [V0j] :
          ( mem(V0j,ty_2Enum_2Enum)
         => ! [V1i] :
              ( mem(V1i,ty_2Enum_2Enum)
             => ! [V2a] :
                  ( mem(V2a,arr(ty_2Enum_2Enum,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))
                 => ap(c_2EerrorStateMonad_2EFOR(A_27state),ap(ap(c_2Epair_2E_2C(ty_2Enum_2Enum,ty_2Epair_2Eprod(ty_2Enum_2Enum,arr(ty_2Enum_2Enum,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))),V1i),ap(ap(c_2Epair_2E_2C(ty_2Enum_2Enum,arr(ty_2Enum_2Enum,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state))))),V0j),V2a))) = ap(ap(ap(c_2Ebool_2ECOND(arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))),ap(ap(c_2Emin_2E_3D(ty_2Enum_2Enum),V1i),V0j)),ap(V2a,V1i)),ap(ap(c_2EerrorStateMonad_2EBIND(A_27state,ty_2Eone_2Eone,ty_2Eone_2Eone),ap(V2a,V1i)),k(ty_2Eone_2Eone,ap(c_2EerrorStateMonad_2EFOR(A_27state),ap(ap(c_2Epair_2E_2C(ty_2Enum_2Enum,ty_2Epair_2Eprod(ty_2Enum_2Enum,arr(ty_2Enum_2Enum,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))),ap(ap(ap(c_2Ebool_2ECOND(ty_2Enum_2Enum),ap(ap(c_2Eprim__rec_2E_3C,V1i),V0j)),ap(ap(c_2Earithmetic_2E_2B,V1i),ap(c_2Earithmetic_2ENUMERAL,ap(c_2Earithmetic_2EBIT1,c_2Earithmetic_2EZERO)))),ap(ap(c_2Earithmetic_2E_2D,V1i),ap(c_2Earithmetic_2ENUMERAL,ap(c_2Earithmetic_2EBIT1,c_2Earithmetic_2EZERO))))),ap(ap(c_2Epair_2E_2C(ty_2Enum_2Enum,arr(ty_2Enum_2Enum,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state))))),V0j),V2a)))))) ) ) ) ) ).

fof(lameq_f550,axiom,
    ! [A_27state,A_27a,V0R] :
      ( mem(V0R,arr(ty_2Epair_2Eprod(ty_2Elist_2Elist(A_27a),arr(A_27a,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state))))),arr(ty_2Epair_2Eprod(ty_2Elist_2Elist(A_27a),arr(A_27a,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state))))),bool)))
     => ! [V1h] :
          ( mem(V1h,A_27a)
         => ! [V2a] :
              ( mem(V2a,arr(A_27a,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))
             => ! [V3t] : ap(f550(A_27state,A_27a,V0R,V1h,V2a),V3t) = ap(ap(V0R,ap(ap(c_2Epair_2E_2C(ty_2Elist_2Elist(A_27a),arr(A_27a,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state))))),V3t),V2a)),ap(ap(c_2Epair_2E_2C(ty_2Elist_2Elist(A_27a),arr(A_27a,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state))))),ap(ap(c_2Elist_2ECONS(A_27a),V1h),V3t)),V2a)) ) ) ) ).

fof(lameq_f551,axiom,
    ! [A_27state,A_27a,V1h] :
      ( mem(V1h,A_27a)
     => ! [V0R] :
          ( mem(V0R,arr(ty_2Epair_2Eprod(ty_2Elist_2Elist(A_27a),arr(A_27a,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state))))),arr(ty_2Epair_2Eprod(ty_2Elist_2Elist(A_27a),arr(A_27a,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state))))),bool)))
         => ! [V2a] : ap(f551(A_27state,A_27a,V1h,V0R),V2a) = ap(c_2Ebool_2E_21(ty_2Elist_2Elist(A_27a)),f550(A_27state,A_27a,V0R,V1h,V2a)) ) ) ).

fof(lameq_f552,axiom,
    ! [A_27state,A_27a,V0R] :
      ( mem(V0R,arr(ty_2Epair_2Eprod(ty_2Elist_2Elist(A_27a),arr(A_27a,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state))))),arr(ty_2Epair_2Eprod(ty_2Elist_2Elist(A_27a),arr(A_27a,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state))))),bool)))
     => ! [V1h] : ap(f552(A_27state,A_27a,V0R),V1h) = ap(c_2Ebool_2E_21(arr(A_27a,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state))))),f551(A_27state,A_27a,V1h,V0R)) ) ).

fof(lameq_f553,axiom,
    ! [A_27state,A_27a,V0R] : ap(f553(A_27state,A_27a),V0R) = ap(ap(c_2Ebool_2E_2F_5C,ap(c_2Erelation_2EWF(ty_2Epair_2Eprod(ty_2Elist_2Elist(A_27a),arr(A_27a,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))),V0R)),ap(c_2Ebool_2E_21(A_27a),f552(A_27state,A_27a,V0R))) ).

fof(lameq_f554,axiom,
    ! [A_27state,A_27a,V7a] :
      ( mem(V7a,arr(A_27a,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))
     => ! [V8h] :
          ( mem(V8h,A_27a)
         => ! [V4FOREACH] :
              ( mem(V4FOREACH,arr(ty_2Epair_2Eprod(ty_2Elist_2Elist(A_27a),arr(A_27a,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state))))),arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))
             => ! [V9t] : ap(f554(A_27state,A_27a,V7a,V8h,V4FOREACH),V9t) = ap(c_2Ecombin_2EI(arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))),ap(ap(c_2EerrorStateMonad_2EBIND(A_27state,ty_2Eone_2Eone,ty_2Eone_2Eone),ap(V7a,V8h)),k(ty_2Eone_2Eone,ap(V4FOREACH,ap(ap(c_2Epair_2E_2C(ty_2Elist_2Elist(A_27a),arr(A_27a,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state))))),V9t),V7a))))) ) ) ) ).

fof(lameq_f555,axiom,
    ! [A_27state,A_27a,V7a] :
      ( mem(V7a,arr(A_27a,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))
     => ! [V4FOREACH] :
          ( mem(V4FOREACH,arr(ty_2Epair_2Eprod(ty_2Elist_2Elist(A_27a),arr(A_27a,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state))))),arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))
         => ! [V8h] : ap(f555(A_27state,A_27a,V7a,V4FOREACH),V8h) = f554(A_27state,A_27a,V7a,V8h,V4FOREACH) ) ) ).

fof(lameq_f556,axiom,
    ! [A_27state,A_27a,V4FOREACH] :
      ( mem(V4FOREACH,arr(ty_2Epair_2Eprod(ty_2Elist_2Elist(A_27a),arr(A_27a,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state))))),arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))
     => ! [V6v] :
          ( mem(V6v,ty_2Elist_2Elist(A_27a))
         => ! [V7a] : ap(f556(A_27state,A_27a,V4FOREACH,V6v),V7a) = ap(ap(ap(c_2Elist_2Elist__CASE(A_27a,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))),V6v),ap(c_2Ecombin_2EI(arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))),ap(c_2EerrorStateMonad_2EUNIT(A_27state,ty_2Eone_2Eone),c_2Eone_2Eone))),f555(A_27state,A_27a,V7a,V4FOREACH)) ) ) ).

fof(lameq_f557,axiom,
    ! [A_27state,A_27a,V4FOREACH] :
      ( mem(V4FOREACH,arr(ty_2Epair_2Eprod(ty_2Elist_2Elist(A_27a),arr(A_27a,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state))))),arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))
     => ! [V6v] : ap(f557(A_27state,A_27a,V4FOREACH),V6v) = f556(A_27state,A_27a,V4FOREACH,V6v) ) ).

fof(lameq_f558,axiom,
    ! [A_27state,A_27a,V4FOREACH] :
      ( mem(V4FOREACH,arr(ty_2Epair_2Eprod(ty_2Elist_2Elist(A_27a),arr(A_27a,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state))))),arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))
     => ! [V5a_27] : ap(f558(A_27state,A_27a,V4FOREACH),V5a_27) = ap(ap(c_2Epair_2Epair__CASE(arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state))),ty_2Elist_2Elist(A_27a),arr(A_27a,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state))))),V5a_27),f557(A_27state,A_27a,V4FOREACH)) ) ).

fof(lameq_f559,axiom,
    ! [A_27state,A_27a,V4FOREACH] : ap(f559(A_27state,A_27a),V4FOREACH) = f558(A_27state,A_27a,V4FOREACH) ).

fof(ax_thm_2EerrorStateMonad_2EFOREACH__primitive__def,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27state] :
          ( ne(A_27state)
         => c_2EerrorStateMonad_2EFOREACH(A_27a,A_27state) = ap(ap(c_2Erelation_2EWFREC(ty_2Epair_2Eprod(ty_2Elist_2Elist(A_27a),arr(A_27a,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state))))),arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))),ap(c_2Emin_2E_40(arr(ty_2Epair_2Eprod(ty_2Elist_2Elist(A_27a),arr(A_27a,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state))))),arr(ty_2Epair_2Eprod(ty_2Elist_2Elist(A_27a),arr(A_27a,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state))))),bool))),f553(A_27state,A_27a))),f559(A_27state,A_27a)) ) ) ).

fof(conj_thm_2EerrorStateMonad_2EFOREACH__ind,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27state] :
          ( ne(A_27state)
         => ! [V0P] :
              ( mem(V0P,arr(ty_2Epair_2Eprod(ty_2Elist_2Elist(A_27a),arr(A_27a,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state))))),bool))
             => ( ( ! [V1a] :
                      ( mem(V1a,arr(A_27a,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))
                     => p(ap(V0P,ap(ap(c_2Epair_2E_2C(ty_2Elist_2Elist(A_27a),arr(A_27a,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state))))),c_2Elist_2ENIL(A_27a)),V1a))) )
                  & ! [V2h] :
                      ( mem(V2h,A_27a)
                     => ! [V3t] :
                          ( mem(V3t,ty_2Elist_2Elist(A_27a))
                         => ! [V4a] :
                              ( mem(V4a,arr(A_27a,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))
                             => ( p(ap(V0P,ap(ap(c_2Epair_2E_2C(ty_2Elist_2Elist(A_27a),arr(A_27a,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state))))),V3t),V4a)))
                               => p(ap(V0P,ap(ap(c_2Epair_2E_2C(ty_2Elist_2Elist(A_27a),arr(A_27a,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state))))),ap(ap(c_2Elist_2ECONS(A_27a),V2h),V3t)),V4a))) ) ) ) ) )
               => ! [V5v] :
                    ( mem(V5v,ty_2Elist_2Elist(A_27a))
                   => ! [V6v1] :
                        ( mem(V6v1,arr(A_27a,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))
                       => p(ap(V0P,ap(ap(c_2Epair_2E_2C(ty_2Elist_2Elist(A_27a),arr(A_27a,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state))))),V5v),V6v1))) ) ) ) ) ) ) ).

fof(conj_thm_2EerrorStateMonad_2EFOREACH__def,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27state] :
          ( ne(A_27state)
         => ( ! [V0a] :
                ( mem(V0a,arr(A_27a,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))
               => ap(c_2EerrorStateMonad_2EFOREACH(A_27a,A_27state),ap(ap(c_2Epair_2E_2C(ty_2Elist_2Elist(A_27a),arr(A_27a,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state))))),c_2Elist_2ENIL(A_27a)),V0a)) = ap(c_2EerrorStateMonad_2EUNIT(A_27state,ty_2Eone_2Eone),c_2Eone_2Eone) )
            & ! [V1t] :
                ( mem(V1t,ty_2Elist_2Elist(A_27a))
               => ! [V2h] :
                    ( mem(V2h,A_27a)
                   => ! [V3a] :
                        ( mem(V3a,arr(A_27a,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)))))
                       => ap(c_2EerrorStateMonad_2EFOREACH(A_27a,A_27state),ap(ap(c_2Epair_2E_2C(ty_2Elist_2Elist(A_27a),arr(A_27a,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state))))),ap(ap(c_2Elist_2ECONS(A_27a),V2h),V1t)),V3a)) = ap(ap(c_2EerrorStateMonad_2EBIND(A_27state,ty_2Eone_2Eone,ty_2Eone_2Eone),ap(V3a,V2h)),k(ty_2Eone_2Eone,ap(c_2EerrorStateMonad_2EFOREACH(A_27a,A_27state),ap(ap(c_2Epair_2E_2C(ty_2Elist_2Elist(A_27a),arr(A_27a,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state))))),V1t),V3a)))) ) ) ) ) ) ) ).

fof(lameq_f560,axiom,
    ! [A_27a,A_27state,V0f] :
      ( mem(V0f,arr(A_27state,A_27a))
     => ! [V1s] : ap(f560(A_27a,A_27state,V0f),V1s) = ap(c_2Eoption_2ESOME(ty_2Epair_2Eprod(A_27a,A_27state)),ap(ap(c_2Epair_2E_2C(A_27a,A_27state),ap(V0f,V1s)),V1s)) ) ).

fof(ax_thm_2EerrorStateMonad_2EREAD__def,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27state] :
          ( ne(A_27state)
         => ! [V0f] :
              ( mem(V0f,arr(A_27state,A_27a))
             => ap(c_2EerrorStateMonad_2EREAD(A_27a,A_27state),V0f) = f560(A_27a,A_27state,V0f) ) ) ) ).

fof(lameq_f561,axiom,
    ! [A_27state,V0f] :
      ( mem(V0f,arr(A_27state,A_27state))
     => ! [V1s] : ap(f561(A_27state,V0f),V1s) = ap(c_2Eoption_2ESOME(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27state)),ap(ap(c_2Epair_2E_2C(ty_2Eone_2Eone,A_27state),c_2Eone_2Eone),ap(V0f,V1s))) ) ).

fof(ax_thm_2EerrorStateMonad_2EWRITE__def,axiom,
    ! [A_27state] :
      ( ne(A_27state)
     => ! [V0f] :
          ( mem(V0f,arr(A_27state,A_27state))
         => ap(c_2EerrorStateMonad_2EWRITE(A_27state),V0f) = f561(A_27state,V0f) ) ) ).

fof(lameq_f562,axiom,
    ! [A_27a,A_27b,A_27state,V4r] :
      ( mem(V4r,A_27a)
     => ! [V5s1] : ap(f562(A_27a,A_27b,A_27state,V4r),V5s1) = ap(c_2Eoption_2ESOME(ty_2Epair_2Eprod(A_27a,A_27state)),ap(ap(c_2Epair_2E_2C(A_27a,A_27state),V4r),ap(c_2Epair_2ESND(A_27b,A_27state),V5s1))) ) ).

fof(lameq_f563,axiom,
    ! [A_27state,A_27b,A_27a,V4r] : ap(f563(A_27state,A_27b,A_27a),V4r) = f562(A_27a,A_27b,A_27state,V4r) ).

fof(lameq_f564,axiom,
    ! [A_27state,A_27b,A_27a,V3v] : ap(f564(A_27state,A_27b,A_27a),V3v) = ap(ap(c_2Epair_2Epair__CASE(ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27a,A_27state)),A_27a,ty_2Epair_2Eprod(A_27b,A_27state)),V3v),f563(A_27state,A_27b,A_27a)) ).

fof(lameq_f565,axiom,
    ! [A_27a,A_27b,A_27state,V1f] :
      ( mem(V1f,arr(ty_2Epair_2Eprod(A_27b,A_27state),ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27a,ty_2Epair_2Eprod(A_27b,A_27state)))))
     => ! [V0v] :
          ( mem(V0v,A_27b)
         => ! [V2s] : ap(f565(A_27a,A_27b,A_27state,V1f,V0v),V2s) = ap(ap(ap(c_2Eoption_2Eoption__CASE(ty_2Epair_2Eprod(A_27a,ty_2Epair_2Eprod(A_27b,A_27state)),ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27a,A_27state))),ap(V1f,ap(ap(c_2Epair_2E_2C(A_27b,A_27state),V0v),V2s))),c_2Eoption_2ENONE(ty_2Epair_2Eprod(A_27a,A_27state))),f564(A_27state,A_27b,A_27a)) ) ) ).

fof(ax_thm_2EerrorStateMonad_2ENARROW__def,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [A_27state] :
              ( ne(A_27state)
             => ! [V0v] :
                  ( mem(V0v,A_27b)
                 => ! [V1f] :
                      ( mem(V1f,arr(ty_2Epair_2Eprod(A_27b,A_27state),ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27a,ty_2Epair_2Eprod(A_27b,A_27state)))))
                     => ap(ap(c_2EerrorStateMonad_2ENARROW(A_27a,A_27b,A_27state),V0v),V1f) = f565(A_27a,A_27b,A_27state,V1f,V0v) ) ) ) ) ) ).

fof(lameq_f566,axiom,
    ! [A_27b,A_27a,A_27state,V4r] :
      ( mem(V4r,A_27a)
     => ! [V1s1] :
          ( mem(V1s1,A_27b)
         => ! [V5s3] : ap(f566(A_27b,A_27a,A_27state,V4r,V1s1),V5s3) = ap(c_2Eoption_2ESOME(ty_2Epair_2Eprod(A_27a,ty_2Epair_2Eprod(A_27b,A_27state))),ap(ap(c_2Epair_2E_2C(A_27a,ty_2Epair_2Eprod(A_27b,A_27state)),V4r),ap(ap(c_2Epair_2E_2C(A_27b,A_27state),V1s1),V5s3))) ) ) ).

fof(lameq_f567,axiom,
    ! [A_27state,A_27b,A_27a,V1s1] :
      ( mem(V1s1,A_27b)
     => ! [V4r] : ap(f567(A_27state,A_27b,A_27a,V1s1),V4r) = f566(A_27b,A_27a,A_27state,V4r,V1s1) ) ).

fof(lameq_f568,axiom,
    ! [A_27b,A_27a,A_27state,V1s1] :
      ( mem(V1s1,A_27b)
     => ! [V3v] : ap(f568(A_27b,A_27a,A_27state,V1s1),V3v) = ap(ap(c_2Epair_2Epair__CASE(ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27a,ty_2Epair_2Eprod(A_27b,A_27state))),A_27a,A_27state),V3v),f567(A_27state,A_27b,A_27a,V1s1)) ) ).

fof(lameq_f569,axiom,
    ! [A_27a,A_27b,A_27state,V0f] :
      ( mem(V0f,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27a,A_27state))))
     => ! [V1s1] :
          ( mem(V1s1,A_27b)
         => ! [V2s2] : ap(f569(A_27a,A_27b,A_27state,V0f,V1s1),V2s2) = ap(ap(ap(c_2Eoption_2Eoption__CASE(ty_2Epair_2Eprod(A_27a,A_27state),ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27a,ty_2Epair_2Eprod(A_27b,A_27state)))),ap(V0f,V2s2)),c_2Eoption_2ENONE(ty_2Epair_2Eprod(A_27a,ty_2Epair_2Eprod(A_27b,A_27state)))),f568(A_27b,A_27a,A_27state,V1s1)) ) ) ).

fof(lameq_f570,axiom,
    ! [A_27state,A_27a,A_27b,V0f] :
      ( mem(V0f,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27a,A_27state))))
     => ! [V1s1] : ap(f570(A_27state,A_27a,A_27b,V0f),V1s1) = f569(A_27a,A_27b,A_27state,V0f,V1s1) ) ).

fof(ax_thm_2EerrorStateMonad_2EWIDEN__def,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [A_27state] :
              ( ne(A_27state)
             => ! [V0f] :
                  ( mem(V0f,arr(A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27a,A_27state))))
                 => ap(c_2EerrorStateMonad_2EWIDEN(A_27a,A_27b,A_27state),V0f) = ap(c_2Epair_2EUNCURRY(A_27b,A_27state,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27a,ty_2Epair_2Eprod(A_27b,A_27state)))),f570(A_27state,A_27a,A_27b,V0f)) ) ) ) ) ).

fof(lameq_f571,axiom,
    ! [A_27a,A_27b,V2x] :
      ( mem(V2x,A_27b)
     => ! [V3xs] : ap(f571(A_27a,A_27b,V2x),V3xs) = ap(c_2EerrorStateMonad_2EUNIT(A_27a,ty_2Elist_2Elist(A_27b)),ap(ap(c_2Elist_2ECONS(A_27b),V2x),V3xs)) ) ).

fof(lameq_f572,axiom,
    ! [A_27a,A_27b,V1ms] :
      ( mem(V1ms,arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Elist_2Elist(A_27b),A_27a))))
     => ! [V2x] : ap(f572(A_27a,A_27b,V1ms),V2x) = ap(ap(c_2EerrorStateMonad_2EBIND(A_27a,ty_2Elist_2Elist(A_27b),ty_2Elist_2Elist(A_27b)),V1ms),f571(A_27a,A_27b,V2x)) ) ).

fof(lameq_f573,axiom,
    ! [A_27a,A_27b,V0m] :
      ( mem(V0m,arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a))))
     => ! [V1ms] : ap(f573(A_27a,A_27b,V0m),V1ms) = ap(ap(c_2EerrorStateMonad_2EBIND(A_27a,A_27b,ty_2Elist_2Elist(A_27b)),V0m),f572(A_27a,A_27b,V1ms)) ) ).

fof(lameq_f574,axiom,
    ! [A_27a,A_27b,V0m] : ap(f574(A_27a,A_27b),V0m) = f573(A_27a,A_27b,V0m) ).

fof(ax_thm_2EerrorStateMonad_2Esequence__def,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => c_2EerrorStateMonad_2Esequence(A_27a,A_27b) = ap(ap(c_2Elist_2EFOLDR(arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a))),arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Elist_2Elist(A_27b),A_27a)))),f574(A_27a,A_27b)),ap(c_2EerrorStateMonad_2EUNIT(A_27a,ty_2Elist_2Elist(A_27b)),c_2Elist_2ENIL(A_27b))) ) ) ).

fof(ax_thm_2EerrorStateMonad_2EmapM__def,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [A_27c] :
              ( ne(A_27c)
             => ! [V0f] :
                  ( mem(V0f,arr(A_27a,arr(A_27b,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27c,A_27b)))))
                 => ap(c_2EerrorStateMonad_2EmapM(A_27a,A_27b,A_27c),V0f) = ap(ap(c_2Ecombin_2Eo(ty_2Elist_2Elist(A_27a),arr(A_27b,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Elist_2Elist(A_27c),A_27b))),ty_2Elist_2Elist(arr(A_27b,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27c,A_27b))))),c_2EerrorStateMonad_2Esequence(A_27b,A_27c)),ap(c_2Elist_2EMAP(A_27a,arr(A_27b,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27c,A_27b)))),V0f)) ) ) ) ) ).

fof(conj_thm_2EerrorStateMonad_2EBIND__LEFT__UNIT,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [A_27c] :
              ( ne(A_27c)
             => ! [V0k] :
                  ( mem(V0k,arr(A_27a,arr(A_27b,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27c,A_27b)))))
                 => ! [V1x] :
                      ( mem(V1x,A_27a)
                     => ap(ap(c_2EerrorStateMonad_2EBIND(A_27b,A_27a,A_27c),ap(c_2EerrorStateMonad_2EUNIT(A_27b,A_27a),V1x)),V0k) = ap(V0k,V1x) ) ) ) ) ) ).

fof(conj_thm_2EerrorStateMonad_2EMCOMP__THM,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [A_27c] :
              ( ne(A_27c)
             => ! [A_27d] :
                  ( ne(A_27d)
                 => ! [V0g] :
                      ( mem(V0g,arr(A_27d,arr(A_27b,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27c,A_27b)))))
                     => ! [V1f] :
                          ( mem(V1f,arr(A_27a,arr(A_27b,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27d,A_27b)))))
                         => ap(ap(c_2EerrorStateMonad_2EMCOMP(A_27a,A_27b,ty_2Epair_2Eprod(A_27c,A_27b),A_27d,A_27b),V0g),V1f) = ap(ap(c_2Ecombin_2Eo(A_27a,arr(A_27b,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27c,A_27b))),arr(A_27b,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27d,A_27b)))),ap(c_2EerrorStateMonad_2EEXT(A_27b,A_27c,A_27d),V0g)),V1f) ) ) ) ) ) ) ).

fof(conj_thm_2EerrorStateMonad_2EMCOMP__ASSOC,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [A_27c] :
              ( ne(A_27c)
             => ! [A_27d] :
                  ( ne(A_27d)
                 => ! [A_27e] :
                      ( ne(A_27e)
                     => ! [A_27f] :
                          ( ne(A_27f)
                         => ! [A_27g] :
                              ( ne(A_27g)
                             => ! [V0f] :
                                  ( mem(V0f,arr(A_27d,arr(A_27e,ty_2Eoption_2Eoption(A_27c))))
                                 => ! [V1g] :
                                      ( mem(V1g,arr(A_27f,arr(A_27g,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27d,A_27e)))))
                                     => ! [V2h] :
                                          ( mem(V2h,arr(A_27a,arr(A_27b,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27f,A_27g)))))
                                         => ap(ap(c_2EerrorStateMonad_2EMCOMP(A_27a,A_27b,A_27c,A_27d,A_27e),V0f),ap(ap(c_2EerrorStateMonad_2EMCOMP(A_27a,A_27b,ty_2Epair_2Eprod(A_27d,A_27e),A_27f,A_27g),V1g),V2h)) = ap(ap(c_2EerrorStateMonad_2EMCOMP(A_27a,A_27b,A_27c,A_27f,A_27g),ap(ap(c_2EerrorStateMonad_2EMCOMP(A_27f,A_27g,A_27c,A_27d,A_27e),V0f),V1g)),V2h) ) ) ) ) ) ) ) ) ) ) ).

fof(conj_thm_2EerrorStateMonad_2EUNIT__CURRY,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => c_2EerrorStateMonad_2EUNIT(A_27b,A_27a) = ap(c_2Epair_2ECURRY(A_27a,A_27b,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27a,A_27b))),c_2Eoption_2ESOME(ty_2Epair_2Eprod(A_27a,A_27b))) ) ) ).

fof(conj_thm_2EerrorStateMonad_2EMCOMP__ID,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [A_27c] :
              ( ne(A_27c)
             => ! [A_27d] :
                  ( ne(A_27d)
                 => ! [A_27e] :
                      ( ne(A_27e)
                     => ! [A_27f] :
                          ( ne(A_27f)
                         => ! [A_27g] :
                              ( ne(A_27g)
                             => ! [V0g] :
                                  ( mem(V0g,arr(A_27a,arr(A_27b,ty_2Eoption_2Eoption(A_27c))))
                                 => ! [V1f] :
                                      ( mem(V1f,arr(A_27d,arr(A_27e,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27f,A_27g)))))
                                     => ( ap(ap(c_2EerrorStateMonad_2EMCOMP(A_27a,A_27b,A_27c,A_27a,A_27b),V0g),c_2EerrorStateMonad_2EUNIT(A_27b,A_27a)) = V0g
                                        & ap(ap(c_2EerrorStateMonad_2EMCOMP(A_27d,A_27e,ty_2Epair_2Eprod(A_27f,A_27g),A_27f,A_27g),c_2EerrorStateMonad_2EUNIT(A_27g,A_27f)),V1f) = V1f ) ) ) ) ) ) ) ) ) ) ).

fof(conj_thm_2EerrorStateMonad_2EBIND__RIGHT__UNIT,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [V0k] :
              ( mem(V0k,arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a))))
             => ap(ap(c_2EerrorStateMonad_2EBIND(A_27a,A_27b,A_27b),V0k),c_2EerrorStateMonad_2EUNIT(A_27a,A_27b)) = V0k ) ) ) ).

fof(lameq_f575,axiom,
    ! [A_27c,A_27d,A_27a,A_27b,V1m] :
      ( mem(V1m,arr(A_27b,arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27c,A_27a)))))
     => ! [V2n] :
          ( mem(V2n,arr(A_27c,arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27d,A_27a)))))
         => ! [V3a] : ap(f575(A_27c,A_27d,A_27a,A_27b,V1m,V2n),V3a) = ap(ap(c_2EerrorStateMonad_2EBIND(A_27a,A_27c,A_27d),ap(V1m,V3a)),V2n) ) ) ).

fof(conj_thm_2EerrorStateMonad_2EBIND__ASSOC,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [A_27c] :
              ( ne(A_27c)
             => ! [A_27d] :
                  ( ne(A_27d)
                 => ! [V0k] :
                      ( mem(V0k,arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a))))
                     => ! [V1m] :
                          ( mem(V1m,arr(A_27b,arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27c,A_27a)))))
                         => ! [V2n] :
                              ( mem(V2n,arr(A_27c,arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27d,A_27a)))))
                             => ap(ap(c_2EerrorStateMonad_2EBIND(A_27a,A_27b,A_27d),V0k),f575(A_27c,A_27d,A_27a,A_27b,V1m,V2n)) = ap(ap(c_2EerrorStateMonad_2EBIND(A_27a,A_27c,A_27d),ap(ap(c_2EerrorStateMonad_2EBIND(A_27a,A_27b,A_27c),V0k),V1m)),V2n) ) ) ) ) ) ) ) ).

fof(conj_thm_2EerrorStateMonad_2EMMAP__ID,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ap(c_2EerrorStateMonad_2EMMAP(A_27a,A_27b,A_27b),c_2Ecombin_2EI(A_27b)) = c_2Ecombin_2EI(arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a)))) ) ) ).

fof(conj_thm_2EerrorStateMonad_2EMMAP__COMP,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [A_27c] :
              ( ne(A_27c)
             => ! [A_27d] :
                  ( ne(A_27d)
                 => ! [V0f] :
                      ( mem(V0f,arr(A_27a,A_27b))
                     => ! [V1g] :
                          ( mem(V1g,arr(A_27c,A_27a))
                         => ap(c_2EerrorStateMonad_2EMMAP(A_27d,A_27b,A_27c),ap(ap(c_2Ecombin_2Eo(A_27c,A_27b,A_27a),V0f),V1g)) = ap(ap(c_2Ecombin_2Eo(arr(A_27d,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27c,A_27d))),arr(A_27d,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27d))),arr(A_27d,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27a,A_27d)))),ap(c_2EerrorStateMonad_2EMMAP(A_27d,A_27b,A_27a),V0f)),ap(c_2EerrorStateMonad_2EMMAP(A_27d,A_27a,A_27c),V1g)) ) ) ) ) ) ) ).

fof(conj_thm_2EerrorStateMonad_2EMMAP__UNIT,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [A_27c] :
              ( ne(A_27c)
             => ! [V0f] :
                  ( mem(V0f,arr(A_27a,A_27b))
                 => ap(ap(c_2Ecombin_2Eo(A_27a,arr(A_27c,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27c))),arr(A_27c,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27a,A_27c)))),ap(c_2EerrorStateMonad_2EMMAP(A_27c,A_27b,A_27a),V0f)),c_2EerrorStateMonad_2EUNIT(A_27c,A_27a)) = ap(ap(c_2Ecombin_2Eo(A_27a,arr(A_27c,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27c))),A_27b),c_2EerrorStateMonad_2EUNIT(A_27c,A_27b)),V0f) ) ) ) ) ).

fof(conj_thm_2EerrorStateMonad_2EMMAP__JOIN,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [A_27c] :
              ( ne(A_27c)
             => ! [V0f] :
                  ( mem(V0f,arr(A_27a,A_27b))
                 => ap(ap(c_2Ecombin_2Eo(arr(A_27c,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(arr(A_27c,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27a,A_27c))),A_27c))),arr(A_27c,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27c))),arr(A_27c,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27a,A_27c)))),ap(c_2EerrorStateMonad_2EMMAP(A_27c,A_27b,A_27a),V0f)),c_2EerrorStateMonad_2EJOIN(A_27c,A_27a)) = ap(ap(c_2Ecombin_2Eo(arr(A_27c,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(arr(A_27c,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27a,A_27c))),A_27c))),arr(A_27c,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27c))),arr(A_27c,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(arr(A_27c,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27c))),A_27c)))),c_2EerrorStateMonad_2EJOIN(A_27c,A_27b)),ap(c_2EerrorStateMonad_2EMMAP(A_27c,arr(A_27c,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27c))),arr(A_27c,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27a,A_27c)))),ap(c_2EerrorStateMonad_2EMMAP(A_27c,A_27b,A_27a),V0f))) ) ) ) ) ).

fof(conj_thm_2EerrorStateMonad_2EJOIN__UNIT,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ap(ap(c_2Ecombin_2Eo(arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a))),arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a))),arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a))),A_27a)))),c_2EerrorStateMonad_2EJOIN(A_27a,A_27b)),c_2EerrorStateMonad_2EUNIT(A_27a,arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a))))) = c_2Ecombin_2EI(arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a)))) ) ) ).

fof(conj_thm_2EerrorStateMonad_2EJOIN__MMAP__UNIT,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ap(ap(c_2Ecombin_2Eo(arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a))),arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a))),arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a))),A_27a)))),c_2EerrorStateMonad_2EJOIN(A_27a,A_27b)),ap(c_2EerrorStateMonad_2EMMAP(A_27a,arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a))),A_27b),c_2EerrorStateMonad_2EUNIT(A_27a,A_27b))) = c_2Ecombin_2EI(arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a)))) ) ) ).

fof(conj_thm_2EerrorStateMonad_2EJOIN__MAP__JOIN,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ap(ap(c_2Ecombin_2Eo(arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a))),A_27a))),A_27a))),arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a))),arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a))),A_27a)))),c_2EerrorStateMonad_2EJOIN(A_27a,A_27b)),ap(c_2EerrorStateMonad_2EMMAP(A_27a,arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a))),arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a))),A_27a)))),c_2EerrorStateMonad_2EJOIN(A_27a,A_27b))) = ap(ap(c_2Ecombin_2Eo(arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a))),A_27a))),A_27a))),arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a))),arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a))),A_27a)))),c_2EerrorStateMonad_2EJOIN(A_27a,A_27b)),c_2EerrorStateMonad_2EJOIN(A_27a,arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a))))) ) ) ).

fof(conj_thm_2EerrorStateMonad_2EJOIN__MAP,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [A_27c] :
              ( ne(A_27c)
             => ! [V0k] :
                  ( mem(V0k,arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a))))
                 => ! [V1m] :
                      ( mem(V1m,arr(A_27b,arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27c,A_27a)))))
                     => ap(ap(c_2EerrorStateMonad_2EBIND(A_27a,A_27b,A_27c),V0k),V1m) = ap(c_2EerrorStateMonad_2EJOIN(A_27a,A_27c),ap(ap(c_2EerrorStateMonad_2EMMAP(A_27a,arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27c,A_27a))),A_27b),V1m),V0k)) ) ) ) ) ) ).

fof(conj_thm_2EerrorStateMonad_2Esequence__nil,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ap(c_2EerrorStateMonad_2Esequence(A_27a,A_27b),c_2Elist_2ENIL(arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a))))) = ap(c_2EerrorStateMonad_2EUNIT(A_27a,ty_2Elist_2Elist(A_27b)),c_2Elist_2ENIL(A_27b)) ) ) ).

fof(conj_thm_2EerrorStateMonad_2EmapM__nil,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [A_27c] :
              ( ne(A_27c)
             => ! [V0f] :
                  ( mem(V0f,arr(A_27c,arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a)))))
                 => ap(ap(c_2EerrorStateMonad_2EmapM(A_27c,A_27a,A_27b),V0f),c_2Elist_2ENIL(A_27c)) = ap(c_2EerrorStateMonad_2EUNIT(A_27a,ty_2Elist_2Elist(A_27b)),c_2Elist_2ENIL(A_27b)) ) ) ) ) ).

fof(lameq_f576,axiom,
    ! [A_27a,A_27b,V3y] :
      ( mem(V3y,A_27b)
     => ! [V4ys] : ap(f576(A_27a,A_27b,V3y),V4ys) = ap(c_2EerrorStateMonad_2EUNIT(A_27a,ty_2Elist_2Elist(A_27b)),ap(ap(c_2Elist_2ECONS(A_27b),V3y),V4ys)) ) ).

fof(lameq_f577,axiom,
    ! [A_27a,A_27c,A_27b,V0f] :
      ( mem(V0f,arr(A_27c,arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a)))))
     => ! [V2xs] :
          ( mem(V2xs,ty_2Elist_2Elist(A_27c))
         => ! [V3y] : ap(f577(A_27a,A_27c,A_27b,V0f,V2xs),V3y) = ap(ap(c_2EerrorStateMonad_2EBIND(A_27a,ty_2Elist_2Elist(A_27b),ty_2Elist_2Elist(A_27b)),ap(ap(c_2EerrorStateMonad_2EmapM(A_27c,A_27a,A_27b),V0f),V2xs)),f576(A_27a,A_27b,V3y)) ) ) ).

fof(conj_thm_2EerrorStateMonad_2EmapM__cons,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [A_27c] :
              ( ne(A_27c)
             => ! [V0f] :
                  ( mem(V0f,arr(A_27c,arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a)))))
                 => ! [V1x] :
                      ( mem(V1x,A_27c)
                     => ! [V2xs] :
                          ( mem(V2xs,ty_2Elist_2Elist(A_27c))
                         => ap(ap(c_2EerrorStateMonad_2EmapM(A_27c,A_27a,A_27b),V0f),ap(ap(c_2Elist_2ECONS(A_27c),V1x),V2xs)) = ap(ap(c_2EerrorStateMonad_2EBIND(A_27a,A_27b,ty_2Elist_2Elist(A_27b)),ap(V0f,V1x)),f577(A_27a,A_27c,A_27b,V0f,V2xs)) ) ) ) ) ) ) ).

fof(ax_thm_2EerrorStateMonad_2EES__FAIL__DEF,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [V0s] :
              ( mem(V0s,A_27b)
             => ap(c_2EerrorStateMonad_2EES__FAIL(A_27a,A_27b),V0s) = c_2Eoption_2ENONE(A_27a) ) ) ) ).

fof(lameq_f578,axiom,
    ! [A_27a,V3v1] : ap(f578(A_27a),V3v1) = ap(c_2Eoption_2ESOME(A_27a),V3v1) ).

fof(ax_thm_2EerrorStateMonad_2EES__CHOICE__DEF,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [V0xM] :
              ( mem(V0xM,arr(A_27b,ty_2Eoption_2Eoption(A_27a)))
             => ! [V1yM] :
                  ( mem(V1yM,arr(A_27b,ty_2Eoption_2Eoption(A_27a)))
                 => ! [V2s] :
                      ( mem(V2s,A_27b)
                     => ap(ap(ap(c_2EerrorStateMonad_2EES__CHOICE(A_27a,A_27b),V0xM),V1yM),V2s) = ap(ap(ap(c_2Eoption_2Eoption__CASE(A_27a,ty_2Eoption_2Eoption(A_27a)),ap(V0xM,V2s)),ap(V1yM,V2s)),f578(A_27a)) ) ) ) ) ) ).

fof(ax_thm_2EerrorStateMonad_2EES__GUARD__DEF,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [V0b] :
          ( mem(V0b,bool)
         => ap(c_2EerrorStateMonad_2EES__GUARD(A_27a),V0b) = ap(ap(ap(c_2Ebool_2ECOND(arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27a)))),V0b),ap(c_2EerrorStateMonad_2EUNIT(A_27a,ty_2Eone_2Eone),c_2Eone_2Eone)),c_2EerrorStateMonad_2EES__FAIL(ty_2Epair_2Eprod(ty_2Eone_2Eone,A_27a),A_27a)) ) ) ).

fof(conj_thm_2EerrorStateMonad_2EES__CHOICE__ASSOC,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [V0xM] :
              ( mem(V0xM,arr(A_27a,ty_2Eoption_2Eoption(A_27b)))
             => ! [V1yM] :
                  ( mem(V1yM,arr(A_27a,ty_2Eoption_2Eoption(A_27b)))
                 => ! [V2zM] :
                      ( mem(V2zM,arr(A_27a,ty_2Eoption_2Eoption(A_27b)))
                     => ap(ap(c_2EerrorStateMonad_2EES__CHOICE(A_27b,A_27a),V0xM),ap(ap(c_2EerrorStateMonad_2EES__CHOICE(A_27b,A_27a),V1yM),V2zM)) = ap(ap(c_2EerrorStateMonad_2EES__CHOICE(A_27b,A_27a),ap(ap(c_2EerrorStateMonad_2EES__CHOICE(A_27b,A_27a),V0xM),V1yM)),V2zM) ) ) ) ) ) ).

fof(conj_thm_2EerrorStateMonad_2EES__CHOICE__FAIL__LID,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [V0xM] :
              ( mem(V0xM,arr(A_27a,ty_2Eoption_2Eoption(A_27b)))
             => ap(ap(c_2EerrorStateMonad_2EES__CHOICE(A_27b,A_27a),c_2EerrorStateMonad_2EES__FAIL(A_27b,A_27a)),V0xM) = V0xM ) ) ) ).

fof(conj_thm_2EerrorStateMonad_2EES__CHOICE__FAIL__RID,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [V0xM] :
              ( mem(V0xM,arr(A_27a,ty_2Eoption_2Eoption(A_27b)))
             => ap(ap(c_2EerrorStateMonad_2EES__CHOICE(A_27b,A_27a),V0xM),c_2EerrorStateMonad_2EES__FAIL(A_27b,A_27a)) = V0xM ) ) ) ).

fof(conj_thm_2EerrorStateMonad_2EBIND__FAIL__L,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [A_27c] :
              ( ne(A_27c)
             => ! [V0fM] :
                  ( mem(V0fM,arr(A_27c,arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a)))))
                 => ap(ap(c_2EerrorStateMonad_2EBIND(A_27a,A_27c,A_27b),c_2EerrorStateMonad_2EES__FAIL(ty_2Epair_2Eprod(A_27c,A_27a),A_27a)),V0fM) = c_2EerrorStateMonad_2EES__FAIL(ty_2Epair_2Eprod(A_27b,A_27a),A_27a) ) ) ) ) ).

fof(conj_thm_2EerrorStateMonad_2EBIND__ESGUARD,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [V0fM] :
              ( mem(V0fM,arr(ty_2Eone_2Eone,arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a)))))
             => ( ap(ap(c_2EerrorStateMonad_2EBIND(A_27a,ty_2Eone_2Eone,A_27b),ap(c_2EerrorStateMonad_2EES__GUARD(A_27a),c_2Ebool_2EF)),V0fM) = c_2EerrorStateMonad_2EES__FAIL(ty_2Epair_2Eprod(A_27b,A_27a),A_27a)
                & ap(ap(c_2EerrorStateMonad_2EBIND(A_27a,ty_2Eone_2Eone,A_27b),ap(c_2EerrorStateMonad_2EES__GUARD(A_27a),c_2Ebool_2ET)),V0fM) = ap(V0fM,c_2Eone_2Eone) ) ) ) ) ).

fof(conj_thm_2EerrorStateMonad_2EIGNORE__BIND__ESGUARD,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [V0xM] :
              ( mem(V0xM,arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a))))
             => ( ap(ap(c_2EerrorStateMonad_2EIGNORE__BIND(ty_2Eone_2Eone,A_27a,A_27b),ap(c_2EerrorStateMonad_2EES__GUARD(A_27a),c_2Ebool_2EF)),V0xM) = c_2EerrorStateMonad_2EES__FAIL(ty_2Epair_2Eprod(A_27b,A_27a),A_27a)
                & ap(ap(c_2EerrorStateMonad_2EIGNORE__BIND(ty_2Eone_2Eone,A_27a,A_27b),ap(c_2EerrorStateMonad_2EES__GUARD(A_27a),c_2Ebool_2ET)),V0xM) = V0xM ) ) ) ) ).

fof(conj_thm_2EerrorStateMonad_2EIGNORE__BIND__FAIL,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [A_27c] :
              ( ne(A_27c)
             => ! [A_27d] :
                  ( ne(A_27d)
                 => ! [V0xM] :
                      ( mem(V0xM,arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27b,A_27a))))
                     => ( ap(ap(c_2EerrorStateMonad_2EIGNORE__BIND(A_27c,A_27a,A_27b),c_2EerrorStateMonad_2EES__FAIL(ty_2Epair_2Eprod(A_27c,A_27a),A_27a)),V0xM) = c_2EerrorStateMonad_2EES__FAIL(ty_2Epair_2Eprod(A_27b,A_27a),A_27a)
                        & ap(ap(c_2EerrorStateMonad_2EIGNORE__BIND(A_27b,A_27a,A_27d),V0xM),c_2EerrorStateMonad_2EES__FAIL(ty_2Epair_2Eprod(A_27d,A_27a),A_27a)) = c_2EerrorStateMonad_2EES__FAIL(ty_2Epair_2Eprod(A_27d,A_27a),A_27a) ) ) ) ) ) ) ).

fof(lameq_f579,axiom,
    ! [A_27b,A_27a,A_27c,V2f] :
      ( mem(V2f,arr(A_27c,A_27b))
     => ! [V3x] : ap(f579(A_27b,A_27a,A_27c,V2f),V3x) = ap(c_2EerrorStateMonad_2EUNIT(A_27a,A_27b),ap(V2f,V3x)) ) ).

fof(lameq_f580,axiom,
    ! [A_27a,A_27c,A_27b,V1xM] :
      ( mem(V1xM,arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27c,A_27a))))
     => ! [V2f] : ap(f580(A_27a,A_27c,A_27b,V1xM),V2f) = ap(ap(c_2EerrorStateMonad_2EBIND(A_27a,A_27c,A_27b),V1xM),f579(A_27b,A_27a,A_27c,V2f)) ) ).

fof(ax_thm_2EerrorStateMonad_2EES__APPLY__DEF,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [A_27c] :
              ( ne(A_27c)
             => ! [V0fM] :
                  ( mem(V0fM,arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(arr(A_27c,A_27b),A_27a))))
                 => ! [V1xM] :
                      ( mem(V1xM,arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27c,A_27a))))
                     => ap(ap(c_2EerrorStateMonad_2EES__APPLY(A_27a,A_27b,A_27c),V0fM),V1xM) = ap(ap(c_2EerrorStateMonad_2EBIND(A_27a,arr(A_27c,A_27b),A_27b),V0fM),f580(A_27a,A_27c,A_27b,V1xM)) ) ) ) ) ) ).

fof(conj_thm_2EerrorStateMonad_2EAPPLY__UNIT,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [A_27c] :
              ( ne(A_27c)
             => ! [V0f] :
                  ( mem(V0f,arr(A_27c,A_27b))
                 => ! [V1xM] :
                      ( mem(V1xM,arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27c,A_27a))))
                     => ap(ap(c_2EerrorStateMonad_2EES__APPLY(A_27a,A_27b,A_27c),ap(c_2EerrorStateMonad_2EUNIT(A_27a,arr(A_27c,A_27b)),V0f)),V1xM) = ap(ap(c_2EerrorStateMonad_2EMMAP(A_27a,A_27b,A_27c),V0f),V1xM) ) ) ) ) ) ).

fof(conj_thm_2EerrorStateMonad_2EAPPLY__UNIT__UNIT,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [A_27c] :
              ( ne(A_27c)
             => ! [V0f] :
                  ( mem(V0f,arr(A_27c,A_27b))
                 => ! [V1x] :
                      ( mem(V1x,A_27c)
                     => ap(ap(c_2EerrorStateMonad_2EES__APPLY(A_27a,A_27b,A_27c),ap(c_2EerrorStateMonad_2EUNIT(A_27a,arr(A_27c,A_27b)),V0f)),ap(c_2EerrorStateMonad_2EUNIT(A_27a,A_27c),V1x)) = ap(c_2EerrorStateMonad_2EUNIT(A_27a,A_27b),ap(V0f,V1x)) ) ) ) ) ) ).

fof(ax_thm_2EerrorStateMonad_2EES__LIFT2__DEF,axiom,
    ! [A_27a] :
      ( ne(A_27a)
     => ! [A_27b] :
          ( ne(A_27b)
         => ! [A_27c] :
              ( ne(A_27c)
             => ! [A_27d] :
                  ( ne(A_27d)
                 => ! [V0f] :
                      ( mem(V0f,arr(A_27c,arr(A_27d,A_27b)))
                     => ! [V1xM] :
                          ( mem(V1xM,arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27c,A_27a))))
                         => ! [V2yM] :
                              ( mem(V2yM,arr(A_27a,ty_2Eoption_2Eoption(ty_2Epair_2Eprod(A_27d,A_27a))))
                             => ap(ap(ap(c_2EerrorStateMonad_2EES__LIFT2(A_27a,A_27b,A_27c,A_27d),V0f),V1xM),V2yM) = ap(ap(c_2EerrorStateMonad_2EES__APPLY(A_27a,A_27b,A_27d),ap(ap(c_2EerrorStateMonad_2EMMAP(A_27a,arr(A_27d,A_27b),A_27c),V0f),V1xM)),V2yM) ) ) ) ) ) ) ) ).

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