From Aquinas, (on his feast day):
Law is a rule and measure of acts, whereby man is induced to act or is restrained from acting.(Source:Pursuit of Liberty: Question 90. The essence of law )
Righfulness is an attribute of acts.
So much for the poem I learned in college, "It all depends on the red wheel barrow . . . "
But what if B follows A . . .