X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic%2FcicUtil.ml;h=e686b6b35accbf4d4626b8d0fc9617ed356edbd4;hb=72f2faebd85bf6a191325b1ac39f051b22e8d838;hp=54bd178a0bed18232d5f153a5e82718d10cb73c3;hpb=8162b79d06aef1443b05a11448bce19ec9bf320e;p=helm.git diff --git a/helm/ocaml/cic/cicUtil.ml b/helm/ocaml/cic/cicUtil.ml index 54bd178a0..e686b6b35 100644 --- a/helm/ocaml/cic/cicUtil.ml +++ b/helm/ocaml/cic/cicUtil.ml @@ -175,6 +175,7 @@ let select ~term ~context = let rec aux context term = match (context, term) with | Cic.Implicit (Some `Hole), t -> [t] + | Cic.Implicit None,_ -> [] | Cic.Meta (_, ctxt1), Cic.Meta (_, ctxt2) -> List.concat (List.map2 @@ -277,4 +278,9 @@ let attributes_of_obj = function | Cic.CurrentProof (_, _, _, _, _, attributes) | Cic.InductiveDefinition (_, _, _, attributes) -> attributes + +let rec mk_rels howmany from = + match howmany with + | 0 -> [] + | _ -> (Cic.Rel (howmany + from)) :: (mk_rels (howmany-1) from)