finish proof of TYPE_Tyapp