https://github.com/EasyCrypt/easycrypt
Revision 5f1ed5aff542b8b96aca578f8aefe3668116405f authored by Pierre-Yves Strub on 21 April 2021, 08:28:34 UTC, committed by Pierre-Yves Strub on 21 April 2021, 08:28:34 UTC
1 parent bffac06
Raw File
Tip revision: 5f1ed5aff542b8b96aca578f8aefe3668116405f authored by Pierre-Yves Strub on 21 April 2021, 08:28:34 UTC
README
Tip revision: 5f1ed5a
ecSearch.mli
(* --------------------------------------------------------------------
 * Copyright (c) - 2012--2016 - IMDEA Software Institute
 * Copyright (c) - 2012--2018 - Inria
 * Copyright (c) - 2012--2018 - Ecole Polytechnique
 *
 * Distributed under the terms of the CeCILL-C-V1 license
 * -------------------------------------------------------------------- *)

(* -------------------------------------------------------------------- *)
open EcPath
open EcFol
open EcTyping

(* -------------------------------------------------------------------- *)

type pattern = (ptnmap * EcUnify.unienv) * form

type search = [
  | `ByPath    of Sp.t
  | `ByPattern of pattern
  | `ByOr      of search list
]

type search_result =
  (path * [`Axiom of EcDecl.axiom | `Schema of EcDecl.ax_schema]) list

val search : EcEnv.env -> search list -> search_result

val sort : Sp.t -> search_result -> search_result
back to top