%------------------------------------------------------------------------------
% File : Leo-III---1.8.0
% Problem : PUZ035-4 : TPTP v9.3.1. Released v2.0.0.
% Transfm : none
% Format : tptp:raw
% Command : java -Xss128m -Xmx2g -Xms1g -jar /export/starexec/sandbox/solver/bin/leo3.jar /export/starexec/sandbox/benchmark/theBenchmark.p -t 300 -p --atp eprover=/export/starexec/sandbox/solver/bin/externals/eprover --instantiate 39
% Computer : n004.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:21:10 AM UTC 2026
% Result : Unsatisfiable 3.71s 2.39s
% Output : Refutation 4.01s
% Verified :
% SZS Type : Refutation
% Derivation depth : 2
% Number of leaves : 14
% Syntax : Number of formulae : 29 ( 5 unt; 0 typ; 0 def)
% Number of atoms : 67 ( 0 equ; 0 cnn)
% Maximal formula atoms : 3 ( 2 avg)
% Number of connectives : 238 ( 38 ~; 38 |; 0 &; 162 @)
% ( 0 <=>; 0 =>; 0 <=; 0 <~>)
% Maximal formula depth : 10 ( 7 avg)
% Number of types : 2 ( 0 usr)
% Number of type conns : 0 ( 0 >; 0 *; 0 +; 0 <<)
% Number of symbols : 11 ( 10 usr; 5 con; 0-2 aty)
% Number of variables : 40 ( 0 ^; 40 !; 0 ?; 40 :)
% Comments :
%------------------------------------------------------------------------------
thf(truth_decl,type,
truth: $i > $o ).
thf(isa_decl,type,
isa: $i > $i > $i ).
thf(asked_decl,type,
asked: $i ).
thf(other_decl,type,
other: $i ).
thf(says_decl,type,
says: $i > $i > $o ).
thf(person_decl,type,
person: $i > $o ).
thf(knight_decl,type,
knight: $i ).
thf(knave_decl,type,
knave: $i ).
thf(or_decl,type,
or: $i > $i > $i ).
thf(not_decl,type,
not: $i > $i ).
thf(8,axiom,
! [B: $i,A: $i] :
( ~ ( A @ not @ ( B @ says ) )
| ( A @ not @ truth )
| ( A @ truth ) ),
file('/export/starexec/sandbox/benchmark/theBenchmark.p',statements_are_true_or_false2) ).
thf(29,plain,
! [B: $i,A: $i] :
( ~ ( A @ not @ ( B @ says ) )
| ( A @ not @ truth )
| ( A @ truth ) ),
inference(defexp_and_simp_and_etaexpand,[status(thm)],[8]) ).
thf(2,axiom,
! [A: $i] :
( ( knave @ ( A @ isa ) @ truth )
| ( knight @ ( A @ isa ) @ truth )
| ~ ( A @ person ) ),
file('/export/starexec/sandbox/benchmark/theBenchmark.p',everyone_a_knight_or_knave) ).
thf(17,plain,
! [A: $i] :
( ( knave @ ( A @ isa ) @ truth )
| ( knight @ ( A @ isa ) @ truth )
| ~ ( A @ person ) ),
inference(defexp_and_simp_and_etaexpand,[status(thm)],[2]) ).
thf(7,axiom,
! [B: $i,A: $i] :
( ~ ( A @ ( B @ says ) )
| ( A @ not @ truth )
| ( A @ truth ) ),
file('/export/starexec/sandbox/benchmark/theBenchmark.p',statements_are_true_or_false) ).
thf(27,plain,
! [B: $i,A: $i] :
( ~ ( A @ ( B @ says ) )
| ( A @ not @ truth )
| ( A @ truth ) ),
inference(defexp_and_simp_and_etaexpand,[status(thm)],[7]) ).
thf(13,axiom,
asked @ person,
file('/export/starexec/sandbox/benchmark/theBenchmark.p',asked_person) ).
thf(39,plain,
asked @ person,
inference(defexp_and_simp_and_etaexpand,[status(thm)],[13]) ).
thf(11,axiom,
! [B: $i,A: $i] :
( ~ ( B @ ( A @ or ) @ not @ truth )
| ~ ( A @ truth ) ),
file('/export/starexec/sandbox/benchmark/theBenchmark.p',not1) ).
thf(35,plain,
! [B: $i,A: $i] :
( ~ ( B @ ( A @ or ) @ not @ truth )
| ~ ( A @ truth ) ),
inference(defexp_and_simp_and_etaexpand,[status(thm)],[11]) ).
thf(9,axiom,
! [A: $i] :
( ~ ( A @ not @ truth )
| ~ ( A @ truth ) ),
file('/export/starexec/sandbox/benchmark/theBenchmark.p',statements_are_true_or_false3) ).
thf(31,plain,
! [A: $i] :
( ~ ( A @ not @ truth )
| ~ ( A @ truth ) ),
inference(defexp_and_simp_and_etaexpand,[status(thm)],[9]) ).
thf(3,axiom,
! [A: $i] :
( ~ ( knave @ ( A @ isa ) @ truth )
| ~ ( knight @ ( A @ isa ) @ truth ) ),
file('/export/starexec/sandbox/benchmark/theBenchmark.p',not_both_a_knight_and_knave) ).
thf(19,plain,
! [A: $i] :
( ~ ( knave @ ( A @ isa ) @ truth )
| ~ ( knight @ ( A @ isa ) @ truth ) ),
inference(defexp_and_simp_and_etaexpand,[status(thm)],[3]) ).
thf(1,negated_conjecture,
! [C: $i,B: $i,A: $i] :
( ~ ( C @ ( asked @ says ) )
| ~ ( B @ ( other @ isa ) @ truth )
| ~ ( A @ ( asked @ isa ) @ truth ) ),
file('/export/starexec/sandbox/benchmark/theBenchmark.p',prove_answer) ).
thf(15,plain,
! [C: $i,B: $i,A: $i] :
( ~ ( C @ ( asked @ says ) )
| ~ ( B @ ( other @ isa ) @ truth )
| ~ ( A @ ( asked @ isa ) @ truth ) ),
inference(defexp_and_simp_and_etaexpand,[status(thm)],[1]) ).
thf(12,axiom,
! [B: $i,A: $i] :
( ~ ( A @ ( B @ or ) @ not @ truth )
| ~ ( A @ truth ) ),
file('/export/starexec/sandbox/benchmark/theBenchmark.p',not2) ).
thf(37,plain,
! [B: $i,A: $i] :
( ~ ( A @ ( B @ or ) @ not @ truth )
| ~ ( A @ truth ) ),
inference(defexp_and_simp_and_etaexpand,[status(thm)],[12]) ).
thf(6,axiom,
( ( knight @ ( other @ isa ) @ ( knight @ ( asked @ isa ) @ or ) @ not @ ( asked @ says ) )
| ( knight @ ( other @ isa ) @ ( knight @ ( asked @ isa ) @ or ) @ ( asked @ says ) ) ),
file('/export/starexec/sandbox/benchmark/theBenchmark.p',one_is_knight_answer) ).
thf(25,plain,
( ( knight @ ( other @ isa ) @ ( knight @ ( asked @ isa ) @ or ) @ not @ ( asked @ says ) )
| ( knight @ ( other @ isa ) @ ( knight @ ( asked @ isa ) @ or ) @ ( asked @ says ) ) ),
inference(defexp_and_simp_and_etaexpand,[status(thm)],[6]) ).
thf(4,axiom,
! [B: $i,A: $i] :
( ~ ( knight @ ( B @ isa ) @ truth )
| ~ ( A @ ( B @ says ) )
| ( A @ truth ) ),
file('/export/starexec/sandbox/benchmark/theBenchmark.p',knights_make_true_statements1) ).
thf(21,plain,
! [B: $i,A: $i] :
( ~ ( knight @ ( B @ isa ) @ truth )
| ~ ( A @ ( B @ says ) )
| ( A @ truth ) ),
inference(defexp_and_simp_and_etaexpand,[status(thm)],[4]) ).
thf(10,axiom,
! [B: $i,A: $i] :
( ~ ( B @ ( A @ or ) @ truth )
| ( B @ truth )
| ( A @ truth ) ),
file('/export/starexec/sandbox/benchmark/theBenchmark.p',or_def) ).
thf(33,plain,
! [B: $i,A: $i] :
( ~ ( B @ ( A @ or ) @ truth )
| ( B @ truth )
| ( A @ truth ) ),
inference(defexp_and_simp_and_etaexpand,[status(thm)],[10]) ).
thf(14,axiom,
other @ person,
file('/export/starexec/sandbox/benchmark/theBenchmark.p',other_person) ).
thf(40,plain,
other @ person,
inference(defexp_and_simp_and_etaexpand,[status(thm)],[14]) ).
thf(5,axiom,
! [B: $i,A: $i] :
( ~ ( B @ truth )
| ~ ( B @ ( A @ says ) )
| ( knight @ ( A @ isa ) @ truth ) ),
file('/export/starexec/sandbox/benchmark/theBenchmark.p',knights_make_true_statements2) ).
thf(23,plain,
! [B: $i,A: $i] :
( ~ ( B @ truth )
| ~ ( B @ ( A @ says ) )
| ( knight @ ( A @ isa ) @ truth ) ),
inference(defexp_and_simp_and_etaexpand,[status(thm)],[5]) ).
thf(41,plain,
$false,
inference(e,[status(thm)],[29,17,27,39,35,31,19,15,37,25,21,33,40,23]) ).
%------------------------------------------------------------------------------
%----ORIGINAL SYSTEM OUTPUT
% 0.00/0.03 % Problem : PUZ035-4 : TPTP v9.3.1. Released v2.0.0.
% 0.00/0.08 % Command : java -Xss128m -Xmx2g -Xms1g -jar /export/starexec/sandbox/solver/bin/leo3.jar /export/starexec/sandbox/benchmark/theBenchmark.p -t 300 -p --atp eprover=/export/starexec/sandbox/solver/bin/externals/eprover --instantiate 39
% 0.13/0.40 % Computer : n004.cluster.edu
% 0.13/0.40 % Model : x86_64 x86_64
% 0.13/0.40 % CPU : Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz
% 0.13/0.40 % Memory : 8046.5625MB
% 0.13/0.40 % OS : Linux 6.8.0-71-generic
% 0.13/0.40 % CPULimit : 300
% 0.13/0.40 % WCLimit : 300
% 0.13/0.40 % DateTime : Sat Sep 26 05:06:51 UTC 2026
% 0.13/0.40 % CPUTime :
% 0.13/0.40 Running java -Xss128m -Xmx2g -Xms1g -jar /export/starexec/sandbox/solver/bin/leo3.jar /export/starexec/sandbox/benchmark/theBenchmark.p -t 300 -p --atp eprover=/export/starexec/sandbox/solver/bin/externals/eprover --instantiate 39
% 0.86/0.99 % [INFO] Parsing problem /export/starexec/sandbox/benchmark/theBenchmark.p ...
% 1.25/1.19 % [INFO] Parsing done (191ms).
% 1.40/1.20 % [INFO] Running in sequential loop mode.
% 2.04/1.61 % [INFO] eprover registered as external prover.
% 2.04/1.62 % [INFO] Scanning for conjecture ...
% 2.23/1.71 % [INFO] Found a conjecture (or negated_conjecture) and 13 axioms. Running axiom selection ...
% 2.23/1.76 % [INFO] Axiom selection finished. Selected 13 axioms (removed 0 axioms).
% 2.23/1.78 % [INFO] Problem is propositional (TPTP CNF).
% 2.23/1.78 % [INFO] Type checking passed.
% 2.23/1.79 % [CONFIG] Using configuration: timeout(300) with strategy<name(default),share(1.0),primSubst(3),sos(false),unifierCount(4),uniDepth(8),boolExt(true),choice(true),renaming(true),funcspec(false), domConstr(0),specialInstances(39),restrictUniAttempts(true),termOrdering(CPO)>. Searching for refutation ...
% 3.71/2.39 % External prover 'e' found a proof!
% 3.71/2.39 % [INFO] Killing All external provers ...
% 3.71/2.39 % Time passed: 1848ms (effective reasoning time: 1180ms)
% 3.71/2.39 % Axioms used in derivation (13): everyone_a_knight_or_knave, other_person, one_is_knight_answer, statements_are_true_or_false2, not2, statements_are_true_or_false, statements_are_true_or_false3, not_both_a_knight_and_knave, not1, knights_make_true_statements2, or_def, asked_person, knights_make_true_statements1
% 3.71/2.39 % No. of inferences in proof: 29
% 3.71/2.39 % SZS status Unsatisfiable for /export/starexec/sandbox/benchmark/theBenchmark.p : 1848 ms resp. 1180 ms w/o parsing
% 4.01/2.45 % SZS output start Refutation for /export/starexec/sandbox/benchmark/theBenchmark.p
% See solution above
% 4.01/2.45 % [INFO] Killing All external provers ...
%------------------------------------------------------------------------------