diff options
| author | Pierre-Marie Pédrot | 2014-04-23 21:38:37 +0200 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2014-04-23 22:58:51 +0200 |
| commit | 5bddbf141cc6462563cdc86dcc7c02edccd295fd (patch) | |
| tree | 9ebc3de6396f376064b67c5da0202b1e33ed22af /pretyping/evd.mli | |
| parent | 74ddca99c649f2f8c203582a9b82bddf64fb6b52 (diff) | |
Better representation of evar filters: we represent the vacuous filters of
any length with a [None] representation and ensure that this representation
is canonical through the restricted interface.
Diffstat (limited to 'pretyping/evd.mli')
| -rw-r--r-- | pretyping/evd.mli | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/pretyping/evd.mli b/pretyping/evd.mli index 8f423c7881..55bce05de6 100644 --- a/pretyping/evd.mli +++ b/pretyping/evd.mli @@ -42,17 +42,8 @@ sig val equal : t -> t -> bool (** Equality over filters *) - val length : t -> int - (** Length of a filter. *) - - val identity : int -> t - (** The identity filter of the given length. *) - - val is_identity : t -> bool - (** Check whether the whole bitmask is set. *) - - val init : int -> (int -> bool) -> t - (** Create a filter with the given length and constructing function. *) + val identity : t + (** The identity filter. *) val filter_list : t -> 'a list -> 'a list (** Filter a list. Sizes must coincide. *) @@ -60,8 +51,8 @@ sig val filter_array : t -> 'a array -> 'a array (** Filter an array. Sizes must coincide. *) - val cons : bool -> t -> t - (** Extend a bitmask on the left. *) + val extend : int -> t -> t + (** [extend n f] extends [f] on the left with [n]-th times [true]. *) val compose : t -> t -> t (** Horizontal composition : [compose f1 f2] only keeps parts of [f2] where @@ -73,13 +64,10 @@ sig val map_along : (bool -> 'a -> bool) -> t -> 'a list -> t (** Apply the function on the filter and the list. Sizes must coincide. *) - val init_list : ('a -> bool) -> 'a list -> t + val make : bool list -> t (** Create out of a list *) - val append : t -> t -> t - (** Append, seen as lists *) - - val repr : t -> bool list + val repr : t -> bool list option (** Observe as a bool list. *) end |
