TacticAst.Apply (loc, t)
| [ IDENT "assumption" ] ->
TacticAst.Assumption loc
- | [ IDENT "auto" ] -> TacticAst.Auto loc
+ | [ IDENT "auto" ] ; num = OPT [ i = NUM -> int_of_string i ] ->
+ TacticAst.Auto (loc,num)
| [ IDENT "change" ];
t1 = tactic_term; "with"; t2 = tactic_term;
where = tactic_where ->
type ('term, 'ident) tactic =
| Absurd of loc * 'term
| Apply of loc * 'term
- | Auto of loc
+ | Auto of loc * int option
| Assumption of loc
| Change of loc * 'term * 'term * 'ident option (* what, with what, where *)
| Change_pattern of loc * 'term pattern * 'term * 'ident option
;;
-let auto_tac ~(dbd:Mysql.dbd) =
+let auto_tac ?num ~(dbd:Mysql.dbd) =
let auto_tac dbh (proof,goal) =
prerr_endline "Entro in Auto";
match (auto dbd [(proof, [(goal,depth)],None)]) with
* http://cs.unibo.it/helm/.
*)
-val auto_tac : dbd:Mysql.dbd -> ProofEngineTypes.tactic
+val auto_tac : ?num:int option -> dbd:Mysql.dbd -> ProofEngineTypes.tactic
val auto_tac_new : dbd:Mysql.dbd -> ProofEngineTypes.tactic
val absurd : term:Cic.term -> ProofEngineTypes.tactic
val apply : term:Cic.term -> ProofEngineTypes.tactic
val assumption : ProofEngineTypes.tactic
-val auto : dbd:Mysql.dbd -> ProofEngineTypes.tactic
+val auto : ?num:int option -> dbd:Mysql.dbd -> ProofEngineTypes.tactic
val auto_new : dbd:Mysql.dbd -> ProofEngineTypes.tactic
val change : what:Cic.term -> with_what:Cic.term -> ProofEngineTypes.tactic
val compare : term:Cic.term -> ProofEngineTypes.tactic