Formalizing the ∞-categorical Yoneda lemma