diff options
| author | Pierre-Marie Pédrot | 2018-11-09 15:08:58 +0100 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2018-11-09 15:08:58 +0100 |
| commit | 5d90e05b35f85607c43888b9adb0319e98a81fb4 (patch) | |
| tree | 25787c6f6bc8ecdf601edbdacb5edb16733aaea0 /tactics | |
| parent | 720a2f6e881cd2df93bc775f331c3444bebd5980 (diff) | |
| parent | 46f6b27f9808848556f88032cb2af0a8a9f6c017 (diff) | |
Merge PR #8820: Standardize handling of Automatic Introduction.
Diffstat (limited to 'tactics')
| -rw-r--r-- | tactics/tactics.ml | 6 | ||||
| -rw-r--r-- | tactics/tactics.mli | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/tactics/tactics.ml b/tactics/tactics.ml index 5cead11a5c..1646906daa 100644 --- a/tactics/tactics.ml +++ b/tactics/tactics.ml @@ -1062,6 +1062,12 @@ let intros_replacing ids = (Tacticals.New.tclMAP (fun (id,pos) -> intro_move (Some id) pos) posl) end +(* The standard for implementing Automatic Introduction *) +let auto_intros_tac ids = + Tacticals.New.tclMAP (function + | Name id -> intro_mustbe_force id + | Anonymous -> intro) (List.rev ids) + (* User-level introduction tactics *) let lookup_hypothesis_as_renamed env sigma ccl = function diff --git a/tactics/tactics.mli b/tactics/tactics.mli index 7efadb2c28..b298524ff8 100644 --- a/tactics/tactics.mli +++ b/tactics/tactics.mli @@ -70,6 +70,9 @@ val intros_using : Id.t list -> unit Proofview.tactic val intros_replacing : Id.t list -> unit Proofview.tactic val intros_possibly_replacing : Id.t list -> unit Proofview.tactic +(** [auto_intros_tac names] handles Automatic Introduction of binders *) +val auto_intros_tac : Names.Name.t list -> unit Proofview.tactic + val intros : unit Proofview.tactic (** [depth_of_quantified_hypothesis b h g] returns the index of [h] in |
