let r be continuous Function of X,X0; :: thesis: ( r = Stone-retraction X,X0 iff for M being Subset of X st M = the carrier of X0 holds
for A being Subset of X holds M /\ (MaxADSet A) = r .: A )

A1: dom r = [#] X by FUNCT_2:def 1;
thus ( r = Stone-retraction X,X0 implies for M being Subset of X st M = the carrier of X0 holds
for A being Subset of X holds M /\ (MaxADSet A) = r .: A ) :: thesis: ( ( for M being Subset of X st M = the carrier of X0 holds
for A being Subset of X holds M /\ (MaxADSet A) = r .: A ) implies r = Stone-retraction X,X0 )
proof
assume A2: r = Stone-retraction X,X0 ; :: thesis: for M being Subset of X st M = the carrier of X0 holds
for A being Subset of X holds M /\ (MaxADSet A) = r .: A

let M be Subset of X; :: thesis: ( M = the carrier of X0 implies for A being Subset of X holds M /\ (MaxADSet A) = r .: A )
reconsider N = M as Subset of X ;
assume A3: M = the carrier of X0 ; :: thesis: for A being Subset of X holds M /\ (MaxADSet A) = r .: A
then N is maximal_T_0 by Th11;
then A4: N is T_0 by Def4;
let A be Subset of X; :: thesis: M /\ (MaxADSet A) = r .: A
A5: M /\ (MaxADSet A) c= r .: A
proof
for x being set st x in M /\ (MaxADSet A) holds
x in r .: A
proof
let x be set ; :: thesis: ( x in M /\ (MaxADSet A) implies x in r .: A )
assume A6: x in M /\ (MaxADSet A) ; :: thesis: x in r .: A
then reconsider c = x as Point of X ;
c in M by A6, XBOOLE_0:def 4;
then A7: M /\ (MaxADSet c) = {c} by A4, Def2;
c in MaxADSet A by A6, XBOOLE_0:def 4;
then c in union { (MaxADSet a) where a is Point of X : a in A } by TEX_4:def 11;
then consider D being set such that
A8: c in D and
A9: D in { (MaxADSet a) where a is Point of X : a in A } by TARSKI:def 4;
consider a being Point of X such that
A10: D = MaxADSet a and
A11: a in A by A9;
MaxADSet c = MaxADSet a by A8, A10, TEX_4:23;
then {(r . a)} = {c} by A2, A3, A7, Def10;
hence x in r .: A by A11, FUNCT_2:43, ZFMISC_1:6; :: thesis: verum
end;
hence M /\ (MaxADSet A) c= r .: A by TARSKI:def 3; :: thesis: verum
end;
r .: A c= M /\ (MaxADSet A)
proof
for x being set st x in r .: A holds
x in M /\ (MaxADSet A)
proof
let x be set ; :: thesis: ( x in r .: A implies x in M /\ (MaxADSet A) )
assume A12: x in r .: A ; :: thesis: x in M /\ (MaxADSet A)
then reconsider b = x as Point of X0 ;
consider a being set such that
A13: a in the carrier of X and
A14: a in A and
A15: b = r . a by A12, FUNCT_2:115;
reconsider a = a as Point of X by A13;
A16: M /\ (MaxADSet a) = {b} by A2, A3, A15, Def10;
{a} c= A by A14, ZFMISC_1:37;
then MaxADSet {a} c= MaxADSet A by TEX_4:33;
then MaxADSet a c= MaxADSet A by TEX_4:30;
then M /\ (MaxADSet a) c= M /\ (MaxADSet A) by XBOOLE_1:26;
hence x in M /\ (MaxADSet A) by A16, ZFMISC_1:37; :: thesis: verum
end;
hence r .: A c= M /\ (MaxADSet A) by TARSKI:def 3; :: thesis: verum
end;
hence M /\ (MaxADSet A) = r .: A by A5, XBOOLE_0:def 10; :: thesis: verum
end;
assume A17: for M being Subset of X st M = the carrier of X0 holds
for A being Subset of X holds M /\ (MaxADSet A) = r .: A ; :: thesis: r = Stone-retraction X,X0
for M being Subset of X st M = the carrier of X0 holds
for a being Point of X holds M /\ (MaxADSet a) = {(r . a)}
proof
let M be Subset of X; :: thesis: ( M = the carrier of X0 implies for a being Point of X holds M /\ (MaxADSet a) = {(r . a)} )
assume A18: M = the carrier of X0 ; :: thesis: for a being Point of X holds M /\ (MaxADSet a) = {(r . a)}
let a be Point of X; :: thesis: M /\ (MaxADSet a) = {(r . a)}
M /\ (MaxADSet {a}) = Im r,a by A17, A18;
then M /\ (MaxADSet a) = Im r,a by TEX_4:30;
hence M /\ (MaxADSet a) = {(r . a)} by A1, FUNCT_1:117; :: thesis: verum
end;
hence r = Stone-retraction X,X0 by Def10; :: thesis: verum