I found the following proof concerning the correctness of a breadth-first traversal resulting in shortest path:
source: https://people.eecs.berkeley.edu/~daw/teaching/cs170-s03/Notes/lecture6.pdf
The key is that if we assume that we have a shorter path, we get a contradicition. I however do not fully understand with what the consequence of having a shorter path contradicts. Could someone explain it to me?