TSTP Solution File: HWV007-1 by Metis---2.4

View Problem - Process Solution

%------------------------------------------------------------------------------
% File     : Metis---2.4
% Problem  : HWV007-1 : TPTP v8.1.0. Released v2.1.0.
% Transfm  : none
% Format   : tptp:raw
% Command  : metis --show proof --show saturation %s

% Computer : n020.cluster.edu
% Model    : x86_64 x86_64
% CPU      : Intel(R) Xeon(R) CPU E5-2620 v4 2.10GHz
% Memory   : 8042.1875MB
% OS       : Linux 3.10.0-693.el7.x86_64
% CPULimit : 300s
% WCLimit  : 600s
% DateTime : Sat Jul 16 18:29:34 EDT 2022

% Result   : Unsatisfiable 0.19s 0.45s
% Output   : CNFRefutation 0.19s
% Verified : 
% SZS Type : Refutation
%            Derivation depth      :   36
%            Number of leaves      :   45
% Syntax   : Number of clauses     :  220 (  49 unt;  41 nHn; 220 RR)
%            Number of literals    :  485 (   0 equ; 215 neg)
%            Maximal clause size   :    6 (   2 avg)
%            Maximal term depth    :    4 (   2 avg)
%            Number of predicates  :    6 (   5 usr;   1 prp; 0-2 aty)
%            Number of functors    :   21 (  21 usr;  13 con; 0-2 aty)
%            Number of variables   :   79 (   2 sgn)

% Comments : 
%------------------------------------------------------------------------------
cnf(value_propagation1,axiom,
    ( ~ connection(P1,P2)
    | ~ value(P1,V)
    | value(P2,V) ) ).

cnf(value_propagation2,axiom,
    ( ~ connection(P1,P2)
    | ~ value(P2,V)
    | value(P1,V) ) ).

cnf(unique_value,axiom,
    ( ~ value(P,V1)
    | ~ value(P,V2)
    | equal_value(V1,V2) ) ).

cnf(equal_value1,axiom,
    ~ equal_value(n0,n1) ).

cnf(ok_or_abnormal,axiom,
    ( ~ type(K,Any)
    | mode(K,ok)
    | mode(K,abnormal) ) ).

cnf(and_0x_0,axiom,
    ( ~ mode(K,ok)
    | ~ type(K,and)
    | ~ value(in(Any,K),n0)
    | value(out(n1,K),n0) ) ).

cnf(and_11_1,axiom,
    ( ~ mode(K,ok)
    | ~ type(K,and)
    | ~ value(in(n1,K),n1)
    | ~ value(in(n2,K),n1)
    | value(out(n1,K),n1) ) ).

cnf(and_1_1x,axiom,
    ( ~ mode(K,ok)
    | ~ type(K,and)
    | ~ value(out(n1,K),n1)
    | value(in(n1,K),n1) ) ).

cnf(or_00_0,axiom,
    ( ~ mode(K,ok)
    | ~ type(K,or)
    | ~ value(in(n1,K),n0)
    | ~ value(in(n2,K),n0)
    | value(out(n1,K),n0) ) ).

cnf(or_0_01,axiom,
    ( ~ mode(K,ok)
    | ~ type(K,or)
    | ~ value(out(n1,K),n0)
    | value(in(n2,K),n0) ) ).

cnf(not_1_0_fw,axiom,
    ( ~ mode(K,ok)
    | ~ type(K,not)
    | ~ value(in(n1,K),n1)
    | value(out(n1,K),n0) ) ).

cnf(halfadder_and1,axiom,
    ( ~ type(X,halfadder)
    | type(and1(X),and) ) ).

cnf(halfadder_and2,axiom,
    ( ~ type(X,halfadder)
    | type(and2(X),and) ) ).

cnf(halfadder_not1,axiom,
    ( ~ type(X,halfadder)
    | type(not1(X),not) ) ).

cnf(halfadder_or1,axiom,
    ( ~ type(X,halfadder)
    | type(or1(X),or) ) ).

cnf(halfadder_connection_in1_in1or1,axiom,
    ( ~ type(X,halfadder)
    | connection(in(n1,X),in(n1,or1(X))) ) ).

cnf(halfadder_connection_in2_in2or1,axiom,
    ( ~ type(X,halfadder)
    | connection(in(n2,X),in(n2,or1(X))) ) ).

cnf(halfadder_connection_in1_in1and2,axiom,
    ( ~ type(X,halfadder)
    | connection(in(n1,X),in(n1,and2(X))) ) ).

cnf(halfadder_connection_in2_in2and2,axiom,
    ( ~ type(X,halfadder)
    | connection(in(n2,X),in(n2,and2(X))) ) ).

cnf(halfadder_connection_outs_out1and1,axiom,
    ( ~ type(X,halfadder)
    | connection(out(s,X),out(n1,and1(X))) ) ).

cnf(halfadder_connection_outc_out1and2,axiom,
    ( ~ type(X,halfadder)
    | connection(out(c,X),out(n1,and2(X))) ) ).

cnf(halfadder_connection_out1or1_in1_and1,axiom,
    ( ~ type(X,halfadder)
    | connection(out(n1,or1(X)),in(n1,and1(X))) ) ).

cnf(halfadder_connection_out1and2_in1not1,axiom,
    ( ~ type(X,halfadder)
    | connection(out(n1,and2(X)),in(n1,not1(X))) ) ).

cnf(halfadder_connection_out1not1_in2and1,axiom,
    ( ~ type(X,halfadder)
    | connection(out(n1,not1(X)),in(n2,and1(X))) ) ).

cnf(fulladder_halfadder1,axiom,
    ( ~ type(X,fulladder)
    | type(h1(X),halfadder) ) ).

cnf(fulladder_halfadder2,axiom,
    ( ~ type(X,fulladder)
    | type(h2(X),halfadder) ) ).

cnf(fulladder_or1,axiom,
    ( ~ type(X,fulladder)
    | type(or1(X),or) ) ).

cnf(fulladder_connection_outsh1_in2h2,axiom,
    ( ~ type(X,fulladder)
    | connection(out(s,h1(X)),in(n2,h2(X))) ) ).

cnf(fulladder_connection_outch1_in2or1,axiom,
    ( ~ type(X,fulladder)
    | connection(out(c,h1(X)),in(n2,or1(X))) ) ).

cnf(fulladder_connection_in1_in1h2,axiom,
    ( ~ type(X,fulladder)
    | connection(in(n1,X),in(n1,h2(X))) ) ).

cnf(fulladder_connection_in2_in1h1,axiom,
    ( ~ type(X,fulladder)
    | connection(in(n2,X),in(n1,h1(X))) ) ).

cnf(fulladder_connection_inc_in2h1,axiom,
    ( ~ type(X,fulladder)
    | connection(in(c,X),in(n2,h1(X))) ) ).

cnf(fulladder_connection_outs_outsh2,axiom,
    ( ~ type(X,fulladder)
    | connection(out(s,X),out(s,h2(X))) ) ).

cnf(fulladder_connection_outc_out1or1,axiom,
    ( ~ type(X,fulladder)
    | connection(out(c,X),out(n1,or1(X))) ) ).

cnf(f_isa_fulladder,hypothesis,
    type(f,fulladder) ).

cnf(in1_1,hypothesis,
    value(in(n1,f),n0) ).

cnf(in2_0,hypothesis,
    value(in(n2,f),n1) ).

cnf(inc_1,hypothesis,
    value(in(c,f),n1) ).

