sig
  type location = ParseLocation.t
  type var = V of string | Wildcard
  type t = private { term : STerm.view; loc : STerm.location option; }
  and view =
      Var of STerm.var
    | Const of string
    | AppBuiltin of Builtin.t * STerm.t list
    | App of STerm.t * STerm.t list
    | Bind of Binder.t * STerm.typed_var list * STerm.t
    | List of STerm.t list
    | Record of (string * STerm.t) list * STerm.var option
  and typed_var = STerm.var * STerm.t option
  type term = STerm.t
  val view : STerm.t -> STerm.view
  val loc : STerm.t -> STerm.location option
  val equal : t -> t -> bool
  val hash_fun : t -> CCHash.state -> CCHash.state
  val hash : t -> int
  val compare : t -> t -> int
  val var : ?loc:STerm.location -> string -> STerm.t
  val v_wild : STerm.t
  val mk_var : ?loc:STerm.location -> STerm.var -> STerm.t
  val app : ?loc:STerm.location -> STerm.t -> STerm.t list -> STerm.t
  val builtin : ?loc:STerm.location -> Builtin.t -> STerm.t
  val app_builtin :
    ?loc:STerm.location -> Builtin.t -> STerm.t list -> STerm.t
  val const : ?loc:STerm.location -> string -> STerm.t
  val bind :
    ?loc:STerm.location ->
    Binder.t -> STerm.typed_var list -> STerm.t -> STerm.t
  val list_ : ?loc:STerm.location -> STerm.t list -> STerm.t
  val nil : STerm.t
  val record :
    ?loc:STerm.location ->
    (string * STerm.t) list -> rest:STerm.var option -> STerm.t
  val at_loc : loc:STerm.location -> STerm.t -> STerm.t
  val wildcard : STerm.t
  val is_app : STerm.t -> bool
  val is_var : STerm.t -> bool
  val true_ : STerm.t
  val false_ : STerm.t
  val and_ : ?loc:STerm.location -> STerm.t list -> STerm.t
  val or_ : ?loc:STerm.location -> STerm.t list -> STerm.t
  val not_ : ?loc:STerm.location -> STerm.t -> STerm.t
  val equiv : ?loc:STerm.location -> STerm.t -> STerm.t -> STerm.t
  val xor : ?loc:STerm.location -> STerm.t -> STerm.t -> STerm.t
  val imply : ?loc:STerm.location -> STerm.t -> STerm.t -> STerm.t
  val eq : ?loc:STerm.location -> STerm.t -> STerm.t -> STerm.t
  val neq : ?loc:STerm.location -> STerm.t -> STerm.t -> STerm.t
  val forall :
    ?loc:STerm.location -> STerm.typed_var list -> STerm.t -> STerm.t
  val exists :
    ?loc:STerm.location -> STerm.typed_var list -> STerm.t -> STerm.t
  val lambda :
    ?loc:STerm.location -> STerm.typed_var list -> STerm.t -> STerm.t
  val int_ : Z.t -> STerm.t
  val of_int : int -> STerm.t
  val rat : Q.t -> STerm.t
  val tType : STerm.t
  val term : STerm.t
  val prop : STerm.t
  val ty_int : STerm.t
  val ty_rat : STerm.t
  val fun_ty : ?loc:STerm.location -> STerm.t list -> STerm.t -> STerm.t
  val forall_ty :
    ?loc:STerm.location -> STerm.typed_var list -> STerm.t -> STerm.t
  module Set :
    sig
      type elt = term
      type t
      val empty : t
      val is_empty : t -> bool
      val mem : elt -> t -> bool
      val add : elt -> t -> t
      val singleton : elt -> t
      val remove : elt -> t -> t
      val union : t -> t -> t
      val inter : t -> t -> t
      val diff : t -> t -> t
      val compare : t -> t -> int
      val equal : t -> t -> bool
      val subset : t -> t -> bool
      val iter : (elt -> unit) -> t -> unit
      val fold : (elt -> '-> 'a) -> t -> '-> 'a
      val for_all : (elt -> bool) -> t -> bool
      val exists : (elt -> bool) -> t -> bool
      val filter : (elt -> bool) -> t -> t
      val partition : (elt -> bool) -> t -> t * t
      val cardinal : t -> int
      val elements : t -> elt list
      val min_elt : t -> elt
      val max_elt : t -> elt
      val choose : t -> elt
      val split : elt -> t -> t * bool * t
      val find : elt -> t -> elt
      val of_seq : elt CCSet.sequence -> t
      val add_seq : t -> elt CCSet.sequence -> t
      val to_seq : t -> elt CCSet.sequence
      val of_list : elt list -> t
      val add_list : t -> elt list -> t
      val to_list : t -> elt list
      val pp :
        ?start:string ->
        ?stop:string -> ?sep:string -> elt CCSet.printer -> t CCSet.printer
      val print :
        ?start:string ->
        ?stop:string ->
        ?sep:string -> elt CCSet.formatter -> t CCSet.formatter
    end
  module Map :
    sig
      type key = term
      type +'a t
      val empty : 'a t
      val is_empty : 'a t -> bool
      val mem : key -> 'a t -> bool
      val add : key -> '-> 'a t -> 'a t
      val singleton : key -> '-> 'a t
      val remove : key -> 'a t -> 'a t
      val merge :
        (key -> 'a option -> 'b option -> 'c option) -> 'a t -> 'b t -> 'c t
      val compare : ('-> '-> int) -> 'a t -> 'a t -> int
      val equal : ('-> '-> bool) -> 'a t -> 'a t -> bool
      val iter : (key -> '-> unit) -> 'a t -> unit
      val fold : (key -> '-> '-> 'b) -> 'a t -> '-> 'b
      val for_all : (key -> '-> bool) -> 'a t -> bool
      val exists : (key -> '-> bool) -> 'a t -> bool
      val filter : (key -> '-> bool) -> 'a t -> 'a t
      val partition : (key -> '-> bool) -> 'a t -> 'a t * 'a t
      val cardinal : 'a t -> int
      val bindings : 'a t -> (key * 'a) list
      val min_binding : 'a t -> key * 'a
      val max_binding : 'a t -> key * 'a
      val choose : 'a t -> key * 'a
      val split : key -> 'a t -> 'a t * 'a option * 'a t
      val find : key -> 'a t -> 'a
      val map : ('-> 'b) -> 'a t -> 'b t
      val mapi : (key -> '-> 'b) -> 'a t -> 'b t
      val get : key -> 'a t -> 'a option
      val get_or : key -> 'a t -> or_:'-> 'a
      val update : key -> ('a option -> 'a option) -> 'a t -> 'a t
      val merge_safe :
        f:(key ->
           [ `Both of 'a * '| `Left of '| `Right of 'b ] -> 'c option) ->
        'a t -> 'b t -> 'c t
      val of_seq : (key * 'a) CCMap.sequence -> 'a t
      val add_seq : 'a t -> (key * 'a) CCMap.sequence -> 'a t
      val to_seq : 'a t -> (key * 'a) CCMap.sequence
      val of_list : (key * 'a) list -> 'a t
      val add_list : 'a t -> (key * 'a) list -> 'a t
      val keys : 'a t -> key CCMap.sequence
      val values : 'a t -> 'CCMap.sequence
      val to_list : 'a t -> (key * 'a) list
      val pp :
        ?start:string ->
        ?stop:string ->
        ?arrow:string ->
        ?sep:string ->
        key CCMap.printer -> 'CCMap.printer -> 'a t CCMap.printer
      val print :
        ?start:string ->
        ?stop:string ->
        ?arrow:string ->
        ?sep:string ->
        key CCMap.formatter -> 'CCMap.formatter -> 'a t CCMap.formatter
    end
  module Tbl :
    sig
      type key = term
      type 'a t
      val create : int -> 'a t
      val clear : 'a t -> unit
      val reset : 'a t -> unit
      val copy : 'a t -> 'a t
      val add : 'a t -> key -> '-> unit
      val remove : 'a t -> key -> unit
      val find : 'a t -> key -> 'a
      val find_all : 'a t -> key -> 'a list
      val replace : 'a t -> key -> '-> unit
      val mem : 'a t -> key -> bool
      val iter : (key -> '-> unit) -> 'a t -> unit
      val fold : (key -> '-> '-> 'b) -> 'a t -> '-> 'b
      val length : 'a t -> int
      val stats : 'a t -> Hashtbl.statistics
      val get : 'a t -> key -> 'a option
      val get_or : 'a t -> key -> or_:'-> 'a
      val add_list : 'a list t -> key -> '-> unit
      val incr : ?by:int -> int t -> key -> unit
      val decr : ?by:int -> int t -> key -> unit
      val keys : 'a t -> key CCHashtbl.sequence
      val values : 'a t -> 'CCHashtbl.sequence
      val keys_list : 'a t -> key list
      val values_list : 'a t -> 'a list
      val map_list : (key -> '-> 'b) -> 'a t -> 'b list
      val to_seq : 'a t -> (key * 'a) CCHashtbl.sequence
      val of_seq : (key * 'a) CCHashtbl.sequence -> 'a t
      val add_seq : 'a t -> (key * 'a) CCHashtbl.sequence -> unit
      val add_seq_count : int t -> key CCHashtbl.sequence -> unit
      val of_seq_count : key CCHashtbl.sequence -> int t
      val to_list : 'a t -> (key * 'a) list
      val of_list : (key * 'a) list -> 'a t
      val update : 'a t -> f:(key -> 'a option -> 'a option) -> k:key -> unit
      val print :
        key CCHashtbl.printer ->
        'CCHashtbl.printer -> 'a t CCHashtbl.printer
    end
  module StringSet :
    sig
      type elt = string
      type t
      val empty : t
      val is_empty : t -> bool
      val mem : elt -> t -> bool
      val add : elt -> t -> t
      val singleton : elt -> t
      val remove : elt -> t -> t
      val union : t -> t -> t
      val inter : t -> t -> t
      val diff : t -> t -> t
      val compare : t -> t -> int
      val equal : t -> t -> bool
      val subset : t -> t -> bool
      val iter : (elt -> unit) -> t -> unit
      val fold : (elt -> '-> 'a) -> t -> '-> 'a
      val for_all : (elt -> bool) -> t -> bool
      val exists : (elt -> bool) -> t -> bool
      val filter : (elt -> bool) -> t -> t
      val partition : (elt -> bool) -> t -> t * t
      val cardinal : t -> int
      val elements : t -> elt list
      val min_elt : t -> elt
      val max_elt : t -> elt
      val choose : t -> elt
      val split : elt -> t -> t * bool * t
      val find : elt -> t -> elt
      val of_seq : elt CCSet.sequence -> t
      val add_seq : t -> elt CCSet.sequence -> t
      val to_seq : t -> elt CCSet.sequence
      val of_list : elt list -> t
      val add_list : t -> elt list -> t
      val to_list : t -> elt list
      val pp :
        ?start:string ->
        ?stop:string -> ?sep:string -> elt CCSet.printer -> t CCSet.printer
      val print :
        ?start:string ->
        ?stop:string ->
        ?sep:string -> elt CCSet.formatter -> t CCSet.formatter
    end
  module Seq :
    sig
      val vars : STerm.t -> STerm.var Sequence.t
      val free_vars : STerm.t -> string Sequence.t
      val subterms : STerm.t -> STerm.t Sequence.t
      val subterms_with_bound :
        STerm.t -> (STerm.t * STerm.StringSet.t) Sequence.t
      val symbols : STerm.t -> string Sequence.t
    end
  val ground : STerm.t -> bool
  val close_all : Binder.t -> STerm.t -> STerm.t
  val subterm : strict:bool -> STerm.t -> sub:STerm.t -> bool
  val pp : t CCFormat.printer
  val to_string : t -> string
  module TPTP :
    sig val pp : t CCFormat.printer val to_string : t -> string end
  module ZF : sig val pp : t CCFormat.printer val to_string : t -> string end
end