When you work hard enough and correctly, happiness will knock on the door.
The PAC learning framework provides a formal way to quantify the learnability of a concept class.