Prajna is consciousness in the deep-sleep state. Blissful yet ignorant, it reveals that happiness is intrinsic to the Self — but only Self-knowledge, not sleep, gives lasting freedom.
Avastha-traya refers to the three states of experience — waking, dream, and deep sleep. Vedanta uses them as a mirror to reveal the witness, the Self, beyond all states.