TSTP Solution File: PUZ035-1 by PyRes---1.5

View Problem - Process Solution

%------------------------------------------------------------------------------
% File     : PyRes---1.5
% Problem  : PUZ035-1 : TPTP v8.1.2. Released v2.0.0.
% Transfm  : none
% Format   : tptp:raw
% Command  : pyres-fof.py -tifbsVp -nlargest -HPickGiven5 %s

% Computer : n008.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 : Thu May  9 17:37:39 EDT 2024

% Result   : Unsatisfiable 0.37s 0.55s
% Output   : Refutation 0.37s
% Verified : 
% SZS Type : Refutation
%            Derivation depth      :   21
%            Number of leaves      :    9
% Syntax   : Number of clauses     :   40 (   9 unt;  16 nHn;  40 RR)
%            Number of literals    :   78 (   0 equ;  27 neg)
%            Maximal clause size   :    3 (   1 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   :   18 (  14 sgn)

% Comments : 
%------------------------------------------------------------------------------
cnf(two_answers,axiom,
    ( response(yes)
    | response(no) ),
    file('/export/starexec/sandbox/benchmark/theBenchmark.p',two_answers) ).

cnf(knights_make_true_statements,axiom,
    ( ~ isa(X3,knight)
    | tell_the_truth(X3) ),
    file('/export/starexec/sandbox/benchmark/theBenchmark.p',knights_make_true_statements) ).

cnf(asked_person,axiom,
    person(asked),
    file('/export/starexec/sandbox/benchmark/theBenchmark.p',asked_person) ).

cnf(everyone_a_knight_or_knave,axiom,
    ( ~ person(X5)
    | isa(X5,knight)
    | isa(X5,knave) ),
    file('/export/starexec/sandbox/benchmark/theBenchmark.p',everyone_a_knight_or_knave) ).

cnf(c0,plain,
    ( isa(asked,knight)
    | isa(asked,knave) ),
    inference(resolution,[status(thm)],[everyone_a_knight_or_knave,asked_person]) ).

cnf(c2,plain,
    ( isa(asked,knave)
    | tell_the_truth(asked) ),
    inference(resolution,[status(thm)],[c0,knights_make_true_statements]) ).

cnf(statements_are_true_or_false,axiom,
    ( ~ tell_the_truth(X2)
    | ~ lies(X2) ),
    file('/export/starexec/sandbox/benchmark/theBenchmark.p',statements_are_true_or_false) ).

cnf(knaves_make_false_statements,axiom,
    ( ~ isa(X4,knave)
    | lies(X4) ),
    file('/export/starexec/sandbox/benchmark/theBenchmark.p',knaves_make_false_statements) ).

cnf(c6,plain,
    ( tell_the_truth(asked)
    | lies(asked) ),
    inference(resolution,[status(thm)],[c2,knaves_make_false_statements]) ).

cnf(c4,plain,
    ( isa(asked,knight)
    | lies(asked) ),
    inference(resolution,[status(thm)],[c0,knaves_make_false_statements]) ).

cnf(knight_answers2,axiom,
    ( ~ response(no)
    | ~ tell_the_truth(asked)
    | ~ isa(X8,knight) ),
    file('/export/starexec/sandbox/benchmark/theBenchmark.p',knight_answers2) ).

cnf(c31,plain,
    ( ~ response(no)
    | ~ tell_the_truth(asked)
    | lies(asked) ),
    inference(resolution,[status(thm)],[knight_answers2,c4]) ).

cnf(c40,plain,
    ( ~ response(no)
    | lies(asked) ),
    inference(resolution,[status(thm)],[c31,c6]) ).

cnf(c42,plain,
    ( lies(asked)
    | response(yes) ),
    inference(resolution,[status(thm)],[c40,two_answers]) ).

cnf(c45,plain,
    ( response(yes)
    | ~ tell_the_truth(asked) ),
    inference(resolution,[status(thm)],[c42,statements_are_true_or_false]) ).

cnf(c47,plain,
    ( response(yes)
    | isa(asked,knave) ),
    inference(resolution,[status(thm)],[c45,c2]) ).

cnf(prove_answer,negated_conjecture,
    ( ~ response(X11)
    | ~ isa(asked,X10)
    | ~ isa(other,X12) ),
    file('/export/starexec/sandbox/benchmark/theBenchmark.p',prove_answer) ).

cnf(other_person,axiom,
    person(other),
    file('/export/starexec/sandbox/benchmark/theBenchmark.p',other_person) ).

cnf(c1,plain,
    ( isa(other,knight)
    | isa(other,knave) ),
    inference(resolution,[status(thm)],[everyone_a_knight_or_knave,other_person]) ).

cnf(c18,plain,
    ( isa(other,knight)
    | lies(other) ),
    inference(resolution,[status(thm)],[c1,knaves_make_false_statements]) ).

cnf(c27,plain,
    ( isa(other,knight)
    | ~ tell_the_truth(other) ),
    inference(resolution,[status(thm)],[c18,statements_are_true_or_false]) ).

cnf(c16,plain,
    ( isa(other,knave)
    | tell_the_truth(other) ),
    inference(resolution,[status(thm)],[c1,knights_make_true_statements]) ).

cnf(c52,plain,
    ( ~ response(X13)
    | ~ isa(asked,X14)
    | tell_the_truth(other) ),
    inference(resolution,[status(thm)],[prove_answer,c16]) ).

cnf(c62,plain,
    ( ~ response(X16)
    | tell_the_truth(other)
    | response(yes) ),
    inference(resolution,[status(thm)],[c52,c47]) ).

cnf(c70,plain,
    ( tell_the_truth(other)
    | response(yes) ),
    inference(resolution,[status(thm)],[c62,two_answers]) ).

cnf(c11,plain,
    ( isa(asked,knight)
    | ~ tell_the_truth(asked) ),
    inference(resolution,[status(thm)],[c4,statements_are_true_or_false]) ).

cnf(c61,plain,
    ( ~ response(X15)
    | tell_the_truth(other)
    | tell_the_truth(asked) ),
    inference(resolution,[status(thm)],[c52,c2]) ).

cnf(c75,plain,
    ( tell_the_truth(other)
    | tell_the_truth(asked) ),
    inference(resolution,[status(thm)],[c70,c61]) ).

cnf(c79,plain,
    ( tell_the_truth(other)
    | isa(asked,knight) ),
    inference(resolution,[status(thm)],[c75,c11]) ).

cnf(c97,plain,
    ( tell_the_truth(other)
    | ~ response(X17) ),
    inference(resolution,[status(thm)],[c79,c52]) ).

cnf(c102,plain,
    tell_the_truth(other),
    inference(resolution,[status(thm)],[c97,c70]) ).

cnf(c105,plain,
    isa(other,knight),
    inference(resolution,[status(thm)],[c102,c27]) ).

cnf(c109,plain,
    ( ~ response(X18)
    | ~ isa(asked,X19) ),
    inference(resolution,[status(thm)],[c105,prove_answer]) ).

cnf(c119,plain,
    ( ~ response(X21)
    | response(yes) ),
    inference(resolution,[status(thm)],[c109,c47]) ).

cnf(c127,plain,
    response(yes),
    inference(resolution,[status(thm)],[c119,two_answers]) ).

cnf(c118,plain,
    ( ~ response(X20)
    | tell_the_truth(asked) ),
    inference(resolution,[status(thm)],[c109,c2]) ).

cnf(c131,plain,
    tell_the_truth(asked),
    inference(resolution,[status(thm)],[c127,c118]) ).

cnf(c132,plain,
    isa(asked,knight),
    inference(resolution,[status(thm)],[c131,c11]) ).

cnf(c135,plain,
    ~ response(X22),
    inference(resolution,[status(thm)],[c132,c109]) ).

cnf(c136,plain,
    $false,
    inference(resolution,[status(thm)],[c135,c127]) ).

%------------------------------------------------------------------------------
%----ORIGINAL SYSTEM OUTPUT
% 0.06/0.12  % Problem  : PUZ035-1 : TPTP v8.1.2. Released v2.0.0.
% 0.06/0.13  % Command  : pyres-fof.py -tifbsVp -nlargest -HPickGiven5 %s
% 0.13/0.34  % Computer : n008.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 : Wed May  8 20:38:23 EDT 2024
% 0.13/0.34  % CPUTime  : 
% 0.37/0.55  % Version:  1.5
% 0.37/0.55  % SZS status Unsatisfiable
% 0.37/0.55  % SZS output start CNFRefutation
% See solution above
% 0.37/0.55  
% 0.37/0.55  % Initial clauses    : 15
% 0.37/0.55  % Processed clauses  : 55
% 0.37/0.55  % Factors computed   : 0
% 0.37/0.55  % Resolvents computed: 137
% 0.37/0.55  % Tautologies deleted: 6
% 0.37/0.55  % Forward subsumed   : 30
% 0.37/0.55  % Backward subsumed  : 42
% 0.37/0.55  % -------- CPU Time ---------
% 0.37/0.55  % User time          : 0.188 s
% 0.37/0.55  % System time        : 0.017 s
% 0.37/0.55  % Total time         : 0.205 s
%------------------------------------------------------------------------------