17

I was wondering how should the word "any" be used in mathematical context. Is it a "for all" or an "it exists"?

For example, assume I stated something like

A set $X$ is called nice if $P(x)$ holds for any $x\in X$.

Would that mean that $X$ is nice only if all of its elements satisfy $P$, or that $X$ is nice as long as one of its elements satisfies $P$?

Personally, I always assumed the second case, but English is not my mother tongue, and I have seen the word being used both ways.

  • 7
    I would interpret this to mean that $P(x)$ is true $\forall x\in X$. – Jürgen Sukumaran Mar 22 '16 at 23:44
  • 5
    Definitely for all. – André Nicolas Mar 22 '16 at 23:48
  • 1
    "For any" nearly always means "for all," and it never means "there exists some." – pancini Mar 22 '16 at 23:48
  • Somewhat related/ of interest: http://math.stackexchange.com/a/49391/153167 – White Shirt Mar 22 '16 at 23:57
  • 4
    I have read that "any" is a word specifically to be avoided because of the ambiguity. – DanielV Mar 23 '16 at 00:54
  • 1
    Definitely it's meaning is ambiguous. If you are writing words to communicate with other people, then clarity is paramount. Because there are other choices, you should avoid writing "for any". Also, be very careful when you come across that phrase while reading to try to discern what is meant. I seem to remember ages ago hearing someone say that John Tate avoided using the word "any" because of its ambiguity, but it's been so long I might have the attribution totally wrong. – Barry Smith Mar 23 '16 at 01:13

5 Answers5

9

Here is the opinion of P. Halmos, extracted from his highly recommended article How to write mathematics, p. 142:

The point is that in everyday English "any" is an ambiguous word; depending on context it may hint at an existential quantifier ("have you any wool ?", "if anyone can do it, he can") or a universal one ("any number can play"). Conclusion: never use "any" in mathematical writing. Replace it by "each" or "every", or recast the whole sentence.

J.-E. Pin
  • 40,163
7

According to the dictionary, "any" can mean "one, some, every, all". Often it is obvious from the context which is meant, but not always. Careful writers of mathematics try to choose a more specific word. For example, Halmos never used "any". So there is no answer to your question. Every time you come across "any" you have to try to figure out from the context what the author meant.

zeno
  • 71
3

$\newcommand{\eps}{\varepsilon}$Good writing facilitates understanding.

In my experience, the greatest risk of confusion comes from a predicate of the form "if for any...":

  • A function $f$ is continuous at $a$ if for any $\eps > 0$, there is a $\delta > 0$ such that if $|x - a| < \delta$, then $|f(x) - f(a)| < \eps$. (Here, "any" means "every".)

  • A function $f$ is discontinuous on a set $A$ if for any $a$ in $A$, $f$ is discontinuous at $a$. (Here, "any" means "some".)

In each case, the intended meaning is far from obvious until the definition of continuity has been absorbed. Even then, "if for any" makes even a fluent reader stop and re-read, breaks the train of thought.

In other words, the phrase obstructs learning and hampers communication. It belongs only in manuals of expository sabotage.

  • 2
    While I agree with Rob's answer that "if any x has property P, then Q is true" strongly and idiomatically signals , in the above examples, we have "We define $f$ as continuous iff (For any ε,...)" and "We define $f$ as discontinuous iff (For any a,...)"; IMO, this phrasing does suggest "Given an arbitrary ε" and "Given an arbitrary a", that is, . $\quad$ In any case, we can all agree that in technical writing and teaching, the word "any" should be used judiciously, and I too would change "any" to "each" in the above. – ryang Mar 09 '23 at 18:10
2

This is turning into an English lesson. Here is my take on it as a native UK English speaker: if a bouncer says to a group of students:

"You will all be thrown out of this bar if any of you misbehaves."

The bouncer's "any" is an existential quantifier: one misbehaviour by one student means the group will be thrown out. That is how "A set $X$ is called nice if $P(x)$ holds for any $x$ in $X$" reads to me (one in, all in).

I don't know whether Tate or Halmos ever worked as bouncers, but I would recommend their avoidance of quantifying over "any" (rather than "some" or "all") in a mathematical context unless you are very confident that what you have written is not ambiguous or misleading.

Rob Arthan
  • 48,577
0

It is my understanding that this is all about the difference between the words $\textit{some}$ and $\textit{any}$.

$\textit{any}$ means $\forall$, $\textit{some}$ means $\exists$.

Marco Flores
  • 2,769