↑ Up

Z3---4.15.1.THM-Prf.s

View TPTP
Problem
Process solution in
SystemOnTSTP
Download .tgz
%------------------------------------------------------------------------------
% File     : Z3---4.15.1
% Problem  : COM002_2 : TPTP v9.0.0. Released v5.0.0.
% Transfm  : none
% Format   : tptp
% Command  : run_E %s %d THM

% Computer : n015.cluster.edu
% Model    : x86_64 x86_64
% CPU      : Intel(R) Xeon(R) CPU E5-2620 v4 2.10GHz
% Memory   : 8042.1875MB
% OS       : Linux 3.10.0-693.el7.x86_64
% CPULimit : 300s
% WCLimit  : 300s
% DateTime : Sat Jun 21 05:00:55 AM UTC 2025

% Result   : Theorem 0.22s 0.43s
% Output   : Proof 0.22s
% Verified : 
% SZS Type : Refutation
%            Derivation depth      :    9
%            Number of leaves      :   43
% Syntax   : Number of formulae    :   90 (  27 unt;   0 typ;   0 def)
%            Number of atoms       :  446 (   0 equ)
%            Maximal formula atoms :   12 (   4 avg)
%            Number of connectives :  634 ( 297   ~; 251   |;  37   &)
%                                         (  46 <=>;   3  =>;   0  <=;   0 <~>)
%            Maximal formula depth :   10 (   6 avg)
%            Maximal term depth    :    2 (   1 avg)
%            Number of FOOLs       :   19 (  19 fml;   0 var)
%            Number of types       :    1 (   0 usr)
%            Number of type conns  :    0 (   0   >;   0   *;   0   +;   0  <<)
%            Number of predicates  :   12 (  11 usr;   4 prp; 0-3 aty)
%            Number of functors    :    6 (   6 usr;   5 con; 0-1 aty)
%            Number of variables   :  224 ( 205   !;   0   ?; 224   :)

% Comments : 
%------------------------------------------------------------------------------
tff(fails_type,type,
    fails: ( state * state ) > $o ).

tff(p8_type,type,
    p8: state ).

tff(p3_type,type,
    p3: state ).

tff(p7_type,type,
    p7: state ).

tff(p6_type,type,
    p6: state ).

tff(follows_type,type,
    follows: ( state * state ) > $o ).

tff(has_type,type,
    has: ( state * statement ) > $o ).

tff(goto_type,type,
    goto: label > statement ).

tff(loop_type,type,
    loop: label ).

tff(labels_type,type,
    labels: ( label * state ) > $o ).

tff(1,plain,
    ( follows(p7,p6)
  <=> follows(p7,p6) ),
    inference(rewrite,[status(thm)],[]) ).

tff(2,axiom,
    follows(p7,p6),
    file('/export/starexec/sandbox/benchmark/theBenchmark.p',transition_6_to_7) ).

tff(3,plain,
    follows(p7,p6),
    inference(modus_ponens,[status(thm)],[2,1]) ).

tff(4,plain,
    ^ [Start_state: state,Goal_state: state] :
      refl(( ( ~ fails(Goal_state,Start_state)
          | ~ follows(Goal_state,Start_state) )
      <=> ( ~ fails(Goal_state,Start_state)
          | ~ follows(Goal_state,Start_state) ) )),
    inference(bind,[status(th)],[]) ).

tff(5,plain,
    ( ! [Start_state: state,Goal_state: state] :
        ( ~ fails(Goal_state,Start_state)
        | ~ follows(Goal_state,Start_state) )
  <=> ! [Start_state: state,Goal_state: state] :
        ( ~ fails(Goal_state,Start_state)
        | ~ follows(Goal_state,Start_state) ) ),
    inference(quant_intro,[status(thm)],[4]) ).

tff(6,plain,
    ^ [Start_state: state,Goal_state: state] :
      trans(monotonicity(rewrite(( ( fails(Goal_state,Start_state)
              & follows(Goal_state,Start_state) )
          <=> ~ ( ~ fails(Goal_state,Start_state)
                | ~ follows(Goal_state,Start_state) ) )),
          ( ~ ( fails(Goal_state,Start_state)
              & follows(Goal_state,Start_state) )
        <=> ~ ~ ( ~ fails(Goal_state,Start_state)
                | ~ follows(Goal_state,Start_state) ) )),
        rewrite(( ~ ~ ( ~ fails(Goal_state,Start_state)
                | ~ follows(Goal_state,Start_state) )
        <=> ( ~ fails(Goal_state,Start_state)
            | ~ follows(Goal_state,Start_state) ) )),
        ( ~ ( fails(Goal_state,Start_state)
            & follows(Goal_state,Start_state) )
      <=> ( ~ fails(Goal_state,Start_state)
          | ~ follows(Goal_state,Start_state) ) )),
    inference(bind,[status(th)],[]) ).

