Type theory homeworks