cnf(outs_1,hypothesis,
    value(out(s,f),n1) ).

cnf(outc_0,hypothesis,
    value(out(c,f),n0) ).

cnf(diagnosis_and2h1,negated_conjecture,
    ~ mode(and2(h1(f)),abnormal) ).

cnf(diagnosis_or1_and1h1,negated_conjecture,
    ( ~ mode(or1(f),abnormal)
    | ~ mode(and1(h1(f)),abnormal) ) ).

cnf(diagnosis_or1_not1h1,negated_conjecture,
    ( ~ mode(or1(f),abnormal)
    | ~ mode(not1(h1(f)),abnormal) ) ).

cnf(diagnosis_or1_and1h2,negated_conjecture,
    ( ~ mode(or1(f),abnormal)
    | ~ mode(and1(h2(f)),abnormal) ) ).

cnf(diagnosis_or1_or1h2,negated_conjecture,
    ( ~ mode(or1(f),abnormal)
    | ~ mode(or1(h2(f)),abnormal) ) ).

cnf(refute_0_0,plain,
    ( ~ value(out(n1,or1(h2(f))),V1)
    | ~ value(out(n1,or1(h2(f))),n1)
    | equal_value(V1,n1) ),
    inference(subst,[],[unique_value:[bind(P,$fot(out(n1,or1(h2(f))))),bind(V2,$fot(n1))]]) ).

cnf(refute_0_1,plain,
    ( ~ type(f,fulladder)
    | type(h2(f),halfadder) ),
    inference(subst,[],[fulladder_halfadder2:[bind(X,$fot(f))]]) ).

cnf(refute_0_2,plain,
    type(h2(f),halfadder),
    inference(resolve,[$cnf( type(f,fulladder) )],[f_isa_fulladder,refute_0_1]) ).

cnf(refute_0_3,plain,
    ( ~ type(h2(f),halfadder)
    | connection(out(n1,or1(h2(f))),in(n1,and1(h2(f)))) ),
    inference(subst,[],[halfadder_connection_out1or1_in1_and1:[bind(X,$fot(h2(f)))]]) ).

cnf(refute_0_4,plain,
    connection(out(n1,or1(h2(f))),in(n1,and1(h2(f)))),
    inference(resolve,[$cnf( type(h2(f),halfadder) )],[refute_0_2,refute_0_3]) ).

cnf(refute_0_5,plain,
    ( ~ connection(out(n1,or1(h2(f))),in(n1,and1(h2(f))))
    | ~ value(in(n1,and1(h2(f))),X_77)
    | value(out(n1,or1(h2(f))),X_77) ),
    inference(subst,[],[value_propagation2:[bind(P1,$fot(out(n1,or1(h2(f))))),bind(P2,$fot(in(n1,and1(h2(f))))),bind(V,$fot(X_77))]]) ).

cnf(refute_0_6,plain,
    ( ~ value(in(n1,and1(h2(f))),X_77)
    | value(out(n1,or1(h2(f))),X_77) ),
    inference(resolve,[$cnf( connection(out(n1,or1(h2(f))),in(n1,and1(h2(f)))) )],[refute_0_4,refute_0_5]) ).

cnf(refute_0_7,plain,
    ( ~ value(in(n1,and1(h2(f))),n1)
    | value(out(n1,or1(h2(f))),n1) ),
    inference(subst,[],[refute_0_6:[bind(X_77,$fot(n1))]]) ).

cnf(refute_0_8,plain,
    ( ~ type(h2(f),halfadder)
    | type(and1(h2(f)),and) ),
    inference(subst,[],[halfadder_and1:[bind(X,$fot(h2(f)))]]) ).

cnf(refute_0_9,plain,
    type(and1(h2(f)),and),
    inference(resolve,[$cnf( type(h2(f),halfadder) )],[refute_0_2,refute_0_8]) ).

cnf(refute_0_10,plain,
    ( ~ type(and1(h2(f)),and)
    | mode(and1(h2(f)),abnormal)
    | mode(and1(h2(f)),ok) ),
    inference(subst,[],[ok_or_abnormal:[bind(Any,$fot(and)),bind(K,$fot(and1(h2(f))))]]) ).

cnf(refute_0_11,plain,
    ( mode(and1(h2(f)),abnormal)
    | mode(and1(h2(f)),ok) ),
    inference(resolve,[$cnf( type(and1(h2(f)),and) )],[refute_0_9,refute_0_10]) ).

cnf(refute_0_12,plain,
    ( ~ type(h2(f),halfadder)
    | connection(out(s,h2(f)),out(n1,and1(h2(f)))) ),
    inference(subst,[],[halfadder_connection_outs_out1and1:[bind(X,$fot(h2(f)))]]) ).

cnf(refute_0_13,plain,
    connection(out(s,h2(f)),out(n1,and1(h2(f)))),
    inference(resolve,[$cnf( type(h2(f),halfadder) )],[refute_0_2,refute_0_12]) ).

cnf(refute_0_14,plain,
    ( ~ connection(out(s,h2(f)),P2)
    | ~ value(out(s,h2(f)),n1)
    | value(P2,n1) ),
    inference(subst,[],[value_propagation1:[bind(P1,$fot(out(s,h2(f)))),bind(V,$fot(n1))]]) ).

cnf(refute_0_15,plain,
    ( ~ type(f,fulladder)
    | connection(out(s,f),out(s,h2(f))) ),
    inference(subst,[],[fulladder_connection_outs_outsh2:[bind(X,$fot(f))]]) ).

cnf(refute_0_16,plain,
    connection(out(s,f),out(s,h2(f))),
    inference(resolve,[$cnf( type(f,fulladder) )],[f_isa_fulladder,refute_0_15]) ).

cnf(refute_0_17,plain,
    ( ~ connection(out(s,f),X_30)
    | ~ value(out(s,f),n1)
    | value(X_30,n1) ),
    inference(subst,[],[value_propagation1:[bind(P1,$fot(out(s,f))),bind(P2,$fot(X_30)),bind(V,$fot(n1))]]) ).

cnf(refute_0_18,plain,
    ( ~ connection(out(s,f),X_30)
    | value(X_30,n1) ),
    inference(resolve,[$cnf( value(out(s,f),n1) )],[outs_1,refute_0_17]) ).

cnf(refute_0_19,plain,
    ( ~ connection(out(s,f),out(s,h2(f)))
    | value(out(s,h2(f)),n1) ),
    inference(subst,[],[refute_0_18:[bind(X_30,$fot(out(s,h2(f))))]]) ).

cnf(refute_0_20,plain,
    value(out(s,h2(f)),n1),
    inference(resolve,[$cnf( connection(out(s,f),out(s,h2(f))) )],[refute_0_16,refute_0_19]) ).

cnf(refute_0_21,plain,
    ( ~ connection(out(s,h2(f)),P2)
    | value(P2,n1) ),
    inference(resolve,[$cnf( value(out(s,h2(f)),n1) )],[refute_0_20,refute_0_14]) ).

cnf(refute_0_22,plain,
    ( ~ connection(out(s,h2(f)),out(n1,and1(h2(f))))
    | value(out(n1,and1(h2(f))),n1) ),
    inference(subst,[],[refute_0_21:[bind(P2,$fot(out(n1,and1(h2(f)))))]]) ).

cnf(refute_0_23,plain,
    value(out(n1,and1(h2(f))),n1),
    inference(resolve,[$cnf( connection(out(s,h2(f)),out(n1,and1(h2(f)))) )],[refute_0_13,refute_0_22]) ).

