Package com.articulate.sigma
Class ProofProcessor
java.lang.Object
com.articulate.sigma.ProofProcessor
Process results from the inference engine.
-
Constructor Summary
ConstructorsConstructorDescriptionProofProcessor(List<BasicXMLelement> xmlInput) Take an ArrayList of BasicXMLelement (s) and process them as needed -
Method Summary
Modifier and TypeMethodDescriptionbooleanequalsAnswer(int answerNum, String expectedAnswer) Compare the answer with the expected answer.static voidA main method, used only for testing.intReturn the number of answers contained in this proof.static StringRemove the $answer clause that eProver returns, including any surrounding connective.returnSkolemStmt(String skolem, List<tptp_parser.TPTPFormula> proofSteps) Looks for skolem function from proofsteps if query is not given.static voidshowHelp()static voidtallyAxioms(String file) ************************************************************** Tally the number of appearances of a particular axiom label in a file.static voidstatic voidtestFormatProof2(String filename) static voidstatic StringConvert XML proof to TPTP format
-
Constructor Details
-
ProofProcessor
Take an ArrayList of BasicXMLelement (s) and process them as needed
-
-
Method Details
-
equalsAnswer
Compare the answer with the expected answer. Note that this method is very unforgiving in that it requires the exact same format for the expected answer, including the order of variables. -
returnSkolemStmt
public static List<String> returnSkolemStmt(String skolem, List<tptp_parser.TPTPFormula> proofSteps) Looks for skolem function from proofsteps if query is not given. There are two types of skolem functions: one with arguments, for instance: (sk0 Human123) or one without, for example: sk2 We need to find either of these in the proofs to see what relationship it goes into -
removeNestedAnswerClause
Remove the $answer clause that eProver returns, including any surrounding connective. -
numAnswers
public int numAnswers()Return the number of answers contained in this proof. -
tptpProof
Convert XML proof to TPTP format -
testRemoveAnswer
public static void testRemoveAnswer() -
tallyAxioms
************************************************************** Tally the number of appearances of a particular axiom label in a file. This is intended to be used to analyze E output that looks for contradictions, with the intuition that axioms that appear in most or all of the contractions found are the source of the problem. -
testFormatProof
public static void testFormatProof() -
testFormatProof2
-
showHelp
public static void showHelp() -
main
A main method, used only for testing. It should not be called during normal operation.
-