Question: is denying the antecedent valid?
Answer: Arguments of this form are invalid. Informally, this means that arguments of this form do not give good reason to establish their conclusions, even if their premises are true. The name denying the antecedent derives from the premise "not P", which denies the "if" clause of the conditional premise.