tff(7,plain,
    ( ! [Start_state: state,Goal_state: state] :
        ~ ( fails(Goal_state,Start_state)
          & follows(Goal_state,Start_state) )
  <=> ! [Start_state: state,Goal_state: state] :
        ( ~ fails(Goal_state,Start_state)
        | ~ follows(Goal_state,Start_state) ) ),
    inference(quant_intro,[status(thm)],[6]) ).

tff(8,plain,
    ( ! [Start_state: state,Goal_state: state] :
        ~ ( fails(Goal_state,Start_state)
          & follows(Goal_state,Start_state) )
  <=> ! [Start_state: state,Goal_state: state] :
        ~ ( fails(Goal_state,Start_state)
          & follows(Goal_state,Start_state) ) ),
    inference(rewrite,[status(thm)],[]) ).

tff(9,axiom,
    ! [Start_state: state,Goal_state: state] :
      ~ ( fails(Goal_state,Start_state)
        & follows(Goal_state,Start_state) ),
    file('/export/starexec/sandbox/benchmark/theBenchmark.p',direct_success) ).

tff(10,plain,
    ! [Start_state: state,Goal_state: state] :
      ~ ( fails(Goal_state,Start_state)
        & follows(Goal_state,Start_state) ),
    inference(modus_ponens,[status(thm)],[9,8]) ).

tff(11,plain,
    ! [Start_state: state,Goal_state: state] :
      ~ ( fails(Goal_state,Start_state)
        & follows(Goal_state,Start_state) ),
    inference(skolemize,[status(sab)],[10]) ).

tff(12,plain,
    ! [Start_state: state,Goal_state: state] :
      ( ~ fails(Goal_state,Start_state)
      | ~ follows(Goal_state,Start_state) ),
    inference(modus_ponens,[status(thm)],[11,7]) ).

tff(13,plain,
    ! [Start_state: state,Goal_state: state] :
      ( ~ fails(Goal_state,Start_state)
      | ~ follows(Goal_state,Start_state) ),
    inference(modus_ponens,[status(thm)],[12,5]) ).

tff(14,plain,
    ( ( ~ ! [Start_state: state,Goal_state: state] :
            ( ~ fails(Goal_state,Start_state)
            | ~ follows(Goal_state,Start_state) )
      | ~ fails(p7,p6)
      | ~ follows(p7,p6) )
  <=> ( ~ ! [Start_state: state,Goal_state: state] :
            ( ~ fails(Goal_state,Start_state)
            | ~ follows(Goal_state,Start_state) )
      | ~ fails(p7,p6)
      | ~ follows(p7,p6) ) ),
    inference(rewrite,[status(thm)],[]) ).

tff(15,plain,
    ( ~ ! [Start_state: state,Goal_state: state] :
          ( ~ fails(Goal_state,Start_state)
          | ~ follows(Goal_state,Start_state) )
    | ~ fails(p7,p6)
    | ~ follows(p7,p6) ),
    inference(quant_inst,[status(thm)],[]) ).

tff(16,plain,
    ( ~ ! [Start_state: state,Goal_state: state] :
          ( ~ fails(Goal_state,Start_state)
          | ~ follows(Goal_state,Start_state) )
    | ~ fails(p7,p6)
    | ~ follows(p7,p6) ),
    inference(modus_ponens,[status(thm)],[15,14]) ).

tff(17,plain,
    ~ fails(p7,p6),
    inference(unit_resolution,[status(thm)],[16,13,3]) ).

tff(18,plain,
    ( follows(p6,p3)
  <=> follows(p6,p3) ),
    inference(rewrite,[status(thm)],[]) ).

tff(19,axiom,
    follows(p6,p3),
    file('/export/starexec/sandbox/benchmark/theBenchmark.p',transition_3_to_6) ).

tff(20,plain,
    follows(p6,p3),
    inference(modus_ponens,[status(thm)],[19,18]) ).

tff(21,plain,
    ( ( ~ ! [Start_state: state,Goal_state: state] :
            ( ~ fails(Goal_state,Start_state)
            | ~ follows(Goal_state,Start_state) )
      | ~ fails(p6,p3)
      | ~ follows(p6,p3) )
  <=> ( ~ ! [Start_state: state,Goal_state: state] :
            ( ~ fails(Goal_state,Start_state)
            | ~ follows(Goal_state,Start_state) )
      | ~ fails(p6,p3)
      | ~ follows(p6,p3) ) ),
    inference(rewrite,[status(thm)],[]) ).

