Package mepk.builtin.internal
Class TrivialProof
java.lang.Object
mepk.builtin.internal.TrivialProof
- All Implemented Interfaces:
TrustedProof.Internal
A trivial proof grounds exactly its grounding statements, and therefore it
does not have to construct anything.
-
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.
-
Constructor Details
-
TrivialProof
Create an instance.- Parameters:
statements- the statements grounding, and trivially grounded by, this proof
-
-
Method Details
-
getGrounding
Description copied from interface:TrustedProof.InternalReturn the set of statements which form the basis of this proof.- Specified by:
getGroundingin interfaceTrustedProof.Internal- Returns:
- the grounding statements
-
getGrounded
Description copied from interface:TrustedProof.InternalReturn the set of statements constructed by this proof from thegroundingstatements.- Specified by:
getGroundedin interfaceTrustedProof.Internal- Returns:
- the grounded statements
-
getAbbreviations
Description copied from interface:TrustedProof.InternalReturn the abbreviations used by this proof.- Specified by:
getAbbreviationsin interfaceTrustedProof.Internal- Returns:
- the abbreviations
-
getJustificationFor
Description copied from interface:TrustedProof.InternalReturn a justification for the given statement.- Specified by:
getJustificationForin interfaceTrustedProof.Internal- Parameters:
statement- a statement which is an element ofTrustedProof.Internal.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.
-