Package mepk.builtin.internal
Class SeqProof
java.lang.Object
mepk.builtin.internal.SeqProof
- All Implemented Interfaces:
TrustedProof.Internal
A 'sequential proof' merges two proofs 'in sequence', where the second proof
builds on the second one.
-
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
-
SeqProof
Create an instance from two proofs.- Parameters:
proof1- the first proofproof2- the second 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.
-