tff(22,plain,
    ( ~ ! [Start_state: state,Goal_state: state] :
          ( ~ fails(Goal_state,Start_state)
          | ~ follows(Goal_state,Start_state) )
    | ~ fails(p6,p3)
    | ~ follows(p6,p3) ),
    inference(quant_inst,[status(thm)],[]) ).

tff(23,plain,
    ( ~ ! [Start_state: state,Goal_state: state] :
          ( ~ fails(Goal_state,Start_state)
          | ~ follows(Goal_state,Start_state) )
    | ~ fails(p6,p3)
    | ~ follows(p6,p3) ),
    inference(modus_ponens,[status(thm)],[22,21]) ).

tff(24,plain,
    ~ fails(p6,p3),
    inference(unit_resolution,[status(thm)],[23,13,20]) ).

tff(25,plain,
    ^ [Intermediate_state: state,Start_state: state,Goal_state: state] :
      refl(( ( fails(Intermediate_state,Start_state)
          | fails(Goal_state,Intermediate_state)
          | ~ fails(Goal_state,Start_state) )
      <=> ( fails(Intermediate_state,Start_state)
          | fails(Goal_state,Intermediate_state)
          | ~ fails(Goal_state,Start_state) ) )),
    inference(bind,[status(th)],[]) ).

tff(26,plain,
    ( ! [Intermediate_state: state,Start_state: state,Goal_state: state] :
        ( fails(Intermediate_state,Start_state)
        | fails(Goal_state,Intermediate_state)
        | ~ fails(Goal_state,Start_state) )
  <=> ! [Intermediate_state: state,Start_state: state,Goal_state: state] :
        ( fails(Intermediate_state,Start_state)
        | fails(Goal_state,Intermediate_state)
        | ~ fails(Goal_state,Start_state) ) ),
    inference(quant_intro,[status(thm)],[25]) ).

tff(27,plain,
    ( ! [Intermediate_state: state,Start_state: state,Goal_state: state] :
        ( fails(Intermediate_state,Start_state)
        | fails(Goal_state,Intermediate_state)
        | ~ fails(Goal_state,Start_state) )
  <=> ! [Intermediate_state: state,Start_state: state,Goal_state: state] :
        ( fails(Intermediate_state,Start_state)
        | fails(Goal_state,Intermediate_state)
        | ~ fails(Goal_state,Start_state) ) ),
    inference(rewrite,[status(thm)],[]) ).

tff(28,plain,
    ^ [Intermediate_state: state,Start_state: state,Goal_state: state] :
      rewrite(( ( fails(Goal_state,Start_state)
         => ( fails(Goal_state,Intermediate_state)
            | fails(Intermediate_state,Start_state) ) )
      <=> ( fails(Intermediate_state,Start_state)
          | fails(Goal_state,Intermediate_state)
          | ~ fails(Goal_state,Start_state) ) )),
    inference(bind,[status(th)],[]) ).

tff(29,plain,
    ( ! [Intermediate_state: state,Start_state: state,Goal_state: state] :
        ( fails(Goal_state,Start_state)
       => ( fails(Goal_state,Intermediate_state)
          | fails(Intermediate_state,Start_state) ) )
  <=> ! [Intermediate_state: state,Start_state: state,Goal_state: state] :
        ( fails(Intermediate_state,Start_state)
        | fails(Goal_state,Intermediate_state)
        | ~ fails(Goal_state,Start_state) ) ),
    inference(quant_intro,[status(thm)],[28]) ).

tff(30,axiom,
    ! [Intermediate_state: state,Start_state: state,Goal_state: state] :
      ( fails(Goal_state,Start_state)
     => ( fails(Goal_state,Intermediate_state)
        | fails(Intermediate_state,Start_state) ) ),
    file('/export/starexec/sandbox/benchmark/theBenchmark.p',transitivity_of_success) ).

tff(31,plain,
    ! [Intermediate_state: state,Start_state: state,Goal_state: state] :
      ( fails(Intermediate_state,Start_state)
      | fails(Goal_state,Intermediate_state)
      | ~ fails(Goal_state,Start_state) ),
    inference(modus_ponens,[status(thm)],[30,29]) ).

tff(32,plain,
    ! [Intermediate_state: state,Start_state: state,Goal_state: state] :
      ( fails(Intermediate_state,Start_state)
      | fails(Goal_state,Intermediate_state)
      | ~ fails(Goal_state,Start_state) ),
    inference(modus_ponens,[status(thm)],[31,27]) ).

tff(33,plain,
    ! [Intermediate_state: state,Start_state: state,Goal_state: state] :
      ( fails(Intermediate_state,Start_state)
      | fails(Goal_state,Intermediate_state)
      | ~ fails(Goal_state,Start_state) ),
    inference(skolemize,[status(sab)],[32]) ).

