fof(true_is_true,axiom,
value(truth,truth) ).
fof(false_is_false,axiom,
value(falsity,falsity) ).
fof(true_xor_true,axiom,
! [X,Y] :
( ~ value(X,truth)
| ~ value(Y,truth)
| value(xor(X,Y),falsity) ) ).
fof(true_xor_false,axiom,
! [X,Y] :
( ~ value(X,truth)
| ~ value(Y,falsity)
| value(xor(X,Y),truth) ) ).
fof(false_xor_true,axiom,
! [X,Y] :
( ~ value(X,falsity)
| ~ value(Y,truth)
| value(xor(X,Y),truth) ) ).
fof(false_xor_false,axiom,
! [X,Y] :
( ~ value(X,falsity)
| ~ value(Y,falsity)
| value(xor(X,Y),falsity) ) ).
fof(evaluate_expression,conjecture,
? [Value] : value(xor(xor(xor(xor(truth,falsity),falsity),truth),falsity),Value) ).
fof(evaluate_expression,conjecture,
? [X3] : value(xor(xor(xor(xor(truth,falsity),falsity),truth),falsity),X3),
file('MSC00%=1.p',evaluate_expression) ).
fof(false_xor_false,axiom,
! [X1,X2] :
( ~ value(X1,falsity)
| ~ value(X2,falsity)
| value(xor(X1,X2),falsity) ),
file('MSC00%=1.p',false_xor_false) ).
fof(true_xor_true,axiom,
! [X1,X2] :
( ~ value(X1,truth)
| ~ value(X2,truth)
| value(xor(X1,X2),falsity) ),
file('MSC00%=1.p',true_xor_true) ).
fof(false_is_false,axiom,
value(falsity,falsity),
file('MSC00%=1.p',false_is_false) ).
fof(true_xor_false,axiom,
! [X1,X2] :
( ~ value(X1,truth)
| ~ value(X2,falsity)
| value(xor(X1,X2),truth) ),
file('MSC00%=1.p',true_xor_false) ).
fof(true_is_true,axiom,
value(truth,truth),
file('MSC00%=1.p',true_is_true) ).
fof(c_0_6,negated_conjecture,
~ ? [X3] : value(xor(xor(xor(xor(truth,falsity),falsity),truth),falsity),X3),
inference(assume_negation,[status(cth)],[evaluate_expression]) ).
fof(c_0_7,plain,
! [X1,X2] :
( ~ value(X1,falsity)
| ~ value(X2,falsity)
| value(xor(X1,X2),falsity) ),
inference(fof_simplification,[status(thm)],[false_xor_false]) ).
fof(c_0_8,negated_conjecture,
! [X4] : ~ value(xor(xor(xor(xor(truth,falsity),falsity),truth),falsity),X4),
inference(fof_nnf,[status(thm)],[inference(variable_rename,[status(thm)],[inference(fof_nnf,[status(thm)],[c_0_6])])]) ).
fof(c_0_9,plain,
! [X11,X12] :
( ~ value(X11,falsity)
| ~ value(X12,falsity)
| value(xor(X11,X12),falsity) ),
inference(fof_nnf,[status(thm)],[inference(variable_rename,[status(thm)],[c_0_7])]) ).
fof(c_0_10,plain,
! [X1,X2] :
( ~ value(X1,truth)
| ~ value(X2,truth)
| value(xor(X1,X2),falsity) ),
inference(fof_simplification,[status(thm)],[true_xor_true]) ).
cnf(c_0_11,negated_conjecture,
~ value(xor(xor(xor(xor(truth,falsity),falsity),truth),falsity),X1),
inference(split_conjunct,[status(thm)],[c_0_8]) ).
cnf(c_0_12,plain,
( value(xor(X1,X2),falsity)
| ~ value(X1,falsity)
| ~ value(X2,falsity) ),
inference(split_conjunct,[status(thm)],[c_0_9]) ).
cnf(c_0_13,plain,
value(falsity,falsity),
inference(split_conjunct,[status(thm)],[false_is_false]) ).
fof(c_0_14,plain,
! [X5,X6] :
( ~ value(X5,truth)
| ~ value(X6,truth)
| value(xor(X5,X6),falsity) ),
inference(fof_nnf,[status(thm)],[inference(variable_rename,[status(thm)],[c_0_10])]) ).
fof(c_0_15,plain,
! [X1,X2] :
( ~ value(X1,truth)
| ~ value(X2,falsity)
| value(xor(X1,X2),truth) ),
inference(fof_simplification,[status(thm)],[true_xor_false]) ).
cnf(c_0_16,negated_conjecture,
~ value(xor(xor(xor(truth,falsity),falsity),truth),falsity),
inference(cn,[status(thm)],[inference(rw,[status(thm)],[inference(spm,[status(thm)],[c_0_11,c_0_12]),c_0_13])]) ).
cnf(c_0_17,plain,
( value(xor(X1,X2),falsity)
| ~ value(X1,truth)
| ~ value(X2,truth) ),
inference(split_conjunct,[status(thm)],[c_0_14]) ).
cnf(c_0_18,plain,
value(truth,truth),
inference(split_conjunct,[status(thm)],[true_is_true]) ).
fof(c_0_19,plain,
! [X7,X8] :
( ~ value(X7,truth)
| ~ value(X8,falsity)
| value(xor(X7,X8),truth) ),
inference(fof_nnf,[status(thm)],[inference(variable_rename,[status(thm)],[c_0_15])]) ).
cnf(c_0_20,negated_conjecture,
~ value(xor(xor(truth,falsity),falsity),truth),
inference(cn,[status(thm)],[inference(rw,[status(thm)],[inference(spm,[status(thm)],[c_0_16,c_0_17]),c_0_18])]) ).
cnf(c_0_21,plain,
( value(xor(X1,X2),truth)
| ~ value(X1,truth)
| ~ value(X2,falsity) ),
inference(split_conjunct,[status(thm)],[c_0_19]) ).
cnf(c_0_22,negated_conjecture,
~ value(xor(truth,falsity),truth),
inference(cn,[status(thm)],[inference(rw,[status(thm)],[inference(spm,[status(thm)],[c_0_20,c_0_21]),c_0_13])]) ).
cnf(c_0_23,negated_conjecture,
$false,
inference(cn,[status(thm)],[inference(rw,[status(thm)],[inference(rw,[status(thm)],[inference(spm,[status(thm)],[c_0_22,c_0_21]),c_0_13]),c_0_18])]),
[proof] ).
fof(false_xor_false,axiom,
! [X1,X2] :
( ~ value(X1,falsity)
| ~ value(X2,falsity)
| value(xor(X1,X2),falsity) ),
file('MSC00%=1.p',false_xor_false) ).
fof(true_xor_true,axiom,
! [X1,X2] :
( ~ value(X1,truth)
| ~ value(X2,truth)
| value(xor(X1,X2),falsity) ),
file('MSC00%=1.p',true_xor_true) ).
fof(false_is_false,axiom,
value(falsity,falsity),
file('MSC00%=1.p',false_is_false) ).
fof(true_xor_false,axiom,
! [X1,X2] :
( ~ value(X1,truth)
| ~ value(X2,falsity)
| value(xor(X1,X2),truth) ),
file('MSC00%=1.p',true_xor_false) ).
fof(true_is_true,axiom,
value(truth,truth),
file('MSC00%=1.p',true_is_true) ).
fof(s1,plain,
value(xor(truth,falsity),truth),
inference(mp,[status(thm)],[true_xor_false,true_is_true,false_is_false]) ).
fof(s2,plain,
value(xor(xor(truth,falsity),falsity),truth),
inference(mp,[status(thm)],[true_xor_false,s1,false_is_false]) ).
fof(s3,plain,
value(xor(xor(xor(truth,falsity),falsity),truth),falsity),
inference(mp,[status(thm)],[true_xor_true,s2,true_is_true]) ).
fof(s4,plain,
value(xor(xor(xor(xor(truth,falsity),falsity),truth),falsity),falsity),
inference(mp,[status(thm)],[false_xor_false,s3,false_is_false]) ).
fof(evaluate_expression,theorem,
? [X3] : value(xor(xor(xor(xor(truth,falsity),falsity),truth),falsity),X3),
inference(conclude,[status(thm)],[s4]) ).
Starting with the axioms below, reason forwards in FOF form to reach the conjecture below. Do not use a proof-by-contradiction; you must reason forwards from the axioms to the proved theorem. Each step must be a logical consequence of its parents. Use the TPTP format for derivations described at https://pands.tptp.org/derivations. Give the derivation without Skolemization. The inference names can be anything - do not woory about them being informal. The final derived formula must have the role "theorem". It cannot be one step directly from the axioms to the theorem. Do not list unused axioms in the derivation. When the derivation is complete, write out the derivation formulae. After writing the derivation formulae, translate the derivation into one paragraph of natural English text. what's below
fof(true_is_true,axiom,
value(truth,truth) ).
fof(false_is_false,axiom,
value(falsity,falsity) ).
fof(true_xor_true,axiom,
! [X,Y] :
( ~ value(X,truth)
| ~ value(Y,truth)
| value(xor(X,Y),falsity) ) ).
fof(true_xor_false,axiom,
! [X,Y] :
( ~ value(X,truth)
| ~ value(Y,falsity)
| value(xor(X,Y),truth) ) ).
fof(step1,plain,
value(xor(truth,falsity),truth),
inference(xor_true_false,[status(thm)],[true_is_true,false_is_false,true_xor_false]) ).
fof(step2,plain,
value(xor(xor(truth,falsity),falsity),truth),
inference(xor_true_false,[status(thm)],[step1,false_is_false,true_xor_false]) ).
fof(step3,plain,
value(xor(xor(xor(truth,falsity),falsity),truth),falsity),
inference(xor_true_true,[status(thm)],[step2,true_is_true,true_xor_true]) ).
fof(step4,plain,
value(xor(xor(xor(xor(truth,falsity),falsity),truth),falsity),falsity),
inference(xor_false_false,[status(thm)],[step3,false_is_false,false_xor_false]) ).
fof(evaluate_expression,theorem,
? [Value] : value(xor(xor(xor(xor(truth,falsity),falsity),truth),falsity),Value),
inference(existential_introduction,[status(thm)],[step4]) ).
Run in plain GDV mode Running: /home/tptp/ServiceTools/GDV -T -t 30 -r /tmp/c2jAE_VpdF/SOT_pSHZqC NOTICE: Checking the syntax of the derivation file /tmp/c2jAE_VpdF/SOT_pSHZqC RESULT: SOT_pSHZqC - BNFParser---0.0 says Success - CPU = 0.00 SUCCESS: Syntax of the derivation file /tmp/c2jAE_VpdF/SOT_pSHZqC is good NOTICE: Reading the derivation file /tmp/c2jAE_VpdF/SOT_pSHZqC SUCCESS: Parsed the derivation file /tmp/c2jAE_VpdF/SOT_pSHZqC NOTICE: Starting verification processes SUCCESS: Leaf axiom(_like) formulae are satisfiable SUCCESS: Generated trusted ASked formulae WARNING: No problem file, leaf verification will be incomplete SUCCESS: Derivation has unique formula names SUCCESS: All derived formulae have parents and inference information WARNING: No problem file, new symbol verification is incomplete SUCCESS: All new_symbols are really new WARNING: Took the first (not false) root 'evaluate_expression' as the single derivation root SUCCESS: Derivation is acyclic SUCCESS: Assumptions are propagated SUCCESS: Assumptions are discharged NOTICE: Took the derivation root evaluate_expression as the proved formula WARNING: No problem provided, cannot do full leaf verification SUCCESS: Leaves are verified RESULT: step1_thm - E---3.5.14 says Theorem - CPU = 0.00 SUCCESS: 'step1' is a thm of 'true_is_true false_is_false true_xor_false' RESULT: step2_thm - E---3.5.14 says Theorem - CPU = 0.00 SUCCESS: 'step2' is a thm of 'step1 false_is_false true_xor_false' RESULT: step3_thm - E---3.5.14 says Theorem - CPU = 0.00 SUCCESS: 'step3' is a thm of 'step2 true_is_true true_xor_true' RESULT: step4_thm - E---3.5.14 says Theorem - CPU = 0.00 SUCCESS: 'step4' is a thm of 'step3 false_is_false false_xor_false' RESULT: evaluate_expression_thm - E---3.5.14 says Theorem - CPU = 0.00 SUCCESS: 'evaluate_expression' is a thm of 'step4' SUCCESS: Derived formulae are verified SUCCESS: Verified % SZS status VerifiedGood