let x, y, c be non pair set ; :: thesis: for s being State of (MajorityCirc x,y,c) holds Following s,2 is stable
set S = MajorityStr x,y,c;
let s be State of (MajorityCirc x,y,c); :: thesis: Following s,2 is stable
A1:
( dom (Following (Following s,2)) = the carrier of (MajorityStr x,y,c) & dom (Following s,2) = the carrier of (MajorityStr x,y,c) )
by CIRCUIT1:4;
reconsider xx = x, yy = y, cc = c as Vertex of (MajorityStr x,y,c) by Th72;
set a1 = s . xx;
set a2 = s . yy;
set a3 = s . cc;
set ffs = Following s,2;
set fffs = Following (Following s,2);
( s . xx = s . x & s . yy = s . y & s . cc = s . c )
;
then A2:
( (Following s,2) . (MajorityOutput x,y,c) = (((s . xx) '&' (s . yy)) 'or' ((s . yy) '&' (s . cc))) 'or' ((s . cc) '&' (s . xx)) & (Following s,2) . [<*x,y*>,'&' ] = (s . xx) '&' (s . yy) & (Following s,2) . [<*y,c*>,'&' ] = (s . yy) '&' (s . cc) & (Following s,2) . [<*c,x*>,'&' ] = (s . cc) '&' (s . xx) )
by Lm4;
A3:
Following s,2 = Following (Following s)
by Th15;
A4:
( x in InputVertices (MajorityStr x,y,c) & y in InputVertices (MajorityStr x,y,c) & c in InputVertices (MajorityStr x,y,c) )
by Th74;
then
( (Following s) . x = s . xx & (Following s) . y = s . yy & (Following s) . c = s . cc )
by CIRCUIT2:def 5;
then A5:
( (Following s,2) . x = s . xx & (Following s,2) . y = s . yy & (Following s,2) . c = s . cc )
by A3, A4, CIRCUIT2:def 5;
now let a be
set ;
:: thesis: ( a in the carrier of (MajorityStr x,y,c) implies (Following s,2) . a = (Following (Following s,2)) . a )assume A6:
a in the
carrier of
(MajorityStr x,y,c)
;
:: thesis: (Following s,2) . a = (Following (Following s,2)) . athen reconsider v =
a as
Vertex of
(MajorityStr x,y,c) ;
A7:
v in (InputVertices (MajorityStr x,y,c)) \/ (InnerVertices (MajorityStr x,y,c))
by A6, XBOOLE_1:45;
thus
(Following s,2) . a = (Following (Following s,2)) . a
:: thesis: verumproof
per cases
( v in InputVertices (MajorityStr x,y,c) or v in InnerVertices (MajorityStr x,y,c) )
by A7, XBOOLE_0:def 3;
suppose
v in InnerVertices (MajorityStr x,y,c)
;
:: thesis: (Following s,2) . a = (Following (Following s,2)) . athen
v in {[<*x,y*>,'&' ],[<*y,c*>,'&' ],[<*c,x*>,'&' ]} \/ {(MajorityOutput x,y,c)}
by Th75;
then
(
v in {[<*x,y*>,'&' ],[<*y,c*>,'&' ],[<*c,x*>,'&' ]} or
v in {(MajorityOutput x,y,c)} )
by XBOOLE_0:def 3;
then
(
v = [<*x,y*>,'&' ] or
v = [<*y,c*>,'&' ] or
v = [<*c,x*>,'&' ] or
v = MajorityOutput x,
y,
c )
by ENUMSET1:def 1, TARSKI:def 1;
hence
(Following s,2) . a = (Following (Following s,2)) . a
by A2, A5, Lm3, Th79;
:: thesis: verum end; end;
end; end;
hence
Following s,2 = Following (Following s,2)
by A1, FUNCT_1:9; :: according to CIRCUIT2:def 6 :: thesis: verum