cnf(refute_0_24,plain,
    ( ~ mode(and1(h2(f)),ok)
    | ~ type(and1(h2(f)),and)
    | ~ value(out(n1,and1(h2(f))),n1)
    | value(in(n1,and1(h2(f))),n1) ),
    inference(subst,[],[and_1_1x:[bind(K,$fot(and1(h2(f))))]]) ).

cnf(refute_0_25,plain,
    ( ~ mode(and1(h2(f)),ok)
    | ~ type(and1(h2(f)),and)
    | value(in(n1,and1(h2(f))),n1) ),
    inference(resolve,[$cnf( value(out(n1,and1(h2(f))),n1) )],[refute_0_23,refute_0_24]) ).

cnf(refute_0_26,plain,
    ( ~ mode(and1(h2(f)),ok)
    | value(in(n1,and1(h2(f))),n1) ),
    inference(resolve,[$cnf( type(and1(h2(f)),and) )],[refute_0_9,refute_0_25]) ).

cnf(refute_0_27,plain,
    ( mode(and1(h2(f)),abnormal)
    | value(in(n1,and1(h2(f))),n1) ),
    inference(resolve,[$cnf( mode(and1(h2(f)),ok) )],[refute_0_11,refute_0_26]) ).

cnf(refute_0_28,plain,
    ( mode(and1(h2(f)),abnormal)
    | value(out(n1,or1(h2(f))),n1) ),
    inference(resolve,[$cnf( value(in(n1,and1(h2(f))),n1) )],[refute_0_27,refute_0_7]) ).

cnf(refute_0_29,plain,
    ( ~ value(out(n1,or1(h2(f))),V1)
    | equal_value(V1,n1)
    | mode(and1(h2(f)),abnormal) ),
    inference(resolve,[$cnf( value(out(n1,or1(h2(f))),n1) )],[refute_0_28,refute_0_0]) ).

cnf(refute_0_30,plain,
    ( ~ value(out(n1,or1(h2(f))),n0)
    | equal_value(n0,n1)
    | mode(and1(h2(f)),abnormal) ),
    inference(subst,[],[refute_0_29:[bind(V1,$fot(n0))]]) ).

cnf(refute_0_31,plain,
    ( ~ type(h2(f),halfadder)
    | type(or1(h2(f)),or) ),
    inference(subst,[],[halfadder_or1:[bind(X,$fot(h2(f)))]]) ).

cnf(refute_0_32,plain,
    type(or1(h2(f)),or),
    inference(resolve,[$cnf( type(h2(f),halfadder) )],[refute_0_2,refute_0_31]) ).

cnf(refute_0_33,plain,
    ( ~ type(or1(h2(f)),or)
    | mode(or1(h2(f)),abnormal)
    | mode(or1(h2(f)),ok) ),
    inference(subst,[],[ok_or_abnormal:[bind(Any,$fot(or)),bind(K,$fot(or1(h2(f))))]]) ).

cnf(refute_0_34,plain,
    ( mode(or1(h2(f)),abnormal)
    | mode(or1(h2(f)),ok) ),
    inference(resolve,[$cnf( type(or1(h2(f)),or) )],[refute_0_32,refute_0_33]) ).

cnf(refute_0_35,plain,
    ( ~ type(h2(f),halfadder)
    | connection(in(n2,h2(f)),in(n2,or1(h2(f)))) ),
    inference(subst,[],[halfadder_connection_in2_in2or1:[bind(X,$fot(h2(f)))]]) ).

cnf(refute_0_36,plain,
    connection(in(n2,h2(f)),in(n2,or1(h2(f)))),
    inference(resolve,[$cnf( type(h2(f),halfadder) )],[refute_0_2,refute_0_35]) ).

cnf(refute_0_37,plain,
    ( ~ connection(in(n2,h2(f)),in(n2,or1(h2(f))))
    | ~ value(in(n2,h2(f)),X_31)
    | value(in(n2,or1(h2(f))),X_31) ),
    inference(subst,[],[value_propagation1:[bind(P1,$fot(in(n2,h2(f)))),bind(P2,$fot(in(n2,or1(h2(f))))),bind(V,$fot(X_31))]]) ).

cnf(refute_0_38,plain,
    ( ~ value(in(n2,h2(f)),X_31)
    | value(in(n2,or1(h2(f))),X_31) ),
    inference(resolve,[$cnf( connection(in(n2,h2(f)),in(n2,or1(h2(f)))) )],[refute_0_36,refute_0_37]) ).

cnf(refute_0_39,plain,
    ( ~ value(in(n2,h2(f)),n0)
    | value(in(n2,or1(h2(f))),n0) ),
    inference(subst,[],[refute_0_38:[bind(X_31,$fot(n0))]]) ).

cnf(refute_0_40,plain,
    ( ~ type(f,fulladder)
    | connection(out(s,h1(f)),in(n2,h2(f))) ),
    inference(subst,[],[fulladder_connection_outsh1_in2h2:[bind(X,$fot(f))]]) ).

cnf(refute_0_41,plain,
    connection(out(s,h1(f)),in(n2,h2(f))),
    inference(resolve,[$cnf( type(f,fulladder) )],[f_isa_fulladder,refute_0_40]) ).

cnf(refute_0_42,plain,
    ( ~ connection(out(s,h1(f)),in(n2,h2(f)))
    | ~ value(out(s,h1(f)),X_31)
    | value(in(n2,h2(f)),X_31) ),
    inference(subst,[],[value_propagation1:[bind(P1,$fot(out(s,h1(f)))),bind(P2,$fot(in(n2,h2(f)))),bind(V,$fot(X_31))]]) ).

cnf(refute_0_43,plain,
    ( ~ value(out(s,h1(f)),X_31)
    | value(in(n2,h2(f)),X_31) ),
    inference(resolve,[$cnf( connection(out(s,h1(f)),in(n2,h2(f))) )],[refute_0_41,refute_0_42]) ).

cnf(refute_0_44,plain,
    ( ~ value(out(s,h1(f)),n0)
    | value(in(n2,h2(f)),n0) ),
    inference(subst,[],[refute_0_43:[bind(X_31,$fot(n0))]]) ).

cnf(refute_0_45,plain,
    ( ~ type(f,fulladder)
    | type(h1(f),halfadder) ),
    inference(subst,[],[fulladder_halfadder1:[bind(X,$fot(f))]]) ).

cnf(refute_0_46,plain,
    type(h1(f),halfadder),
    inference(resolve,[$cnf( type(f,fulladder) )],[f_isa_fulladder,refute_0_45]) ).

cnf(refute_0_47,plain,
    ( ~ type(h1(f),halfadder)
    | connection(out(s,h1(f)),out(n1,and1(h1(f)))) ),
    inference(subst,[],[halfadder_connection_outs_out1and1:[bind(X,$fot(h1(f)))]]) ).

cnf(refute_0_48,plain,
    connection(out(s,h1(f)),out(n1,and1(h1(f)))),
    inference(resolve,[$cnf( type(h1(f),halfadder) )],[refute_0_46,refute_0_47]) ).

cnf(refute_0_49,plain,
    ( ~ connection(out(s,h1(f)),out(n1,and1(h1(f))))
    | ~ value(out(n1,and1(h1(f))),X_77)
    | value(out(s,h1(f)),X_77) ),
    inference(subst,[],[value_propagation2:[bind(P1,$fot(out(s,h1(f)))),bind(P2,$fot(out(n1,and1(h1(f))))),bind(V,$fot(X_77))]]) ).

