Is wave mechanics consistent with classical logic?