let p, q be Point of (TOP-REAL 2); :: thesis: ( p `1 = q `1 & p `2 <> q `2 implies |[(p `1 ),(((p `2 ) + (q `2 )) / 2)]| in LSeg p,q )
set p1 = |[(p `1 ),(((p `2 ) + (q `2 )) / 2)]|;
assume A1: ( p `1 = q `1 & p `2 <> q `2 ) ; :: thesis: |[(p `1 ),(((p `2 ) + (q `2 )) / 2)]| in LSeg p,q
then A2: ( p = |[(p `1 ),(p `2 )]| & q = |[(p `1 ),(q `2 )]| ) by EUCLID:57;
A3: ( |[(p `1 ),(((p `2 ) + (q `2 )) / 2)]| `1 = p `1 & |[(p `1 ),(((p `2 ) + (q `2 )) / 2)]| `2 = ((p `2 ) + (q `2 )) / 2 ) by EUCLID:56;
per cases ( p `2 < q `2 or p `2 > q `2 ) by A1, XXREAL_0:1;
suppose A4: p `2 < q `2 ; :: thesis: |[(p `1 ),(((p `2 ) + (q `2 )) / 2)]| in LSeg p,q
then ( p `2 <= ((p `2 ) + (q `2 )) / 2 & ((p `2 ) + (q `2 )) / 2 <= q `2 ) by XREAL_1:228;
then |[(p `1 ),(((p `2 ) + (q `2 )) / 2)]| in { p2 where p2 is Point of (TOP-REAL 2) : ( p2 `1 = p `1 & p `2 <= p2 `2 & p2 `2 <= q `2 ) } by A3;
hence |[(p `1 ),(((p `2 ) + (q `2 )) / 2)]| in LSeg p,q by A2, A4, Th15; :: thesis: verum
end;
suppose A5: p `2 > q `2 ; :: thesis: |[(p `1 ),(((p `2 ) + (q `2 )) / 2)]| in LSeg p,q
then ( q `2 <= ((p `2 ) + (q `2 )) / 2 & ((p `2 ) + (q `2 )) / 2 <= p `2 ) by XREAL_1:228;
then |[(p `1 ),(((p `2 ) + (q `2 )) / 2)]| in { p2 where p2 is Point of (TOP-REAL 2) : ( p2 `1 = p `1 & q `2 <= p2 `2 & p2 `2 <= p `2 ) } by A3;
hence |[(p `1 ),(((p `2 ) + (q `2 )) / 2)]| in LSeg p,q by A2, A5, Th15; :: thesis: verum
end;
end;