diff options
| author | Théo Zimmermann | 2020-05-28 20:01:07 +0200 |
|---|---|---|
| committer | Théo Zimmermann | 2020-05-28 20:01:07 +0200 |
| commit | 7c21e568501b16cc99ecd79afd9e26a912b89ca5 (patch) | |
| tree | 0a3187500c37b675f0a20448e438e39787aacc78 /tactics/eauto.ml | |
| parent | a102a80d886bafc75991a446d1c1ae4c04494666 (diff) | |
| parent | 6dab02e46766cc33acc29c8e3cbbaed8d41b25f7 (diff) | |
Merge PR #12399: Remove the prolog tactic.
Reviewed-by: Zimmi48
Diffstat (limited to 'tactics/eauto.ml')
| -rw-r--r-- | tactics/eauto.ml | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/tactics/eauto.ml b/tactics/eauto.ml index 710e0a6808..7d8620468d 100644 --- a/tactics/eauto.ml +++ b/tactics/eauto.ml @@ -77,31 +77,6 @@ let apply_tac_list tac glls = re_sig (pack.it @ rest) pack.sigma | _ -> user_err Pp.(str "apply_tac_list") -let one_step l gl = - [Proofview.V82.of_tactic Tactics.intro] - @ (List.map (fun c -> Proofview.V82.of_tactic (Tactics.Simple.eapply c)) (List.map mkVar (pf_ids_of_hyps gl))) - @ (List.map (fun c -> Proofview.V82.of_tactic (Tactics.Simple.eapply c)) l) - @ (List.map (fun c -> Proofview.V82.of_tactic (assumption c)) (pf_ids_of_hyps gl)) - -let rec prolog l n gl = - if n <= 0 then user_err Pp.(str "prolog - failure"); - let prol = (prolog l (n-1)) in - (tclFIRST (List.map (fun t -> (tclTHEN t prol)) (one_step l gl))) gl - -let prolog_tac l n = - Proofview.V82.tactic begin fun gl -> - let map c = - let (sigma, c) = c (pf_env gl) (project gl) in - (* Dropping the universe context is probably wrong *) - let (c, _) = pf_apply (prepare_hint false) gl (sigma, c) in - c - in - let l = List.map map l in - try (prolog l n gl) - with UserError (Some "Refiner.tclFIRST",_) -> - user_err ~hdr:"Prolog.prolog" (str "Prolog failed.") - end - open Auto (***************************************************************************) |
