Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

In the formulation of type theory I'm reading, (x:A) is an expression of type A. This would seem to imply ((x:A):A) and (((x:A):A):A)... Is this a common feature of type theories? Or am I reading too much into an ambiguous sentence?

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

This depends on the type-system, nevertheless, it is a common feature. However, in some type-systems it is possible to write something like:

$$(\lambda x.\ x) : (\alpha \to \mathtt{int})$$ (note that here the most general type for $\lambda x.\ x$ is $\alpha \to \alpha$) which would result in a value of type $\mathtt{int} \to \mathtt{int}$.

I hope this helps ;-)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.