Justice is something that is elusive, and Socrates again and again refutes suggestions as to how to define the matter.
In the Republic there are goals pursued by institutions and individuals, but there is no guarantee that they will be successful at attaining the ideal they seek.