tff(34,plain,
    ! [Intermediate_state: state,Start_state: state,Goal_state: state] :
      ( fails(Intermediate_state,Start_state)
      | fails(Goal_state,Intermediate_state)
      | ~ fails(Goal_state,Start_state) ),
    inference(modus_ponens,[status(thm)],[33,26]) ).

tff(35,plain,
    ( ( ~ ! [Intermediate_state: state,Start_state: state,Goal_state: state] :
            ( fails(Intermediate_state,Start_state)
            | fails(Goal_state,Intermediate_state)
            | ~ fails(Goal_state,Start_state) )
      | fails(p6,p3)
      | fails(p7,p6)
      | ~ fails(p7,p3) )
  <=> ( ~ ! [Intermediate_state: state,Start_state: state,Goal_state: state] :
            ( fails(Intermediate_state,Start_state)
            | fails(Goal_state,Intermediate_state)
            | ~ fails(Goal_state,Start_state) )
      | fails(p6,p3)
      | fails(p7,p6)
      | ~ fails(p7,p3) ) ),
    inference(rewrite,[status(thm)],[]) ).

tff(36,plain,
    ( ~ ! [Intermediate_state: state,Start_state: state,Goal_state: state] :
          ( fails(Intermediate_state,Start_state)
          | fails(Goal_state,Intermediate_state)
          | ~ fails(Goal_state,Start_state) )
    | fails(p6,p3)
    | fails(p7,p6)
    | ~ fails(p7,p3) ),
    inference(quant_inst,[status(thm)],[]) ).

tff(37,plain,
    ( ~ ! [Intermediate_state: state,Start_state: state,Goal_state: state] :
          ( fails(Intermediate_state,Start_state)
          | fails(Goal_state,Intermediate_state)
          | ~ fails(Goal_state,Start_state) )
    | fails(p6,p3)
    | fails(p7,p6)
    | ~ fails(p7,p3) ),
    inference(modus_ponens,[status(thm)],[36,35]) ).

tff(38,plain,
    ~ fails(p7,p3),
    inference(unit_resolution,[status(thm)],[37,34,24,17]) ).

tff(39,plain,
    ( fails(p3,p3)
  <=> fails(p3,p3) ),
    inference(rewrite,[status(thm)],[]) ).

tff(40,plain,
    ( ~ ~ fails(p3,p3)
  <=> fails(p3,p3) ),
    inference(rewrite,[status(thm)],[]) ).

tff(41,axiom,
    ~ ~ fails(p3,p3),
    file('/export/starexec/sandbox/benchmark/theBenchmark.p',prove_there_is_a_loop_through_p3) ).

tff(42,plain,
    fails(p3,p3),
    inference(modus_ponens,[status(thm)],[41,40]) ).

tff(43,plain,
    fails(p3,p3),
    inference(modus_ponens,[status(thm)],[42,39]) ).

tff(44,plain,
    ( ( ~ ! [Intermediate_state: state,Start_state: state,Goal_state: state] :
            ( fails(Intermediate_state,Start_state)
            | fails(Goal_state,Intermediate_state)
            | ~ fails(Goal_state,Start_state) )
      | ~ fails(p3,p3)
      | fails(p7,p3)
      | fails(p3,p7) )
  <=> ( ~ ! [Intermediate_state: state,Start_state: state,Goal_state: state] :
            ( fails(Intermediate_state,Start_state)
            | fails(Goal_state,Intermediate_state)
            | ~ fails(Goal_state,Start_state) )
      | ~ fails(p3,p3)
      | fails(p7,p3)
      | fails(p3,p7) ) ),
    inference(rewrite,[status(thm)],[]) ).

tff(45,plain,
    ( ( fails(p7,p3)
      | fails(p3,p7)
      | ~ fails(p3,p3) )
  <=> ( ~ fails(p3,p3)
      | fails(p7,p3)
      | fails(p3,p7) ) ),
    inference(rewrite,[status(thm)],[]) ).

tff(46,plain,
    ( ( ~ ! [Intermediate_state: state,Start_state: state,Goal_state: state] :
            ( fails(Intermediate_state,Start_state)
            | fails(Goal_state,Intermediate_state)
            | ~ fails(Goal_state,Start_state) )
      | fails(p7,p3)
      | fails(p3,p7)
      | ~ fails(p3,p3) )
  <=> ( ~ ! [Intermediate_state: state,Start_state: state,Goal_state: state] :
            ( fails(Intermediate_state,Start_state)
            | fails(Goal_state,Intermediate_state)
            | ~ fails(Goal_state,Start_state) )
      | ~ fails(p3,p3)
      | fails(p7,p3)
      | fails(p3,p7) ) ),
    inference(monotonicity,[status(thm)],[45]) ).

