TSTP Solution File: PUZ035-2 by PyRes---1.3

View Problem - Process Solution

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

% Computer : n023.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  : 600s
% DateTime : Mon Jul 18 18:24:13 EDT 2022

% Result   : Unsatisfiable 0.39s 0.58s
% Output   : Refutation 0.39s
% Verified : 
% SZS Type : ERROR: Analysing output (Could not find formula named input)

% Comments : 
%------------------------------------------------------------------------------
cnf(two_answers,axiom,
    ( response(yes)
    | response(no) ),
    input ).

cnf(knight_answers1,axiom,
    ( ~ response(yes)
    | ~ lies(asked)
    | ~ isa(X8,knight) ),
    input ).

cnf(statements_are_true_or_false,axiom,
    ( ~ tell_the_truth(X2)
    | ~ lies(X2) ),
    input ).

cnf(knaves_make_false_statements,axiom,
    ( ~ isa(X4,knave)
    | lies(X4) ),
    input ).

cnf(other_person,axiom,
    person(other),
    input ).

cnf(everyone_a_knight_or_knave,axiom,
    ( ~ person(X5)
    | isa(X5,knight)
    | isa(X5,knave) ),
    input ).

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(c25,plain,
    ( isa(other,knight)
    | ~ tell_the_truth(other) ),
    inference(resolution,status(thm),[c18,statements_are_true_or_false]) ).

cnf(knights_make_true_statements,axiom,
    ( ~ isa(X3,knight)
    | tell_the_truth(X3) ),
    input ).

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

cnf(prove_answer,negated_conjecture,
    ( ~ response(X12)
    | ~ isa(asked,X11)
    | ~ isa(other,X13) ),
    input ).

cnf(c59,plain,
    ( ~ response(X15)
    | ~ isa(asked,X14)
    | tell_the_truth(other) ),
    inference(resolution,status(thm),[prove_answer,c17]) ).

cnf(asked_person,axiom,
    person(asked),
    input ).

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

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

cnf(statements_are_true_or_false2,axiom,
    ( ~ person(X6)
    | tell_the_truth(X6)
    | lies(X6) ),
    input ).

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

cnf(c7,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(X9,knight) ),
    input ).

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

cnf(c39,plain,
    ( ~ response(no)
    | lies(asked) ),
    inference(resolution,status(thm),[c33,c2]) ).

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

cnf(c68,plain,
    ( ~ response(X16)
    | tell_the_truth(other)
    | lies(asked) ),
    inference(resolution,status(thm),[c59,c7]) ).

cnf(c76,plain,
    ( tell_the_truth(other)
    | lies(asked) ),
    inference(resolution,status(thm),[c68,c40]) ).

cnf(c81,plain,
    ( tell_the_truth(other)
    | ~ tell_the_truth(asked) ),
    inference(resolution,status(thm),[c76,statements_are_true_or_false]) ).

cnf(c83,plain,
    ( tell_the_truth(other)
    | isa(asked,knave) ),
    inference(resolution,status(thm),[c81,c6]) ).

cnf(c95,plain,
    ( tell_the_truth(other)
    | ~ response(X17) ),
    inference(resolution,status(thm),[c83,c59]) ).

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

cnf(c105,plain,
    tell_the_truth(other),
    inference(resolution,status(thm),[c96,c95]) ).

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

cnf(c108,plain,
    ( ~ response(yes)
    | ~ lies(asked) ),
    inference(resolution,status(thm),[c106,knight_answers1]) ).

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

cnf(c117,plain,
    ( ~ response(X20)
    | lies(asked) ),
    inference(resolution,status(thm),[c110,c7]) ).

cnf(c125,plain,
    lies(asked),
    inference(resolution,status(thm),[c117,c40]) ).

cnf(c128,plain,
    ~ response(yes),
    inference(resolution,status(thm),[c125,c108]) ).

cnf(c131,plain,
    response(no),
    inference(resolution,status(thm),[c128,two_answers]) ).

cnf(c127,plain,
    ~ tell_the_truth(asked),
    inference(resolution,status(thm),[c125,statements_are_true_or_false]) ).

cnf(c129,plain,
    isa(asked,knave),
    inference(resolution,status(thm),[c127,c6]) ).

cnf(c135,plain,
    ~ response(X21),
    inference(resolution,status(thm),[c129,c110]) ).

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

%------------------------------------------------------------------------------
%----ORIGINAL SYSTEM OUTPUT
% 0.03/0.12  % Problem  : PUZ035-2 : TPTP v8.1.0. Released v2.0.0.
% 0.03/0.13  % Command  : pyres-fof.py -tifbsVp -nlargest -HPickGiven5 %s
% 0.13/0.34  % Computer : n023.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  : 600
% 0.13/0.34  % DateTime : Sun May 29 02:37:27 EDT 2022
% 0.13/0.34  % CPUTime  : 
% 0.39/0.58  # Version:  1.3
% 0.39/0.58  # SZS status Unsatisfiable
% 0.39/0.58  # SZS output start CNFRefutation
% See solution above
% 0.39/0.58  
% 0.39/0.58  # Initial clauses    : 16
% 0.39/0.58  # Processed clauses  : 56
% 0.39/0.58  # Factors computed   : 0
% 0.39/0.58  # Resolvents computed: 137
% 0.39/0.58  # Tautologies deleted: 6
% 0.39/0.58  # Forward subsumed   : 30
% 0.39/0.58  # Backward subsumed  : 40
% 0.39/0.58  # -------- CPU Time ---------
% 0.39/0.58  # User time          : 0.212 s
% 0.39/0.58  # System time        : 0.019 s
% 0.39/0.58  # Total time         : 0.231 s
%------------------------------------------------------------------------------