jtp.proof
Class ProofUtil
java.lang.Object
|
+--jtp.proof.ProofUtil
- public class ProofUtil
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProofUtil
public ProofUtil()
toImplication
public static Implication toImplication(CNFSentence s)
throws ImplicationConversionException
ImplicationConversionException
invertPolarity
public static List invertPolarity(List literals)
deReferenceGoal
public static Object deReferenceGoal(Object g)
prettyPrintGoal
public static String prettyPrintGoal(Object goal,
String prefix)
prefixify
public static String prefixify(String s,
String prefix)
- Inserts the prefix at the beginning of every line in s
printClauseAsImplication
public static String printClauseAsImplication(Clause c,
String prefix)
printLiteral
public static String printLiteral(Literal l,
boolean flip)
instantiate
public static CNFSentence instantiate(CNFSentence sent,
Map bindings)
instantiate
public static Literal instantiate(Literal litIn,
Map bindings)
simplify
public static Proof simplify(Proof p)
toConjunction
public static CNFSentence toConjunction(List conj)
getVars
public static Set getVars(Object o)
getVars
public static Set getVars(CNFSentence sent)
getVars
public static Set getVars(Clause cl)
getVars
public static Set getVars(Literal lit)