Package mepk.kernel.util
Class TrivialProof
java.lang.Object
mepk.kernel.Proof
mepk.kernel.util.TrivialProof
A proof which trivially grounds exactly its grounding statements.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the abbreviations used by this proof.Return the set of statements constructed by this proof from thegroundingstatements.Return the set of statements which form the basis of this proof.getJustificationFor(Statement statement) Return a justification for the given statement.Methods inherited from class mepk.kernel.Proof
equals, hashCode, verify, verifyStatementsAreJustified
-
Constructor Details
-
TrivialProof
Create a new instance.- Parameters:
statements- the statements grounding, and trivially grounded by, this proof
-
-
Method Details
-
getGrounding
Description copied from class:ProofReturn the set of statements which form the basis of this proof.- Specified by:
getGroundingin classProof- Returns:
- the grounding statements
-
getGrounded
Description copied from class:ProofReturn the set of statements constructed by this proof from thegroundingstatements.- Specified by:
getGroundedin classProof- Returns:
- the grounded statements
-
getAbbreviations
Description copied from class:ProofReturn the abbreviations used by this proof.- Specified by:
getAbbreviationsin classProof- Returns:
- the abbreviations
-
getJustificationFor
Description copied from class:ProofReturn a justification for the given statement.- Specified by:
getJustificationForin classProof- Parameters:
statement- a statement which is an element ofProof.getGrounded()- Returns:
- either
null, meaning that no justification is necessary becausegetGrounding().contains(statement); or aJustificationwhich gives aproof stepthat constructs the statement, and aproofthat constructs all prerequisites of the proof step.
-