let p, q be Point of (TOP-REAL 2); :: thesis: ( p `1 <= q `1 implies proj1 .: (LSeg p,q) = [.(p `1 ),(q `1 ).] )
assume A1:
p `1 <= q `1
; :: thesis: proj1 .: (LSeg p,q) = [.(p `1 ),(q `1 ).]
for y being set holds
( y in [.(p `1 ),(q `1 ).] iff ex x being set st
( x in dom proj1 & x in LSeg p,q & y = proj1 . x ) )
proof
let y be
set ;
:: thesis: ( y in [.(p `1 ),(q `1 ).] iff ex x being set st
( x in dom proj1 & x in LSeg p,q & y = proj1 . x ) )
given x being
set such that
x in dom proj1
and A5:
x in LSeg p,
q
and A6:
y = proj1 . x
;
:: thesis: y in [.(p `1 ),(q `1 ).]
reconsider s =
x as
Point of
(TOP-REAL 2) by A5;
x in LSeg q,
p
by A5;
then consider r being
Real such that A8:
s = ((1 - r) * q) + (r * p)
and A7:
(
0 <= r &
r <= 1 )
by A5;
y =
s `1
by A6, PSCOMP_1:def 28
.=
(((1 - r) * q) `1 ) + ((r * p) `1 )
by A8, TOPREAL3:7
.=
((1 - r) * (q `1 )) + ((r * p) `1 )
by TOPREAL3:9
.=
((1 - r) * (q `1 )) + (r * (p `1 ))
by TOPREAL3:9
;
hence
y in [.(p `1 ),(q `1 ).]
by A1, A7, Th59;
:: thesis: verum
end;
hence
proj1 .: (LSeg p,q) = [.(p `1 ),(q `1 ).]
by FUNCT_1:def 12; :: thesis: verum