An implicit functional theory of viscoplasticity