How does gauge invariance lead to the existence of force-carrying bosons in quantum field theory?

Gauge invariance is a fundamental principle in modern physics that states that certain transformations of fields do not change the…