Package mepk.builtin.internal
Class ParProof
java.lang.Object
mepk.builtin.internal.ParProof
- All Implemented Interfaces:
TrustedProof.Internal
A 'parallel proof' merges two proofs 'in parallel', so that the new proof
just collects everything which the two parts prove.
-
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
-
ParProof
Create an instance from two proofs.- Parameters:
proof1- one proofproof2- another 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.
-