Let f be a legal 3-colouring of G. Since permuting colour names preserves legality, w.l.o.g. f(N)=1.
Step 1. Every literal vertex ℓ is joined to N by a black edge, so f(ℓ)=1, i.e. f(ℓ)∈{2,3}.
Step 2. For each i the blue edge xixi forces f(xi)=f(xi). With Step 1: exactly one of xi,xi is coloured 2 and the other 3.
Step 3 (the assignment). Define V(xi)=1⟺f(xi)=2. By Step 2 this makes f(xi)=3, so the uniform rule (∗) holds again. The definition is consistent and well defined for every variable.
Step 4 (every clause is NAE-satisfied). Let C be a clause with literals ℓ1,ℓ2,ℓ3 and clause vertices c1,c2,c3. The three form a triangle, so in a legal colouring they carry three distinct colours: {f(c1),f(c2),f(c3)}={1,2,3}. In particular:
- some t has f(ct)=2. The red edge ctℓt forces f(ℓt)=2, and Step 1 gives f(ℓt)=3, so by (∗) V(ℓt)=0.
- some s has f(cs)=3. The red edge csℓs forces f(ℓs)=3, so f(ℓs)=2, so V(ℓs)=1.
And t=s since the colours differ, so ℓt=ℓs are two distinct literals of C — this is where the assumption of three distinct literals per clause enters.
So C holds a literal assigned 1 and one assigned 0, i.e. V NAE-satisfies C. As C was arbitrary, φ∈3NAE.