aboutsummaryrefslogtreecommitdiffhomepage
path: root/pretyping/miscops.mli
blob: dae29208eda309b1d272fc9c6b59bcfeeb952ad0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
(************************************************************************)
(*  v      *   The Coq Proof Assistant  /  The Coq Development Team     *)
(* <O___,, *   INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2017     *)
(*   \VV/  **************************************************************)
(*    //   *      This file is distributed under the terms of the       *)
(*         *       GNU Lesser General Public License Version 2.1        *)
(************************************************************************)

open Misctypes
open Genredexpr

(** Mapping [cast_type] *)

val map_cast_type : ('a -> 'b) -> 'a cast_type -> 'b cast_type
val smartmap_cast_type : ('a -> 'a) -> 'a cast_type -> 'a cast_type

(** Equalities on [glob_sort] *)

val glob_sort_eq : glob_sort -> glob_sort -> bool

(** Equalities on [intro_pattern_naming] *)

val intro_pattern_naming_eq :
  intro_pattern_naming_expr -> intro_pattern_naming_expr -> bool

(** Mapping [red_expr_gen] *)

val map_red_expr_gen : ('a -> 'd) -> ('b -> 'e) -> ('c -> 'f) ->
  ('a,'b,'c) red_expr_gen -> ('d,'e,'f) red_expr_gen

(** Mapping bindings *)

val map_bindings : ('a -> 'b) -> 'a bindings -> 'b bindings
val map_with_bindings : ('a -> 'b) -> 'a with_bindings -> 'b with_bindings