(************************************************************************)
(*         *   The Coq Proof Assistant / The Coq Development Team       *)
(*  v      *   INRIA, CNRS and contributors - Copyright 1999-2018       *)
(* <O___,, *       (see CREDITS file for the list of authors)           *)
(*   \VV/  **************************************************************)
(*    //   *    This file is distributed under the terms of the         *)
(*         *     GNU Lesser General Public License Version 2.1          *)
(*         *     (see LICENSE file for the text of the license)         *)
(************************************************************************)
Local Open Scope R_scope.
(** Tools *)
Definition pos_half_prf : 0 < /2.
(* The following lemmas are general purpose lemmas about squares. They do not belong here *)
(** * Properties of tangent *)
(** Proof that tangent is a bijection *)
(* to be removed? *)
(* end hide *)
(* The following lemmas about PI should probably be in Rtrigo. *)
Definition frame_tan y : {x | 0 < x < PI/2 /\ Rabs y < tan x}.
Definition pre_atan (y : R) : {x : R | -PI/2 < x < PI/2 /\ tan x = y}.
Definition atan x := let (v, _) := pre_atan x in v.

Lemma derivable_pt_atan : forall x, derivable_pt atan x.