aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorherbelin2001-06-16 20:42:49 +0000
committerherbelin2001-06-16 20:42:49 +0000
commit7fd05ed06e94e5411755d76a5b612962f3fdab6b (patch)
tree6100e6be4a0340dff87030673e06a8982ed1b907
parent686b7d347ba8dc9a4e032cd4c6cb38da93c38188 (diff)
code mort
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@1788 85f007b7-540e-0410-9357-904b9bb8a0f7
-rw-r--r--pretyping/cases.ml20
1 files changed, 0 insertions, 20 deletions
diff --git a/pretyping/cases.ml b/pretyping/cases.ml
index 3c0c3f05c1..4ab877bdaf 100644
--- a/pretyping/cases.ml
+++ b/pretyping/cases.ml
@@ -896,26 +896,6 @@ let known_dependent = function
(* account; especially, no lift would be necessary (but *)
(* [specialize_predicate_match] assumes realargs are given, then ...) *)
(*****************************************************************************)
-(*
-let weaken_predicate q pred =
- let rec weakrec n k pred =
- if n=0 then lift_predicate k pred else match pred with
- | (PrLetIn _ | PrCcl _ | PrNotInd _) ->
- anomaly "weaken_predicate: only product can be weakened"
- | PrProd ((dep,_,IsInd (_,IndType(indf,realargs))),pred) ->
- (* To make it more uniform, we apply realargs but they dont occur! *)
- let copt, p = if dep then Some (mkRel (q+k)), 1 else None, 0 in
- let realargs = List.map (lift k) realargs in
- (* We replace 1 product by |realargs| arguments + possibly copt *)
- (* Then we need to add this to the global lift *)
- let lift = k+(List.length realargs)+p in
- PrLetIn ((realargs, copt), weakrec (n-1) lift pred)
- | PrProd ((dep,_,NotInd t),pred) ->
- (* Does copt occur in pred ? Does it need to be remembered ? *)
- let copt, p = if dep then Some (mkRel (q+k)), 1 else None, 0 in
- PrNotInd (copt, weakrec (n-1) (k+p) pred)
- in weakrec q 0 pred
-*)
let weaken_predicate q pred =
let rec weakrec n k pred =
if n=0 then pred else match pred with