As is shown in the picture, $ ∠ACB=∠EDB=90^{o},AC=2,BC=4,AE=3,ED=DB,∠PCD=45^{o}$, how to prove that $AP=1$?
By adding additional conditions (like $AE$ is parallel to $CB$) I can verify that $AP=1$. I try to find similar triangles in the graph, but I haven't found.

Let the angle bisector of $ACB$ (which coincidentally gives us $45^\circ$) intersect $AB$ at $F$.
Let $ P^*$ on $AE$ such that $P^* F \parallel EB$.
Let $AC = a$, $CB = b$.
Show the following
(If you get stuck, explain what you've tried and what you're unable to push through)
Notes: