COMPENSATION, in law. Where the same person is debtor and creditor to another, the mutual obligations, if they are for equal sums, are extinguished by compensation; if for unequal, the lesser obligation is extinguished, and the greater diminished, as far as the course of debt and credit goes.