tff(47,plain,
    ( ( ~ ! [Intermediate_state: state,Start_state: state,Goal_state: state] :
            ( fails(Intermediate_state,Start_state)
            | fails(Goal_state,Intermediate_state)
            | ~ fails(Goal_state,Start_state) )
      | fails(p7,p3)
      | fails(p3,p7)
      | ~ fails(p3,p3) )
  <=> ( ~ ! [Intermediate_state: state,Start_state: state,Goal_state: state] :
            ( fails(Intermediate_state,Start_state)
            | fails(Goal_state,Intermediate_state)
            | ~ fails(Goal_state,Start_state) )
      | ~ fails(p3,p3)
      | fails(p7,p3)
      | fails(p3,p7) ) ),
    inference(transitivity,[status(thm)],[46,44]) ).

tff(48,plain,
    ( ~ ! [Intermediate_state: state,Start_state: state,Goal_state: state] :
          ( fails(Intermediate_state,Start_state)
          | fails(Goal_state,Intermediate_state)
          | ~ fails(Goal_state,Start_state) )
    | fails(p7,p3)
    | fails(p3,p7)
    | ~ fails(p3,p3) ),
    inference(quant_inst,[status(thm)],[]) ).

tff(49,plain,
    ( ~ ! [Intermediate_state: state,Start_state: state,Goal_state: state] :
          ( fails(Intermediate_state,Start_state)
          | fails(Goal_state,Intermediate_state)
          | ~ fails(Goal_state,Start_state) )
    | ~ fails(p3,p3)
    | fails(p7,p3)
    | fails(p3,p7) ),
    inference(modus_ponens,[status(thm)],[48,47]) ).

tff(50,plain,
    fails(p3,p7),
    inference(unit_resolution,[status(thm)],[49,34,43,38]) ).

tff(51,plain,
    ( follows(p8,p7)
  <=> follows(p8,p7) ),
    inference(rewrite,[status(thm)],[]) ).

tff(52,axiom,
    follows(p8,p7),
    file('/export/starexec/sandbox/benchmark/theBenchmark.p',transition_7_to_8) ).

tff(53,plain,
    follows(p8,p7),
    inference(modus_ponens,[status(thm)],[52,51]) ).

tff(54,plain,
    ( ( ~ ! [Start_state: state,Goal_state: state] :
            ( ~ fails(Goal_state,Start_state)
            | ~ follows(Goal_state,Start_state) )
      | ~ fails(p8,p7)
      | ~ follows(p8,p7) )
  <=> ( ~ ! [Start_state: state,Goal_state: state] :
            ( ~ fails(Goal_state,Start_state)
            | ~ follows(Goal_state,Start_state) )
      | ~ fails(p8,p7)
      | ~ follows(p8,p7) ) ),
    inference(rewrite,[status(thm)],[]) ).

tff(55,plain,
    ( ~ ! [Start_state: state,Goal_state: state] :
          ( ~ fails(Goal_state,Start_state)
          | ~ follows(Goal_state,Start_state) )
    | ~ fails(p8,p7)
    | ~ follows(p8,p7) ),
    inference(quant_inst,[status(thm)],[]) ).

tff(56,plain,
    ( ~ ! [Start_state: state,Goal_state: state] :
          ( ~ fails(Goal_state,Start_state)
          | ~ follows(Goal_state,Start_state) )
    | ~ fails(p8,p7)
    | ~ follows(p8,p7) ),
    inference(modus_ponens,[status(thm)],[55,54]) ).

tff(57,plain,
    ~ fails(p8,p7),
    inference(unit_resolution,[status(thm)],[56,13,53]) ).

tff(58,plain,
    ( ( ~ ! [Intermediate_state: state,Start_state: state,Goal_state: state] :
            ( fails(Intermediate_state,Start_state)
            | fails(Goal_state,Intermediate_state)
            | ~ fails(Goal_state,Start_state) )
      | fails(p8,p7)
      | ~ fails(p3,p7)
      | fails(p3,p8) )
  <=> ( ~ ! [Intermediate_state: state,Start_state: state,Goal_state: state] :
            ( fails(Intermediate_state,Start_state)
            | fails(Goal_state,Intermediate_state)
            | ~ fails(Goal_state,Start_state) )
      | fails(p8,p7)
      | ~ fails(p3,p7)
      | fails(p3,p8) ) ),
    inference(rewrite,[status(thm)],[]) ).

tff(59,plain,
    ( ( fails(p8,p7)
      | fails(p3,p8)
      | ~ fails(p3,p7) )
  <=> ( fails(p8,p7)
      | ~ fails(p3,p7)
      | fails(p3,p8) ) ),
    inference(rewrite,[status(thm)],[]) ).

