|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--RewriteSystem
This class implements a rewrite system.
RuleTable,
SCList,
ConjectureList| Field Summary | |
protected String |
genTrack
|
protected String |
splitTrack
|
protected String |
stepTrack
|
protected String |
track
|
| Constructor Summary | |
RewriteSystem(String name,
SCList axioms,
IdentTable idt)
Constructor of the rewrite system. |
|
| Method Summary | |
ConjectureList |
caseSimplify(Conjecture c)
Applies a case rewrite step on a specified conjecture. |
boolean |
caseSimplify(ConjectureList l)
Applies a case rewrite step on each conjecture of a specified list. |
Object |
clone()
Creates and returns a copy of this object. |
void |
compile()
Compiles this rewrite system. |
boolean |
forceHypothesis(ConjectureList l)
Applies once hypothesis even if it's not a Rewrite Rule for each conjecture of a specified list. |
Conjecture |
generalize(Conjecture clause)
Applies a generalize step on a specified conjecture. |
boolean |
generalize(ConjectureList l)
Applies the generalize rule on a specified list of conjecture. |
ConjectureList |
generates(Conjecture c)
Applies the generate rule on a specified conjecture. |
Conjecture |
generates(ConjectureList l)
Applies the generate rule on a specified list of conjecture. |
boolean |
genSplitStep(ConjectureList l)
Makes one cycle of spliting method. |
boolean |
genStep(ConjectureList conj)
Make one cycle. |
SCList |
getAxioms()
Returns the list of axioms of the system. |
List |
getFunctions(Type t)
Gets all functions with a specified type of this system. |
SCList |
getHypotheses()
Return the list of axioms of the system. |
SCList |
getLemmas()
Returns the list of lemmas of the system. |
String |
getPositions()
Returns a string representation of all induction positions of functions defined in this system. |
List |
getSorts()
Gets all sorts of this system. |
String |
getSpecialPosition()
Returns a string representation of all special positions of functions defined in this table. |
String |
getTestSets()
Returns a string representation of all test sets of this system. |
void |
init()
Inits rewrite system. |
boolean |
isMonomorphic()
Says if this system is monomorphic. |
boolean |
isTotology(Conjecture clause)
Tests if a specified conjecture is a totology. |
Conjecture |
normalForm(Conjecture c)
Returns the normal form of a specified conjecture. |
boolean |
oneSplitStep(ConjectureList l)
Makes one step of spliting method. |
boolean |
oneStep(ConjectureList conj)
Rewrite list of conjecture. |
boolean |
pattern(ConjectureList l)
Apply pattern splitting on a specified list of conjecture. |
ConjectureList |
removesEquals(ConjectureList list)
Removes equalities that normal form of both sides are equals. |
ConjectureList |
removesTotology(ConjectureList list)
Removes totologies in a specified list of conjectures. |
void |
setLemmas(SCList l)
Sets Lemmas of rewrite system. |
void |
setTestSet(Type t,
NodeList ts)
Sets a test set of a speficied type. |
void |
setTypes()
Sets types in whole rewrite system. |
SpecialClause |
simplify(Conjecture clause)
Applies a rewrite step on a specified conjecture. |
boolean |
simplify(ConjectureList l)
Applies a rewrite step on each conjecture of a specified list. |
boolean |
split(ConjectureList l)
Split a specified list of conjecture. |
void |
splitingMotor(ConjectureList l)
Direct spliting motor. |
void |
textualMotor(ConjectureList l)
Direct textual motor. |
void |
toggles(ConjectureList list)
Toggles boolean equalities from conditions to body on each conjecture of a specified list. |
String |
toString()
Returns a string representation of the rewrite system rules. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected String track
protected String stepTrack
protected String genTrack
protected String splitTrack
| Constructor Detail |
public RewriteSystem(String name,
SCList axioms,
IdentTable idt)
name - name of the system.axioms - list of axioms of the system.idt - table of identifiers.| Method Detail |
public boolean isMonomorphic()
public void compile()
public void setLemmas(SCList l)
throws SemanticException
SemanticException - if one of the lemmas is not weel typed.public SCList getAxioms()
public SCList getLemmas()
public SCList getHypotheses()
public void setTypes()
throws SemanticException
SemanticException - if one of the axioms is not weel typed.
public void setTestSet(Type t,
NodeList ts)
throws SemanticException
t - the type.ts - the test set.SemanticException - if the test set is not well typed.public boolean isTotology(Conjecture clause)
clause - the conjecture.public ConjectureList removesTotology(ConjectureList list)
list - the list of conjectures.public ConjectureList removesEquals(ConjectureList list)
list - the list of conjectures.public void toggles(ConjectureList list)
l - the list of conjecture.public SpecialClause simplify(Conjecture clause)
clause - the conjecturepublic boolean simplify(ConjectureList l)
l - the list of conjecture.public boolean forceHypothesis(ConjectureList l)
l - the list of conjecture.public Conjecture normalForm(Conjecture c)
clause - the conjecturepublic ConjectureList caseSimplify(Conjecture c)
c - the conjecturepublic boolean caseSimplify(ConjectureList l)
l - the list of conjecture.public ConjectureList generates(Conjecture c)
c - the conjecturepublic Conjecture generates(ConjectureList l)
l - the list of conjecture.public Conjecture generalize(Conjecture clause)
clause - the conjecturepublic boolean generalize(ConjectureList l)
l - the list of conjecture.public boolean split(ConjectureList l)
l - the list of conjecture.public boolean pattern(ConjectureList l)
l - the list of conjecture.public boolean oneStep(ConjectureList conj)
l - the list of conjecture to rewrite.public boolean genStep(ConjectureList conj)
l - the list of conjecture to cycle.public boolean oneSplitStep(ConjectureList l)
l - the list of conjecture to proof.public boolean genSplitStep(ConjectureList l)
l - the list of conjecture to proof.public void textualMotor(ConjectureList l)
public void splitingMotor(ConjectureList l)
public void init()
public String toString()
toString in class ObjectClause,
RewriteRulepublic String getPositions()
public String getTestSets()
public String getSpecialPosition()
public List getSorts()
IdentTablepublic List getFunctions(Type t)
t - a Type.IdentTablepublic Object clone()
clone in class Object
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||