Put Y=□X→X. The Löb axiom gives □Y→□X. Consequently Y implies □Y→X: if □Y holds, first obtain □X and then apply Y.
For the other direction, X→Y is a propositional theorem. Necessitation and distribution give □X→□Y. Hence □Y→X implies □X→X, which is Y. We have proved the unboxed theorem