let n be Element of NAT ; :: thesis: for r being real number
for y, x, z being Point of (TOP-REAL n) st y in Sphere x,r & z in Ball x,r holds
(LSeg y,z) /\ (Sphere x,r) = {y}

let r be real number ; :: thesis: for y, x, z being Point of (TOP-REAL n) st y in Sphere x,r & z in Ball x,r holds
(LSeg y,z) /\ (Sphere x,r) = {y}

let y, x, z be Point of (TOP-REAL n); :: thesis: ( y in Sphere x,r & z in Ball x,r implies (LSeg y,z) /\ (Sphere x,r) = {y} )
set s = y;
set t = z;
assume that
A1: y in Sphere x,r and
A2: z in Ball x,r ; :: thesis: (LSeg y,z) /\ (Sphere x,r) = {y}
hereby :: according to TARSKI:def 3,XBOOLE_0:def 10 :: thesis: {y} c= (LSeg y,z) /\ (Sphere x,r)
let m be set ; :: thesis: ( m in (LSeg y,z) /\ (Sphere x,r) implies b1 in {y} )
assume A3: m in (LSeg y,z) /\ (Sphere x,r) ; :: thesis: b1 in {y}
then reconsider w = m as Point of (TOP-REAL n) ;
w in LSeg y,z by A3, XBOOLE_0:def 4;
then consider d being Real such that
A4: 0 <= d and
A5: d <= 1 and
A6: w = ((1 - d) * y) + (d * z) by JGRAPH_1:52;
A7: m in Sphere x,r by A3, XBOOLE_0:def 4;
A8: r = |.(w - x).| by A7, Th9
.= |.((((1 - d) * y) + (d * z)) - (((1 - d) + d) * x)).| by A6, EUCLID:33
.= |.((((1 - d) * y) + (d * z)) - (((1 - d) * x) + (d * x))).| by EUCLID:37
.= |.(((((1 - d) * y) + (d * z)) - ((1 - d) * x)) - (d * x)).| by EUCLID:50
.= |.(((((1 - d) * y) - ((1 - d) * x)) + (d * z)) - (d * x)).| by JORDAN2C:9
.= |.((((1 - d) * (y - x)) + (d * z)) - (d * x)).| by EUCLID:53
.= |.(((1 - d) * (y - x)) + ((d * z) - (d * x))).| by EUCLID:49
.= |.(((1 - d) * (y - x)) + (d * (z - x))).| by EUCLID:53 ;
d - 1 <= 1 - 1 by A5, XREAL_1:11;
then A9: - 0 <= - (d - 1) ;
A10: |.((1 - d) * (y - x)).| = (abs (1 - d)) * |.(y - x).| by TOPRNS_1:8
.= (1 - d) * |.(y - x).| by A9, ABSVALUE:def 1
.= (1 - d) * r by A1, Th9 ;
A11: |.(d * (z - x)).| = (abs d) * |.(z - x).| by TOPRNS_1:8
.= d * |.(z - x).| by A4, ABSVALUE:def 1 ;
per cases ( d > 0 or d = 0 ) by A4;
suppose A12: d > 0 ; :: thesis: b1 in {y}
|.(z - x).| < r by A2, Th7;
then d * |.(z - x).| < d * r by A12, XREAL_1:70;
then ((1 - d) * r) + (d * |.(z - x).|) < ((1 - d) * r) + (d * r) by XREAL_1:10;
hence m in {y} by A8, A10, A11, TOPRNS_1:30; :: thesis: verum
end;
suppose d = 0 ; :: thesis: b1 in {y}
then m = (1 * y) + (0. (TOP-REAL n)) by A6, EUCLID:33
.= 1 * y by EUCLID:31
.= y by EUCLID:33 ;
hence m in {y} by TARSKI:def 1; :: thesis: verum
end;
end;
end;
let m be set ; :: according to TARSKI:def 3 :: thesis: ( not m in {y} or m in (LSeg y,z) /\ (Sphere x,r) )
assume m in {y} ; :: thesis: m in (LSeg y,z) /\ (Sphere x,r)
then A13: m = y by TARSKI:def 1;
y in LSeg y,z by RLTOPSP1:69;
hence m in (LSeg y,z) /\ (Sphere x,r) by A1, A13, XBOOLE_0:def 4; :: thesis: verum