Weak Lefschetz Theorem for Cohomology