Type of ap_f in proof of Lemma 2.2.1