Package mepk.kernel.internal
Class Substitute
java.lang.Object
mepk.kernel.internal.Substitute
- All Implemented Interfaces:
ProofStep.Internal
A substitution proof step takes a statement, and constructs a structurally
similar statement by substituting one variable for a (typed) expression.
-
Constructor Summary
ConstructorsConstructorDescriptionSubstitute(Statement statement, String varName, Expression replacement, Map<String, String> typesOfNewVars) Create an instance. -
Method Summary
Modifier and TypeMethodDescriptionReturn the statement constructed by this proof step.Return the set of statements which form the basis of this proof step.
-
Constructor Details
-
Substitute
public Substitute(Statement statement, String varName, Expression replacement, Map<String, String> typesOfNewVars) Create an instance.- Parameters:
statement- the grounding statementvarName- the variable namereplacement- the replacement expressiontypesOfNewVars- the additional type expressions
-
-
Method Details
-
getGrounding
Description copied from interface:ProofStep.InternalReturn the set of statements which form the basis of this proof step.- Specified by:
getGroundingin interfaceProofStep.Internal- Returns:
- the grounding statements
-
getGrounded1
Description copied from interface:ProofStep.InternalReturn the statement constructed by this proof step.- Specified by:
getGrounded1in interfaceProofStep.Internal- Returns:
- the grounded statement
-