HOME

TheInfoList



OR:

In
mathematics Mathematics is an area of knowledge that includes the topics of numbers, formulas and related structures, shapes and the spaces in which they are contained, and quantities and their changes. These topics are represented in modern mathematics ...
, an empty product, or nullary product or vacuous product, is the result of multiplying no factors. It is by convention equal to the
multiplicative identity In mathematics, an identity element, or neutral element, of a binary operation operating on a set is an element of the set that leaves unchanged every element of the set when the operation is applied. This concept is used in algebraic structures su ...
(assuming there is an identity for the multiplication operation in question), just as the empty sum—the result of adding no numbers—is by convention
zero 0 (zero) is a number representing an empty quantity. In place-value notation such as the Hindu–Arabic numeral system, 0 also serves as a placeholder numerical digit, which works by Multiplication, multiplying digits to the left of 0 by th ...
, or the additive identity. When numbers are implied, the empty product becomes one. The term ''empty product'' is most often used in the above sense when discussing
arithmetic Arithmetic () is an elementary part of mathematics that consists of the study of the properties of the traditional operations on numbers— addition, subtraction, multiplication, division, exponentiation, and extraction of roots. In the 19th ...
operations. However, the term is sometimes employed when discussing set-theoretic intersections, categorical products, and products in computer programming; these are discussed below.


Nullary arithmetic product


Definition

Let ''a''1, ''a''2, ''a''3, ... be a sequence of numbers, and let :P_m = \prod_^m a_i = a_1 \cdots a_m be the product of the first ''m'' elements of the sequence. Then :P_m = P_ a_m for all ''m'' = 1, 2, ... provided that we use the convention P_0 = 1. In other words, a "product" with no factors at all evaluates to 1. Allowing a "product" with zero factors reduces the number of cases to be considered in many mathematical formulas. Such a "product" is a natural starting point in induction proofs, as well as in algorithms. For these reasons, the "empty product is one" convention is common practice in mathematics and computer programming.


Relevance of defining empty products

The notion of an empty product is useful for the same reason that the number
zero 0 (zero) is a number representing an empty quantity. In place-value notation such as the Hindu–Arabic numeral system, 0 also serves as a placeholder numerical digit, which works by Multiplication, multiplying digits to the left of 0 by th ...
and the
empty set In mathematics, the empty set is the unique set having no elements; its size or cardinality (count of elements in a set) is zero. Some axiomatic set theories ensure that the empty set exists by including an axiom of empty set, while in othe ...
are useful: while they seem to represent quite uninteresting notions, their existence allows for a much shorter mathematical presentation of many subjects. For example, the empty products 0! = 1 (the
factorial In mathematics, the factorial of a non-negative denoted is the product of all positive integers less than or equal The factorial also equals the product of n with the next smaller factorial: \begin n! &= n \times (n-1) \times (n-2) \ ...
of zero) and ''x''0 = 1 shorten Taylor series notation (see zero to the power of zero for a discussion of when ''x'' = 0). Likewise, if ''M'' is an ''n'' × ''n'' matrix, then ''M''0 is the ''n'' × ''n''
identity matrix In linear algebra, the identity matrix of size n is the n\times n square matrix with ones on the main diagonal and zeros elsewhere. Terminology and notation The identity matrix is often denoted by I_n, or simply by I if the size is immaterial or ...
, reflecting the fact that applying a
linear map In mathematics, and more specifically in linear algebra, a linear map (also called a linear mapping, linear transformation, vector space homomorphism, or in some contexts linear function) is a mapping V \to W between two vector spaces that ...
zero times has the same effect as applying the
identity map Graph of the identity function on the real numbers In mathematics, an identity function, also called an identity relation, identity map or identity transformation, is a function that always returns the value that was used as its argument, unc ...
. As another example, the fundamental theorem of arithmetic says that every positive integer greater than 1 can be written uniquely as a product of primes. However, if we do not allow products with only 0 or 1 factors, then the theorem (and its proof) become longer. More examples of the use of the empty product in mathematics may be found in the binomial theorem (which assumes and implies that ''x''0 = 1 for all ''x''),
Stirling number In mathematics, Stirling numbers arise in a variety of analytic and combinatorial problems. They are named after James Stirling, who introduced them in a purely algebraic setting in his book ''Methodus differentialis'' (1730). They were rediscov ...
, König's theorem, binomial type, binomial series, difference operator and Pochhammer symbol.


Logarithms and exponentials

Since logarithms map products to sums: : \ln \prod_i x_i = \sum_i \ln x_i they map an empty product to an empty sum. Conversely, the exponential function maps sums into products: : e^ = \prod_i e^ and maps an empty sum to an empty product.


Nullary Cartesian product

