TSTP Solution File: CAT014-4 by Z3---4.8.9.0

View Problem - Process Solution

%------------------------------------------------------------------------------
% File     : Z3---4.8.9.0
% Problem  : CAT014-4 : TPTP v8.1.0. Released v1.0.0.
% Transfm  : none
% Format   : tptp
% Command  : z3_tptp -proof -model -t:%d -file:%s

% Computer : n026.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 : Tue Sep  6 17:29:47 EDT 2022

% Result   : Unsatisfiable 0.20s 0.40s
% Output   : Proof 0.20s
% Verified : 
% SZS Type : Refutation
%            Derivation depth      :   13
%            Number of leaves      :   31
% Syntax   : Number of formulae    :   76 (  30 unt;   5 typ;   0 def)
%            Number of atoms       :  168 (  73 equ)
%            Maximal formula atoms :    8 (   2 avg)
%            Number of connectives :  165 (  73   ~;  66   |;   0   &)
%                                         (  26 <=>;   0  =>;   0  <=;   0 <~>)
%            Maximal formula depth :    8 (   3 avg)
%            Maximal term depth    :    5 (   2 avg)
%            Number of FOOLs       :    5 (   5 fml;   0 var)
%            Number of types       :    2 (   0 usr)
%            Number of type conns  :    5 (   4   >;   1   *;   0   +;   0  <<)
%            Number of predicates  :    5 (   3 usr;   1 prp; 0-2 aty)
%            Number of functors    :    4 (   4 usr;   1 con; 0-2 aty)
%            Number of variables   :   92 (  84   !;   0   ?;  92   :)

% Comments : 
%------------------------------------------------------------------------------
tff(codomain_type,type,
    codomain: $i > $i ).

tff(a_type,type,
    a: $i ).

tff(domain_type,type,
    domain: $i > $i ).

tff(there_exists_type,type,
    there_exists: $i > $o ).

tff(compose_type,type,
    compose: ( $i * $i ) > $i ).

tff(1,plain,
    ^ [X: $i] :
      refl(
        ( ( compose(codomain(X),X) = X )
      <=> ( compose(codomain(X),X) = X ) )),
    inference(bind,[status(th)],]) ).

tff(2,plain,
    ( ! [X: $i] : ( compose(codomain(X),X) = X )
  <=> ! [X: $i] : ( compose(codomain(X),X) = X ) ),
    inference(quant_intro,[status(thm)],[1]) ).

tff(3,plain,
    ( ! [X: $i] : ( compose(codomain(X),X) = X )
  <=> ! [X: $i] : ( compose(codomain(X),X) = X ) ),
    inference(rewrite,[status(thm)],]) ).

tff(4,axiom,
    ! [X: $i] : ( compose(codomain(X),X) = X ),
    file('/export/starexec/sandbox2/benchmark/Axioms/CAT004-0.ax',compose_codomain) ).

tff(5,plain,
    ! [X: $i] : ( compose(codomain(X),X) = X ),
    inference(modus_ponens,[status(thm)],[4,3]) ).

tff(6,plain,
    ! [X: $i] : ( compose(codomain(X),X) = X ),
    inference(skolemize,[status(sab)],[5]) ).

tff(7,plain,
    ! [X: $i] : ( compose(codomain(X),X) = X ),
    inference(modus_ponens,[status(thm)],[6,2]) ).

tff(8,plain,
    ( ~ ! [X: $i] : ( compose(codomain(X),X) = X )
    | ( compose(codomain(codomain(a)),codomain(a)) = codomain(a) ) ),
    inference(quant_inst,[status(thm)],]) ).

tff(9,plain,
    compose(codomain(codomain(a)),codomain(a)) = codomain(a),
    inference(unit_resolution,[status(thm)],[8,7]) ).

tff(10,plain,
    ( there_exists(compose(codomain(codomain(a)),codomain(a)))
  <=> there_exists(codomain(a)) ),
    inference(monotonicity,[status(thm)],[9]) ).

tff(11,plain,
    ( there_exists(codomain(a))
  <=> there_exists(compose(codomain(codomain(a)),codomain(a))) ),
    inference(symmetry,[status(thm)],[10]) ).

tff(12,plain,
    ( there_exists(codomain(a))
  <=> there_exists(codomain(a)) ),
    inference(rewrite,[status(thm)],]) ).

