]> matita.cs.unibo.it Git - helm.git/commitdiff
context for fixpoint body created in the hopefully right order
authorEnrico Tassi <enrico.tassi@inria.fr>
Tue, 25 Mar 2008 15:59:51 +0000 (15:59 +0000)
committerEnrico Tassi <enrico.tassi@inria.fr>
Tue, 25 Mar 2008 15:59:51 +0000 (15:59 +0000)
helm/software/components/ng_kernel/oCic2NCic.ml

index 2f95d663cb8c061686ac02cd5992c0626ff697c0..b900d169b12b98b23e5eb99b83dfb1d5d229763c 100644 (file)
@@ -77,7 +77,7 @@ let convert_term uri t =
             (fun (name,ty,_) (ctx, fixpoints, tys, idx) -> 
               let ty, fixpoints_ty = aux octx ctx n_fix uri ty in
               let r = NReference.reference_of_ouri buri(NReference.CoFix idx) in
-              ctx @ [Fix (r,name,ty)], fixpoints_ty @ fixpoints,ty::tys,idx+1)
+              Fix (r,name,ty) :: ctx, fixpoints_ty @ fixpoints,ty::tys,idx+1)
             fl ([], [], [], 0)
         in
         let bctx = bctx @ ctx in
@@ -119,7 +119,7 @@ let convert_term uri t =
               let r = 
                 NReference.reference_of_ouri buri (NReference.Fix (idx,recno)) 
               in
-              ctx @ [Fix (r,name,ty)], fixpoints_ty@fixpoints,ty::tys,idx+1)
+              Fix (r,name,ty) :: ctx, fixpoints_ty@fixpoints,ty::tys,idx+1)
             fl ([], [], [], 0)
         in
         let bctx = bctx @ ctx in