Consider the general definition of the
Cartesian product In mathematics, specifically set theory, the Cartesian product of two sets ''A'' and ''B'', denoted ''A''×''B'', is the set of all ordered pairs where ''a'' is in ''A'' and ''b'' is in ''B''. In terms of set-builder notation, that is : A\t ...
: :\prod_ X_i = \left\. If ''I'' is empty, the only such ''g'' is the empty function f_\varnothing, which is the unique subset of \varnothing\times\varnothing that is a function \varnothing \to \varnothing, namely the empty subset \varnothing (the only subset that \varnothing\times\varnothing = \varnothing has): :\prod_\varnothing = \left\ = \. Thus, the cardinality of the Cartesian product of no sets is 1. Under the perhaps more familiar ''n''-
tuple In mathematics, a tuple is a finite ordered list (sequence) of elements. An -tuple is a sequence (or ordered list) of elements, where is a non-negative integer. There is only one 0-tuple, referred to as ''the empty tuple''. An -tuple is defi ...
interpretation, :\prod_\varnothing = \, that is, the singleton set containing the empty tuple. Note that in both representations the empty product has cardinality 1 – the number of all ways to produce 0 outputs from 0 inputs is 1.


Nullary categorical product

In any category, the product of an empty family is a terminal object of that category. This can be demonstrated by using the
limit Limit or Limits may refer to: Arts and media * ''Limit'' (manga), a manga by Keiko Suenobu * ''Limit'' (film), a South Korean film * Limit (music), a way to characterize harmony * "Limit" (song), a 2016 single by Luna Sea * "Limits", a 2019 ...
definition of the product. An ''n''-fold categorical product can be defined as the limit with respect to a
diagram A diagram is a symbolic representation of information using visualization techniques. Diagrams have been used since prehistoric times on walls of caves, but became more prevalent during the Enlightenment. Sometimes, the technique uses a three ...
given by the discrete category with ''n'' objects. An empty product is then given by the limit with respect to the empty category, which is the terminal object of the category if it exists. This definition specializes to give results as above. For example, in the category of sets the categorical product is the usual Cartesian product, and the terminal object is a singleton set. In the category of groups the categorical product is the Cartesian product of groups, and the terminal object is a trivial group with one element. To obtain the usual arithmetic definition of the empty product we must take the decategorification of the empty product in the category of finite sets. Dually, the coproduct of an empty family is an initial object. Nullary categorical products or coproducts may not exist in a given category; e.g. in the category of fields, neither exists.


In logic

Classical logic defines the operation of conjunction, which is generalized to
universal quantification In mathematical logic, a universal quantification is a type of quantifier, a logical constant which is interpreted as "given any" or "for all". It expresses that a predicate can be satisfied by every member of a domain of discourse. In other ...
in predicate calculus, and is widely known as logical multiplication because we intuitively identify true with 1 and false with 0 and our conjunction behaves as ordinary multiplier. Multipliers can have arbitrary number of inputs. In case of 0 inputs, we have empty conjunction, which is identically equal to true. This is related to another concept in logic,
vacuous truth In mathematics and logic, a vacuous truth is a conditional or universal statement (a universal statement that can be converted to a conditional statement) that is true because the antecedent cannot be satisfied. For example, the statement "she d ...
, which tells us that empty set of objects can have any property. It can be explained the way that the conjunction (as part of logic in general) deals with values less or equal 1. This means that the longer the conjunction, the higher the probability of ending up with 0. Conjunction merely checks the propositions and returns 0 (or false) as soon as one of propositions evaluates to false. Reducing the number of conjoined propositions increases the chance to pass the check and stay with 1. Particularly, if there are 0 tests or members to check, none can fail, so by default we must always succeed regardless of which propositions or member properties were to be tested.


In computer programming

Many programming languages, such as Python, allow the direct expression of lists of numbers, and even functions that allow an arbitrary number of parameters. If such a language has a function that returns the product of all the numbers in a list, it usually works like this: >>> math.prod(
, 3, 5 The comma is a punctuation mark that appears in several variants in different languages. It has the same shape as an apostrophe or single closing quotation mark () in many typefaces, but it differs from them in being placed on the baseline o ...
30 >>> math.prod( , 3 6 >>> math.prod( 2 >>> math.prod([]) 1
(Please note: prod is not available in the math module prior to version 3.8.) This convention helps avoid having to code special cases like "if length of list is 1" or "if length of list is zero" as special cases. Multiplication is an infix operator and therefore a binary operator, complicating the notation of an empty product. Some programming languages handle this by implementing variadic functions. For example, the fully parenthesized prefix notation of Lisp languages gives rise to a natural notation for nullary functions: (* 2 2 2) ; evaluates to 8 (* 2 2) ; evaluates to 4 (* 2) ; evaluates to 2 (*) ; evaluates to 1


See also

* Iterated binary operation * Empty function


References


External links


PlanetMath article on the empty product
{{DEFAULTSORT:Empty Product Multiplication 1 (number)