I am trying to solve the following three tasks (for exam practice, not as a homework):
Define $πΊ : \{0,1\}^* \rightarrow \{0,1\}^*$ by $G(x_1,...,x_n) = π₯_1 \oplus π₯_2,π₯_1,β β β ,x_n.$ Prove that this $G$ is not a pseudorandom generator.
Let $G$ be a pseudorandom generator, and define $G'(x_1, ..., x_n) = G(x_1, ..., x_n)|(x_1 \vee x_2)$. Is $G'$ a pseudorandom generator?
Define $πΉ : \{0,1\}^* Γ \{0,1\}^* \rightarrow \{0,1\}^*$ as follows: $πΉ_{π_1,...,π_π} (π₯_1,..., π₯_π) = \bigoplus_i π_π π₯_π$, where $π_π, π₯_π \in \{0,1\}^*$ (Note that, different from the usual convention, $F$ takes an n-bit key and an n-bit input, but has only a single-bit output). Prove that this πΉ is not a pseudorandom function.
My guesses are:
Not a pseudorandom generator since a distinguisher can always distinguish G(s) from a truly random string because the first bit of G(s) is always equal to the XOR of the second and third bit.
Not a pseudorandom generator because a distinguisher could simply check whether the last bit of the string equals $x_1 \vee x_2$ and could thus distinguish G(s) from a truly random string.
I cannot determine how to solve this.
Are my guesses correct? Can someone provide an idea for 3?