]> matita.cs.unibo.it Git - helm.git/commitdiff
Apply subst implemented also for Fixpoints.
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Sat, 25 Apr 2009 20:29:06 +0000 (20:29 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Sat, 25 Apr 2009 20:29:06 +0000 (20:29 +0000)
helm/software/components/ng_tactics/nTacStatus.ml

index f0b00e561dbc7d26c21ebc4d469becb5faa0349e..eeca351c228f01462ce591e70569109d7c2642c4 100644 (file)
@@ -352,6 +352,14 @@ let apply_subst_obj subst =
      NCic.Constant
       (relev,name,HExtlib.map_option (apply_subst subst []) bo,
         apply_subst subst [] ty,attrs)
+  | NCic.Fixpoint (ind,fl,attrs) ->
+     let fl =
+      List.map
+       (function (relevance,name,recno,ty,bo) ->
+         relevance,name,recno,apply_subst subst [] ty,apply_subst subst [] bo
+       ) fl
+     in
+      NCic.Fixpoint (ind,fl,attrs)
   | _ -> assert false (* not implemented yet *)
 ;;