## TPTP Problem File: MSC005-1.p

View Solutions - Solve Problem

```%--------------------------------------------------------------------------
% File     : MSC005-1 : TPTP v7.5.0. Released v1.0.0.
% Domain   : Miscellaneous
% Problem  : The evaluation of XOR expressions
% Version  : [Pla82] axioms.
% English  :

% Refs     : [Pla82] Plaisted (1982), A Simplified Problem Reduction Format
% Source   : [Pla82]
% Names    : Problem 5.1 [Pla82]

% Status   : Unsatisfiable
% Rating   : 0.00 v7.4.0, 0.17 v7.3.0, 0.00 v5.4.0, 0.06 v5.3.0, 0.05 v5.2.0, 0.00 v2.0.0
% Syntax   : Number of clauses     :    7 (   0 non-Horn;   3 unit;   7 RR)
%            Number of atoms       :   15 (   0 equality)
%            Maximal clause size   :    3 (   2 average)
%            Number of predicates  :    1 (   0 propositional; 2-2 arity)
%            Number of functors    :    3 (   2 constant; 0-2 arity)
%            Number of variables   :    9 (   1 singleton)
%            Maximal term depth    :    5 (   1 average)
% SPC      : CNF_UNS_RFO_NEQ_HRN

%--------------------------------------------------------------------------
cnf(true_is_true,axiom,
( value(truth,truth) )).

cnf(false_is_false,axiom,
( value(falsity,falsity) )).

cnf(true_xor_true,axiom,
( ~ value(X,truth)
| ~ value(Y,truth)
| value(xor(X,Y),falsity) )).

cnf(true_xor_false,axiom,
( ~ value(X,truth)
| ~ value(Y,falsity)
| value(xor(X,Y),truth) )).

cnf(false_xor_true,axiom,
( ~ value(X,falsity)
| ~ value(Y,truth)
| value(xor(X,Y),truth) )).

cnf(false_xor_false,axiom,
( ~ value(X,falsity)
| ~ value(Y,falsity)
| value(xor(X,Y),falsity) )).

cnf(evaluate_expression,negated_conjecture,
( ~ value(xor(xor(xor(xor(truth,falsity),falsity),truth),falsity),Value) )).

%--------------------------------------------------------------------------
```