]> matita.cs.unibo.it Git - helm.git/commitdiff
added mk_fix i j r that given an r of a fix generated another fix on i and j
authorEnrico Tassi <enrico.tassi@inria.fr>
Mon, 14 Apr 2008 10:20:39 +0000 (10:20 +0000)
committerEnrico Tassi <enrico.tassi@inria.fr>
Mon, 14 Apr 2008 10:20:39 +0000 (10:20 +0000)
helm/software/components/ng_kernel/nReference.ml
helm/software/components/ng_kernel/nReference.mli

index 2692075e02796a5c3958e066854513d2de720059..5da330541997905447ae9341d41d16d566598e03 100644 (file)
@@ -119,6 +119,12 @@ let mk_constructor j = function
   | _ -> assert false
 ;;
 
+let mk_fix i j = function
+  | Ref (d, u, Fix _) -> 
+      reference_of_string (string_of_reference (Ref (d, u, Fix (i,j))))
+  | _ -> assert false
+;;
+
 let reference_of_ouri u indinfo =
   let u = NUri.nuri_of_ouri u in
   reference_of_string (string_of_reference (Ref (max_int,u,indinfo)))
index de468c3c10cdb67776fb877bab4b02af15bb4857..75285360836a600b5d00455f0af3ad72b17eb969 100644 (file)
@@ -28,6 +28,7 @@ val string_of_reference: reference -> string
 
 (* given the reference of an inductive type, returns the i-th contructor *)
 val mk_constructor: int -> reference -> reference
+val mk_fix: int -> int -> reference -> reference
 
 
 (* CACCA *)