TSTP Solution File: PUZ035-2 by Faust---1.0

View Problem - Process Solution

%------------------------------------------------------------------------------
% File     : Faust---1.0
% Problem  : PUZ035-2 : TPTP v3.4.2. Released v2.0.0.
% Transfm  : none
% Format   : tptp
% Command  : faust %s

% Computer : art07.cs.miami.edu
% Model    : i686 i686
% CPU      : Intel(R) Pentium(R) 4 CPU 2.80GHz @ 2793MHz
% Memory   : 1003MB
% OS       : Linux 2.6.17-1.2142_FC4
% CPULimit : 600s
% DateTime : Wed May  6 15:12:14 EDT 2009

% Result   : Unsatisfiable 0.1s
% Output   : Refutation 0.1s
% Verified : 
% SZS Type : Refutation
%            Derivation depth      :   10
%            Number of leaves      :    9
% Syntax   : Number of formulae    :   38 (   7 unt;   0 def)
%            Number of atoms       :   76 (   0 equ)
%            Maximal formula atoms :    3 (   2 avg)
%            Number of connectives :   76 (  38   ~;  38   |;   0   &)
%                                         (   0 <=>;   0  =>;   0  <=;   0 <~>)
%            Maximal formula depth :    7 (   3 avg)
%            Maximal term depth    :    1 (   1 avg)
%            Number of predicates  :    6 (   5 usr;   1 prp; 0-2 aty)
%            Number of functors    :    6 (   6 usr;   6 con; 0-0 aty)
%            Number of variables   :   24 (   9 sgn   8   !;   0   ?)

% Comments : 
%------------------------------------------------------------------------------
%----WARNING: Faust---1.0 format not known, defaulting to TPTP
fof(prove_answer,plain,
    ! [A,B,C] :
      ( ~ response(A)
      | ~ isa(asked,B)
      | ~ isa(other,C) ),
    file('/home/graph/tptp/TSTP/PreparedTPTP/tptp---none/PUZ/PUZ035-2.tptp',unknown),
    [] ).

cnf(172800040,plain,
    ( ~ response(A)
    | ~ isa(asked,B)
    | ~ isa(other,C) ),
    inference(rewrite,[status(thm)],[prove_answer]),
    [] ).

fof(asked_person,plain,
    person(asked),
    file('/home/graph/tptp/TSTP/PreparedTPTP/tptp---none/PUZ/PUZ035-2.tptp',unknown),
    [] ).

cnf(172770696,plain,
    person(asked),
    inference(rewrite,[status(thm)],[asked_person]),
    [] ).

fof(everyone_a_knight_or_knave,plain,
    ! [A] :
      ( ~ person(A)
      | isa(A,knight)
      | isa(A,knave) ),
    file('/home/graph/tptp/TSTP/PreparedTPTP/tptp---none/PUZ/PUZ035-2.tptp',unknown),
    [] ).

cnf(172665424,plain,
    ( ~ person(A)
    | isa(A,knight)
    | isa(A,knave) ),
    inference(rewrite,[status(thm)],[everyone_a_knight_or_knave]),
    [] ).

fof(statements_are_true_or_false,plain,
    ! [A] :
      ( ~ tell_the_truth(A)
      | ~ lies(A) ),
    file('/home/graph/tptp/TSTP/PreparedTPTP/tptp---none/PUZ/PUZ035-2.tptp',unknown),
    [] ).

cnf(172693664,plain,
    ( ~ tell_the_truth(A)
    | ~ lies(A) ),
    inference(rewrite,[status(thm)],[statements_are_true_or_false]),
    [] ).

fof(knaves_make_false_statements,plain,
    ! [A] :
      ( ~ isa(A,knave)
      | lies(A) ),
    file('/home/graph/tptp/TSTP/PreparedTPTP/tptp---none/PUZ/PUZ035-2.tptp',unknown),
    [] ).

cnf(172682992,plain,
    ( ~ isa(A,knave)
    | lies(A) ),
    inference(rewrite,[status(thm)],[knaves_make_false_statements]),
    [] ).

