|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--proof.type.Typechecker
Typechecks a term.
| Constructor Summary | |
Typechecker()
Constructor. |
|
| Method Summary | |
boolean |
betaConvertable(Term x,
Term y)
Checks if two terms are beta-convertable. |
Term |
normalise(Term x)
Reduces a term to normal form. |
Term |
reduceToPiOnOutside(Term x)
Reduces a term until it has a pi-abstraction on the outside, if possible. |
Term |
reduceToSigmaOnOutside(Term x)
Reduces a term until it has a sigma-type on the outside, if possible. |
Term |
typeOf(Context c,
Term x)
Finds the type of some Term, not using the constraints. |
Term |
typeOf(Context c,
Term x,
boolean usingConstraints)
Finds the type of some Term, possibly using the constraints XXX We use "instanceof" a lot here, which is ugly. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Typechecker()
| Method Detail |
public Term typeOf(Context c,
Term x)
throws TypecheckFailedException
c - the Context in which to typecheck the termx - the Term to typecheck
public Term typeOf(Context c,
Term x,
boolean usingConstraints)
throws TypecheckFailedException
c - the Context in which to typecheck the termx - the Term to typecheckusingConstraints - whether type constraints should be assumed
to be correct. This should be false for regular type-checking,
and true during some parts of proof search.
public boolean betaConvertable(Term x,
Term y)
x, - y the terms to comparepublic Term normalise(Term x)
x - the term in questionpublic Term reduceToPiOnOutside(Term x)
x - the term in questionpublic Term reduceToSigmaOnOutside(Term x)
x - the term in question
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||