l,r,eq_ind
in
NCic.LetIn ("clause_" ^ string_of_int id,
- (*close_with_forall vl (extract amount vl lit)*) NCic.Implicit `Type,
- close_with_lambdas vl
+ close_with_forall vl (extract amount vl lit),
+ (* NCic.Implicit `Type, *)
+ close_with_lambdas vl
(NCic.Appl [ eq_ind ; hole_type; l; pred; p_id1; r; p_id2 ]),
aux ongoal
((id,(List.map (fun x -> Terms.Var x) vl,lit))::seen) tl)
let nparamod rdb metasenv subst context t table =
let max_nb_iter = 999999999 in
- let amount_of_time = 10.0 in
+ let amount_of_time = 300.0 in
let module C = struct
let metasenv = metasenv
let subst = subst
in
let rec given_clause bag maxvar actives
passives g_actives g_passives =
-
- incr nb_iter; if !nb_iter = max_nb_iter then
- (*(prerr_endline "Bag :"; prerr_endline (Pp.pp_bag bag);
+ (* prerr_endline "Bag :"; prerr_endline (Pp.pp_bag bag);
prerr_endline "Active table :";
(List.iter (fun x -> prerr_endline (Pp.pp_unit_clause x))
- (fst actives));*)
+ (fst actives)); *)
+ incr nb_iter; if !nb_iter = max_nb_iter then
raise (Failure "No iterations left !");
if Unix.gettimeofday () > timeout then
raise (Failure "Timeout !");
let bag, maxvar, new_goals =
List.fold_left
(fun (bag,m,acc) g ->
- let bag, m, ng = Sup.infer_left bag maxvar g
+ let bag, m, ng = Sup.infer_left bag m g
([current],ctable) in
bag,m,ng@acc)
(bag,maxvar,[]) g_actives
;;
let pp_substitution ~formatter:f subst =
- (List.iter
- (fun (i, t) ->
- (Format.fprintf f "?%d -> " i;
- pp_foterm f t)
- )
- subst)
+ Format.fprintf f "@[<v 2>";
+ List.iter
+ (fun (i, t) ->
+ (Format.fprintf f "?%d -> " i;
+ pp_foterm f t;
+ Format.fprintf f "@;"))
+ subst;
+ Format.fprintf f "@]";
;;
let pp_proof bag ~formatter:f p =