cnf(180664800,plain,
    ( ~ tell_the_truth(A)
    | ~ isa(A,knave) ),
    inference(resolution,[status(thm)],[172693664,172682992]),
    [] ).

fof(statements_are_true_or_false2,plain,
    ! [A] :
      ( ~ person(A)
      | tell_the_truth(A)
      | lies(A) ),
    file('/home/graph/tptp/TSTP/PreparedTPTP/tptp---none/PUZ/PUZ035-2.tptp',unknown),
    [] ).

cnf(172700384,plain,
    ( ~ person(A)
    | tell_the_truth(A)
    | lies(A) ),
    inference(rewrite,[status(thm)],[statements_are_true_or_false2]),
    [] ).

cnf(180616272,plain,
    ( tell_the_truth(asked)
    | lies(asked) ),
    inference(resolution,[status(thm)],[172700384,172770696]),
    [] ).

cnf(180718664,plain,
    ( ~ isa(asked,knave)
    | lies(asked) ),
    inference(resolution,[status(thm)],[180664800,180616272]),
    [] ).

cnf(180819464,plain,
    ( isa(asked,knight)
    | lies(asked) ),
    inference(forward_subsumption_resolution__resolution,[status(thm)],[172770696,172665424,180718664]),
    [] ).

cnf(182859088,plain,
    ( ~ response(A)
    | ~ isa(other,B)
    | lies(asked) ),
    inference(resolution,[status(thm)],[172800040,180819464]),
    [] ).

fof(knights_make_true_statements,plain,
    ! [A] :
      ( ~ isa(A,knight)
      | tell_the_truth(A) ),
    file('/home/graph/tptp/TSTP/PreparedTPTP/tptp---none/PUZ/PUZ035-2.tptp',unknown),
    [] ).

cnf(172677192,plain,
    ( ~ isa(A,knight)
    | tell_the_truth(A) ),
    inference(rewrite,[status(thm)],[knights_make_true_statements]),
    [] ).

cnf(180659296,plain,
    ( ~ lies(A)
    | ~ isa(A,knight) ),
    inference(resolution,[status(thm)],[172693664,172677192]),
    [] ).

cnf(180681680,plain,
    ( ~ isa(asked,knight)
    | tell_the_truth(asked) ),
    inference(resolution,[status(thm)],[180659296,180616272]),
    [] ).

cnf(180698952,plain,
    ( ~ isa(asked,knight)
    | ~ lies(asked) ),
    inference(resolution,[status(thm)],[180681680,172693664]),
    [] ).

cnf(180850328,plain,
    ( isa(asked,knave)
    | ~ lies(asked) ),
    inference(forward_subsumption_resolution__resolution,[status(thm)],[172770696,172665424,180698952]),
    [] ).

cnf(182906784,plain,
    ( ~ response(A)
    | ~ isa(other,B) ),
    inference(forward_subsumption_resolution__resolution,[status(thm)],[182859088,172800040,180850328]),
    [] ).

fof(other_person,plain,
    person(other),
    file('/home/graph/tptp/TSTP/PreparedTPTP/tptp---none/PUZ/PUZ035-2.tptp',unknown),
    [] ).

cnf(172774760,plain,
    person(other),
    inference(rewrite,[status(thm)],[other_person]),
    [] ).

cnf(180638744,plain,
    ( tell_the_truth(other)
    | lies(other) ),
    inference(resolution,[status(thm)],[172700384,172774760]),
    [] ).

cnf(180728976,plain,
    ( ~ isa(other,knave)
    | lies(other) ),
    inference(resolution,[status(thm)],[180664800,180638744]),
    [] ).

cnf(180824968,plain,
    ( isa(other,knight)
    | lies(other) ),
    inference(forward_subsumption_resolution__resolution,[status(thm)],[172774760,172665424,180728976]),
    [] ).

cnf(183020304,plain,
    ( ~ response(A)
    | lies(other) ),
    inference(resolution,[status(thm)],[182906784,180824968]),
    [] ).

cnf(180692032,plain,
    ( ~ isa(other,knight)
    | tell_the_truth(other) ),
    inference(resolution,[status(thm)],[180659296,180638744]),
    [] ).