tff(60,plain,
    ( ( ~ ! [Intermediate_state: state,Start_state: state,Goal_state: state] :
            ( fails(Intermediate_state,Start_state)
            | fails(Goal_state,Intermediate_state)
            | ~ fails(Goal_state,Start_state) )
      | fails(p8,p7)
      | fails(p3,p8)
      | ~ fails(p3,p7) )
  <=> ( ~ ! [Intermediate_state: state,Start_state: state,Goal_state: state] :
            ( fails(Intermediate_state,Start_state)
            | fails(Goal_state,Intermediate_state)
            | ~ fails(Goal_state,Start_state) )
      | fails(p8,p7)
      | ~ fails(p3,p7)
      | fails(p3,p8) ) ),
    inference(monotonicity,[status(thm)],[59]) ).

tff(61,plain,
    ( ( ~ ! [Intermediate_state: state,Start_state: state,Goal_state: state] :
            ( fails(Intermediate_state,Start_state)
            | fails(Goal_state,Intermediate_state)
            | ~ fails(Goal_state,Start_state) )
      | fails(p8,p7)
      | fails(p3,p8)
      | ~ fails(p3,p7) )
  <=> ( ~ ! [Intermediate_state: state,Start_state: state,Goal_state: state] :
            ( fails(Intermediate_state,Start_state)
            | fails(Goal_state,Intermediate_state)
            | ~ fails(Goal_state,Start_state) )
      | fails(p8,p7)
      | ~ fails(p3,p7)
      | fails(p3,p8) ) ),
    inference(transitivity,[status(thm)],[60,58]) ).

tff(62,plain,
    ( ~ ! [Intermediate_state: state,Start_state: state,Goal_state: state] :
          ( fails(Intermediate_state,Start_state)
          | fails(Goal_state,Intermediate_state)
          | ~ fails(Goal_state,Start_state) )
    | fails(p8,p7)
    | fails(p3,p8)
    | ~ fails(p3,p7) ),
    inference(quant_inst,[status(thm)],[]) ).

tff(63,plain,
    ( ~ ! [Intermediate_state: state,Start_state: state,Goal_state: state] :
          ( fails(Intermediate_state,Start_state)
          | fails(Goal_state,Intermediate_state)
          | ~ fails(Goal_state,Start_state) )
    | fails(p8,p7)
    | ~ fails(p3,p7)
    | fails(p3,p8) ),
    inference(modus_ponens,[status(thm)],[62,61]) ).

tff(64,plain,
    fails(p3,p8),
    inference(unit_resolution,[status(thm)],[63,34,57,50]) ).

tff(65,plain,
    ( has(p8,goto(loop))
  <=> has(p8,goto(loop)) ),
    inference(rewrite,[status(thm)],[]) ).

tff(66,axiom,
    has(p8,goto(loop)),
    file('/export/starexec/sandbox/benchmark/theBenchmark.p',state_8) ).

tff(67,plain,
    has(p8,goto(loop)),
    inference(modus_ponens,[status(thm)],[66,65]) ).

tff(68,plain,
    ( labels(loop,p3)
  <=> labels(loop,p3) ),
    inference(rewrite,[status(thm)],[]) ).

tff(69,axiom,
    labels(loop,p3),
    file('/export/starexec/sandbox/benchmark/theBenchmark.p',label_state_3) ).

tff(70,plain,
    labels(loop,p3),
    inference(modus_ponens,[status(thm)],[69,68]) ).

tff(71,plain,
    ^ [Label: label,Start_state: state,Goal_state: state] :
      refl(( ( ~ fails(Goal_state,Start_state)
          | ~ has(Start_state,goto(Label))
          | ~ labels(Label,Goal_state) )
      <=> ( ~ fails(Goal_state,Start_state)
          | ~ has(Start_state,goto(Label))
          | ~ labels(Label,Goal_state) ) )),
    inference(bind,[status(th)],[]) ).

tff(72,plain,
    ( ! [Label: label,Start_state: state,Goal_state: state] :
        ( ~ fails(Goal_state,Start_state)
        | ~ has(Start_state,goto(Label))
        | ~ labels(Label,Goal_state) )
  <=> ! [Label: label,Start_state: state,Goal_state: state] :
        ( ~ fails(Goal_state,Start_state)
        | ~ has(Start_state,goto(Label))
        | ~ labels(Label,Goal_state) ) ),
    inference(quant_intro,[status(thm)],[71]) ).

