The 2 would be the factor used in the derivative of the square.
The “hypen” is an inplace subtraction, which will subtrace learning_rate * grad_a from a. The out of place version would be:

a = a - (learning_rate * grad_a)