let D be non empty set ; :: thesis: for d0 being Element of D
for Y being non empty TopSpace holds
( TopStruct(# the carrier of Y,the topology of Y #) = TopStruct(# the carrier of (STS D,d0),the topology of (STS D,d0) #) iff ( the carrier of Y = D & ( for A being Subset of Y holds
( ( A c= D \ {d0} implies A is open ) & ( A <> D & A is open implies A c= D \ {d0} ) ) ) ) )

let d0 be Element of D; :: thesis: for Y being non empty TopSpace holds
( TopStruct(# the carrier of Y,the topology of Y #) = TopStruct(# the carrier of (STS D,d0),the topology of (STS D,d0) #) iff ( the carrier of Y = D & ( for A being Subset of Y holds
( ( A c= D \ {d0} implies A is open ) & ( A <> D & A is open implies A c= D \ {d0} ) ) ) ) )

let Y be non empty TopSpace; :: thesis: ( TopStruct(# the carrier of Y,the topology of Y #) = TopStruct(# the carrier of (STS D,d0),the topology of (STS D,d0) #) iff ( the carrier of Y = D & ( for A being Subset of Y holds
( ( A c= D \ {d0} implies A is open ) & ( A <> D & A is open implies A c= D \ {d0} ) ) ) ) )

thus ( TopStruct(# the carrier of Y,the topology of Y #) = TopStruct(# the carrier of (STS D,d0),the topology of (STS D,d0) #) implies ( the carrier of Y = D & ( for A being Subset of Y holds
( ( A c= D \ {d0} implies A is open ) & ( A <> D & A is open implies A c= D \ {d0} ) ) ) ) ) :: thesis: ( the carrier of Y = D & ( for A being Subset of Y holds
( ( A c= D \ {d0} implies A is open ) & ( A <> D & A is open implies A c= D \ {d0} ) ) ) implies TopStruct(# the carrier of Y,the topology of Y #) = TopStruct(# the carrier of (STS D,d0),the topology of (STS D,d0) #) )
proof
assume A1: TopStruct(# the carrier of Y,the topology of Y #) = TopStruct(# the carrier of (STS D,d0),the topology of (STS D,d0) #) ; :: thesis: ( the carrier of Y = D & ( for A being Subset of Y holds
( ( A c= D \ {d0} implies A is open ) & ( A <> D & A is open implies A c= D \ {d0} ) ) ) )

hence the carrier of Y = D ; :: thesis: for A being Subset of Y holds
( ( A c= D \ {d0} implies A is open ) & ( A <> D & A is open implies A c= D \ {d0} ) )

let A be Subset of Y; :: thesis: ( ( A c= D \ {d0} implies A is open ) & ( A <> D & A is open implies A c= D \ {d0} ) )
reconsider B = A as Subset of (STS D,d0) by A1;
thus ( A c= D \ {d0} implies A is open ) :: thesis: ( A <> D & A is open implies A c= D \ {d0} )
proof end;
thus ( A <> D & A is open implies A c= D \ {d0} ) :: thesis: verum
proof
assume A2: A <> D ; :: thesis: ( not A is open or A c= D \ {d0} )
assume A is open ; :: thesis: A c= D \ {d0}
then B is open by A1, TOPS_3:76;
hence A c= D \ {d0} by A2, Th26; :: thesis: verum
end;
end;
assume A3: the carrier of Y = D ; :: thesis: ( ex A being Subset of Y st
( ( A c= D \ {d0} implies A is open ) implies ( A <> D & A is open & not A c= D \ {d0} ) ) or TopStruct(# the carrier of Y,the topology of Y #) = TopStruct(# the carrier of (STS D,d0),the topology of (STS D,d0) #) )

assume A4: for A being Subset of Y holds
( ( A c= D \ {d0} implies A is open ) & ( A <> D & A is open implies A c= D \ {d0} ) ) ; :: thesis: TopStruct(# the carrier of Y,the topology of Y #) = TopStruct(# the carrier of (STS D,d0),the topology of (STS D,d0) #)
now
let A be Subset of Y; :: thesis: for C being Subset of (STS D,d0) st A = C holds
( A is open iff C is open )

let C be Subset of (STS D,d0); :: thesis: ( A = C implies ( A is open iff C is open ) )
assume A5: A = C ; :: thesis: ( A is open iff C is open )
A6: now
assume A7: A is open ; :: thesis: C is open
now
per cases ( A = D or A <> D ) ;
case A = D ; :: thesis: C is open
then C = [#] (STS D,d0) by A5;
hence C is open ; :: thesis: verum
end;
end;
end;
hence C is open ; :: thesis: verum
end;
now end;
hence ( A is open iff C is open ) by A6; :: thesis: verum
end;
hence TopStruct(# the carrier of Y,the topology of Y #) = TopStruct(# the carrier of (STS D,d0),the topology of (STS D,d0) #) by A3, TOPS_3:72; :: thesis: verum