X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fng_kernel%2FoCic2NCic.ml;h=095b967a495975606fbc84ff1cedb2907ee93f39;hb=c10c2e70616edc42e155530e6bdd4a2e680f45f0;hp=f20df7c8064ffdc47faeea23ed4bd2fc4ba858e8;hpb=d9037e385e4cb12eccd8a734f4a9fc1a5a0f8b62;p=helm.git diff --git a/helm/software/components/ng_kernel/oCic2NCic.ml b/helm/software/components/ng_kernel/oCic2NCic.ml index f20df7c80..095b967a4 100644 --- a/helm/software/components/ng_kernel/oCic2NCic.ml +++ b/helm/software/components/ng_kernel/oCic2NCic.ml @@ -203,7 +203,12 @@ let convert_term uri t = | (NCic.Appl l1)::l2 -> NCic.Appl (l1@l2), fixpoints | _ -> NCic.Appl l, fixpoints) | Cic.Const (curi, _) -> - NCic.Const (Ref.reference_of_ouri curi Ref.Def),[] + (match fst(CicEnvironment.get_obj CicUniv.oblivion_ugraph curi) with + | Cic.Constant (_,Some _,_,_,_) -> + NCic.Const (Ref.reference_of_ouri curi Ref.Def),[] + | Cic.Constant (_,None,_,_,_) -> + NCic.Const (Ref.reference_of_ouri curi Ref.Decl),[] + | _ -> assert false) | Cic.MutInd (curi, tyno, _) -> NCic.Const (Ref.reference_of_ouri curi (Ref.Ind tyno)),[] | Cic.MutConstruct (curi, tyno, consno, _) ->