cnf(refute_0_50,plain,
    ( ~ value(out(n1,and1(h1(f))),X_77)
    | value(out(s,h1(f)),X_77) ),
    inference(resolve,[$cnf( connection(out(s,h1(f)),out(n1,and1(h1(f)))) )],[refute_0_48,refute_0_49]) ).

cnf(refute_0_51,plain,
    ( ~ value(out(n1,and1(h1(f))),n0)
    | value(out(s,h1(f)),n0) ),
    inference(subst,[],[refute_0_50:[bind(X_77,$fot(n0))]]) ).

cnf(refute_0_52,plain,
    ( ~ type(h1(f),halfadder)
    | type(and1(h1(f)),and) ),
    inference(subst,[],[halfadder_and1:[bind(X,$fot(h1(f)))]]) ).

cnf(refute_0_53,plain,
    type(and1(h1(f)),and),
    inference(resolve,[$cnf( type(h1(f),halfadder) )],[refute_0_46,refute_0_52]) ).

cnf(refute_0_54,plain,
    ( ~ type(and1(h1(f)),and)
    | mode(and1(h1(f)),abnormal)
    | mode(and1(h1(f)),ok) ),
    inference(subst,[],[ok_or_abnormal:[bind(Any,$fot(and)),bind(K,$fot(and1(h1(f))))]]) ).

cnf(refute_0_55,plain,
    ( mode(and1(h1(f)),abnormal)
    | mode(and1(h1(f)),ok) ),
    inference(resolve,[$cnf( type(and1(h1(f)),and) )],[refute_0_53,refute_0_54]) ).

cnf(refute_0_56,plain,
    ( ~ mode(and1(h1(f)),ok)
    | ~ type(and1(h1(f)),and)
    | ~ value(in(n2,and1(h1(f))),n0)
    | value(out(n1,and1(h1(f))),n0) ),
    inference(subst,[],[and_0x_0:[bind(Any,$fot(n2)),bind(K,$fot(and1(h1(f))))]]) ).

cnf(refute_0_57,plain,
    ( ~ type(h1(f),halfadder)
    | connection(out(n1,not1(h1(f))),in(n2,and1(h1(f)))) ),
    inference(subst,[],[halfadder_connection_out1not1_in2and1:[bind(X,$fot(h1(f)))]]) ).

cnf(refute_0_58,plain,
    connection(out(n1,not1(h1(f))),in(n2,and1(h1(f)))),
    inference(resolve,[$cnf( type(h1(f),halfadder) )],[refute_0_46,refute_0_57]) ).

cnf(refute_0_59,plain,
    ( ~ connection(out(n1,not1(h1(f))),in(n2,and1(h1(f))))
    | ~ value(out(n1,not1(h1(f))),X_31)
    | value(in(n2,and1(h1(f))),X_31) ),
    inference(subst,[],[value_propagation1:[bind(P1,$fot(out(n1,not1(h1(f))))),bind(P2,$fot(in(n2,and1(h1(f))))),bind(V,$fot(X_31))]]) ).

cnf(refute_0_60,plain,
    ( ~ value(out(n1,not1(h1(f))),X_31)
    | value(in(n2,and1(h1(f))),X_31) ),
    inference(resolve,[$cnf( connection(out(n1,not1(h1(f))),in(n2,and1(h1(f)))) )],[refute_0_58,refute_0_59]) ).

cnf(refute_0_61,plain,
    ( ~ value(out(n1,not1(h1(f))),n0)
    | value(in(n2,and1(h1(f))),n0) ),
    inference(subst,[],[refute_0_60:[bind(X_31,$fot(n0))]]) ).

cnf(refute_0_62,plain,
    ( ~ type(h1(f),halfadder)
    | type(not1(h1(f)),not) ),
    inference(subst,[],[halfadder_not1:[bind(X,$fot(h1(f)))]]) ).

cnf(refute_0_63,plain,
    type(not1(h1(f)),not),
    inference(resolve,[$cnf( type(h1(f),halfadder) )],[refute_0_46,refute_0_62]) ).

cnf(refute_0_64,plain,
    ( ~ type(not1(h1(f)),not)
    | mode(not1(h1(f)),abnormal)
    | mode(not1(h1(f)),ok) ),
    inference(subst,[],[ok_or_abnormal:[bind(Any,$fot(not)),bind(K,$fot(not1(h1(f))))]]) ).

cnf(refute_0_65,plain,
    ( mode(not1(h1(f)),abnormal)
    | mode(not1(h1(f)),ok) ),
    inference(resolve,[$cnf( type(not1(h1(f)),not) )],[refute_0_63,refute_0_64]) ).

cnf(refute_0_66,plain,
    ( ~ mode(not1(h1(f)),ok)
    | ~ type(not1(h1(f)),not)
    | ~ value(in(n1,not1(h1(f))),n1)
    | value(out(n1,not1(h1(f))),n0) ),
    inference(subst,[],[not_1_0_fw:[bind(K,$fot(not1(h1(f))))]]) ).

cnf(refute_0_67,plain,
    ( ~ type(h1(f),halfadder)
    | connection(out(n1,and2(h1(f))),in(n1,not1(h1(f)))) ),
    inference(subst,[],[halfadder_connection_out1and2_in1not1:[bind(X,$fot(h1(f)))]]) ).

cnf(refute_0_68,plain,
    connection(out(n1,and2(h1(f))),in(n1,not1(h1(f)))),
    inference(resolve,[$cnf( type(h1(f),halfadder) )],[refute_0_46,refute_0_67]) ).

cnf(refute_0_69,plain,
    ( ~ connection(out(n1,and2(h1(f))),in(n1,not1(h1(f))))
    | ~ value(out(n1,and2(h1(f))),X_31)
    | value(in(n1,not1(h1(f))),X_31) ),
    inference(subst,[],[value_propagation1:[bind(P1,$fot(out(n1,and2(h1(f))))),bind(P2,$fot(in(n1,not1(h1(f))))),bind(V,$fot(X_31))]]) ).

cnf(refute_0_70,plain,
    ( ~ value(out(n1,and2(h1(f))),X_31)
    | value(in(n1,not1(h1(f))),X_31) ),
    inference(resolve,[$cnf( connection(out(n1,and2(h1(f))),in(n1,not1(h1(f)))) )],[refute_0_68,refute_0_69]) ).

cnf(refute_0_71,plain,
    ( ~ value(out(n1,and2(h1(f))),n1)
    | value(in(n1,not1(h1(f))),n1) ),
    inference(subst,[],[refute_0_70:[bind(X_31,$fot(n1))]]) ).

cnf(refute_0_72,plain,
    ( ~ type(h1(f),halfadder)
    | connection(in(n2,h1(f)),in(n2,and2(h1(f)))) ),
    inference(subst,[],[halfadder_connection_in2_in2and2:[bind(X,$fot(h1(f)))]]) ).

cnf(refute_0_73,plain,
    connection(in(n2,h1(f)),in(n2,and2(h1(f)))),
    inference(resolve,[$cnf( type(h1(f),halfadder) )],[refute_0_46,refute_0_72]) ).

cnf(refute_0_74,plain,
    ( ~ connection(in(n2,h1(f)),P2)
    | ~ value(in(n2,h1(f)),n1)
    | value(P2,n1) ),
    inference(subst,[],[value_propagation1:[bind(P1,$fot(in(n2,h1(f)))),bind(V,$fot(n1))]]) ).

