If $Y \subset X$ is subvariety that is possibly singular, where $X$ is smooth projective variety, when is it true that the hard Lefschetz theorem holds?