|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--proof.term.Sigma
A sigma type. Exactly as in any other Calculus of Constructions
implementation, except that we use field selectors instead of
fst and snd.
| Field Summary | |
Term |
A
The types of the components. |
Term |
B
The types of the components. |
Var |
x
The bound variable. |
| Constructor Summary | |
Sigma(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 be of type A, and B (the type of
b) can depend on x.public Term B
x is considered
to be of type A, and B (the type of
b) can depend on x.| Constructor Detail |
public Sigma(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 | ||||||