logicUSLIB/logicus-fol/3.2.0

NOTE: the latest version is 3.3.0

LogicUS.FOL.ToStringP9M4

Translation of formulas to the syntax of Prover9 and Mace4.

Deprecated: use LogicUS.FOL.Prover9Mace4, which builds the whole input file with readable symbol names and reads Mace4 models back. This module is kept for compatibility.

It translates a formula to Prover9/Mace4 syntax, renaming predicates, functions, constants and variables to P0, f0, c0, A, B... (Deprecated.)

-> { vi : Int
, vdic : Dict Variable Int
, pi : Int
, pdic : Dict Ident Int
, fi : Int
, fdic : Dict Ident Int
, ci : Int
, cdic : Dict Ident Int
}
-> ( String
, { vi : Int
, vdic : Dict Variable Int
, pi : Int
, pdic : Dict Ident Int
, fi : Int
, fdic : Dict Ident Int
, ci : Int
, cdic : Dict Ident Int
}
)

Like ffol2P9M4Str, but it receives and returns the renaming tables, so that several formulas can share them. The record holds, for variables (vi, vdic), predicates (pi, pdic), functions (fi, fdic) and constants (ci, cdic), the next free index and the dictionary from each original symbol to its index. The symbols are written as A, B, ... (variables), P0, P1, ... (predicates), f0, f1, ... (functions) and c0, c1, ... (constants). Start with every index at 0 and every dictionary empty. (Deprecated: use LogicUS.FOL.Prover9Mace4.)

sfol2P9M4Str : SetFOL -> String

It translates a set of formulas to Prover9/Mace4 syntax, one per line, with the same renaming as ffol2P9M4Str. (Deprecated.)

-> { vi : Int
, vdic : Dict Variable Int
, pi : Int
, pdic : Dict Ident Int
, fi : Int
, fdic : Dict Ident Int
, ci : Int
, cdic : Dict Ident Int
}
-> ( String
, { vi : Int
, vdic : Dict Variable Int
, pi : Int
, pdic : Dict Ident Int
, fi : Int
, fdic : Dict Ident Int
, ci : Int
, cdic : Dict Ident Int
}
)

Like sfol2P9M4Str, but it receives and returns the renaming tables, so several sets can share them. (Deprecated.)

It translates a formula to Prover9/Mace4 syntax keeping the symbol names between quotes. (Deprecated.)

sfol2P9M4StrUnsafe : SetFOL -> String

It translates a set of formulas to Prover9/Mace4 syntax keeping the symbol names between quotes. (Deprecated.)