| (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, _) ->