Alternatively, in boolean logic:

Under De Morgan’s law, these gates are equivalent (@harrisDigitalDesignComputer2016):