
theorem Th25:
  for p1,p2,p3,p4 being Point of TOP-REAL 2, a,b,c,d being Real
 st a<b & c < d & p1`1=a & p2`2=d & p3`2= d & p4`1= b & c <=p1`2 & p1`2<=
  d & a<=p2`1 & p2`1<p3`1 & p3`1<=b & c <=p4`2 & p4`2<=d holds p1,p2,p3,p4
  are_in_this_order_on rectangle(a,b,c,d)
proof
  let p1,p2,p3,p4 be Point of TOP-REAL 2, a,b,c,d being Real;
  set K=rectangle(a,b,c,d);
  assume that
A1: a<b and
A2: c < d and
A3: p1`1=a and
A4: p2`2=d and
A5: p3`2= d and
A6: p4`1= b and
A7: c <=p1`2 and
A8: p1`2<=d and
A9: a<=p2`1 and
A10: p2`1<p3`1 and
A11: p3`1<=b and
A12: c <=p4`2 and
A13: p4`2<=d;
A14: a<p3`1 by A9,A10,XXREAL_0:2;
  p2`1<b by A10,A11,XXREAL_0:2;
  then
  LE p1,p2,K & LE p2,p3,K & LE p3,p4,K or LE p2,p3,K & LE p3,p4,K & LE p4
  ,p1,K or LE p3,p4,K & LE p4,p1,K & LE p1,p2,K or LE p4,p1,K & LE p1,p2,K & LE
  p2,p3,K by A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12,A13,A14,Th4,Th7,Th13;
  hence thesis by JORDAN17:def 1;
end;
