|
Hilbert II - JAVA-Packages - Principia Mathematica II | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.meyling.principia.argument.AbstractArgument
com.meyling.principia.argument.AbstractArgumentList
com.meyling.principia.logic.rule.ApplyAxiom
Implementation of applying an Axiom:
A1 => A2
A3
---------
A4
if A1 => A2 matches A3 => A4
| Constructor Summary | |
ApplyAxiom(Argument[] arguments)
Constructs an apply axiom rule by a proof line reference and an axiom reference. |
|
| Method Summary | |
Rule |
changeProofLines(int[] mapping)
Get proof line numbers that are used to derive the new formula. |
void |
check(Module module,
ProofLineList proofLines,
int position,
Formula formula)
Check if proof could be extended with formula.
|
static void |
checkDeclaration(Module module,
RuleDeclaration declaration)
Check this rule could be declared. |
Argument |
create(Argument[] arguments)
Create a new Argument with given arguments. |
ProofLineList |
extendWithout(Module module,
ProofLineList proofLines,
int position)
Return proof lines that could replace the proof line position. |
int[] |
getProofLines()
Get proof line numbers that are used to derive the new formula. |
Version |
getVersion()
Get version of this rule. |
String |
toString()
Get the argument in String form. |
| Methods inherited from class com.meyling.principia.argument.AbstractArgumentList |
copy, getArgument, getArgumentSize |
| Methods inherited from class com.meyling.principia.argument.AbstractArgument |
containsPatternVariables, equals, getHighestNumber, getPatternVariables, getReplacementParents, getSearchParents, hashCode, matches, matches, replace, replace, replace, replaceMatches |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.meyling.principia.argument.Argument |
containsPatternVariables, copy, equals, getArgument, getArgumentSize, getPatternVariables, getReplacementParents, getSearchParents, hashCode, matches, matches, replace, replace, replace, replaceMatches |
| Constructor Detail |
public ApplyAxiom(Argument[] arguments)
throws ArgumentException
arguments - proof line reference, axiom reference
ArgumentException - if there are not exactly two
arguments or the arguments
or if the first argument is not
an instance of Counter or is not bigger than zero,
or if the second argument is no instance of a
LinkLabel| Method Detail |
public final void check(Module module,
ProofLineList proofLines,
int position,
Formula formula)
throws ArgumentException
formula.
This is true
if formula is equivalent to the referenced axiom formula.
check in interface Rulemodule - moduleproofLines - proof linesposition - number of proof lines that could be used
in the ruleformula - formula to add
ArgumentException - if the implication made of
the referenced proof line of this object and the
formula of this object dosn't match the
referenced axiom
or a version conflict occurs
public final ProofLineList extendWithout(Module module,
ProofLineList proofLines,
int position)
throws IllegalArgumentException
position.
extendWithout in interface Rulemodule - the belonging moduleproofLines - proof linesposition - referenced proof line (starting with 0)
in proofLines
position
IllegalArgumentException - if extension is impossible
or other problems occuredpublic int[] getProofLines()
Rule
getProofLines in interface Rulepublic Rule changeProofLines(int[] mapping)
Rule
changeProofLines in interface Rulemapping - array that maps old proof line numbers (index) to
new ones (value)
public static final void checkDeclaration(Module module,
RuleDeclaration declaration)
throws ArgumentException
module - the module contextdeclaration - the declaration that shall declare this rule
IllegalArgumentException - if an programming error occured
ArgumentException - if declaration failedpublic final Version getVersion()
Rule
getVersion in interface Rule
public final Argument create(Argument[] arguments)
throws ArgumentException
Argument
create in interface Argumentcreate in class AbstractArgumentListArgumentExceptionpublic final String toString()
ArgumentString form.
toString in interface ArgumenttoString in class AbstractArgumentList
|
Hilbert II - JAVA-Packages - Principia Mathematica II | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| ©left GNU General Public Licence All Rights Reserved. |