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

View Problem - Process Solution

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

% Computer : n024.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:14 EDT 2022

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

% Comments : 
%------------------------------------------------------------------------------
cnf(prove_answer,negated_conjecture,
    ( ~ truth(isa(asked,X29))
    | ~ truth(isa(other,X28))
    | ~ says(asked,X27) ),
    input ).

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

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

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

cnf(c17,plain,
    ( ~ truth(isa(asked,X31))
    | ~ says(asked,X30)
    | truth(isa(other,knight)) ),
    inference(resolution,status(thm),[prove_answer,c0]) ).

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

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

cnf(c19,plain,
    ( ~ says(asked,X34)
    | truth(isa(other,knight))
    | truth(isa(asked,knight)) ),
    inference(resolution,status(thm),[c17,c1]) ).

cnf(one_is_knight_answer,axiom,
    ( says(asked,or(isa(asked,knight),isa(other,knight)))
    | says(asked,not(or(isa(asked,knight),isa(other,knight)))) ),
    input ).

cnf(c24,plain,
    ( truth(isa(other,knight))
    | truth(isa(asked,knight))
    | says(asked,or(isa(asked,knight),isa(other,knight))) ),
    inference(resolution,status(thm),[c19,one_is_knight_answer]) ).

cnf(c36,plain,
    ( truth(isa(other,knight))
    | truth(isa(asked,knight)) ),
    inference(resolution,status(thm),[c24,c19]) ).

cnf(c46,plain,
    ( truth(isa(other,knight))
    | ~ says(asked,X38) ),
    inference(resolution,status(thm),[c36,c17]) ).

cnf(c50,plain,
    ( truth(isa(other,knight))
    | says(asked,or(isa(asked,knight),isa(other,knight))) ),
    inference(resolution,status(thm),[c46,one_is_knight_answer]) ).

cnf(c76,plain,
    truth(isa(other,knight)),
    inference(resolution,status(thm),[c50,c46]) ).

cnf(c81,plain,
    ( ~ truth(isa(asked,X49))
    | ~ says(asked,X48) ),
    inference(resolution,status(thm),[c76,prove_answer]) ).

cnf(c45,plain,
    ( truth(isa(asked,knight))
    | ~ truth(isa(asked,X42))
    | ~ says(asked,X41) ),
    inference(resolution,status(thm),[c36,prove_answer]) ).

cnf(c65,plain,
    ( truth(isa(asked,knight))
    | ~ says(asked,X43) ),
    inference(resolution,status(thm),[c45,c1]) ).

cnf(c70,plain,
    ( truth(isa(asked,knight))
    | says(asked,or(isa(asked,knight),isa(other,knight))) ),
    inference(resolution,status(thm),[c65,one_is_knight_answer]) ).

cnf(c113,plain,
    truth(isa(asked,knight)),
    inference(resolution,status(thm),[c70,c65]) ).

cnf(c117,plain,
    ~ says(asked,X52),
    inference(resolution,status(thm),[c113,c81]) ).

cnf(c120,plain,
    says(asked,or(isa(asked,knight),isa(other,knight))),
    inference(resolution,status(thm),[c117,one_is_knight_answer]) ).

cnf(c131,plain,
    $false,
    inference(resolution,status(thm),[c120,c117]) ).

%------------------------------------------------------------------------------
%----ORIGINAL SYSTEM OUTPUT
% 0.07/0.12  % Problem  : PUZ035-3 : TPTP v8.1.0. Released v2.0.0.
% 0.07/0.12  % Command  : pyres-fof.py -tifbsVp -nlargest -HPickGiven5 %s
% 0.12/0.33  % Computer : n024.cluster.edu
% 0.12/0.33  % Model    : x86_64 x86_64
% 0.12/0.33  % CPU      : Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz
% 0.12/0.33  % Memory   : 8042.1875MB
% 0.12/0.33  % OS       : Linux 3.10.0-693.el7.x86_64
% 0.12/0.33  % CPULimit : 300
% 0.12/0.33  % WCLimit  : 600
% 0.12/0.33  % DateTime : Sat May 28 19:58:37 EDT 2022
% 0.12/0.33  % CPUTime  : 
% 0.35/0.59  # Version:  1.3
% 0.35/0.59  # SZS status Unsatisfiable
% 0.35/0.59  # SZS output start CNFRefutation
% See solution above
% 0.35/0.59  
% 0.35/0.59  # Initial clauses    : 16
% 0.35/0.59  # Processed clauses  : 49
% 0.35/0.59  # Factors computed   : 0
% 0.35/0.59  # Resolvents computed: 134
% 0.35/0.59  # Tautologies deleted: 2
% 0.35/0.59  # Forward subsumed   : 11
% 0.35/0.59  # Backward subsumed  : 28
% 0.35/0.59  # -------- CPU Time ---------
% 0.35/0.59  # User time          : 0.231 s
% 0.35/0.59  # System time        : 0.013 s
% 0.35/0.59  # Total time         : 0.244 s
%------------------------------------------------------------------------------