cnf(refute_0_75,plain,
    ( ~ type(f,fulladder)
    | connection(in(c,f),in(n2,h1(f))) ),
    inference(subst,[],[fulladder_connection_inc_in2h1:[bind(X,$fot(f))]]) ).

cnf(refute_0_76,plain,
    connection(in(c,f),in(n2,h1(f))),
    inference(resolve,[$cnf( type(f,fulladder) )],[f_isa_fulladder,refute_0_75]) ).

cnf(refute_0_77,plain,
    ( ~ connection(in(c,f),X_30)
    | ~ value(in(c,f),n1)
    | value(X_30,n1) ),
    inference(subst,[],[value_propagation1:[bind(P1,$fot(in(c,f))),bind(P2,$fot(X_30)),bind(V,$fot(n1))]]) ).

cnf(refute_0_78,plain,
    ( ~ connection(in(c,f),X_30)
    | value(X_30,n1) ),
    inference(resolve,[$cnf( value(in(c,f),n1) )],[inc_1,refute_0_77]) ).

cnf(refute_0_79,plain,
    ( ~ connection(in(c,f),in(n2,h1(f)))
    | value(in(n2,h1(f)),n1) ),
    inference(subst,[],[refute_0_78:[bind(X_30,$fot(in(n2,h1(f))))]]) ).

cnf(refute_0_80,plain,
    value(in(n2,h1(f)),n1),
    inference(resolve,[$cnf( connection(in(c,f),in(n2,h1(f))) )],[refute_0_76,refute_0_79]) ).

cnf(refute_0_81,plain,
    ( ~ connection(in(n2,h1(f)),P2)
    | value(P2,n1) ),
    inference(resolve,[$cnf( value(in(n2,h1(f)),n1) )],[refute_0_80,refute_0_74]) ).

cnf(refute_0_82,plain,
    ( ~ connection(in(n2,h1(f)),in(n2,and2(h1(f))))
    | value(in(n2,and2(h1(f))),n1) ),
    inference(subst,[],[refute_0_81:[bind(P2,$fot(in(n2,and2(h1(f)))))]]) ).

cnf(refute_0_83,plain,
    value(in(n2,and2(h1(f))),n1),
    inference(resolve,[$cnf( connection(in(n2,h1(f)),in(n2,and2(h1(f)))) )],[refute_0_73,refute_0_82]) ).

cnf(refute_0_84,plain,
    ( ~ mode(and2(h1(f)),ok)
    | ~ type(and2(h1(f)),and)
    | ~ value(in(n1,and2(h1(f))),n1)
    | ~ value(in(n2,and2(h1(f))),n1)
    | value(out(n1,and2(h1(f))),n1) ),
    inference(subst,[],[and_11_1:[bind(K,$fot(and2(h1(f))))]]) ).

cnf(refute_0_85,plain,
    ( ~ mode(and2(h1(f)),ok)
    | ~ type(and2(h1(f)),and)
    | ~ value(in(n1,and2(h1(f))),n1)
    | value(out(n1,and2(h1(f))),n1) ),
    inference(resolve,[$cnf( value(in(n2,and2(h1(f))),n1) )],[refute_0_83,refute_0_84]) ).

cnf(refute_0_86,plain,
    ( ~ type(h1(f),halfadder)
    | type(and2(h1(f)),and) ),
    inference(subst,[],[halfadder_and2:[bind(X,$fot(h1(f)))]]) ).

cnf(refute_0_87,plain,
    type(and2(h1(f)),and),
    inference(resolve,[$cnf( type(h1(f),halfadder) )],[refute_0_46,refute_0_86]) ).

cnf(refute_0_88,plain,
    ( ~ type(and2(h1(f)),and)
    | mode(and2(h1(f)),abnormal)
    | mode(and2(h1(f)),ok) ),
    inference(subst,[],[ok_or_abnormal:[bind(Any,$fot(and)),bind(K,$fot(and2(h1(f))))]]) ).

cnf(refute_0_89,plain,
    ( mode(and2(h1(f)),abnormal)
    | mode(and2(h1(f)),ok) ),
    inference(resolve,[$cnf( type(and2(h1(f)),and) )],[refute_0_87,refute_0_88]) ).

cnf(refute_0_90,plain,
    mode(and2(h1(f)),ok),
    inference(resolve,[$cnf( mode(and2(h1(f)),abnormal) )],[refute_0_89,diagnosis_and2h1]) ).

cnf(refute_0_91,plain,
    ( ~ type(and2(h1(f)),and)
    | ~ value(in(n1,and2(h1(f))),n1)
    | value(out(n1,and2(h1(f))),n1) ),
    inference(resolve,[$cnf( mode(and2(h1(f)),ok) )],[refute_0_90,refute_0_85]) ).

cnf(refute_0_92,plain,
    ( ~ value(in(n1,and2(h1(f))),n1)
    | value(out(n1,and2(h1(f))),n1) ),
    inference(resolve,[$cnf( type(and2(h1(f)),and) )],[refute_0_87,refute_0_91]) ).

cnf(refute_0_93,plain,
    ( ~ type(h1(f),halfadder)
    | connection(in(n1,h1(f)),in(n1,and2(h1(f)))) ),
    inference(subst,[],[halfadder_connection_in1_in1and2:[bind(X,$fot(h1(f)))]]) ).

cnf(refute_0_94,plain,
    connection(in(n1,h1(f)),in(n1,and2(h1(f)))),
    inference(resolve,[$cnf( type(h1(f),halfadder) )],[refute_0_46,refute_0_93]) ).

cnf(refute_0_95,plain,
    ( ~ connection(in(n1,h1(f)),P2)
    | ~ value(in(n1,h1(f)),n1)
    | value(P2,n1) ),
    inference(subst,[],[value_propagation1:[bind(P1,$fot(in(n1,h1(f)))),bind(V,$fot(n1))]]) ).

cnf(refute_0_96,plain,
    ( ~ type(f,fulladder)
    | connection(in(n2,f),in(n1,h1(f))) ),
    inference(subst,[],[fulladder_connection_in2_in1h1:[bind(X,$fot(f))]]) ).

cnf(refute_0_97,plain,
    connection(in(n2,f),in(n1,h1(f))),
    inference(resolve,[$cnf( type(f,fulladder) )],[f_isa_fulladder,refute_0_96]) ).

cnf(refute_0_98,plain,
    ( ~ connection(in(n2,f),X_30)
    | ~ value(in(n2,f),n1)
    | value(X_30,n1) ),
    inference(subst,[],[value_propagation1:[bind(P1,$fot(in(n2,f))),bind(P2,$fot(X_30)),bind(V,$fot(n1))]]) ).

cnf(refute_0_99,plain,
    ( ~ connection(in(n2,f),X_30)
    | value(X_30,n1) ),
    inference(resolve,[$cnf( value(in(n2,f),n1) )],[in2_0,refute_0_98]) ).

cnf(refute_0_100,plain,
    ( ~ connection(in(n2,f),in(n1,h1(f)))
    | value(in(n1,h1(f)),n1) ),
    inference(subst,[],[refute_0_99:[bind(X_30,$fot(in(n1,h1(f))))]]) ).

cnf(refute_0_101,plain,
    value(in(n1,h1(f)),n1),
    inference(resolve,[$cnf( connection(in(n2,f),in(n1,h1(f))) )],[refute_0_97,refute_0_100]) ).

