Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Empty product
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Short description|Result from multiplying no factors}} {{for|the non-empty product that equals to zero|zero-product property}} In [[mathematics]], an '''empty product''', or '''nullary product''' or '''vacuous product''', is the result of [[multiplication|multiplying]] no factors. It is by convention equal to the [[multiplicative identity]] (assuming there is an identity for the multiplication operation in question), just as the [[empty sum]]—the result of [[addition|adding]] no numbers—is by convention [[0|zero]], or the [[additive identity]].<ref>{{cite book |author=[[Jaroslav Nešetřil]], [[Jiří Matoušek (mathematician)|Jiří Matoušek]] |title=Invitation to Discrete Mathematics |publisher=Oxford University Press |year=1998 |isbn=0-19-850207-9 |pages=12}}</ref><ref>{{cite book |author=A.E. Ingham and R C Vaughan |title=The Distribution of Prime Numbers |publisher=Cambridge University Press |year=1990 |isbn=0-521-39789-8 |pages=1}}</ref><ref>{{Lang Algebra|edition=3r|page=9}}</ref><ref>{{cite book |author=David M. Bloom |title=Linear Algebra and Geometry |url=https://archive.org/details/linearalgebrageo0000bloo |url-access=registration |year=1979 |isbn=0521293243 |pages=[https://archive.org/details/linearalgebrageo0000bloo/page/45 45]|publisher=CUP Archive }}</ref> When numbers are implied, the empty product becomes [[1|one]]. The term ''empty product'' is most often used in the above sense when discussing [[arithmetic]] operations. However, the term is sometimes employed when discussing [[Set theory|set-theoretic]] intersections, categorical products, and products in [[computer programming]]. == Nullary arithmetic product == ===Definition=== Let ''a''<sub>1</sub>, ''a''<sub>2</sub>, ''a''<sub>3</sub>, ... be a sequence of numbers, and let :<math>P_m = \prod_{i=1}^m a_i = a_1 \cdots a_m </math> be the product of the first ''m'' elements of the sequence. Then :<math>P_m = P_{m-1} a_m</math> for all ''m'' = 1, 2, ... provided that we use the convention <math>P_0 = 1</math>. 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 [[Formula|mathematical formulas]]. Such a "product" is a natural starting point in [[mathematical induction|induction proofs]], as well as in [[Algorithm|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 [[0|zero]] and the [[empty set]] 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]] of zero) and ''x''<sup>0</sup> = 1 shorten [[Taylor series#Definition|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''<sup>0</sup> is the ''n'' × ''n'' [[identity matrix]], reflecting the fact that applying a [[linear map]] zero times has the same effect as applying the [[identity function|identity map]]. 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.<ref>{{cite web |url=http://www.cs.utexas.edu/users/EWD/transcriptions/EWD10xx/EWD1073.html |title=How Computing Science created a new mathematical style |author=[[Edsger Wybe Dijkstra]] |date=1990-03-04 |work=EWD |access-date=2010-01-20 | quote=Hardy and Wright: 'Every positive integer, except 1, is a product of primes', Harold M. Stark: 'If ''n'' is an integer greater than 1, then either ''n'' is prime or ''n'' is a finite product of primes'. These examples — which I owe to A. J. M. van Gasteren — both reject the empty product, the last one also rejects the product with a single factor.}}</ref><ref>{{cite web |url=https://www.cs.utexas.edu/users/EWD/transcriptions/EWD09xx/EWD993.html |title=The nature of my research and why I do it |author=[[Edsger Wybe Dijkstra]] |date=1986-11-14 |work=EWD |access-date=2024-03-22 |quote=But also 0 is certainly finite and by defining the product of 0 factors — how else? — to be equal to 1 we can do away with the exception: 'If ''n'' is a positive integer, then ''n'' is a finite product of primes.' }}</ref> More examples of the use of the empty product in mathematics may be found in the [[binomial theorem]] (which assumes and implies that ''x''<sup>0</sup> = 1 for all ''x''), [[Stirling number]], [[König's theorem (set theory)|König's theorem]], [[binomial type]], [[binomial series]], [[difference operator]] and [[Pochhammer symbol]]. ===Logarithms and exponentials=== Since logarithms map products to sums: : <math>\ln \prod_i x_i = \sum_i \ln x_i</math> they map an empty product to an [[empty sum]]. Conversely, the exponential function maps sums into products: : <math>e^{\sum_i x_i} = \prod_i e^{x_i}</math> and maps an empty sum to an empty product. == Nullary Cartesian product == Consider the general definition of the [[Cartesian product]]: :<math>\prod_{i \in I} X_i = \left\{ g : I \to \bigcup_{i \in I} X_i \mid \forall i\ g(i) \in X_i \right\}.</math> If ''I'' is empty, the only such ''g'' is the [[empty function]] <math>f_\varnothing</math>, which is the unique subset of <math>\varnothing\times\varnothing</math> that is a function <math>\varnothing \to \varnothing</math>, namely the empty subset <math>\varnothing</math> (the only subset that <math>\varnothing\times\varnothing = \varnothing</math> has): :<math>\prod_\varnothing{} = \left\{ f_\varnothing: \varnothing \to \varnothing \right\} = \{\varnothing\}.</math> Thus, the cardinality of the Cartesian product of no sets is 1. Under the perhaps more familiar ''n''-[[tuple]] interpretation, :<math>\prod_\varnothing{} = \{ ( ) \},</math> 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 (category theory)|category]], the [[product (category theory)|product]] of an empty family is a [[terminal object]] of that category. This can be demonstrated by using the [[limit (category theory)|limit]] definition of the product. An ''n''-fold categorical product can be defined as the limit with respect to a [[diagram (category theory)|diagram]] 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. [[Dual (category theory)|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 [[Logical conjunction|conjunction]], which is generalized to [[universal quantification]] 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]], 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 (programming language)|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: <syntaxhighlight lang="pycon"> >>> math.prod([2, 3, 5]) 30 >>> math.prod([2, 3]) 6 >>> math.prod([2]) 2 >>> math.prod([]) 1 </syntaxhighlight> (Please note: <code>prod</code> is not available in the <code>math</code> 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." Multiplication is an [[infix notation|infix]] operator and therefore a binary operator, complicating the notation of an empty product. Some programming languages handle this by implementing [[variadic function]]s. For example, the [[S-expression|fully parenthesized prefix notation]] of [[Lisp programming language|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== <references/> == External links == * [https://web.archive.org/web/20150217225003/http://planetmath.org/emptyproduct PlanetMath article on the empty product] {{DEFAULTSORT:Empty Product}} [[Category:Multiplication]] [[Category:1 (number)]]
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Cite book
(
edit
)
Template:Cite web
(
edit
)
Template:For
(
edit
)
Template:Lang Algebra
(
edit
)
Template:Short description
(
edit
)
Search
Search
Editing
Empty product
Add topic