package coq-core
Install
    
    dune-project
 Dependency
Authors
Maintainers
Sources
md5=0cfaa70f569be9494d24c829e6555d46
    
    
  sha512=8ee967c636b67b22a4f34115871d8f9b9114df309afc9ddf5f61275251088c6e21f6cf745811df75554d30f4cebb6682f23eeb2e88b771330c4b60ce3f6bf5e2
    
    
  doc/coq-core.vernac/Search/index.html
Module SearchSource
Search facilities.
type glob_search_item = | GlobSearchSubPattern of Vernacexpr.glob_search_where * bool * Pattern.constr_pattern| GlobSearchString of string| GlobSearchKind of Decls.logical_kind| GlobSearchFilter of Names.GlobRef.t -> bool
type glob_search_request = | GlobSearchLiteral of glob_search_item| GlobSearchDisjConj of (bool * glob_search_request) list list
type filter_function =
  Names.GlobRef.t ->
  Decls.logical_kind option ->
  Environ.env ->
  Evd.evar_map ->
  Constr.constr ->
  booltype display_function =
  Names.GlobRef.t ->
  Decls.logical_kind option ->
  Environ.env ->
  Evd.evar_map ->
  Constr.constr ->
  unitGeneric filter functions
Check whether a reference is blacklisted.
Check whether a reference pertains or not to a set of modules
Specialized search functions
search_xxx gl pattern modinout searches the hypothesis of the glth goal and the global environment for things matching pattern and satisfying module exclude/include clauses of modinout.
val search_rewrite : 
  Environ.env ->
  Evd.evar_map ->
  Pattern.constr_pattern ->
  Names.DirPath.t list Vernacexpr.search_restriction ->
  display_function ->
  unitval search_pattern : 
  Environ.env ->
  Evd.evar_map ->
  Pattern.constr_pattern ->
  Names.DirPath.t list Vernacexpr.search_restriction ->
  display_function ->
  unitval search : 
  Environ.env ->
  Evd.evar_map ->
  (bool * glob_search_request) list ->
  Names.DirPath.t list Vernacexpr.search_restriction ->
  display_function ->
  unittype search_constraint = | Name_Pattern of Str.regexp(*Whether the name satisfies a regexp (uses Ocaml Str syntax)
*)| Type_Pattern of Pattern.constr_pattern(*Whether the object type satisfies a pattern
*)| SubType_Pattern of Pattern.constr_pattern(*Whether some subtype of object type satisfies a pattern
*)| In_Module of Names.DirPath.t(*Whether the object pertains to a module
*)| Include_Blacklist(*Bypass the Search blacklist
*)
val interface_search : 
  Environ.env ->
  Evd.evar_map ->
  (search_constraint * bool) list ->
  Constr.constr coq_object listGeneric search function
This function iterates over all hypothesis of the goal numbered glnum (if present) and all known declarations.
Search function modifiers
prioritize_search iter iterates over the values of iter (seen as a sequence of declarations), in a relevance order. This requires to perform the entire iteration of iter before starting streaming. So prioritize_search should not be used for low-latency streaming.