cnf(refute_0_102,plain,
    ( ~ connection(in(n1,h1(f)),P2)
    | value(P2,n1) ),
    inference(resolve,[$cnf( value(in(n1,h1(f)),n1) )],[refute_0_101,refute_0_95]) ).

cnf(refute_0_103,plain,
    ( ~ connection(in(n1,h1(f)),in(n1,and2(h1(f))))
    | value(in(n1,and2(h1(f))),n1) ),
    inference(subst,[],[refute_0_102:[bind(P2,$fot(in(n1,and2(h1(f)))))]]) ).

cnf(refute_0_104,plain,
    value(in(n1,and2(h1(f))),n1),
    inference(resolve,[$cnf( connection(in(n1,h1(f)),in(n1,and2(h1(f)))) )],[refute_0_94,refute_0_103]) ).

cnf(refute_0_105,plain,
    value(out(n1,and2(h1(f))),n1),
    inference(resolve,[$cnf( value(in(n1,and2(h1(f))),n1) )],[refute_0_104,refute_0_92]) ).

cnf(refute_0_106,plain,
    value(in(n1,not1(h1(f))),n1),
    inference(resolve,[$cnf( value(out(n1,and2(h1(f))),n1) )],[refute_0_105,refute_0_71]) ).

cnf(refute_0_107,plain,
    ( ~ mode(not1(h1(f)),ok)
    | ~ type(not1(h1(f)),not)
    | value(out(n1,not1(h1(f))),n0) ),
    inference(resolve,[$cnf( value(in(n1,not1(h1(f))),n1) )],[refute_0_106,refute_0_66]) ).

cnf(refute_0_108,plain,
    ( ~ mode(not1(h1(f)),ok)
    | value(out(n1,not1(h1(f))),n0) ),
    inference(resolve,[$cnf( type(not1(h1(f)),not) )],[refute_0_63,refute_0_107]) ).

cnf(refute_0_109,plain,
    ( mode(not1(h1(f)),abnormal)
    | value(out(n1,not1(h1(f))),n0) ),
    inference(resolve,[$cnf( mode(not1(h1(f)),ok) )],[refute_0_65,refute_0_108]) ).

cnf(refute_0_110,plain,
    ( mode(not1(h1(f)),abnormal)
    | value(in(n2,and1(h1(f))),n0) ),
    inference(resolve,[$cnf( value(out(n1,not1(h1(f))),n0) )],[refute_0_109,refute_0_61]) ).

cnf(refute_0_111,plain,
    ( ~ mode(and1(h1(f)),ok)
    | ~ type(and1(h1(f)),and)
    | mode(not1(h1(f)),abnormal)
    | value(out(n1,and1(h1(f))),n0) ),
    inference(resolve,[$cnf( value(in(n2,and1(h1(f))),n0) )],[refute_0_110,refute_0_56]) ).

cnf(refute_0_112,plain,
    ( ~ mode(and1(h1(f)),ok)
    | mode(not1(h1(f)),abnormal)
    | value(out(n1,and1(h1(f))),n0) ),
    inference(resolve,[$cnf( type(and1(h1(f)),and) )],[refute_0_53,refute_0_111]) ).

cnf(refute_0_113,plain,
    ( mode(and1(h1(f)),abnormal)
    | mode(not1(h1(f)),abnormal)
    | value(out(n1,and1(h1(f))),n0) ),
    inference(resolve,[$cnf( mode(and1(h1(f)),ok) )],[refute_0_55,refute_0_112]) ).

cnf(refute_0_114,plain,
    ( mode(and1(h1(f)),abnormal)
    | mode(not1(h1(f)),abnormal)
    | value(out(s,h1(f)),n0) ),
    inference(resolve,[$cnf( value(out(n1,and1(h1(f))),n0) )],[refute_0_113,refute_0_51]) ).

cnf(refute_0_115,plain,
    ( mode(and1(h1(f)),abnormal)
    | mode(not1(h1(f)),abnormal)
    | value(in(n2,h2(f)),n0) ),
    inference(resolve,[$cnf( value(out(s,h1(f)),n0) )],[refute_0_114,refute_0_44]) ).

cnf(refute_0_116,plain,
    ( mode(and1(h1(f)),abnormal)
    | mode(not1(h1(f)),abnormal)
    | value(in(n2,or1(h2(f))),n0) ),
    inference(resolve,[$cnf( value(in(n2,h2(f)),n0) )],[refute_0_115,refute_0_39]) ).

cnf(refute_0_117,plain,
    ( ~ mode(or1(h2(f)),ok)
    | ~ type(or1(h2(f)),or)
    | ~ value(in(n1,or1(h2(f))),n0)
    | ~ value(in(n2,or1(h2(f))),n0)
    | value(out(n1,or1(h2(f))),n0) ),
    inference(subst,[],[or_00_0:[bind(K,$fot(or1(h2(f))))]]) ).

cnf(refute_0_118,plain,
    ( ~ mode(or1(h2(f)),ok)
    | ~ type(or1(h2(f)),or)
    | ~ value(in(n1,or1(h2(f))),n0)
    | mode(and1(h1(f)),abnormal)
    | mode(not1(h1(f)),abnormal)
    | value(out(n1,or1(h2(f))),n0) ),
    inference(resolve,[$cnf( value(in(n2,or1(h2(f))),n0) )],[refute_0_116,refute_0_117]) ).

cnf(refute_0_119,plain,
    ( ~ mode(or1(h2(f)),ok)
    | ~ value(in(n1,or1(h2(f))),n0)
    | mode(and1(h1(f)),abnormal)
    | mode(not1(h1(f)),abnormal)
    | value(out(n1,or1(h2(f))),n0) ),
    inference(resolve,[$cnf( type(or1(h2(f)),or) )],[refute_0_32,refute_0_118]) ).

cnf(refute_0_120,plain,
    ( ~ type(h2(f),halfadder)
    | connection(in(n1,h2(f)),in(n1,or1(h2(f)))) ),
    inference(subst,[],[halfadder_connection_in1_in1or1:[bind(X,$fot(h2(f)))]]) ).

cnf(refute_0_121,plain,
    connection(in(n1,h2(f)),in(n1,or1(h2(f)))),
    inference(resolve,[$cnf( type(h2(f),halfadder) )],[refute_0_2,refute_0_120]) ).

cnf(refute_0_122,plain,
    ( ~ connection(in(n1,h2(f)),P2)
    | ~ value(in(n1,h2(f)),n0)
    | value(P2,n0) ),
    inference(subst,[],[value_propagation1:[bind(P1,$fot(in(n1,h2(f)))),bind(V,$fot(n0))]]) ).

cnf(refute_0_123,plain,
    ( ~ type(f,fulladder)
    | connection(in(n1,f),in(n1,h2(f))) ),
    inference(subst,[],[fulladder_connection_in1_in1h2:[bind(X,$fot(f))]]) ).

cnf(refute_0_124,plain,
    connection(in(n1,f),in(n1,h2(f))),
    inference(resolve,[$cnf( type(f,fulladder) )],[f_isa_fulladder,refute_0_123]) ).

cnf(refute_0_125,plain,
    ( ~ connection(in(n1,f),X_30)
    | ~ value(in(n1,f),n0)
    | value(X_30,n0) ),
    inference(subst,[],[value_propagation1:[bind(P1,$fot(in(n1,f))),bind(P2,$fot(X_30)),bind(V,$fot(n0))]]) ).

