You asked for the law, and there it is.  Just because the D.A. doesn't want to pursue it doesn't preclude it as law.  Law isn't always some purely objective science.  There would be plenty of lawyers willing to pursue cases that D.A.'s or other attorneys drop and make it stick.