# Cancellation property

In mathematics, the notion of cancellativity (or cancellability) is a generalization of the notion of invertibility.

An element a in a magma (M, ∗) has the left cancellation property (or is left-cancellative) if for all b and c in M, ab = ac always implies that b = c.

An element a in a magma (M, ∗) has the right cancellation property (or is right-cancellative) if for all b and c in M, ba = ca always implies that b = c.

An element a in a magma (M, ∗) has the two-sided cancellation property (or is cancellative) if it is both left- and right-cancellative.

A magma (M, ∗) has the left cancellation property (or is left-cancellative) if all a in the magma are left cancellative, and similar definitions apply for the right cancellative or two-sided cancellative properties.

A left-invertible element is left-cancellative, and analogously for right and two-sided. If a⁻¹ is the inverse of a, then ab = a ∗ c implies a⁻¹ ∗ ab = a⁻¹ ∗ a ∗ c which implies b = c.

For example, every quasigroup, and thus every group, is cancellative.

## Interpretation

To say that an element a in a magma (M, ∗) is left-cancellative, is to say that the function g : xax is injective.[1] That the function g is injective implies that given some equality of the form ax = b, where the only unknown is x, there is only one possible value of x satisfying the equality. More precisely, we are able to define some function f, the inverse of g, such that for all x f(g(x)) = f(ax) = x. Put another way, for all x and y in M, if a * x = a * y, then x = y.[2]

Similarly, to say that the element a is right-cancellative, is to say that the function h : xxa is injective and that for all x and y in M, if x * a = y * a, then x = y.

## Examples of cancellative monoids and semigroups

The positive (equally non-negative) integers form a cancellative semigroup under addition. The non-negative integers form a cancellative monoid under addition. Each of these is an example of a cancellative magma that is not a quasigroup.

In fact, any free semigroup or monoid obeys the cancellative law, and in general, any semigroup or monoid embedding into a group (as the above examples clearly do) will obey the cancellative law.

In a different vein, (a subsemigroup of) the multiplicative semigroup of elements of a ring that are not zero divisors (which is just the set of all nonzero elements if the ring in question is a domain, like the integers) has the cancellation property. Note that this remains valid even if the ring in question is noncommutative and/or nonunital.

## Non-cancellative algebraic structures

Although the cancellation law holds for addition, subtraction, multiplication and division of real and complex numbers (with the single exception of multiplication by zero and division of zero by another number), there are a number of algebraic structures where the cancellation law is not valid.

The cross product of two vectors does not obey the cancellation law. If a × b = a × c, then it does not follow that b = c even if a0 (take c = b + a for example)

Matrix multiplication also does not necessarily obey the cancellation law. If AB = AC and A ≠ 0, then one must show that matrix A is invertible (i.e. has det(A) ≠ 0) before one can conclude that B = C. If det(A) = 0, then B might not equal C, because the matrix equation AX = B will not have a unique solution for a non-invertible matrix A.

Also note that if AB = CA and A ≠ 0 and the matrix A is invertible (i.e. has det(A) ≠ 0), it is not necessarily true that B = C. Cancellation works only for AB = AC and BA = CA (provided that matrix A is invertible) and not for AB = CA and BA = AC.

## References

1. ^ Warner, Seth (1965). Modern Algebra Volume I. Englewood Cliffs, NJ: Prentice-Hall, Inc. p. 50.
2. ^ Warner, Seth (1965). Modern Algebra Volume I. Englewood Cliffs, NJ: Prentice-Hall, Inc. p. 48.
{"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "url": "https://en.wikipedia.org/wiki/Cancellation_property", "fetch_time": 1713562765000000000, "content_mime_type": "text/html", "warc_filename": "crawl-data/CC-MAIN-2024-18/segments/1712296817455.17/warc/CC-MAIN-20240419203449-20240419233449-00697.warc.gz", "warc_record_offset": 202378788, "warc_record_length": 17061, "token_count": 1004, "char_count": 3880, "score": 4.03125, "int_score": 4, "crawl": "CC-MAIN-2024-18", "snapshot_type": "latest", "language": "en", "language_score": 0.9164301156997681, "file_path": "/sailhome/yjruan/project/latent-lm/data/processed/finemath-4plus/finemath-4plus/train-00062-of-00064.parquet"}