tff(13,axiom,
    there_exists(codomain(a)),
    file('/export/starexec/sandbox2/benchmark/theBenchmark.p',assume_codomain_exists) ).

tff(14,plain,
    there_exists(codomain(a)),
    inference(modus_ponens,[status(thm)],[13,12]) ).

tff(15,plain,
    there_exists(compose(codomain(codomain(a)),codomain(a))),
    inference(modus_ponens,[status(thm)],[14,11]) ).

tff(16,plain,
    ^ [Y: $i,X: $i] :
      refl(
        ( ( ~ there_exists(compose(X,Y))
          | ( domain(X) = codomain(Y) ) )
      <=> ( ~ there_exists(compose(X,Y))
          | ( domain(X) = codomain(Y) ) ) )),
    inference(bind,[status(th)],]) ).

tff(17,plain,
    ( ! [Y: $i,X: $i] :
        ( ~ there_exists(compose(X,Y))
        | ( domain(X) = codomain(Y) ) )
  <=> ! [Y: $i,X: $i] :
        ( ~ there_exists(compose(X,Y))
        | ( domain(X) = codomain(Y) ) ) ),
    inference(quant_intro,[status(thm)],[16]) ).

tff(18,plain,
    ( ! [Y: $i,X: $i] :
        ( ~ there_exists(compose(X,Y))
        | ( domain(X) = codomain(Y) ) )
  <=> ! [Y: $i,X: $i] :
        ( ~ there_exists(compose(X,Y))
        | ( domain(X) = codomain(Y) ) ) ),
    inference(rewrite,[status(thm)],]) ).

tff(19,axiom,
    ! [Y: $i,X: $i] :
      ( ~ there_exists(compose(X,Y))
      | ( domain(X) = codomain(Y) ) ),
    file('/export/starexec/sandbox2/benchmark/Axioms/CAT004-0.ax',domain_codomain_composition1) ).

tff(20,plain,
    ! [Y: $i,X: $i] :
      ( ~ there_exists(compose(X,Y))
      | ( domain(X) = codomain(Y) ) ),
    inference(modus_ponens,[status(thm)],[19,18]) ).

tff(21,plain,
    ! [Y: $i,X: $i] :
      ( ~ there_exists(compose(X,Y))
      | ( domain(X) = codomain(Y) ) ),
    inference(skolemize,[status(sab)],[20]) ).

tff(22,plain,
    ! [Y: $i,X: $i] :
      ( ~ there_exists(compose(X,Y))
      | ( domain(X) = codomain(Y) ) ),
    inference(modus_ponens,[status(thm)],[21,17]) ).

tff(23,plain,
    ( ( ~ ! [Y: $i,X: $i] :
            ( ~ there_exists(compose(X,Y))
            | ( domain(X) = codomain(Y) ) )
      | ~ there_exists(compose(codomain(codomain(a)),codomain(a)))
      | ( domain(codomain(codomain(a))) = codomain(codomain(a)) ) )
  <=> ( ~ ! [Y: $i,X: $i] :
            ( ~ there_exists(compose(X,Y))
            | ( domain(X) = codomain(Y) ) )
      | ~ there_exists(compose(codomain(codomain(a)),codomain(a)))
      | ( domain(codomain(codomain(a))) = codomain(codomain(a)) ) ) ),
    inference(rewrite,[status(thm)],]) ).

tff(24,plain,
    ( ~ ! [Y: $i,X: $i] :
          ( ~ there_exists(compose(X,Y))
          | ( domain(X) = codomain(Y) ) )
    | ~ there_exists(compose(codomain(codomain(a)),codomain(a)))
    | ( domain(codomain(codomain(a))) = codomain(codomain(a)) ) ),
    inference(quant_inst,[status(thm)],]) ).

tff(25,plain,
    ( ~ ! [Y: $i,X: $i] :
          ( ~ there_exists(compose(X,Y))
          | ( domain(X) = codomain(Y) ) )
    | ~ there_exists(compose(codomain(codomain(a)),codomain(a)))
    | ( domain(codomain(codomain(a))) = codomain(codomain(a)) ) ),
    inference(modus_ponens,[status(thm)],[24,23]) ).

tff(26,plain,
    ( ~ there_exists(compose(codomain(codomain(a)),codomain(a)))
    | ( domain(codomain(codomain(a))) = codomain(codomain(a)) ) ),
    inference(unit_resolution,[status(thm)],[25,22]) ).

