aboutsummaryrefslogtreecommitdiff
path: root/plugins/funind/rawtermops.mli
diff options
context:
space:
mode:
authorglondu2010-12-24 23:49:17 +0000
committerglondu2010-12-24 23:49:17 +0000
commit6ebd4c4ad28d46965623e72d8654c36fcc6fe9b0 (patch)
tree96640a563162304797535b73f65a5fe8b4811b02 /plugins/funind/rawtermops.mli
parente5b94c29ff49f8b880290a72519157d26351bc6c (diff)
Rename files in funind to respect new conventions
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@13755 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'plugins/funind/rawtermops.mli')
-rw-r--r--plugins/funind/rawtermops.mli126
1 files changed, 0 insertions, 126 deletions
diff --git a/plugins/funind/rawtermops.mli b/plugins/funind/rawtermops.mli
deleted file mode 100644
index b6c407a240..0000000000
--- a/plugins/funind/rawtermops.mli
+++ /dev/null
@@ -1,126 +0,0 @@
-open Glob_term
-
-(* Ocaml 3.06 Map.S does not handle is_empty *)
-val idmap_is_empty : 'a Names.Idmap.t -> bool
-
-
-(* [get_pattern_id pat] returns a list of all the variable appearing in [pat] *)
-val get_pattern_id : cases_pattern -> Names.identifier list
-
-(* [pattern_to_term pat] returns a glob_constr corresponding to [pat].
- [pat] must not contain occurences of anonymous pattern
-*)
-val pattern_to_term : cases_pattern -> glob_constr
-
-(*
- Some basic functions to rebuild glob_constr
- In each of them the location is Util.dummy_loc
-*)
-val mkRRef : Libnames.global_reference -> glob_constr
-val mkRVar : Names.identifier -> glob_constr
-val mkRApp : glob_constr*(glob_constr list) -> glob_constr
-val mkRLambda : Names.name * glob_constr * glob_constr -> glob_constr
-val mkRProd : Names.name * glob_constr * glob_constr -> glob_constr
-val mkRLetIn : Names.name * glob_constr * glob_constr -> glob_constr
-val mkRCases : glob_constr option * tomatch_tuples * cases_clauses -> glob_constr
-val mkRSort : rawsort -> glob_constr
-val mkRHole : unit -> glob_constr (* we only build Evd.BinderType Anonymous holes *)
-val mkRCast : glob_constr* glob_constr -> glob_constr
-(*
- Some basic functions to decompose glob_constrs
- These are analogous to the ones constrs
-*)
-val glob_decompose_prod : glob_constr -> (Names.name*glob_constr) list * glob_constr
-val glob_decompose_prod_or_letin :
- glob_constr -> (Names.name*glob_constr option*glob_constr option) list * glob_constr
-val glob_decompose_prod_n : int -> glob_constr -> (Names.name*glob_constr) list * glob_constr
-val glob_decompose_prod_or_letin_n : int -> glob_constr ->
- (Names.name*glob_constr option*glob_constr option) list * glob_constr
-val glob_compose_prod : glob_constr -> (Names.name*glob_constr) list -> glob_constr
-val glob_compose_prod_or_letin: glob_constr ->
- (Names.name*glob_constr option*glob_constr option) list -> glob_constr
-val glob_decompose_app : glob_constr -> glob_constr*(glob_constr list)
-
-
-(* [glob_make_eq t1 t2] build the glob_constr corresponding to [t2 = t1] *)
-val glob_make_eq : ?typ:glob_constr -> glob_constr -> glob_constr -> glob_constr
-(* [glob_make_neq t1 t2] build the glob_constr corresponding to [t1 <> t2] *)
-val glob_make_neq : glob_constr -> glob_constr -> glob_constr
-(* [glob_make_or P1 P2] build the glob_constr corresponding to [P1 \/ P2] *)
-val glob_make_or : glob_constr -> glob_constr -> glob_constr
-
-(* [glob_make_or_list [P1;...;Pn]] build the glob_constr corresponding
- to [P1 \/ ( .... \/ Pn)]
-*)
-val glob_make_or_list : glob_constr list -> glob_constr
-
-
-(* alpha_conversion functions *)
-
-
-
-(* Replace the var mapped in the glob_constr/context *)
-val change_vars : Names.identifier Names.Idmap.t -> glob_constr -> glob_constr
-
-
-
-(* [alpha_pat avoid pat] rename all the variables present in [pat] s.t.
- the result does not share variables with [avoid]. This function create
- a fresh variable for each occurence of the anonymous pattern.
-
- Also returns a mapping from old variables to new ones and the concatenation of
- [avoid] with the variables appearing in the result.
-*)
- val alpha_pat :
- Names.Idmap.key list ->
- Glob_term.cases_pattern ->
- Glob_term.cases_pattern * Names.Idmap.key list *
- Names.identifier Names.Idmap.t
-
-(* [alpha_rt avoid rt] alpha convert [rt] s.t. the result repects barendregt
- conventions and does not share bound variables with avoid
-*)
-val alpha_rt : Names.identifier list -> glob_constr -> glob_constr
-
-(* same as alpha_rt but for case branches *)
-val alpha_br : Names.identifier list ->
- Util.loc * Names.identifier list * Glob_term.cases_pattern list *
- Glob_term.glob_constr ->
- Util.loc * Names.identifier list * Glob_term.cases_pattern list *
- Glob_term.glob_constr
-
-
-(* Reduction function *)
-val replace_var_by_term :
- Names.identifier ->
- Glob_term.glob_constr -> Glob_term.glob_constr -> Glob_term.glob_constr
-
-
-
-(*
- [is_free_in id rt] checks if [id] is a free variable in [rt]
-*)
-val is_free_in : Names.identifier -> glob_constr -> bool
-
-
-val are_unifiable : cases_pattern -> cases_pattern -> bool
-val eq_cases_pattern : cases_pattern -> cases_pattern -> bool
-
-
-
-(*
- ids_of_pat : cases_pattern -> Idset.t
- returns the set of variables appearing in a pattern
-*)
-val ids_of_pat : cases_pattern -> Names.Idset.t
-
-(* TODO: finish this function (Fix not treated) *)
-val ids_of_rawterm: glob_constr -> Names.Idset.t
-
-(*
- removing let_in construction in a rawterm
-*)
-val zeta_normalize : Glob_term.glob_constr -> Glob_term.glob_constr
-
-
-val expand_as : glob_constr -> glob_constr