↑ Up

LisaST---0.9.UNS-CRf.s

View TPTP
Problem
Process solution in
SystemOnTSTP
Download .tgz
%------------------------------------------------------------------------------
% File     : LisaST---0.9
% Problem  : PUZ035-1 : 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 : n016.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 8.36s 1.75s
% Output   : CNFRefutation 8.36s
% Verified : 
% SZS Type : Refutation
%            Derivation depth      :   25
%            Number of leaves      :   11
% Syntax   : Number of clauses     :   61 (  10 unt;  29 nHn;  61 RR)
%            Number of literals    :  156 (   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(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(c6,plain,
    ( ~ lies(asked)
    | ~ response(no)
    | isa(other,knight)
    | isa(asked,knight) ),
    inference(clausification,[status(esa)],[lie_one_is_a_knight]) ).

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

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

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

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

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

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

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

cnf(d1,plain,
    ( 'tell$uthe$utruth'(X0)
    | lies(X0)
    | ~ person(X0) ),
    inference(resolution,[status(thm)],[d0,c2]) ).

cnf(d2,plain,
    ( lies(asked)
    | 'tell$uthe$utruth'(asked) ),
    inference(resolution,[status(thm)],[d1,c12]) ).

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

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

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

cnf(d6,plain,
    ( 'tell$uthe$utruth'(asked)
    | response(yes)
    | 'tell$uthe$utruth'(other)
    | 'tell$uthe$utruth'(asked) ),
    inference(resolution,[status(thm)],[d5,d2]) ).

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

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

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

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

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

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

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

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

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

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

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

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

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

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

cnf(d21,plain,
    ( ~ lies(asked)
    | ~ isa(X0,knight) ),
    inference(resolution,[status(thm)],[d20,c7]) ).

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

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

cnf(d24,plain,
    ( lies(asked)
    | ~ person(asked)
    | ~ response(X0)
    | isa(other,knight) ),
    inference(resolution,[status(thm)],[d23,d0]) ).

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

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

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

cnf(d28,plain,
    ( lies(other)
    | isa(asked,knight) ),
    inference(resolution,[status(thm)],[d20,d10]) ).

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

cnf(d30,plain,
    lies(other),
    inference(resolution,[status(thm)],[d29,d20]) ).

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

cnf(d32,plain,
    lies(asked),
    inference(resolution,[status(thm)],[d31,d27]) ).

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

cnf(d34,plain,
    ( isa(X0,knave)
    | ~ person(X0) ),
    inference(resolution,[status(thm)],[d33,c0]) ).

cnf(d35,plain,
    ( ~ response(X1)
    | ~ isa(asked,X0) ),
    inference(resolution,[status(thm)],[d33,d23]) ).

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

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

cnf(d38,plain,
    $false,
    inference(resolution,[status(thm)],[d37,d20]) ).

%------------------------------------------------------------------------------
%----ORIGINAL SYSTEM OUTPUT
% 0.00/0.03  % Problem  : PUZ035-1 : TPTP v9.3.1. Released v2.0.0.
% 0.00/0.04  % Command  : casc-portfolio.sh -t 300 /export/starexec/sandbox2/benchmark/theBenchmark.p
% 0.09/0.35  % Computer : n016.cluster.edu
% 0.09/0.35  % Model    : x86_64 x86_64
% 0.09/0.35  % CPU      : Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz
% 0.09/0.35  % Memory   : 8046.5625MB
% 0.09/0.35  % OS       : Linux 6.8.0-71-generic
% 0.09/0.35  % CPULimit : 300
% 0.09/0.35  % WCLimit  : 300
% 0.09/0.35  % DateTime : Sat Sep 26 05:11:30 UTC 2026
% 0.09/0.36  % CPUTime  : 
% 0.09/0.36  Running casc-portfolio.sh -t 300 /export/starexec/sandbox2/benchmark/theBenchmark.p
% 8.36/1.75  % SZS status Unsatisfiable for theBenchmark.p
% 8.36/1.75  % SZS output start CNFRefutation for theBenchmark.p
% See solution above
%------------------------------------------------------------------------------