The substitution inference rule is related to Leibniz’s Law.

Leibniz’s Law

Leibniz’s Law: If is a theorem, then so is . Leibniz’s Law is generally referred to as the ability to substitute “equals for equals”.