tff(73,plain,
    ^ [Label: label,Start_state: state,Goal_state: state] :
      trans(monotonicity(rewrite(( ( fails(Goal_state,Start_state)
              & has(Start_state,goto(Label))
              & labels(Label,Goal_state) )
          <=> ~ ( ~ fails(Goal_state,Start_state)
                | ~ has(Start_state,goto(Label))
                | ~ labels(Label,Goal_state) ) )),
          ( ~ ( fails(Goal_state,Start_state)
              & has(Start_state,goto(Label))
              & labels(Label,Goal_state) )
        <=> ~ ~ ( ~ fails(Goal_state,Start_state)
                | ~ has(Start_state,goto(Label))
                | ~ labels(Label,Goal_state) ) )),
        rewrite(( ~ ~ ( ~ fails(Goal_state,Start_state)
                | ~ has(Start_state,goto(Label))
                | ~ labels(Label,Goal_state) )
        <=> ( ~ fails(Goal_state,Start_state)
            | ~ has(Start_state,goto(Label))
            | ~ labels(Label,Goal_state) ) )),
        ( ~ ( fails(Goal_state,Start_state)
            & has(Start_state,goto(Label))
            & labels(Label,Goal_state) )
      <=> ( ~ fails(Goal_state,Start_state)
          | ~ has(Start_state,goto(Label))
          | ~ labels(Label,Goal_state) ) )),
    inference(bind,[status(th)],[]) ).

tff(74,plain,
    ( ! [Label: label,Start_state: state,Goal_state: state] :
        ~ ( fails(Goal_state,Start_state)
          & has(Start_state,goto(Label))
          & labels(Label,Goal_state) )
  <=> ! [Label: label,Start_state: state,Goal_state: state] :
        ( ~ fails(Goal_state,Start_state)
        | ~ has(Start_state,goto(Label))
        | ~ labels(Label,Goal_state) ) ),
    inference(quant_intro,[status(thm)],[73]) ).

tff(75,plain,
    ( ! [Label: label,Start_state: state,Goal_state: state] :
        ~ ( fails(Goal_state,Start_state)
          & has(Start_state,goto(Label))
          & labels(Label,Goal_state) )
  <=> ! [Label: label,Start_state: state,Goal_state: state] :
        ~ ( fails(Goal_state,Start_state)
          & has(Start_state,goto(Label))
          & labels(Label,Goal_state) ) ),
    inference(rewrite,[status(thm)],[]) ).

tff(76,plain,
    ^ [Label: label,Start_state: state,Goal_state: state] :
      rewrite(( ~ ( fails(Goal_state,Start_state)
            & has(Start_state,goto(Label))
            & labels(Label,Goal_state) )
      <=> ~ ( fails(Goal_state,Start_state)
            & has(Start_state,goto(Label))
            & labels(Label,Goal_state) ) )),
    inference(bind,[status(th)],[]) ).

tff(77,plain,
    ( ! [Label: label,Start_state: state,Goal_state: state] :
        ~ ( fails(Goal_state,Start_state)
          & has(Start_state,goto(Label))
          & labels(Label,Goal_state) )
  <=> ! [Label: label,Start_state: state,Goal_state: state] :
        ~ ( fails(Goal_state,Start_state)
          & has(Start_state,goto(Label))
          & labels(Label,Goal_state) ) ),
    inference(quant_intro,[status(thm)],[76]) ).

tff(78,axiom,
    ! [Label: label,Start_state: state,Goal_state: state] :
      ~ ( fails(Goal_state,Start_state)
        & has(Start_state,goto(Label))
        & labels(Label,Goal_state) ),
    file('/export/starexec/sandbox/benchmark/theBenchmark.p',goto_success) ).

tff(79,plain,
    ! [Label: label,Start_state: state,Goal_state: state] :
      ~ ( fails(Goal_state,Start_state)
        & has(Start_state,goto(Label))
        & labels(Label,Goal_state) ),
    inference(modus_ponens,[status(thm)],[78,77]) ).

tff(80,plain,
    ! [Label: label,Start_state: state,Goal_state: state] :
      ~ ( fails(Goal_state,Start_state)
        & has(Start_state,goto(Label))
        & labels(Label,Goal_state) ),
    inference(modus_ponens,[status(thm)],[79,75]) ).

tff(81,plain,
    ! [Label: label,Start_state: state,Goal_state: state] :
      ~ ( fails(Goal_state,Start_state)
        & has(Start_state,goto(Label))
        & labels(Label,Goal_state) ),
    inference(skolemize,[status(sab)],[80]) ).

tff(82,plain,
    ! [Label: label,Start_state: state,Goal_state: state] :
      ( ~ fails(Goal_state,Start_state)
      | ~ has(Start_state,goto(Label))
      | ~ labels(Label,Goal_state) ),
    inference(modus_ponens,[status(thm)],[81,74]) ).

tff(83,plain,
    ! [Label: label,Start_state: state,Goal_state: state] :
      ( ~ fails(Goal_state,Start_state)
      | ~ has(Start_state,goto(Label))
      | ~ labels(Label,Goal_state) ),
    inference(modus_ponens,[status(thm)],[82,72]) ).

