TPTP Axioms File: HWV002-1.ax


%--------------------------------------------------------------------------
% File     : HWV002-1 : TPTP v7.5.0. Released v2.1.0.
% Domain   : Hardware Verification
% Axioms   : Half-adder.
% Version  : [Gei96] axioms.
% English  :

% Refs     : [Gei96] Geisler (1996), Email to G. Sutcliffe
% Source   : [Gei96]
% Names    :

% Status   : Satisfiable
% Syntax   : Number of clauses    :   13 (   0 non-Horn;   0 unit;  13 RR)
%            Number of atoms      :   26 (   0 equality)
%            Maximal clause size  :    2 (   2 average)
%            Number of predicates :    5 (   0 propositional; 1-2 arity)
%            Number of functors   :    9 (   0 constant; 1-1 arity)
%            Number of variables  :   13 (   0 singleton)
%            Maximal term depth   :    3 (   2 average)
% SPC      : 

% Comments : Requires HWV002-0.ax
%--------------------------------------------------------------------------
%----Composition of halfadder
cnf(halfadder_and1,axiom,
    ( ~ halfadder(X)
    | logic_and(and1(X)) )).

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

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

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

%----Connections of halfadder
cnf(halfadder_connection_in1_in1or1,axiom,
    ( ~ halfadder(X)
    | connection(in1(X),in1(or1(X))) )).

cnf(halfadder_connection_in2_in2or1,axiom,
    ( ~ halfadder(X)
    | connection(in2(X),in2(or1(X))) )).

cnf(halfadder_connection_in1_in1and2,axiom,
    ( ~ halfadder(X)
    | connection(in1(X),in1(and2(X))) )).

cnf(halfadder_connection_in2_in2and2,axiom,
    ( ~ halfadder(X)
    | connection(in2(X),in2(and2(X))) )).

cnf(halfadder_connection_outs_out1and1,axiom,
    ( ~ halfadder(X)
    | connection(outs(X),out1(and1(X))) )).

cnf(halfadder_connection_outc_out1and2,axiom,
    ( ~ halfadder(X)
    | connection(outc(X),out1(and2(X))) )).

cnf(halfadder_connection_out1or1_in1_and1,axiom,
    ( ~ halfadder(X)
    | connection(out1(or1(X)),in1(and1(X))) )).

cnf(halfadder_connection_out1and2_in1not1,axiom,
    ( ~ halfadder(X)
    | connection(out1(and2(X)),in1(not1(X))) )).

cnf(halfadder_connection_out1not1_in2and1,axiom,
    ( ~ halfadder(X)
    | connection(out1(not1(X)),in2(and1(X))) )).

%--------------------------------------------------------------------------