There are 3 inputs, lets call them A, B and C, where A is the fault detector, B the door and C the light switch.
For the light to burn A must be false (0) and B must be True (1) and C must be True (1). Any other combination results in the light not burning (0).
Now A is the reverse of the...