let PM be MetrStruct ; :: thesis: for y, x being Element of PM
for r being real number st PM is triangle & y in Ball x,r holds
ex p being Real st
( p > 0 & Ball y,p c= Ball x,r )

let y, x be Element of PM; :: thesis: for r being real number st PM is triangle & y in Ball x,r holds
ex p being Real st
( p > 0 & Ball y,p c= Ball x,r )

let r be real number ; :: thesis: ( PM is triangle & y in Ball x,r implies ex p being Real st
( p > 0 & Ball y,p c= Ball x,r ) )

reconsider r' = r as Real by XREAL_0:def 1;
assume A1: PM is triangle ; :: thesis: ( not y in Ball x,r or ex p being Real st
( p > 0 & Ball y,p c= Ball x,r ) )

assume A2: y in Ball x,r ; :: thesis: ex p being Real st
( p > 0 & Ball y,p c= Ball x,r )

then A3: not PM is empty ;
A4: dist x,y < r by A2, METRIC_1:12;
thus ex p being Real st
( p > 0 & Ball y,p c= Ball x,r ) :: thesis: verum
proof
set p = r' - (dist x,y);
A5: for z being Element of PM st z in Ball y,(r' - (dist x,y)) holds
z in Ball x,r
proof
let z be Element of PM; :: thesis: ( z in Ball y,(r' - (dist x,y)) implies z in Ball x,r )
assume z in Ball y,(r' - (dist x,y)) ; :: thesis: z in Ball x,r
then dist y,z < r' - (dist x,y) by METRIC_1:12;
then A6: (dist x,y) + (dist y,z) < r by XREAL_1:22;
(dist x,y) + (dist y,z) >= dist x,z by A1, METRIC_1:4;
then dist x,z < r by A6, XXREAL_0:2;
hence z in Ball x,r by A3, METRIC_1:12; :: thesis: verum
end;
take r' - (dist x,y) ; :: thesis: ( r' - (dist x,y) > 0 & Ball y,(r' - (dist x,y)) c= Ball x,r )
thus r' - (dist x,y) > 0 by A4, XREAL_1:52; :: thesis: Ball y,(r' - (dist x,y)) c= Ball x,r
thus Ball y,(r' - (dist x,y)) c= Ball x,r by A5, SUBSET_1:7; :: thesis: verum
end;