summaryrefslogtreecommitdiff
path: root/theories/Reals/SplitAbsolu.v
blob: b4026e67631a4aae4dc133f6f2e29e3999106c77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
(************************************************************************)
(*  v      *   The Coq Proof Assistant  /  The Coq Development Team     *)
(* <O___,, * CNRS-Ecole Polytechnique-INRIA Futurs-Universite Paris Sud *)
(*   \VV/  **************************************************************)
(*    //   *      This file is distributed under the terms of the       *)
(*         *       GNU Lesser General Public License Version 2.1        *)
(************************************************************************)

(*i      $Id: SplitAbsolu.v,v 1.6.2.1 2004/07/16 19:31:15 herbelin Exp $       i*)

Require Import Rbasic_fun.

Ltac split_case_Rabs :=
  match goal with
  |  |- context [(Rcase_abs ?X1)] =>
      case (Rcase_abs X1); try split_case_Rabs
  end.


Ltac split_Rabs :=
  match goal with
  | id:context [(Rabs _)] |- _ => generalize id; clear id; try split_Rabs
  |  |- context [(Rabs ?X1)] =>
      unfold Rabs in |- *; try split_case_Rabs; intros
  end.