tff(27,plain,
    domain(codomain(codomain(a))) = codomain(codomain(a)),
    inference(unit_resolution,[status(thm)],[26,15]) ).

tff(28,plain,
    ( ( domain(codomain(codomain(a))) = codomain(a) )
  <=> ( codomain(codomain(a)) = codomain(a) ) ),
    inference(monotonicity,[status(thm)],[27]) ).

tff(29,plain,
    ( ( codomain(codomain(a)) = codomain(a) )
  <=> ( domain(codomain(codomain(a))) = codomain(a) ) ),
    inference(symmetry,[status(thm)],[28]) ).

tff(30,plain,
    ( ( codomain(codomain(a)) != codomain(a) )
  <=> ( domain(codomain(codomain(a))) != codomain(a) ) ),
    inference(monotonicity,[status(thm)],[29]) ).

tff(31,plain,
    ( ( codomain(codomain(a)) != codomain(a) )
  <=> ( codomain(codomain(a)) != codomain(a) ) ),
    inference(rewrite,[status(thm)],]) ).

tff(32,axiom,
    codomain(codomain(a)) != codomain(a),
    file('/export/starexec/sandbox2/benchmark/theBenchmark.p',prove_codomain_is_idempotent) ).

tff(33,plain,
    codomain(codomain(a)) != codomain(a),
    inference(modus_ponens,[status(thm)],[32,31]) ).

tff(34,plain,
    domain(codomain(codomain(a))) != codomain(a),
    inference(modus_ponens,[status(thm)],[33,30]) ).

tff(35,plain,
    ( ~ ! [X: $i] : ( compose(codomain(X),X) = X )
    | ( compose(codomain(a),a) = a ) ),
    inference(quant_inst,[status(thm)],]) ).

tff(36,plain,
    compose(codomain(a),a) = a,
    inference(unit_resolution,[status(thm)],[35,7]) ).

tff(37,plain,
    compose(compose(codomain(codomain(a)),codomain(a)),a) = compose(codomain(a),a),
    inference(monotonicity,[status(thm)],[9]) ).

tff(38,plain,
    ^ [Z: $i,Y: $i,X: $i] :
      refl(
        ( ( compose(X,compose(Y,Z)) = compose(compose(X,Y),Z) )
      <=> ( compose(X,compose(Y,Z)) = compose(compose(X,Y),Z) ) )),
    inference(bind,[status(th)],]) ).

tff(39,plain,
    ( ! [Z: $i,Y: $i,X: $i] : ( compose(X,compose(Y,Z)) = compose(compose(X,Y),Z) )
  <=> ! [Z: $i,Y: $i,X: $i] : ( compose(X,compose(Y,Z)) = compose(compose(X,Y),Z) ) ),
    inference(quant_intro,[status(thm)],[38]) ).

tff(40,plain,
    ( ! [Z: $i,Y: $i,X: $i] : ( compose(X,compose(Y,Z)) = compose(compose(X,Y),Z) )
  <=> ! [Z: $i,Y: $i,X: $i] : ( compose(X,compose(Y,Z)) = compose(compose(X,Y),Z) ) ),
    inference(rewrite,[status(thm)],]) ).

tff(41,axiom,
    ! [Z: $i,Y: $i,X: $i] : ( compose(X,compose(Y,Z)) = compose(compose(X,Y),Z) ),
    file('/export/starexec/sandbox2/benchmark/Axioms/CAT004-0.ax',associativity_of_compose) ).

tff(42,plain,
    ! [Z: $i,Y: $i,X: $i] : ( compose(X,compose(Y,Z)) = compose(compose(X,Y),Z) ),
    inference(modus_ponens,[status(thm)],[41,40]) ).

tff(43,plain,
    ! [Z: $i,Y: $i,X: $i] : ( compose(X,compose(Y,Z)) = compose(compose(X,Y),Z) ),
    inference(skolemize,[status(sab)],[42]) ).

tff(44,plain,
    ! [Z: $i,Y: $i,X: $i] : ( compose(X,compose(Y,Z)) = compose(compose(X,Y),Z) ),
    inference(modus_ponens,[status(thm)],[43,39]) ).

tff(45,plain,
    ( ~ ! [Z: $i,Y: $i,X: $i] : ( compose(X,compose(Y,Z)) = compose(compose(X,Y),Z) )
    | ( compose(codomain(codomain(a)),compose(codomain(a),a)) = compose(compose(codomain(codomain(a)),codomain(a)),a) ) ),
    inference(quant_inst,[status(thm)],]) ).