cnf(180708448,plain,
    ( ~ isa(other,knight)
    | ~ lies(other) ),
    inference(resolution,[status(thm)],[180692032,172693664]),
    [] ).

cnf(180855800,plain,
    ( isa(other,knave)
    | ~ lies(other) ),
    inference(forward_subsumption_resolution__resolution,[status(thm)],[172774760,172665424,180708448]),
    [] ).

cnf(183050640,plain,
    ~ response(A),
    inference(forward_subsumption_resolution__resolution,[status(thm)],[183020304,182906784,180855800]),
    [] ).

fof(two_answers,plain,
    ( response(yes)
    | response(no) ),
    file('/home/graph/tptp/TSTP/PreparedTPTP/tptp---none/PUZ/PUZ035-2.tptp',unknown),
    [] ).

cnf(172765872,plain,
    ( response(yes)
    | response(no) ),
    inference(rewrite,[status(thm)],[two_answers]),
    [] ).

cnf(183127968,plain,
    response(no),
    inference(resolution,[status(thm)],[183050640,172765872]),
    [] ).

cnf(contradiction,plain,
    $false,
    inference(resolution,[status(thm)],[183127968,183050640]),
    [] ).

%------------------------------------------------------------------------------
%----ORIGINAL SYSTEM OUTPUT
% Proof found in: 0 seconds
% START OF PROOF SEQUENCE
% fof(prove_answer,plain,(~response(A)|~isa(asked,B)|~isa(other,C)),file('/home/graph/tptp/TSTP/PreparedTPTP/tptp---none/PUZ/PUZ035-2.tptp',unknown),[]).
% 
% cnf(172800040,plain,(~response(A)|~isa(asked,B)|~isa(other,C)),inference(rewrite,[status(thm)],[prove_answer]),[]).
% 
% fof(asked_person,plain,(person(asked)),file('/home/graph/tptp/TSTP/PreparedTPTP/tptp---none/PUZ/PUZ035-2.tptp',unknown),[]).
% 
% cnf(172770696,plain,(person(asked)),inference(rewrite,[status(thm)],[asked_person]),[]).
% 
% fof(everyone_a_knight_or_knave,plain,(~person(A)|isa(A,knight)|isa(A,knave)),file('/home/graph/tptp/TSTP/PreparedTPTP/tptp---none/PUZ/PUZ035-2.tptp',unknown),[]).
% 
% cnf(172665424,plain,(~person(A)|isa(A,knight)|isa(A,knave)),inference(rewrite,[status(thm)],[everyone_a_knight_or_knave]),[]).
% 
% fof(statements_are_true_or_false,plain,(~tell_the_truth(A)|~lies(A)),file('/home/graph/tptp/TSTP/PreparedTPTP/tptp---none/PUZ/PUZ035-2.tptp',unknown),[]).
% 
% cnf(172693664,plain,(~tell_the_truth(A)|~lies(A)),inference(rewrite,[status(thm)],[statements_are_true_or_false]),[]).
% 
% fof(knaves_make_false_statements,plain,(~isa(A,knave)|lies(A)),file('/home/graph/tptp/TSTP/PreparedTPTP/tptp---none/PUZ/PUZ035-2.tptp',unknown),[]).
% 
% cnf(172682992,plain,(~isa(A,knave)|lies(A)),inference(rewrite,[status(thm)],[knaves_make_false_statements]),[]).
% 
% cnf(180664800,plain,(~tell_the_truth(A)|~isa(A,knave)),inference(resolution,[status(thm)],[172693664,172682992]),[]).
% 
% fof(statements_are_true_or_false2,plain,(~person(A)|tell_the_truth(A)|lies(A)),file('/home/graph/tptp/TSTP/PreparedTPTP/tptp---none/PUZ/PUZ035-2.tptp',unknown),[]).
% 
% cnf(172700384,plain,(~person(A)|tell_the_truth(A)|lies(A)),inference(rewrite,[status(thm)],[statements_are_true_or_false2]),[]).
% 
% cnf(180616272,plain,(tell_the_truth(asked)|lies(asked)),inference(resolution,[status(thm)],[172700384,172770696]),[]).
% 
% cnf(180718664,plain,(~isa(asked,knave)|lies(asked)),inference(resolution,[status(thm)],[180664800,180616272]),[]).
% 
% cnf(180819464,plain,(isa(asked,knight)|lies(asked)),inference(forward_subsumption_resolution__resolution,[status(thm)],[172770696,172665424,180718664]),[]).
% 
% cnf(182859088,plain,(~response(A)|~isa(other,B)|lies(asked)),inference(resolution,[status(thm)],[172800040,180819464]),[]).
% 
% fof(knights_make_true_statements,plain,(~isa(A,knight)|tell_the_truth(A)),file('/home/graph/tptp/TSTP/PreparedTPTP/tptp---none/PUZ/PUZ035-2.tptp',unknown),[]).
% 
% cnf(172677192,plain,(~isa(A,knight)|tell_the_truth(A)),inference(rewrite,[status(thm)],[knights_make_true_statements]),[]).
% 
% cnf(180659296,plain,(~lies(A)|~isa(A,knight)),inference(resolution,[status(thm)],[172693664,172677192]),[]).
% 
% cnf(180681680,plain,(~isa(asked,knight)|tell_the_truth(asked)),inference(resolution,[status(thm)],[180659296,180616272]),[]).
% 
% cnf(180698952,plain,(~isa(asked,knight)|~lies(asked)),inference(resolution,[status(thm)],[180681680,172693664]),[]).
% 
% cnf(180850328,plain,(isa(asked,knave)|~lies(asked)),inference(forward_subsumption_resolution__resolution,[status(thm)],[172770696,172665424,180698952]),[]).
% 
% cnf(182906784,plain,(~response(A)|~isa(other,B)),inference(forward_subsumption_resolution__resolution,[status(thm)],[182859088,172800040,180850328]),[]).
% 
% fof(other_person,plain,(person(other)),file('/home/graph/tptp/TSTP/PreparedTPTP/tptp---none/PUZ/PUZ035-2.tptp',unknown),[]).
% 
% cnf(172774760,plain,(person(other)),inference(rewrite,[status(thm)],[other_person]),[]).
% 
% cnf(180638744,plain,(tell_the_truth(other)|lies(other)),inference(resolution,[status(thm)],[172700384,172774760]),[]).
% 
% cnf(180728976,plain,(~isa(other,knave)|lies(other)),inference(resolution,[status(thm)],[180664800,180638744]),[]).
% 
% cnf(180824968,plain,(isa(other,knight)|lies(other)),inference(forward_subsumption_resolution__resolution,[status(thm)],[172774760,172665424,180728976]),[]).
% 
% cnf(183020304,plain,(~response(A)|lies(other)),inference(resolution,[status(thm)],[182906784,180824968]),[]).
% 
% cnf(180692032,plain,(~isa(other,knight)|tell_the_truth(other)),inference(resolution,[status(thm)],[180659296,180638744]),[]).
% 
% cnf(180708448,plain,(~isa(other,knight)|~lies(other)),inference(resolution,[status(thm)],[180692032,172693664]),[]).
% 
% cnf(180855800,plain,(isa(other,knave)|~lies(other)),inference(forward_subsumption_resolution__resolution,[status(thm)],[172774760,172665424,180708448]),[]).
% 
% cnf(183050640,plain,(~response(A)),inference(forward_subsumption_resolution__resolution,[status(thm)],[183020304,182906784,180855800]),[]).
% 
% fof(two_answers,plain,(response(yes)|response(no)),file('/home/graph/tptp/TSTP/PreparedTPTP/tptp---none/PUZ/PUZ035-2.tptp',unknown),[]).
% 
% cnf(172765872,plain,(response(yes)|response(no)),inference(rewrite,[status(thm)],[two_answers]),[]).
% 
% cnf(183127968,plain,(response(no)),inference(resolution,[status(thm)],[183050640,172765872]),[]).
% 
% cnf(contradiction,plain,$false,inference(resolution,[status(thm)],[183127968,183050640]),[]).
% 
% END OF PROOF SEQUENCE
% 
%------------------------------------------------------------------------------