let p be FinSequence; :: thesis: ( p is TwoValued iff ( len p > 1 & ex x, y being object st
( x <> y & rng p = {x,y} ) ) )

hereby :: thesis: ( len p > 1 & ex x, y being object st
( x <> y & rng p = {x,y} ) implies p is TwoValued )
assume p is TwoValued ; :: thesis: ( len p > 1 & ex x, y being object st
( x <> y & rng p = {x,y} ) )

then card (rng p) = 2 ;
then consider x, y being object such that
A1: x <> y and
A2: rng p = {x,y} by CARD_2:60;
thus len p > 1 :: thesis: ex x, y being object st
( x <> y & rng p = {x,y} )
proof
set l = len p;
assume A3: len p <= 1 ; :: thesis: contradiction
end;
thus ex x, y being object st
( x <> y & rng p = {x,y} ) by A1, A2; :: thesis: verum
end;
assume len p > 1 ; :: thesis: ( for x, y being object holds
( not x <> y or not rng p = {x,y} ) or p is TwoValued )

given x, y being object such that A7: x <> y and
A8: rng p = {x,y} ; :: thesis: p is TwoValued
card (rng p) = 2 by A7, A8, CARD_2:57;
hence p is TwoValued ; :: thesis: verum