let a, b be R_eal; :: thesis: ( ( a < b implies diameter [.a,b.[ = b - a ) & ( b <= a implies diameter [.a,b.[ = 0. ) )
hereby :: thesis: ( b <= a implies diameter [.a,b.[ = 0. ) end;
assume b <= a ; :: thesis: diameter [.a,b.[ = 0.
then [.a,b.[ = {} by XXREAL_1:27;
hence diameter [.a,b.[ = 0. by Def6; :: thesis: verum