tff(46,plain,
    compose(codomain(codomain(a)),compose(codomain(a),a)) = compose(compose(codomain(codomain(a)),codomain(a)),a),
    inference(unit_resolution,[status(thm)],[45,44]) ).

tff(47,plain,
    a = compose(codomain(a),a),
    inference(symmetry,[status(thm)],[36]) ).

tff(48,plain,
    compose(codomain(codomain(a)),a) = compose(codomain(codomain(a)),compose(codomain(a),a)),
    inference(monotonicity,[status(thm)],[47]) ).

tff(49,plain,
    compose(codomain(codomain(a)),a) = a,
    inference(transitivity,[status(thm)],[48,46,37,36]) ).

tff(50,plain,
    ( there_exists(compose(codomain(codomain(a)),a))
  <=> there_exists(a) ),
    inference(monotonicity,[status(thm)],[49]) ).

tff(51,plain,
    ( there_exists(a)
  <=> there_exists(compose(codomain(codomain(a)),a)) ),
    inference(symmetry,[status(thm)],[50]) ).

tff(52,plain,
    ^ [X: $i] :
      refl(
        ( ( there_exists(X)
          | ~ there_exists(codomain(X)) )
      <=> ( there_exists(X)
          | ~ there_exists(codomain(X)) ) )),
    inference(bind,[status(th)],]) ).

tff(53,plain,
    ( ! [X: $i] :
        ( there_exists(X)
        | ~ there_exists(codomain(X)) )
  <=> ! [X: $i] :
        ( there_exists(X)
        | ~ there_exists(codomain(X)) ) ),
    inference(quant_intro,[status(thm)],[52]) ).

tff(54,plain,
    ( ! [X: $i] :
        ( there_exists(X)
        | ~ there_exists(codomain(X)) )
  <=> ! [X: $i] :
        ( there_exists(X)
        | ~ there_exists(codomain(X)) ) ),
    inference(rewrite,[status(thm)],]) ).

tff(55,plain,
    ^ [X: $i] :
      rewrite(
        ( ( ~ there_exists(codomain(X))
          | there_exists(X) )
      <=> ( there_exists(X)
          | ~ there_exists(codomain(X)) ) )),
    inference(bind,[status(th)],]) ).

tff(56,plain,
    ( ! [X: $i] :
        ( ~ there_exists(codomain(X))
        | there_exists(X) )
  <=> ! [X: $i] :
        ( there_exists(X)
        | ~ there_exists(codomain(X)) ) ),
    inference(quant_intro,[status(thm)],[55]) ).

tff(57,axiom,
    ! [X: $i] :
      ( ~ there_exists(codomain(X))
      | there_exists(X) ),
    file('/export/starexec/sandbox2/benchmark/Axioms/CAT004-0.ax',codomain_has_elements) ).

tff(58,plain,
    ! [X: $i] :
      ( there_exists(X)
      | ~ there_exists(codomain(X)) ),
    inference(modus_ponens,[status(thm)],[57,56]) ).

tff(59,plain,
    ! [X: $i] :
      ( there_exists(X)
      | ~ there_exists(codomain(X)) ),
    inference(modus_ponens,[status(thm)],[58,54]) ).

tff(60,plain,
    ! [X: $i] :
      ( there_exists(X)
      | ~ there_exists(codomain(X)) ),
    inference(skolemize,[status(sab)],[59]) ).

tff(61,plain,
    ! [X: $i] :
      ( there_exists(X)
      | ~ there_exists(codomain(X)) ),
    inference(modus_ponens,[status(thm)],[60,53]) ).

tff(62,plain,
    ( ( ~ ! [X: $i] :
            ( there_exists(X)
            | ~ there_exists(codomain(X)) )
      | there_exists(a)
      | ~ there_exists(codomain(a)) )
  <=> ( ~ ! [X: $i] :
            ( there_exists(X)
            | ~ there_exists(codomain(X)) )
      | there_exists(a)
      | ~ there_exists(codomain(a)) ) ),
    inference(rewrite,[status(thm)],]) ).

tff(63,plain,
    ( ~ ! [X: $i] :
          ( there_exists(X)
          | ~ there_exists(codomain(X)) )
    | there_exists(a)
    | ~ there_exists(codomain(a)) ),
    inference(quant_inst,[status(thm)],]) ).

