Under the M'Naghten standard used in many US states, a defendant is found not guilty by reason of insanity (NGRI) when they demonstrate which of the following?