ReLU is the keystone for exact backprop here. Its derivative is an exact gate, so the reverse pass stays rational and the negative branch is blocked.
ReLU's derivative is exact
ReLU'(z) is 1 when z is positive and 0 otherwise; at z=0 this surface uses the stated convention ReLU'(0)=0.
ReLU′(z)={10z>0z≤0
Two derivative gates
Here z1=2 gives ReLU'(z1)=1, while z2=-1 gives ReLU'(z2)=0.
ReLU′(z1)=1,ReLU′(z2)=0
The dead branch
Multiplying by the second derivative gate blocks that branch exactly. The result is dL/dz1=-2 and dL/dz2=0.
dz1dL=−2⋅1=−2,dz2dL=−2⋅0=0