ty,subst',metasenv'
| C.Meta (n,l) ->
(try
- let (canonical_context, term) = CicUtil.lookup_subst n subst in
+ let (canonical_context, term,ty) = CicUtil.lookup_subst n subst in
let subst,metasenv =
check_metasenv_consistency n subst metasenv context
canonical_context l
in
- type_of_aux subst metasenv context (CicSubstitution.lift_meta l term)
+ (* trust or check ??? *)
+ CicSubstitution.lift_meta l ty, subst, metasenv
+ (* type_of_aux subst metasenv
+ context (CicSubstitution.lift_meta l term) *)
with CicUtil.Subst_not_found _ ->
let (_,canonical_context,ty) = CicUtil.lookup_meta n metasenv in
let subst,metasenv =