diff options
| author | Maxime Dénès | 2020-09-03 09:17:25 +0200 |
|---|---|---|
| committer | Maxime Dénès | 2020-09-03 09:17:25 +0200 |
| commit | 2724016216c88e863cd3275b406b8ec2602dfaba (patch) | |
| tree | 4072b57daf83f3f6c365696c74acaa0cf5e2f02b /pretyping/evarsolve.mli | |
| parent | 4e0f9f5638df5ea6061ee82e1c8314054f72c903 (diff) | |
Comment AllowedEvars API
Diffstat (limited to 'pretyping/evarsolve.mli')
| -rw-r--r-- | pretyping/evarsolve.mli | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/pretyping/evarsolve.mli b/pretyping/evarsolve.mli index c248e50820..8ff2d7fc63 100644 --- a/pretyping/evarsolve.mli +++ b/pretyping/evarsolve.mli @@ -19,12 +19,22 @@ val of_alias : alias -> EConstr.t module AllowedEvars : sig type t + (** Represents the set of evars that can be defined by the pretyper *) val all : t + (** All evars can be defined *) + val mem : t -> Evar.t -> bool - val remove : Evar.t -> t -> t - val except : Evar.Set.t -> t + (** [mem allowed evk] is true iff evk can be defined *) + val from_pred : (Evar.t -> bool) -> t + (** [from_pred p] means evars satisfying p can be defined *) + + val except : Evar.Set.t -> t + (** [except evars] means all evars can be defined except the ones in [evars] *) + + val remove : Evar.t -> t -> t + (** [remove evk allowed] removes [evk] from the set of evars allowed by [allowed] *) end |