tff(84,plain,
    ( ( ~ ! [Label: label,Start_state: state,Goal_state: state] :
            ( ~ fails(Goal_state,Start_state)
            | ~ has(Start_state,goto(Label))
            | ~ labels(Label,Goal_state) )
      | ~ labels(loop,p3)
      | ~ fails(p3,p8)
      | ~ has(p8,goto(loop)) )
  <=> ( ~ ! [Label: label,Start_state: state,Goal_state: state] :
            ( ~ fails(Goal_state,Start_state)
            | ~ has(Start_state,goto(Label))
            | ~ labels(Label,Goal_state) )
      | ~ labels(loop,p3)
      | ~ fails(p3,p8)
      | ~ has(p8,goto(loop)) ) ),
    inference(rewrite,[status(thm)],[]) ).

tff(85,plain,
    ( ( ~ fails(p3,p8)
      | ~ has(p8,goto(loop))
      | ~ labels(loop,p3) )
  <=> ( ~ labels(loop,p3)
      | ~ fails(p3,p8)
      | ~ has(p8,goto(loop)) ) ),
    inference(rewrite,[status(thm)],[]) ).

tff(86,plain,
    ( ( ~ ! [Label: label,Start_state: state,Goal_state: state] :
            ( ~ fails(Goal_state,Start_state)
            | ~ has(Start_state,goto(Label))
            | ~ labels(Label,Goal_state) )
      | ~ fails(p3,p8)
      | ~ has(p8,goto(loop))
      | ~ labels(loop,p3) )
  <=> ( ~ ! [Label: label,Start_state: state,Goal_state: state] :
            ( ~ fails(Goal_state,Start_state)
            | ~ has(Start_state,goto(Label))
            | ~ labels(Label,Goal_state) )
      | ~ labels(loop,p3)
      | ~ fails(p3,p8)
      | ~ has(p8,goto(loop)) ) ),
    inference(monotonicity,[status(thm)],[85]) ).

tff(87,plain,
    ( ( ~ ! [Label: label,Start_state: state,Goal_state: state] :
            ( ~ fails(Goal_state,Start_state)
            | ~ has(Start_state,goto(Label))
            | ~ labels(Label,Goal_state) )
      | ~ fails(p3,p8)
      | ~ has(p8,goto(loop))
      | ~ labels(loop,p3) )
  <=> ( ~ ! [Label: label,Start_state: state,Goal_state: state] :
            ( ~ fails(Goal_state,Start_state)
            | ~ has(Start_state,goto(Label))
            | ~ labels(Label,Goal_state) )
      | ~ labels(loop,p3)
      | ~ fails(p3,p8)
      | ~ has(p8,goto(loop)) ) ),
    inference(transitivity,[status(thm)],[86,84]) ).

tff(88,plain,
    ( ~ ! [Label: label,Start_state: state,Goal_state: state] :
          ( ~ fails(Goal_state,Start_state)
          | ~ has(Start_state,goto(Label))
          | ~ labels(Label,Goal_state) )
    | ~ fails(p3,p8)
    | ~ has(p8,goto(loop))
    | ~ labels(loop,p3) ),
    inference(quant_inst,[status(thm)],[]) ).

tff(89,plain,
    ( ~ ! [Label: label,Start_state: state,Goal_state: state] :
          ( ~ fails(Goal_state,Start_state)
          | ~ has(Start_state,goto(Label))
          | ~ labels(Label,Goal_state) )
    | ~ labels(loop,p3)
    | ~ fails(p3,p8)
    | ~ has(p8,goto(loop)) ),
    inference(modus_ponens,[status(thm)],[88,87]) ).

tff(90,plain,
    $false,
    inference(unit_resolution,[status(thm)],[89,83,70,67,64]) ).

%------------------------------------------------------------------------------
%----ORIGINAL SYSTEM OUTPUT
% 0.04/0.15  % Problem    : COM002_2 : TPTP v9.0.0. Released v5.0.0.
% 0.04/0.15  % Command    : run_E %s %d THM
% 0.15/0.36  % Computer : n015.cluster.edu
% 0.15/0.36  % Model    : x86_64 x86_64
% 0.15/0.36  % CPU      : Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz
% 0.15/0.36  % Memory   : 8042.1875MB
% 0.15/0.36  % OS       : Linux 3.10.0-693.el7.x86_64
% 0.15/0.37  % CPULimit   : 300
% 0.15/0.37  % WCLimit    : 300
% 0.15/0.37  % DateTime   : Thu Jun 19 12:20:26 EDT 2025
% 0.22/0.37  % CPUTime    : 
% 0.22/0.43  % SZS status Theorem
% 0.22/0.43  % SZS output start Proof
% See solution above
% 0.22/0.45  % E exiting
%------------------------------------------------------------------------------