TPTP Problem File: SWV544-1.004.p

View Solutions - Solve Problem

%------------------------------------------------------------------------------
% File     : SWV544-1.004 : TPTP v8.2.0. Released v4.0.0.
% Domain   : Software Verification
% Problem  : Swap elements (t3_np_sf_ai_00004)
% Version  : Especial.
% English  : Swapping an element at position i1 with an element at position 
%            i2 is equivalent to swapping the element at position i2 with the
%            element at position i1.

% Refs     : [Arm08] Armando (2008), Email to Geoff Sutcliffe
%          : [AB+09] Armando et al. (2009), New Results on Rewrite-based Sa
% Source   : [Arm08]
% Names    : swap_invalid_t3_np_sf_ai_00004_001 [Arm08]

% Status   : Satisfiable
% Rating   : 1.00 v4.0.0
% Syntax   : Number of clauses     :   29 (  28 unt;   1 nHn;  26 RR)
%            Number of literals    :   30 (  30 equ;   1 neg)
%            Maximal clause size   :    2 (   1 avg)
%            Maximal term depth    :    4 (   1 avg)
%            Number of predicates  :    1 (   0 usr;   0 prp; 2-2 aty)
%            Number of functors    :   32 (  32 usr;  30 con; 0-3 aty)
%            Number of variables   :   10 (   2 sgn)
% SPC      : CNF_SAT_RFO_EQU_NUE

% Comments :
%------------------------------------------------------------------------------
cnf(a1,axiom,
    select(store(A,I,E),I) = E ).

cnf(a2,axiom,
    ( I = J
    | select(store(A,I,E),J) = select(A,J) ) ).

cnf(a3,axiom,
    store(store(A,I,select(A,J)),J,select(A,I)) = store(store(A,J,select(A,I)),I,select(A,J)) ).

cnf(hyp0,hypothesis,
    a_418 = store(a1,i1,e_417) ).

cnf(hyp1,hypothesis,
    a_419 = store(a_418,i1,e_417) ).

cnf(hyp2,hypothesis,
    a_421 = store(a_419,i0,e_420) ).

cnf(hyp3,hypothesis,
    a_423 = store(a_421,i3,e_422) ).

cnf(hyp4,hypothesis,
    a_425 = store(a_423,i3,e_424) ).

cnf(hyp5,hypothesis,
    a_427 = store(a_425,i2,e_426) ).

cnf(hyp6,hypothesis,
    a_429 = store(a_427,i2,e_428) ).

cnf(hyp7,hypothesis,
    a_431 = store(a_429,i0,e_430) ).

cnf(hyp8,hypothesis,
    a_432 = store(a_419,i3,e_422) ).

cnf(hyp9,hypothesis,
    a_433 = store(a_432,i0,e_420) ).

cnf(hyp10,hypothesis,
    a_435 = store(a_433,i3,e_434) ).

cnf(hyp11,hypothesis,
    a_437 = store(a_435,i2,e_436) ).

cnf(hyp12,hypothesis,
    a_439 = store(a_437,i0,e_438) ).

cnf(hyp13,hypothesis,
    a_441 = store(a_439,i3,e_440) ).

cnf(hyp14,hypothesis,
    e_417 = select(a1,i1) ).

cnf(hyp15,hypothesis,
    e_420 = select(a_419,i3) ).

cnf(hyp16,hypothesis,
    e_422 = select(a_419,i0) ).

cnf(hyp17,hypothesis,
    e_424 = select(a_423,i2) ).

cnf(hyp18,hypothesis,
    e_426 = select(a_423,i3) ).

cnf(hyp19,hypothesis,
    e_428 = select(a_427,i0) ).

cnf(hyp20,hypothesis,
    e_430 = select(a_427,i2) ).

cnf(hyp21,hypothesis,
    e_434 = select(a_433,i2) ).

cnf(hyp22,hypothesis,
    e_436 = select(a_433,i3) ).

cnf(hyp23,hypothesis,
    e_438 = select(a_437,i3) ).

cnf(hyp24,hypothesis,
    e_440 = select(a_437,i0) ).

cnf(goal,negated_conjecture,
    a_431 != a_441 ).

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