TptpReading and writing FOF and CNF formulas in TPTP format.
Note 1: This library supports only FOF and CNF formulas. Keywords and other constructions used for representation of other formulas are not supported. This besides other things means that strings "thf", "tff", "$thf" and "$tff" are not treated as keywords and can be used as ordinary functors (for example to_defined_word "$thf" does not fail).
Note 2: Comment lines can contain tabs. Comment blocks can contain non-printable characters and non-ASCII characters.
Note 3: Comment blocks are ignored and comment lines inside formulas are ignored too.
exception Parse_error of Lexing.position * stringexception Include_error of Lexing.position * stringval create_in : Lexing.lexbuf -> inputval read : input -> Tptp_ast.tptp_input optionReturns None when EOF is reached.
Raises Input_closed when input was closed. Raises Parse_error when input contains syntax error.
val close_in : input -> unitval write :
?rfrac:float ->
?width:int ->
Buffer.t ->
Tptp_ast.tptp_input ->
unitThe parameter width is the maximum number of characters per line. The parameter rfrac is the ribbon width, a fraction relative to width. The ribbon width is the maximum number of non-indentation characters per line.
val to_string : Tptp_ast.tptp_input -> stringmodule File : sig ... end