cnf(refute_0_126,plain,
    ( ~ connection(in(n1,f),X_30)
    | value(X_30,n0) ),
    inference(resolve,[$cnf( value(in(n1,f),n0) )],[in1_1,refute_0_125]) ).

cnf(refute_0_127,plain,
    ( ~ connection(in(n1,f),in(n1,h2(f)))
    | value(in(n1,h2(f)),n0) ),
    inference(subst,[],[refute_0_126:[bind(X_30,$fot(in(n1,h2(f))))]]) ).

cnf(refute_0_128,plain,
    value(in(n1,h2(f)),n0),
    inference(resolve,[$cnf( connection(in(n1,f),in(n1,h2(f))) )],[refute_0_124,refute_0_127]) ).

cnf(refute_0_129,plain,
    ( ~ connection(in(n1,h2(f)),P2)
    | value(P2,n0) ),
    inference(resolve,[$cnf( value(in(n1,h2(f)),n0) )],[refute_0_128,refute_0_122]) ).

cnf(refute_0_130,plain,
    ( ~ connection(in(n1,h2(f)),in(n1,or1(h2(f))))
    | value(in(n1,or1(h2(f))),n0) ),
    inference(subst,[],[refute_0_129:[bind(P2,$fot(in(n1,or1(h2(f)))))]]) ).

cnf(refute_0_131,plain,
    value(in(n1,or1(h2(f))),n0),
    inference(resolve,[$cnf( connection(in(n1,h2(f)),in(n1,or1(h2(f)))) )],[refute_0_121,refute_0_130]) ).

cnf(refute_0_132,plain,
    ( ~ mode(or1(h2(f)),ok)
    | mode(and1(h1(f)),abnormal)
    | mode(not1(h1(f)),abnormal)
    | value(out(n1,or1(h2(f))),n0) ),
    inference(resolve,[$cnf( value(in(n1,or1(h2(f))),n0) )],[refute_0_131,refute_0_119]) ).

cnf(refute_0_133,plain,
    ( mode(and1(h1(f)),abnormal)
    | mode(not1(h1(f)),abnormal)
    | mode(or1(h2(f)),abnormal)
    | value(out(n1,or1(h2(f))),n0) ),
    inference(resolve,[$cnf( mode(or1(h2(f)),ok) )],[refute_0_34,refute_0_132]) ).

cnf(refute_0_134,plain,
    ( equal_value(n0,n1)
    | mode(and1(h1(f)),abnormal)
    | mode(and1(h2(f)),abnormal)
    | mode(not1(h1(f)),abnormal)
    | mode(or1(h2(f)),abnormal) ),
    inference(resolve,[$cnf( value(out(n1,or1(h2(f))),n0) )],[refute_0_133,refute_0_30]) ).

cnf(refute_0_135,plain,
    ( mode(and1(h1(f)),abnormal)
    | mode(and1(h2(f)),abnormal)
    | mode(not1(h1(f)),abnormal)
    | mode(or1(h2(f)),abnormal) ),
    inference(resolve,[$cnf( equal_value(n0,n1) )],[refute_0_134,equal_value1]) ).

cnf(refute_0_136,plain,
    ( ~ mode(or1(f),abnormal)
    | mode(and1(h1(f)),abnormal)
    | mode(and1(h2(f)),abnormal)
    | mode(not1(h1(f)),abnormal) ),
    inference(resolve,[$cnf( mode(or1(h2(f)),abnormal) )],[refute_0_135,diagnosis_or1_or1h2]) ).

cnf(refute_0_137,plain,
    ( ~ value(out(n1,and2(h1(f))),V2)
    | ~ value(out(n1,and2(h1(f))),n0)
    | equal_value(n0,V2) ),
    inference(subst,[],[unique_value:[bind(P,$fot(out(n1,and2(h1(f))))),bind(V1,$fot(n0))]]) ).

cnf(refute_0_138,plain,
    ( ~ type(h1(f),halfadder)
    | connection(out(c,h1(f)),out(n1,and2(h1(f)))) ),
    inference(subst,[],[halfadder_connection_outc_out1and2:[bind(X,$fot(h1(f)))]]) ).

cnf(refute_0_139,plain,
    connection(out(c,h1(f)),out(n1,and2(h1(f)))),
    inference(resolve,[$cnf( type(h1(f),halfadder) )],[refute_0_46,refute_0_138]) ).

cnf(refute_0_140,plain,
    ( ~ connection(out(c,h1(f)),out(n1,and2(h1(f))))
    | ~ value(out(c,h1(f)),X_31)
    | value(out(n1,and2(h1(f))),X_31) ),
    inference(subst,[],[value_propagation1:[bind(P1,$fot(out(c,h1(f)))),bind(P2,$fot(out(n1,and2(h1(f))))),bind(V,$fot(X_31))]]) ).

cnf(refute_0_141,plain,
    ( ~ value(out(c,h1(f)),X_31)
    | value(out(n1,and2(h1(f))),X_31) ),
    inference(resolve,[$cnf( connection(out(c,h1(f)),out(n1,and2(h1(f)))) )],[refute_0_139,refute_0_140]) ).

cnf(refute_0_142,plain,
    ( ~ value(out(c,h1(f)),n0)
    | value(out(n1,and2(h1(f))),n0) ),
    inference(subst,[],[refute_0_141:[bind(X_31,$fot(n0))]]) ).

cnf(refute_0_143,plain,
    ( ~ type(f,fulladder)
    | connection(out(c,h1(f)),in(n2,or1(f))) ),
    inference(subst,[],[fulladder_connection_outch1_in2or1:[bind(X,$fot(f))]]) ).

cnf(refute_0_144,plain,
    connection(out(c,h1(f)),in(n2,or1(f))),
    inference(resolve,[$cnf( type(f,fulladder) )],[f_isa_fulladder,refute_0_143]) ).

cnf(refute_0_145,plain,
    ( ~ connection(out(c,h1(f)),in(n2,or1(f)))
    | ~ value(in(n2,or1(f)),X_77)
    | value(out(c,h1(f)),X_77) ),
    inference(subst,[],[value_propagation2:[bind(P1,$fot(out(c,h1(f)))),bind(P2,$fot(in(n2,or1(f)))),bind(V,$fot(X_77))]]) ).

cnf(refute_0_146,plain,
    ( ~ value(in(n2,or1(f)),X_77)
    | value(out(c,h1(f)),X_77) ),
    inference(resolve,[$cnf( connection(out(c,h1(f)),in(n2,or1(f))) )],[refute_0_144,refute_0_145]) ).

cnf(refute_0_147,plain,
    ( ~ value(in(n2,or1(f)),n0)
    | value(out(c,h1(f)),n0) ),
    inference(subst,[],[refute_0_146:[bind(X_77,$fot(n0))]]) ).

cnf(refute_0_148,plain,
    ( ~ type(f,fulladder)
    | type(or1(f),or) ),
    inference(subst,[],[fulladder_or1:[bind(X,$fot(f))]]) ).

cnf(refute_0_149,plain,
    type(or1(f),or),
    inference(resolve,[$cnf( type(f,fulladder) )],[f_isa_fulladder,refute_0_148]) ).

cnf(refute_0_150,plain,
    ( ~ type(or1(f),or)
    | mode(or1(f),abnormal)
    | mode(or1(f),ok) ),
    inference(subst,[],[ok_or_abnormal:[bind(Any,$fot(or)),bind(K,$fot(or1(f)))]]) ).

