↑ Up

LisaST---0.9.UNS-CRf.s

View TPTP
Problem
Process solution in
SystemOnTSTP
Download .tgz
%------------------------------------------------------------------------------
% File     : LisaST---0.9
% Problem  : PUZ035-2 : TPTP v9.3.1. Released v2.0.0.
% Transfm  : none
% Format   : tptp:raw
% Command  : casc-portfolio.sh -t 300 /export/starexec/sandbox2/benchmark/theBenchmark.p

% Computer : n017.cluster.edu
% Model    : x86_64 x86_64
% CPU      : Intel(R) Xeon(R) CPU E5-2620 v4 2.10GHz
% Memory   : 8046.5625MB
% OS       : Linux 6.8.0-71-generic
% CPULimit : 300s
% WCLimit  : 300s
% DateTime : Sun Sep 27 08:22:08 AM UTC 2026

% Result   : Unsatisfiable 6.16s 2.96s
% Output   : CNFRefutation 6.16s
% Verified : 
% SZS Type : Refutation
%            Derivation depth      :   24
%            Number of leaves      :   12
% Syntax   : Number of clauses     :   62 (  10 unt;  32 nHn;  62 RR)
%            Number of literals    :  162 (   0 equ;  70 neg)
%            Maximal clause size   :    4 (   2 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   :   43 (  30 sgn)

% Comments : 
%------------------------------------------------------------------------------
cnf(everyone_a_knight_or_knave,axiom,
    ( isa(X0,knave)
    | isa(X0,knight)
    | ~ person(X0) ) ).

cnf(knights_make_true_statements,axiom,
    ( 'tell$uthe$utruth'(X0)
    | ~ isa(X0,knight) ) ).

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

cnf(statements_are_true_or_false,axiom,
    ( ~ lies(X0)
    | ~ 'tell$uthe$utruth'(X0) ) ).

cnf(statements_are_true_or_false2,axiom,
    ( lies(X0)
    | 'tell$uthe$utruth'(X0)
    | ~ person(X0) ) ).

cnf(lie_one_is_a_knight,axiom,
    ( ~ lies(asked)
    | ~ response(no)
    | isa(other,knight)
    | isa(asked,knight) ) ).

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

cnf(knight_answers3,axiom,
    ( ~ isa(X0,knight)
    | ~ 'tell$uthe$utruth'(asked)
    | response(yes) ) ).

cnf(two_answers,axiom,
    ( response(no)
    | response(yes) ) ).

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

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

cnf(prove_answer,negated_conjecture,
    ( ~ isa(other,X2)
    | ~ isa(asked,X1)
    | ~ response(X0) ) ).

cnf(c0,plain,
    ( isa(X0,knave)
    | isa(X0,knight)
    | ~ person(X0) ),
    inference(clausification,[status(esa)],[everyone_a_knight_or_knave]) ).

cnf(c2,plain,
    ( 'tell$uthe$utruth'(X0)
    | ~ isa(X0,knight) ),
    inference(clausification,[status(esa)],[knights_make_true_statements]) ).

cnf(c3,plain,
    ( lies(X0)
    | ~ isa(X0,knave) ),
    inference(clausification,[status(esa)],[knaves_make_false_statements]) ).

cnf(c4,plain,
    ( ~ lies(X0)
    | ~ 'tell$uthe$utruth'(X0) ),
    inference(clausification,[status(esa)],[statements_are_true_or_false]) ).

cnf(c5,plain,
    ( lies(X0)
    | 'tell$uthe$utruth'(X0)
    | ~ person(X0) ),
    inference(clausification,[status(esa)],[statements_are_true_or_false2]) ).

cnf(c7,plain,
    ( ~ lies(asked)
    | ~ response(no)
    | isa(other,knight)
    | isa(asked,knight) ),
    inference(clausification,[status(esa)],[lie_one_is_a_knight]) ).

cnf(c8,plain,
    ( ~ isa(X0,knight)
    | ~ lies(asked)
    | ~ response(yes) ),
    inference(clausification,[status(esa)],[knight_answers1]) ).

cnf(c10,plain,
    ( ~ isa(X0,knight)
    | ~ 'tell$uthe$utruth'(asked)
    | response(yes) ),
    inference(clausification,[status(esa)],[knight_answers3]) ).

cnf(c12,plain,
    ( response(no)
    | response(yes) ),
    inference(clausification,[status(esa)],[two_answers]) ).

cnf(c13,plain,
    person(asked),
    inference(clausification,[status(esa)],[asked_person]) ).

cnf(c14,plain,
    person(other),
    inference(clausification,[status(esa)],[other_person]) ).

cnf(c15,plain,
    ( ~ isa(other,X2)
    | ~ isa(asked,X1)
    | ~ response(X0) ),
    inference(clausification,[status(esa)],[prove_answer]) ).

cnf(d0,plain,
    ( lies(asked)
    | 'tell$uthe$utruth'(asked) ),
    inference(resolution,[status(thm)],[c5,c13]) ).

cnf(d1,plain,
    ( 'tell$uthe$utruth'(other)
    | ~ response(no)
    | ~ lies(asked)
    | isa(asked,knight) ),
    inference(resolution,[status(thm)],[c7,c2]) ).

cnf(d2,plain,
    ( 'tell$uthe$utruth'(asked)
    | ~ response(no)
    | ~ lies(asked)
    | 'tell$uthe$utruth'(other) ),
    inference(resolution,[status(thm)],[d1,c2]) ).

cnf(d3,plain,
    ( response(yes)
    | ~ lies(asked)
    | 'tell$uthe$utruth'(other)
    | 'tell$uthe$utruth'(asked) ),
    inference(resolution,[status(thm)],[d2,c12]) ).

cnf(d4,plain,
    ( 'tell$uthe$utruth'(asked)
    | response(yes)
    | 'tell$uthe$utruth'(other)
    | 'tell$uthe$utruth'(asked) ),
    inference(resolution,[status(thm)],[d3,d0]) ).

cnf(d5,plain,
    ( isa(X0,knight)
    | ~ person(X0)
    | lies(X0) ),
    inference(resolution,[status(thm)],[c3,c0]) ).

cnf(d6,plain,
    ( lies(other)
    | ~ person(other)
    | ~ response(X1)
    | ~ isa(asked,X0) ),
    inference(resolution,[status(thm)],[c15,d5]) ).

cnf(d7,plain,
    ( ~ response(X1)
    | lies(other)
    | ~ isa(asked,X0) ),
    inference(resolution,[status(thm)],[c14,d6]) ).

cnf(d8,plain,
    ( isa(asked,knight)
    | ~ person(asked)
    | ~ response(X0)
    | lies(other) ),
    inference(resolution,[status(thm)],[d7,c0]) ).

cnf(d9,plain,
    ( ~ response(X0)
    | lies(other)
    | isa(asked,knight) ),
    inference(resolution,[status(thm)],[c13,d8]) ).

cnf(d10,plain,
    ( response(yes)
    | lies(other)
    | isa(asked,knight) ),
    inference(resolution,[status(thm)],[d9,c12]) ).

cnf(d11,plain,
    ( ~ response(X0)
    | lies(other)
    | response(yes)
    | lies(other) ),
    inference(resolution,[status(thm)],[d10,d7]) ).

cnf(d12,plain,
    ( response(yes)
    | response(yes)
    | lies(other) ),
    inference(resolution,[status(thm)],[d11,c12]) ).

cnf(d13,plain,
    ( ~ 'tell$uthe$utruth'(other)
    | response(yes) ),
    inference(resolution,[status(thm)],[d12,c4]) ).

cnf(d14,plain,
    ( response(yes)
    | 'tell$uthe$utruth'(asked)
    | response(yes) ),
    inference(resolution,[status(thm)],[d13,d4]) ).

cnf(d15,plain,
    ( response(yes)
    | ~ 'tell$uthe$utruth'(asked)
    | lies(X0)
    | ~ person(X0) ),
    inference(resolution,[status(thm)],[d5,c10]) ).

cnf(d16,plain,
    ( response(yes)
    | lies(X0)
    | ~ person(X0)
    | response(yes) ),
    inference(resolution,[status(thm)],[d14,d15]) ).

cnf(d17,plain,
    ( response(yes)
    | lies(asked) ),
    inference(resolution,[status(thm)],[d16,c13]) ).

cnf(d18,plain,
    ( ~ 'tell$uthe$utruth'(asked)
    | response(yes) ),
    inference(resolution,[status(thm)],[d17,c4]) ).

cnf(d19,plain,
    ( response(yes)
    | response(yes) ),
    inference(resolution,[status(thm)],[d18,d14]) ).

cnf(d20,plain,
    ( isa(other,knight)
    | ~ person(other)
    | ~ response(X1)
    | ~ isa(asked,X0) ),
    inference(resolution,[status(thm)],[c15,c0]) ).

cnf(d21,plain,
    ( ~ response(X1)
    | isa(other,knight)
    | ~ isa(asked,X0) ),
    inference(resolution,[status(thm)],[c14,d20]) ).

cnf(d22,plain,
    ( isa(asked,knight)
    | ~ person(asked)
    | ~ response(X0)
    | isa(other,knight) ),
    inference(resolution,[status(thm)],[d21,c0]) ).

cnf(d23,plain,
    ( ~ response(X0)
    | isa(other,knight)
    | isa(asked,knight) ),
    inference(resolution,[status(thm)],[c13,d22]) ).

cnf(d24,plain,
    ( ~ lies(asked)
    | ~ isa(X0,knight) ),
    inference(resolution,[status(thm)],[d19,c8]) ).

cnf(d25,plain,
    ( lies(asked)
    | ~ person(asked)
    | ~ response(X0)
    | isa(other,knight) ),
    inference(resolution,[status(thm)],[d21,d5]) ).

cnf(d26,plain,
    ( ~ response(X0)
    | lies(asked)
    | isa(other,knight) ),
    inference(resolution,[status(thm)],[c13,d25]) ).

cnf(d27,plain,
    ( lies(asked)
    | isa(other,knight) ),
    inference(resolution,[status(thm)],[d26,d19]) ).

cnf(d28,plain,
    ( 'tell$uthe$utruth'(other)
    | lies(asked) ),
    inference(resolution,[status(thm)],[d27,c2]) ).

cnf(d29,plain,
    ( lies(other)
    | isa(asked,knight) ),
    inference(resolution,[status(thm)],[d19,d9]) ).

cnf(d30,plain,
    ( ~ response(X0)
    | lies(other)
    | lies(other) ),
    inference(resolution,[status(thm)],[d29,d7]) ).

cnf(d31,plain,
    lies(other),
    inference(resolution,[status(thm)],[d30,d19]) ).

cnf(d32,plain,
    ~ 'tell$uthe$utruth'(other),
    inference(resolution,[status(thm)],[d31,c4]) ).

cnf(d33,plain,
    lies(asked),
    inference(resolution,[status(thm)],[d32,d28]) ).

cnf(d34,plain,
    ~ isa(X0,knight),
    inference(resolution,[status(thm)],[d33,d24]) ).

cnf(d35,plain,
    ( ~ response(X0)
    | isa(other,knight) ),
    inference(resolution,[status(thm)],[d34,d23]) ).

cnf(d36,plain,
    ~ response(X0),
    inference(resolution,[status(thm)],[d34,d35]) ).

cnf(d37,plain,
    $false,
    inference(resolution,[status(thm)],[d36,d19]) ).

%------------------------------------------------------------------------------
%----ORIGINAL SYSTEM OUTPUT
% 0.00/0.04  % Problem  : PUZ035-2 : TPTP v9.3.1. Released v2.0.0.
% 0.00/0.06  % Command  : casc-portfolio.sh -t 300 /export/starexec/sandbox2/benchmark/theBenchmark.p
% 0.16/0.41  % Computer : n017.cluster.edu
% 0.16/0.41  % Model    : x86_64 x86_64
% 0.16/0.41  % CPU      : Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz
% 0.16/0.41  % Memory   : 8046.5625MB
% 0.16/0.41  % OS       : Linux 6.8.0-71-generic
% 0.16/0.41  % CPULimit : 300
% 0.16/0.41  % WCLimit  : 300
% 0.16/0.41  % DateTime : Sat Sep 26 05:02:03 UTC 2026
% 0.16/0.42  % CPUTime  : 
% 0.16/0.42  Running casc-portfolio.sh -t 300 /export/starexec/sandbox2/benchmark/theBenchmark.p
% 6.16/2.96  % SZS status Unsatisfiable for theBenchmark.p
% 6.16/2.96  % SZS output start CNFRefutation for theBenchmark.p
% See solution above
%------------------------------------------------------------------------------