Package mepk.builtin
Class TrustedProof
java.lang.Object
mepk.kernel.Proof
mepk.builtin.TrustedProof
A trusted proof is a
Proof which is built on the trusted kernel.
Trusted proofs are values: they cannot be modified after they have been
created. It is only possible to create an instance using the static methods
in this class.-
Nested Class Summary
Nested Classes -
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.static ProofMerge two proofs 'in parallel', so that the new proof just collects everything which the two parts prove.static ProofMerge two proofs 'in sequence', where the second proof builds on the second one.static ProofCreate a trivial proof, which does no construction at all: both its grounding and grounded statements are just the given statements.Methods inherited from class mepk.kernel.Proof
equals, hashCode, verify, verifyStatementsAreJustified
-
Method Details
-
Trivial
Create a trivial proof, which does no construction at all: both its grounding and grounded statements are just the given statements.- Parameters:
statements- the statements that will be returned by bothgetGrounding()andgetGrounded().- Returns:
- the created proof
-
Par
Merge two proofs 'in parallel', so that the new proof just collects everything which the two parts prove.- Parameters:
proof1- one proofproof2- another proof- Returns:
- the created proof
-
Seq
Merge two proofs 'in sequence', where the second proof builds on the second one.- Parameters:
proof1- the first proofproof2- the second proof- Returns:
- the created proof
-
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.
-