let d be Real; :: thesis: ( d = diameter (M,K) iff ( ( for A being Subset of M st A is Simplex of K holds
diameter A <= d ) & ( for r being Real st ( for A being Subset of M st A is Simplex of K holds
diameter A <= r ) holds
r >= d ) ) )

{} K is simplex-like ;
then {} M in the topology of K by PRE_TOPC:def 2;
then A1: the topology of K meets bool ([#] M) by XBOOLE_0:3;
hereby :: thesis: ( ( for A being Subset of M st A is Simplex of K holds
diameter A <= d ) & ( for r being Real st ( for A being Subset of M st A is Simplex of K holds
diameter A <= r ) holds
r >= d ) implies d = diameter (M,K) )
assume A2: d = diameter (M,K) ; :: thesis: ( ( for A being Subset of M st A is Simplex of K holds
diameter A <= d ) & ( for r being Real st ( for A being Subset of M st A is Simplex of K holds
diameter A <= r ) holds
r >= d ) )

hereby :: thesis: for r being Real st ( for A being Subset of M st A is Simplex of K holds
diameter A <= r ) holds
r >= d
let A be Subset of M; :: thesis: ( A is Simplex of K implies diameter A <= d )
assume A is Simplex of K ; :: thesis: diameter A <= d
then A in the topology of K by PRE_TOPC:def 2;
hence diameter A <= d by A1, A2, Def3; :: thesis: verum
end;
let r be Real; :: thesis: ( ( for A being Subset of M st A is Simplex of K holds
diameter A <= r ) implies r >= d )

assume A3: for A being Subset of M st A is Simplex of K holds
diameter A <= r ; :: thesis: r >= d
for A being Subset of M st A in the topology of K holds
diameter A <= r by A3, PRE_TOPC:def 2;
hence r >= d by A1, A2, Def3; :: thesis: verum
end;
assume that
A4: for A being Subset of M st A is Simplex of K holds
diameter A <= d and
A5: for r being Real st ( for A being Subset of M st A is Simplex of K holds
diameter A <= r ) holds
r >= d ; :: thesis: d = diameter (M,K)
for A being Subset of M st A in the topology of K holds
diameter A <= d by A4, PRE_TOPC:def 2;
then A6: diameter (M,K) <= d by A1, Def3;
now :: thesis: for A being Subset of M st A is Simplex of K holds
diameter A <= diameter (M,K)
let A be Subset of M; :: thesis: ( A is Simplex of K implies diameter A <= diameter (M,K) )
assume A is Simplex of K ; :: thesis: diameter A <= diameter (M,K)
then A in the topology of K by PRE_TOPC:def 2;
hence diameter A <= diameter (M,K) by A1, Def3; :: thesis: verum
end;
then d <= diameter (M,K) by A5;
hence d = diameter (M,K) by A6, XXREAL_0:1; :: thesis: verum