Problem

Source: St Petersburg Olympiad 2014, Grade 11, P7

Tags: geometry, incenter, circumcircle, angle bisector



$I$ - incenter , $M$- midpoint of arc $BAC$ of circumcircle, $AL$ - angle bisector of triangle $ABC$. $MI$ intersect circumcircle in $K$. Circumcircle of $AKL$ intersect $BC$ at $L$ and $P$. Prove that $\angle AIP=90$