The authors formalize the soundness and completeness of Stalnaker's epistemic logic S4.2 with respect to the class of weakly directed pre-orders in the proof assistant Isabelle/HOL.