I was reading Fixed Income - Credit Analysis Models and is somewhat stuck.
In the reading, the author liken the holder of risky debt as taking the below 2 positions:-
investing in risk-free bond and;
writing a short put
I understand the payoff for the bond investor when the state of the world is good.
However, when the state of the world is poor i.e. value of company asset (say S) is lower than face value of the risk free debt (say X).
Question: Why is the short put portion’s payoff not X-S but only S? Given poor state of the world, long put will exercise the put and sell S to short put and in return, receive X.