[step:Prove part (2) — existence — by constructing $v$ level by level]
Let $w: P \to \{0, 1\}$ be an arbitrary function. We construct a valuation $v: L \to \{0, 1\}$ extending $w$ by defining $v$ on $L_n$ inductively and verifying the valuation axioms at each stage.
**Stage $n = 0$.** Define $v: L_0 \to \{0,1\}$ by
\begin{align*}
v(r) &= \begin{cases} w(r) & \text{if } r \in P, \\ 0 & \text{if } r = \bot. \end{cases}
\end{align*}
In particular, $v(\bot) = 0$, which is the required value.
**Stage $n + 1$.** Suppose $v$ has been defined on $L_n$ and satisfies the implication rule for all $(p \Rightarrow q) \in L_n$ (vacuously at $n = 0$, since $L_0$ contains no implications). Extend $v$ to $L_{n+1}$ by keeping its previous values on $L_n$ and setting, for each new formula $(p \Rightarrow q) \in L_{n+1} \setminus L_n$ with $p, q \in L_n$,
\begin{align*}
v(p \Rightarrow q) &:= \begin{cases} 0 & \text{if } v(p) = 1 \text{ and } v(q) = 0, \\ 1 & \text{otherwise.} \end{cases}
\end{align*}
This is well-defined because $L_{n+1} \setminus L_n$ consists of formulas of the form $(p \Rightarrow q)$ with uniquely determined subformulas $p, q \in L_n$, on which $v$ has already been defined.
**Taking the union.** Define $v: L \to \{0,1\}$ by setting $v(r) := v(r)$ where $r \in L_n$ for the smallest $n$ with $r \in L_n$; since the stages extend one another consistently, this is well-defined on $L = \bigcup_{n} L_n$.
**Verification that $v$ is a valuation.** We must verify: (i) $v(\bot) = 0$, which holds by construction at stage $0$; and (ii) for all $p, q \in L$, the implication rule holds for $(p \Rightarrow q)$. Given $p, q \in L$, choose $n$ with $p, q \in L_n$; then $(p \Rightarrow q) \in L_{n+1}$, and by definition of $v$ on $L_{n+1}$,
\begin{align*}
v(p \Rightarrow q) &= \begin{cases} 0 & \text{if } v(p) = 1 \text{ and } v(q) = 0, \\ 1 & \text{otherwise.} \end{cases}
\end{align*}
So the implication rule holds.
**Extension of $w$.** By the base case, $v(p) = w(p)$ for all $p \in P$.
**Uniqueness.** Uniqueness is exactly part (1), applied to any two valuations extending $w$.
[/step]