tff(64,plain,
    ( ~ ! [X: $i] :
          ( there_exists(X)
          | ~ there_exists(codomain(X)) )
    | there_exists(a)
    | ~ there_exists(codomain(a)) ),
    inference(modus_ponens,[status(thm)],[63,62]) ).

tff(65,plain,
    there_exists(a),
    inference(unit_resolution,[status(thm)],[64,61,14]) ).

tff(66,plain,
    there_exists(compose(codomain(codomain(a)),a)),
    inference(modus_ponens,[status(thm)],[65,51]) ).

tff(67,plain,
    ( ( ~ ! [Y: $i,X: $i] :
            ( ~ there_exists(compose(X,Y))
            | ( domain(X) = codomain(Y) ) )
      | ~ there_exists(compose(codomain(codomain(a)),a))
      | ( domain(codomain(codomain(a))) = codomain(a) ) )
  <=> ( ~ ! [Y: $i,X: $i] :
            ( ~ there_exists(compose(X,Y))
            | ( domain(X) = codomain(Y) ) )
      | ~ there_exists(compose(codomain(codomain(a)),a))
      | ( domain(codomain(codomain(a))) = codomain(a) ) ) ),
    inference(rewrite,[status(thm)],]) ).

tff(68,plain,
    ( ~ ! [Y: $i,X: $i] :
          ( ~ there_exists(compose(X,Y))
          | ( domain(X) = codomain(Y) ) )
    | ~ there_exists(compose(codomain(codomain(a)),a))
    | ( domain(codomain(codomain(a))) = codomain(a) ) ),
    inference(quant_inst,[status(thm)],]) ).

tff(69,plain,
    ( ~ ! [Y: $i,X: $i] :
          ( ~ there_exists(compose(X,Y))
          | ( domain(X) = codomain(Y) ) )
    | ~ there_exists(compose(codomain(codomain(a)),a))
    | ( domain(codomain(codomain(a))) = codomain(a) ) ),
    inference(modus_ponens,[status(thm)],[68,67]) ).

tff(70,plain,
    ( ~ there_exists(compose(codomain(codomain(a)),a))
    | ( domain(codomain(codomain(a))) = codomain(a) ) ),
    inference(unit_resolution,[status(thm)],[69,22]) ).

tff(71,plain,
    $false,
    inference(unit_resolution,[status(thm)],[70,66,34]) ).

%------------------------------------------------------------------------------
%----ORIGINAL SYSTEM OUTPUT
% 0.07/0.12  % Problem  : CAT014-4 : TPTP v8.1.0. Released v1.0.0.
% 0.07/0.13  % Command  : z3_tptp -proof -model -t:%d -file:%s
% 0.13/0.34  % Computer : n026.cluster.edu
% 0.13/0.34  % Model    : x86_64 x86_64
% 0.13/0.34  % CPU      : Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz
% 0.13/0.34  % Memory   : 8042.1875MB
% 0.13/0.34  % OS       : Linux 3.10.0-693.el7.x86_64
% 0.13/0.34  % CPULimit : 300
% 0.13/0.34  % WCLimit  : 300
% 0.13/0.34  % DateTime : Tue Aug 30 06:37:21 EDT 2022
% 0.13/0.34  % CPUTime  : 
% 0.13/0.35  Z3tptp [4.8.9.0] (c) 2006-20**. Microsoft Corp.
% 0.13/0.35  Usage: tptp [options] [-file:]file
% 0.13/0.35    -h, -?       prints this message.
% 0.13/0.35    -smt2        print SMT-LIB2 benchmark.
% 0.13/0.35    -m, -model   generate model.
% 0.13/0.35    -p, -proof   generate proof.
% 0.13/0.35    -c, -core    generate unsat core of named formulas.
% 0.13/0.35    -st, -statistics display statistics.
% 0.13/0.35    -t:timeout   set timeout (in second).
% 0.13/0.35    -smt2status  display status in smt2 format instead of SZS.
% 0.13/0.35    -check_status check the status produced by Z3 against annotation in benchmark.
% 0.13/0.35    -<param>:<value> configuration parameter and value.
% 0.13/0.35    -o:<output-file> file to place output in.
% 0.20/0.40  % SZS status Unsatisfiable
% 0.20/0.40  % SZS output start Proof
% See solution above
%------------------------------------------------------------------------------