module FML_main:sig..end
For parsing, printing, and manipulating formulas.
exception Parse_error of string
val fml_of_string : ?print_tokens:bool -> string -> FML_types.t_fmlfml_of_string fml evaluates to an object of type FML_types.t_fml if fml conforms to the grammar specified in fml.txt, and raises exception Parse_error fml otherwise.
val fml_list_of_file : string -> FML_types.t_fml listfml_list_of_file path applies fml_of_string to each line of the file located at path.
val string_of_binop : FML_types.t_binop -> string
val string_of_unop : FML_types.t_unop -> string
val string_of_quant : FML_types.t_quant -> string
val string_of_pred : FML_types.t_pred -> string
val string_of_var : FML_types.t_var -> string
val string_of_term : FML_types.t_term -> string
val string_of_fml : FML_types.t_fml -> stringval closed_terms_of_fml : FML_types.t_fml -> FML_types.t_term list
val is_closed_term : FML_types.t_term -> bool
val fml_is_fml_with_var_replaced_by_term : FML_types.t_fml ->
FML_types.t_fml -> FML_types.t_var -> FML_types.t_term optionfml_is_fml_with_var_replaced_by_term fml1 fml2 var evaluates to Some term, if term is the first element of closed_terms_of_fml fml1 such that fml1 = subst_in_fml var term fml2 evaluates to true, and to None if no such element exists.
val subst_in_fml : FML_types.t_var -> FML_types.t_term -> FML_types.t_fml -> FML_types.t_fmlsubst_in_fml var term fml evaluates to the result of replacing every free occurrence of var in fml with term,
regardless of whether term contains variables that become bound.
val vars_of_terms : FML_types.t_term list -> FML_types.t_var listRecursively lists all variables occurring in a list of terms.
val free_vars_of_fml : FML_types.t_fml -> FML_types.t_var list