cnf(refute_0_151,plain,
    ( mode(or1(f),abnormal)
    | mode(or1(f),ok) ),
    inference(resolve,[$cnf( type(or1(f),or) )],[refute_0_149,refute_0_150]) ).

cnf(refute_0_152,plain,
    ( ~ type(f,fulladder)
    | connection(out(c,f),out(n1,or1(f))) ),
    inference(subst,[],[fulladder_connection_outc_out1or1:[bind(X,$fot(f))]]) ).

cnf(refute_0_153,plain,
    connection(out(c,f),out(n1,or1(f))),
    inference(resolve,[$cnf( type(f,fulladder) )],[f_isa_fulladder,refute_0_152]) ).

cnf(refute_0_154,plain,
    ( ~ connection(out(c,f),X_30)
    | ~ value(out(c,f),n0)
    | value(X_30,n0) ),
    inference(subst,[],[value_propagation1:[bind(P1,$fot(out(c,f))),bind(P2,$fot(X_30)),bind(V,$fot(n0))]]) ).

cnf(refute_0_155,plain,
    ( ~ connection(out(c,f),X_30)
    | value(X_30,n0) ),
    inference(resolve,[$cnf( value(out(c,f),n0) )],[outc_0,refute_0_154]) ).

cnf(refute_0_156,plain,
    ( ~ connection(out(c,f),out(n1,or1(f)))
    | value(out(n1,or1(f)),n0) ),
    inference(subst,[],[refute_0_155:[bind(X_30,$fot(out(n1,or1(f))))]]) ).

cnf(refute_0_157,plain,
    value(out(n1,or1(f)),n0),
    inference(resolve,[$cnf( connection(out(c,f),out(n1,or1(f))) )],[refute_0_153,refute_0_156]) ).

cnf(refute_0_158,plain,
    ( ~ mode(or1(f),ok)
    | ~ type(or1(f),or)
    | ~ value(out(n1,or1(f)),n0)
    | value(in(n2,or1(f)),n0) ),
    inference(subst,[],[or_0_01:[bind(K,$fot(or1(f)))]]) ).

cnf(refute_0_159,plain,
    ( ~ mode(or1(f),ok)
    | ~ type(or1(f),or)
    | value(in(n2,or1(f)),n0) ),
    inference(resolve,[$cnf( value(out(n1,or1(f)),n0) )],[refute_0_157,refute_0_158]) ).

cnf(refute_0_160,plain,
    ( ~ mode(or1(f),ok)
    | value(in(n2,or1(f)),n0) ),
    inference(resolve,[$cnf( type(or1(f),or) )],[refute_0_149,refute_0_159]) ).

cnf(refute_0_161,plain,
    ( mode(or1(f),abnormal)
    | value(in(n2,or1(f)),n0) ),
    inference(resolve,[$cnf( mode(or1(f),ok) )],[refute_0_151,refute_0_160]) ).

cnf(refute_0_162,plain,
    ( mode(or1(f),abnormal)
    | value(out(c,h1(f)),n0) ),
    inference(resolve,[$cnf( value(in(n2,or1(f)),n0) )],[refute_0_161,refute_0_147]) ).

cnf(refute_0_163,plain,
    ( mode(or1(f),abnormal)
    | value(out(n1,and2(h1(f))),n0) ),
    inference(resolve,[$cnf( value(out(c,h1(f)),n0) )],[refute_0_162,refute_0_142]) ).

cnf(refute_0_164,plain,
    ( ~ value(out(n1,and2(h1(f))),V2)
    | equal_value(n0,V2)
    | mode(or1(f),abnormal) ),
    inference(resolve,[$cnf( value(out(n1,and2(h1(f))),n0) )],[refute_0_163,refute_0_137]) ).

cnf(refute_0_165,plain,
    ( ~ value(out(n1,and2(h1(f))),n1)
    | equal_value(n0,n1)
    | mode(or1(f),abnormal) ),
    inference(subst,[],[refute_0_164:[bind(V2,$fot(n1))]]) ).

cnf(refute_0_166,plain,
    ( equal_value(n0,n1)
    | mode(or1(f),abnormal) ),
    inference(resolve,[$cnf( value(out(n1,and2(h1(f))),n1) )],[refute_0_105,refute_0_165]) ).

cnf(refute_0_167,plain,
    mode(or1(f),abnormal),
    inference(resolve,[$cnf( equal_value(n0,n1) )],[refute_0_166,equal_value1]) ).

cnf(refute_0_168,plain,
    ( mode(and1(h1(f)),abnormal)
    | mode(and1(h2(f)),abnormal)
    | mode(not1(h1(f)),abnormal) ),
    inference(resolve,[$cnf( mode(or1(f),abnormal) )],[refute_0_167,refute_0_136]) ).

cnf(refute_0_169,plain,
    ( ~ mode(or1(f),abnormal)
    | mode(and1(h1(f)),abnormal)
    | mode(and1(h2(f)),abnormal) ),
    inference(resolve,[$cnf( mode(not1(h1(f)),abnormal) )],[refute_0_168,diagnosis_or1_not1h1]) ).

cnf(refute_0_170,plain,
    ( mode(and1(h1(f)),abnormal)
    | mode(and1(h2(f)),abnormal) ),
    inference(resolve,[$cnf( mode(or1(f),abnormal) )],[refute_0_167,refute_0_169]) ).

cnf(refute_0_171,plain,
    ( ~ mode(or1(f),abnormal)
    | mode(and1(h1(f)),abnormal) ),
    inference(resolve,[$cnf( mode(and1(h2(f)),abnormal) )],[refute_0_170,diagnosis_or1_and1h2]) ).

cnf(refute_0_172,plain,
    mode(and1(h1(f)),abnormal),
    inference(resolve,[$cnf( mode(or1(f),abnormal) )],[refute_0_167,refute_0_171]) ).

cnf(refute_0_173,plain,
    ~ mode(or1(f),abnormal),
    inference(resolve,[$cnf( mode(and1(h1(f)),abnormal) )],[refute_0_172,diagnosis_or1_and1h1]) ).

cnf(refute_0_174,plain,
    $false,
    inference(resolve,[$cnf( mode(or1(f),abnormal) )],[refute_0_167,refute_0_173]) ).

%------------------------------------------------------------------------------
%----ORIGINAL SYSTEM OUTPUT
% 0.03/0.12  % Problem  : HWV007-1 : TPTP v8.1.0. Released v2.1.0.
% 0.03/0.12  % Command  : metis --show proof --show saturation %s
% 0.13/0.33  % Computer : n020.cluster.edu
% 0.13/0.33  % Model    : x86_64 x86_64
% 0.13/0.33  % CPU      : Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz
% 0.13/0.33  % Memory   : 8042.1875MB
% 0.13/0.33  % OS       : Linux 3.10.0-693.el7.x86_64
% 0.13/0.33  % CPULimit : 300
% 0.13/0.33  % WCLimit  : 600
% 0.13/0.33  % DateTime : Thu Jun 16 22:57:04 EDT 2022
% 0.13/0.33  % CPUTime  : 
% 0.13/0.34  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 0.19/0.45  % SZS status Unsatisfiable for /export/starexec/sandbox2/benchmark/theBenchmark.p
% 0.19/0.45  
% 0.19/0.45  % SZS output start CNFRefutation for /export/starexec/sandbox2/benchmark/theBenchmark.p
% See solution above
% 0.19/0.47  
%------------------------------------------------------------------------------