look at my system type (rules of them):
$$\frac{\Gamma(x:\tau)\vdash e:\rho}{\Gamma(x:\tau)\vdash \lambda x .e:\tau\rightarrow\rho}$$
$$\frac{\Gamma\vdash e_1:\tau\rightarrow\rho\ \ \ \ \ \Gamma\vdash e_2\rightarrow \tau}{\Gamma\vdash e_1e_2 : \rho}$$
$$\frac{}{\Gamma\vdash n:\text{int}}$$ $$\frac{}{\Gamma(x:\tau)\vdash x:\tau}$$
$$(\lambda x.e)e' \rightarrow ^{\beta} e[x:=e]$$
And types:
$$\tau ::= \text{int}|\tau_1 \rightarrow \tau_2$$
Possible expressions:
$$e::=x|n|e_1e_2|\lambda x.e$$
Now, I am trying to find some examples:
a) untypable expresssion: $(\lambda x.xx)$. It was fairly easy.
However, I am not sure about b)
b) $e$ should by untypable. $e', e \rightarrow ^{\beta} e'$ should be typable. Moreover, all variables in lambda expressions should be binded by lambda.
The only way that I see is:
$e = \lambda x.xx$ - untypable.
$e' = \lambda x.x$ - typable.
$e \rightarrow ^{\beta} e' = \lambda x.x(\lambda x.x)$ seems to be typable.
What do you think about it ? Maybe, someone can give other example (assuming that my examples are correct).
Edit, second example
Give example of typable expressions $e, e'$ and type $\tau$ such that there are fullfilled three conditions:
(a) $e\rightarrow ^{\beta} e'$
(b) $e'$ is type of $\tau$
(c) $e$ is not type of $\tau$.