reserve x,x0, r,r1,r2 for Real,
      th for Real,

  rr for set,

  rseq for Real_Sequence;

theorem Th16:
  cosec|].0,PI/2.[ is decreasing
proof
  for x st x in ].0,PI/2.[ holds diff(cosec,x) < 0
  proof
    let x;
    assume
A1: x in ].0,PI/2.[;
    ].0,PI/2.[ c= ].-PI/2,PI/2.[ by XXREAL_1:46;
    then
A2: cos.x > 0 by A1,COMPTRIG:11;
    ].0,PI/2.[ c= ].0,PI.[ by COMPTRIG:5,XXREAL_1:46;
    then sin.x > 0 by A1,COMPTRIG:7;
    then -cos.x/(sin.x)^2 < -0 by A2;
    hence thesis by A1,Th8;
  end;
  hence thesis by Lm17,Th4,Th8,ROLLE:10,XBOOLE_1:1;
end;
