|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--proof.term.Pair
A (dependent) pair of terms, in which the second component
may depend on the first component. This is just like conventional
sigma-types, except that we use field selectors instead of
fst and snd.
| Field Summary | |
Term |
a
The two components of the pair. |
Term |
b
The two components of the pair. |
Var |
x
The bound variable. |
| Constructor Summary | |
Pair(Var x,
Term a,
Term b)
Constructor. |
|
| Method Summary | |
boolean |
alphaEquals(Term t)
Compares this term to another term, up to variable renaming. |
Term |
headReduceOnce()
To reduce this, reduce inside the two components. |
Term |
substitute(Var y,
Term t)
Substitute into this term. |
java.lang.String |
toString()
Convert this to a String. |
java.lang.String |
toStringWithoutBraces()
Same as above, but leaves off the braces |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public Var x
public Term a
x is considered
to have the value a, and b can contain
the variable x.public Term b
x is considered
to have the value a, and b can contain
the variable x.| Constructor Detail |
public Pair(Var x,
Term a,
Term b)
| Method Detail |
public Term substitute(Var y,
Term t)
substitute in interface Termproof.term.Termy - the Var to substitute in fort - the term to substitute in.public Term headReduceOnce()
headReduceOnce in interface Termproof.term.Termpublic boolean alphaEquals(Term t)
TermalphaEquals in interface Termproof.term.Termt - the term to compare this tot are equal
(ignoring the names of variables)public java.lang.String toString()
toString in interface TermtoString in class java.lang.Objectpublic java.lang.String toStringWithoutBraces()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||