deffunc H1( set ) -> set = IFEQ ($1,{},$1,($1 \/ ({x0} /\ X)));
A1: for A being Subset of X holds
( A c= H1(A) & H1(A) c= X )
proof
let A be Subset of X; :: thesis: ( A c= H1(A) & H1(A) c= X )
( A = {} or A <> {} ) ;
then A2: ( H1(A) = A or H1(A) = A \/ ({x0} /\ X) ) by FUNCOP_1:def 8;
hence A c= H1(A) by XBOOLE_1:7; :: thesis: H1(A) c= X
{x0} /\ X c= X by XBOOLE_1:17;
hence H1(A) c= X by A2, XBOOLE_1:8; :: thesis: verum
end;
A3: H1( {} ) = {} by FUNCOP_1:def 8;
A4: for A, B being Subset of X holds H1(A \/ B) = H1(A) \/ H1(B)
proof
let A, B be Subset of X; :: thesis: H1(A \/ B) = H1(A) \/ H1(B)
per cases ( A = {} or B = {} or ( A <> {} & B <> {} ) ) ;
suppose ( A = {} or B = {} ) ; :: thesis: H1(A \/ B) = H1(A) \/ H1(B)
hence H1(A \/ B) = H1(A) \/ H1(B) by A3; :: thesis: verum
end;
suppose A5: ( A <> {} & B <> {} ) ; :: thesis: H1(A \/ B) = H1(A) \/ H1(B)
then A6: H1(A \/ B) = (A \/ B) \/ ({x0} /\ X) by FUNCOP_1:def 8;
A7: H1(B) = B \/ ({x0} /\ X) by A5, FUNCOP_1:def 8;
H1(A) = A \/ ({x0} /\ X) by A5, FUNCOP_1:def 8;
hence H1(A \/ B) = H1(A) \/ H1(B) by A7, A6, XBOOLE_1:5; :: thesis: verum
end;
end;
end;
A8: for A being Subset of X holds H1(H1(A)) = H1(A)
proof
let A be Subset of X; :: thesis: H1(H1(A)) = H1(A)
( A = {} or A <> {} ) ;
then ( H1(A) = {} or ( A \/ ({x0} /\ X) <> {} & H1(A) = A \/ ({x0} /\ X) ) ) by FUNCOP_1:def 8;
then ( H1(H1(A)) = H1(A) or ( H1(A) = A \/ ({x0} /\ X) & H1(H1(A)) = (A \/ ({x0} /\ X)) \/ ({x0} /\ X) ) ) by FUNCOP_1:def 8;
hence H1(H1(A)) = H1(A) by XBOOLE_1:6; :: thesis: verum
end;
consider T being strict TopSpace such that
A9: ( the carrier of T = X & ( for A being Subset of T holds Cl A = H1(A) ) ) from TOPGEN_3:sch 2(A3, A1, A4, A8);
take T ; :: thesis: ( the carrier of T = X & ( for A being Subset of T holds Cl A = IFEQ (A,{},A,(A \/ ({x0} /\ X))) ) )
thus the carrier of T = X by A9; :: thesis: for A being Subset of T holds Cl A = IFEQ (A,{},A,(A \/ ({x0} /\ X)))
let F be Subset of T; :: thesis: Cl F = IFEQ (F,{},F,(F \/ ({x0} /\ X)))
thus Cl F = IFEQ (F,{},F,(F \/ ({x0} /\ X))) by A9; :: thesis: verum