]> matita.cs.unibo.it Git - helm.git/blob - helm/software/components/tactics/primitiveTactics.mli
case tactic first tries with a simple outtype and then with a more sofisticated one
[helm.git] / helm / software / components / tactics / primitiveTactics.mli
1 (* Copyright (C) 2002, HELM Team.
2  * 
3  * This file is part of HELM, an Hypertextual, Electronic
4  * Library of Mathematics, developed at the Computer Science
5  * Department, University of Bologna, Italy.
6  * 
7  * HELM is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 2
10  * of the License, or (at your option) any later version.
11  * 
12  * HELM is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with HELM; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place - Suite 330, Boston,
20  * MA  02111-1307, USA.
21  * 
22  * For details, see the HELM World-Wide-Web page,
23  * http://cs.unibo.it/helm/.
24  *)
25
26 (**** useful only to implement tactics similar to apply ****)
27
28 val generalize_exp_named_subst_with_fresh_metas :
29   Cic.context ->
30   int ->
31   UriManager.uri ->
32   (UriManager.uri * Cic.term) list ->
33   int * Cic.metasenv *
34   Cic.term Cic.explicit_named_substitution *
35   Cic.term Cic.explicit_named_substitution
36
37 val classify_metas :
38   Cic.term ->
39   (Cic.term -> bool) ->
40   (Cic.context -> Cic.term -> Cic.term) ->
41   (Cic.term * Cic.context * Cic.term) list ->
42   (Cic.term * Cic.context * Cic.term) list *
43   (Cic.term * Cic.context * Cic.term) list
44
45 (* Not primitive, but useful for elim *)
46
47 exception AllSelectedTermsMustBeConvertible;;
48
49 val generalize_tac:
50  ?mk_fresh_name_callback:ProofEngineTypes.mk_fresh_name_type ->
51  ProofEngineTypes.lazy_pattern ->
52    ProofEngineTypes.tactic
53
54 (* ALB, needed by the new paramodulation... *)
55 val apply_with_subst:
56   term:Cic.term -> ?subst:Cic.substitution -> ?maxmeta:int -> ProofEngineTypes.proof * int ->
57   Cic.substitution * (ProofEngineTypes.proof * int list) * int
58
59 (* not a real tactic *)
60 val apply_tac_verbose :
61   term:Cic.term ->
62   ProofEngineTypes.proof * int ->
63   (Cic.term -> Cic.term) * (ProofEngineTypes.proof * int list)
64
65 val apply_tac:
66   term: Cic.term -> ProofEngineTypes.tactic
67 val applyP_tac: (* apply for procedural reconstruction *)
68   term: Cic.term -> ProofEngineTypes.tactic
69 val exact_tac:
70   term: Cic.term -> ProofEngineTypes.tactic
71 val intros_tac:
72   ?howmany:int ->
73   ?mk_fresh_name_callback:ProofEngineTypes.mk_fresh_name_type -> unit ->
74    ProofEngineTypes.tactic
75 val cut_tac:
76   ?mk_fresh_name_callback:ProofEngineTypes.mk_fresh_name_type ->
77   Cic.term ->
78    ProofEngineTypes.tactic 
79 val letin_tac:
80   ?mk_fresh_name_callback:ProofEngineTypes.mk_fresh_name_type ->
81   Cic.term ->
82    ProofEngineTypes.tactic 
83
84 val elim_intros_simpl_tac:
85   ?mk_fresh_name_callback:ProofEngineTypes.mk_fresh_name_type ->
86   ?depth:int -> ?using:Cic.term -> 
87   ?pattern:ProofEngineTypes.lazy_pattern -> Cic.term ->
88   ProofEngineTypes.tactic 
89 val elim_intros_tac:
90   ?mk_fresh_name_callback:ProofEngineTypes.mk_fresh_name_type ->
91   ?depth:int -> ?using:Cic.term -> 
92   ?pattern:ProofEngineTypes.lazy_pattern -> Cic.term ->
93   ProofEngineTypes.tactic 
94
95 val cases_intros_tac:
96   ?howmany:int ->
97   ?mk_fresh_name_callback:ProofEngineTypes.mk_fresh_name_type ->
98   ?pattern:ProofEngineTypes.lazy_pattern -> Cic.term ->
99   ProofEngineTypes.tactic 
100
101 (* FG *)
102
103 val mk_predicate_for_elim: 
104  context:Cic.context -> metasenv:Cic.metasenv -> 
105  ugraph:CicUniv.universe_graph -> goal:Cic.term -> 
106  arg:Cic.term -> using:Cic.term -> cpattern:Cic.term -> args_no:int -> 
107  Cic.metasenv * Cic.term * Cic.term * Cic.term list