fst (R.are_convertible context (S.lift n t) ty
CicUniv.empty_ugraph) -> n
| (Some (_, C.Def (_,Some ty'))) when
- fst (R.are_convertible context ty' ty CicUniv.empty_ugraph) -> n
+ fst (R.are_convertible context (S.lift n ty') ty
+ CicUniv.empty_ugraph) -> n
| (Some (_, C.Def (t,None))) ->
let ty_t, u = (* TASSI: FIXME *)
CicTypeChecker.type_of_aux' metasenv context (S.lift n t)
PET.mk_tactic (generalize_tac mk_fresh_name_callback terms)
;;
+let set_goal n =
+ ProofEngineTypes.mk_tactic
+ (fun (proof, goal) ->
+ let (_, metasenv, _, _) = proof in
+ if CicUtil.exists_meta n metasenv then
+ (proof, [n])
+ else
+ raise (ProofEngineTypes.Fail ("no such meta: " ^ string_of_int n)))