53

Is there a notation in English written mathematics for $$\textit{the interval of all points lying between two real numbers $a$ and $b$}$$ when you don't know which of $a$ and $b$ is greater?

Which one is greater is completely irrelevant for what I am writing, and I would like to avoid making the text heavier as much as possible.


Suggestions that have been made so far that rely on external notions: $$[\min\{a,b\}, \max\{a,b\}]\qquad \operatorname{Conv}(a,b)$$

Suggestions for a brand new notation: $$(a,b]^*\qquad (\{a,b\}]\qquad (a\nearrow b]\qquad /a,b/\qquad \left(\begin{matrix}a\\b\end{matrix}\right]^\star$$

$^\star$ intervals open at the lower bound and closed at the higher bound, whichever of $a$ and $b$ they are.

Some other options:

  • Assume wlog that $a<b$
  • Make explicit that the notation $[a,b]$ doesn't imply $a<b$.
  • 14
    I don't believe there's a standard notation for this - I've often wished there were. – David C. Ullrich Jun 08 '18 at 15:25
  • Doesn't the standard notation still work, just like an integral with lower limit greater than upper limit still exists. Care necessary over the fact that intervals may be differently oriented. – Mark Bennet Jun 08 '18 at 15:31
  • @MarkBennet there would probably be a way around if one needed to write $\int_{[a,b]}\ldots$, but I need a raw $x\in (a,b)$. – Arnaud Mortier Jun 08 '18 at 15:33
  • 24
    If it is irrelevant which one is greater, why don't you just assume $a \leq b$ (without loss of generality)? – Ricardo Buring Jun 08 '18 at 15:42
  • 6
    @RicardoBuring they are not just variables, I used $a$ and $b$ here for the sake of simplicity, but they are defined independently. But yes in some contexts that would be a good option. – Arnaud Mortier Jun 08 '18 at 15:48
  • 13
    I guess that $,{\lambda a + (1-\lambda)b \mid \lambda \in [0,1]},$ would also count as too heavy. – dxiv Jun 08 '18 at 16:11
  • 3
    @dxiv Your guess is correct :-) – Arnaud Mortier Jun 08 '18 at 16:18
  • 1
    @ArnaudMortier I think your question is missing too much information. For example, it's not clear whether this interval is going to be mentioned only in passing or if it's going to be core to the discussion. (If the former, you can get away with just using English.) It's not at all clear how $a$ and $b$ are defined in such a way that indicates you cannot make the assumption about which is less. Much of this might be cleared up by a discussion of the usage and surrounding context. It feels like there might be an XY problem lurking here, since this is such a strange requirement. – jpmc26 Jun 09 '18 at 01:04
  • 1
    @jpmc26 It was on purpose that I didn't include more context, first because the mathematical context of what I'm writing would be unreadable and irrelevant, secondly because I was hoping for something so simple that it shouldn't depend on the context. Now as for "how $a$ and $b$ can be defined...", it's simply not $a$ and $b$ in the text, it's expressions in terms of other things. The interval $({a,b})$ occurs several times in the middle of a tedious explanation where it is not at all natural to take reader's time on something that should be elementary and is far from the point. – Arnaud Mortier Jun 09 '18 at 02:27
  • 1
    @jpmc26 "such a strange requirement" not if you have a look at David C. Ullrich's first comment. – Arnaud Mortier Jun 09 '18 at 03:53
  • May be $(a \wedge b, a \vee b)$, although it's a little bit heavy. – Akira Feb 16 '20 at 14:35

13 Answers13

51

One possibility is $\operatorname{Conv}(a,b)$: the convex hull of $a$ and $b$. Maybe this should really be $\operatorname{Conv}(\{a,b\})$, but I think it is forgivable to omit the curly braces - or even to write $\operatorname{Conv}\{a,b\}$, which keeps it clear that order does not matter.

When $a,b \in \mathbb R$, this just gives us the closed interval $[a,b]$ or $[b,a]$; for points $a,b \in \mathbb R^n$, this gives us the line segment from $a$ to $b$.

It generalizes to $\operatorname{Conv}\{a,b,c\}$ which is the smallest closed interval containing all three of $a,b,c \in \mathbb R$, and so on.

Misha Lavrov
  • 142,276
  • 1
    Also nice, especially when you have a lot of points. But for two points there ought to be something shorter, like $\left<a,b\right>$. – Arnaud Mortier Jun 08 '18 at 15:54
  • @ArnaudMortier Do not use $\langle a,b\rangle$ as this is in some parts of the world simply the closed interval $[a,b]$. – yo' Jun 08 '18 at 18:04
  • @yo' that's interesting, I've never seen that. May I ask in which parts of the world? – Arnaud Mortier Jun 08 '18 at 18:06
  • @ArnaudMortier Certainly Czechia and Slovakia, FWIW also Russia. I have limited experience with other countries in the region to provide more information. – yo' Jun 08 '18 at 18:07
  • 8
    In my experience, $\langle a,b\rangle$ refers to the inner product of $a$ and $b$, which $(a,b)$ also gets used for sometimes. (Or, in other context, to the ideal generated by $a$ and $b$, which $(a,b)$ also gets used for sometimes.) We just don't have enough kinds of brackets to be collision-free. If I were going to pick a bracket to use here, I'd just redefine $[a,b]$. – Misha Lavrov Jun 08 '18 at 18:21
  • 7
    @MishaLavrovand $(a,b)$ is also the gcd. And the inner product is also $\langle a|b\rangle$ or $a^{\mathsf T}b$. Also $(a,b)$ could be simply the vector. Or a tuple. Or wait, the vector could also be $[a,b]$. Nono, that's the interval. Or was it something else? – yo' Jun 09 '18 at 07:03
  • 1
    It would need to be $\operatorname{int}\operatorname{conv}{a,b}$ for the open interval. But how would you adapt this approach to a half-open interval? – John Bentin Jun 09 '18 at 08:17
  • I definitely have seen $\langle x_1 \dots x_N \rangle$ denote the complex hull before. (Can't find a source though, maybe it was just in my Algebraic Topology lecture.) If you need the notation a lot, it might make sense to introduce such a shorthand for $Conv(\dots)$. – Noiralef Jun 09 '18 at 08:40
  • @JohnBentin That would be hard to express, but I also don't think there's much use for a half-open interval when you're not sure which end is open. – Misha Lavrov Jun 09 '18 at 17:10
  • 2
    You might know (say) that the right (upper) end is open, without knowing whether that end is the location of $a$ or of $b$. – John Bentin Jun 09 '18 at 21:01
  • In my country (Norway), high school students learn to use $\langle a, b\rangle$ for open intervals, probably so it doesn't conflict with the cartesian coordinates $(a, b)\in \Bbb R^2$. There are just so many things we want to do with pairs of numbers, and only so many brackets available. But then they do use $[a, b]$ both for vectors and closed intervals (yes, vectors and points get different brackets). – Arthur Jun 11 '18 at 13:25
45

Assuming you're meaning the closed interval for the notation I'm going to write, something that will always work is

$$[\min\{a,b\}, \max\{a,b\}]$$

Another possibility is

$$[a,b] \cup [b,a]$$

But I think that there is no standard notation, so you could create yours explaining it.

Javi
  • 6,263
  • 10
    (+1) It does work, but it still feels heavier than necessary. – Arnaud Mortier Jun 08 '18 at 15:27
  • 3
    How about $[a,b] \cup [b,a]$? – Santiago Canez Jun 08 '18 at 15:32
  • 1
    @SantiagoCanez That is a bit confusing - I'd spend time wondering what you meant with that – Ant Jun 08 '18 at 16:36
  • @Ant if $a<b$, then $[b,a]=\emptyset$ and you get $[a,b]$, so this union is like an exclusive disjunction. – Javi Jun 08 '18 at 16:38
  • 1
    @Javi Yes, I know what he meant because we have been talking about this problem. But if I had read that out of the blue in a paper, I would wonder what that is - it would take me a while to figure it out, unless the author had mentioned already the problem – Ant Jun 08 '18 at 16:50
  • 6
    @Javi Be careful, in the projective space, $[b,a]=\overline{\mathbb{R}}\setminus (a,b)$, so this is ambiguous to some extent. – yo' Jun 08 '18 at 18:03
  • @yo' yeah I was assuming the usual real line – Javi Jun 08 '18 at 18:04
  • 3
    @ArnaudMortier A little heaviness might be appropriate here because it's an uncommon thing to express and you don't want the reader to miss it. – Owen Jun 10 '18 at 04:01
26

Without loss of generality, let's assume $a<b$. Consider the interval $[a,b]$...


If that's not working, define some intuitive variable names like $m:=\min(a,b) , M:=\max(a,b)$, where $m$ stands for min, and $M$ stands for max.
Or use $l$ and $u$ for lower and upper, or $l$ and $h$ for low and high. As long as you couple it with a sentence, people will see the variables as acronyms for their intuitive meaning.

Sudix
  • 3,630
  • 9
    This was suggested in the comments; unfortunately, you can't always do this, for instance when $a$ and $b$ are defined externally and assuming wlog that $a<b$ doesn't really make sense. – Arnaud Mortier Jun 08 '18 at 16:50
  • 4
    @ArnaudMortier It's fine, isn't it? The point is that if, in fact, $a>b$, the argument is identical except for swapping the roles of $a$ and $b$. That's exactly why it's without loss of generality. – David Richerby Jun 10 '18 at 12:35
  • 3
    @DavidRicherby I guess it would be fine in a number of situations, but sometimes you're in the middle of a technical argument and it doesn't feel natural that you need to pause that much for a point that is by nature irrelevant. – Arnaud Mortier Jun 10 '18 at 13:13
  • 1
    @ArnaudMortier you said ‚Which one is greater is completely irrelevant...‘. If it is irrelevant you can assume WLOG a<b (it is just renaming). And in case it is not irrelevant you‘ll have to go through the case distinction anyway. If you think it is non-obvious why it is irrelevant, you can throw in why the argument is symmetrical for b<a. Anyway: for the question as asked this is clearly the answer. WLOG a<b is exactly like saying ‚it is irrelevant‘. If the names a and b where already used (‚defined externally‘ as you say) then consider using new variable names to avoid confusion. – dingalapadum Jun 10 '18 at 13:27
  • 2
    @dingalapadum The argument does not depend on which of $a$ and $b$ is greater. Nothing depends on that. Which is why it feels wrong to spend any amount of time discussing it. The dream would be to have something like $/a,b/$ that was suggested which anyone would understand and wouldn't require unnecessary reading time, but apparently this is just a dream. – Arnaud Mortier Jun 10 '18 at 13:35
  • 1
    @ArnaudMortier I see your point and, of course, you know the details of your motivating case, which I don't. I like your suggested $/a,b/$; something like $(a,b)^*$ would also be good: it's easy to read, doesn't look like it might mean something else, generalizes to (half-)closed intervals, etc. Obviously, you'd have to define it yourself but it can go in the introduction and not get in the way. – David Richerby Jun 10 '18 at 14:21
  • I am Asaf Karagila, and I endorse this message. Specifically the second one. I'd even go as far as saying $m_{a,b}$ and $M_{a,b}$ will denote the minimum and maximum of $a$ and $b$ respectively, in case this notation is needed often. Use $\overline m$ or $\mathsf m$ in case $m$ and $M$ are themselves used often. – Asaf Karagila Jun 12 '18 at 07:44
11

When no convenient standard notation exists for something you need to use repeatedly, you are entitled to make up a new notation for it, for example $(a\nearrow b)$ or $[a\nearrow b]$. Another suggestion is $(\{a,b\})$ or $[\{a,b\}]$. The idea behind the first notation is that $a$ and $b$ are placed in a "rising" sequence, while in the second the braces indicate a neglect of the existing order of $a$ and $b$. Be warned, though, that people are critical of new notation; so choose it carefully!

John Bentin
  • 18,454
11

I would use simply $[a,b]$. Somewhere in your article (or whatever it is you are writing), you should write something to the effect of:

When $a\leq b$, we denote by $[a,b]$ the closed interval as usual. When $a>b$, our $[a,b]$ is what is typically denoted $[b,a]$. That is, in our notation $[a,b]=[b,a]\neq\emptyset$ for all $a,b\in\mathbb R$. (Or with $\mathbb R\cup\{-\infty,\infty\}$ if you want.)

It is good to have some redundancy to make the message go through. If you want have half-closed intervals or want the intervals to carry orientation (in addition to being sets) or something, you need to explain that as well.

There is no sufficiently universal standard, so you have to pick something reasonable and explain it. This is actually quite often the case in mathematics in my experience: you have to come up with new notations.

  • 1
    This is absolutely what I would do. If I were working in something other than $\mathbb{R} $ the suggestion ${ta + (1-t)b}$ would work, but here there is already a notation for an interval, and if $b>a$ the notation $[a, b] $ has only two reasonable meanings: either it's $[b, a] $ or is the empty set. In most contexts I imagine it's already clear which of the meanings is intended, and an explanation will clear up any potential ambiguity if needed. – Brevan Ellefsen Jun 09 '18 at 18:31
10

Probably, the simplest notation in this case is $I$ (together with some words):

Let $I$ be the interval of all points lying between $a$ and $b$. Then...

... Then, the interval $I$ of all points lying between $a$ and $b$ satisfies...

... Then ... where $I$ is the interval of all points lying between $a$ and $b$.

None of these sentences seems heavy. Instead, they seem are very simple and clear (in my opinion).

Pedro
  • 18,817
  • 7
  • 65
  • 127
  • This would work in other cases but sometimes, incl. the situation I'm in, you just don't want to spend time discussing a notation that should be straightforward in the middle of a computation that is already complicated, to focus on what really matters. – Arnaud Mortier Jun 08 '18 at 22:33
6

I have also seen, for example, $$\left(\begin{matrix}a\\b\end{matrix}\right]$$

used to before to denote an interval between $a$ and $b$, open for the lower limit, and closed for the upper limit, where either $a$ or $b$ could be larger.

Obviously it is not standard, and there are issues with open and closed intervals being confused with other meanings of the notations. But where the notation is explained and the context does not lead to confusion, it works.

Paul Sinclair
  • 43,643
6

Coppel simply denotes it $[a,b]$, and defines this notation to mean the convex closure of $\{a,b\}$ as in Misha's answer. So I agree with Joonas Ilmavirta that this is a good option; just explain to the reader how you're using the notation and it'll all be fine.

Further comments:

There's an interesting connection here to the distance function

$$\mathbb{R} \times \mathbb{R} \rightarrow [0,\infty)$$ $$a,b \mapsto d(a,b) =|b-a|$$

and the "monus" function

$$\mathbb{R} \times \mathbb{R} \rightarrow [0,\infty)$$ $$a,b \mapsto b \mathbin{\dot -} a =\mathrm{max}(b-a,0).$$

In particular, under the usual definition where $$[a,b] = \{x \in \mathbb{R} : a \leq x \leq b\},$$ we have $$\int_{[a,b]} 1 = b \mathbin{\dot -} a.$$

Whereas under the convex hull definition where $$[a,b] = \{ax+by : x+y = 1, x \geq 0, y \geq 0\},$$ we have $$\int_{[a,b]} 1 = d(a,b).$$

I remark that there's a third possible definition of $[a,b]$ in which it's an oriented $1$-simplex (and consequently not a subset at all, but rather an equivalence class of functions $[0,1] \rightarrow \mathbb{R}$. This viewpoint on $[a,b]$ is used in some accounts of integration over differential forms. If $[a,b]$ is an oriented $1$-simplex, we find that $$\int_{[a,b]} 1 = b - a.$$ So this is closest to the high-school viewpoint in which switching the order of $a$ and $b$ switches the sign of the integral.

goblin GONE
  • 67,744
5

Define a mapping from points to intervals in the preliminary:

Let $I \colon \Bbb R^2 \to \mathcal{P}(\Bbb R)$ be defined as

$$I[a,b]=\begin{cases} [a,b] & \text{ if }a\leq b \\ [b,a] & \text{ otherwise.}\end{cases}$$

This is light in terms of notation, and it kind of speaks for itself. I believe that in most contexts, the majority of readers will understand what is meant even without going to check the precise definition in the preliminaries.

Hello
  • 383
4

Given you define your notation clearly and given you only need one type of these intervals (w.r.t. inclusion of the endpoints) and given you need it quite a lot, you can use $\mathopen{/}a,b\mathclose{/}$. While I haven't seen it in scientific papers, I saw it several times in lecture notes.

If you need it only couple times, spell things out properly as it doesn't make sense to use any special notation. Because frankly, there is no standard notation so any notation you "develop" will be special and strange for the readers.

yo'
  • 4,506
2

Intervals don't need to be ordered following the convention of the smaller number first and the larger second.

Often it is assumed that $y > x$. For purposes of mathematical structure, this restriction is discarded, and 'reversed intervals' where $y − x < 0$ are allowed.

https://en.wikipedia.org/wiki/Interval_(mathematics)
Also...

In mathematics, a (real) interval is a set of real numbers with the property that any number that lies between two numbers in the set is also included in the set.

The condition of "x lies between a and b" IS satisfied even when a > b.

So you can simply write $\{x : x ∈ [a,b]\}$

John
  • 29
  • 1
  • As I understand it, this is rather used when considering the set of all intervals as a whole endowed with a mathematical structure, in which case it does not necessarily seem natural to restrict to one half of the plane $\Bbb R\times \Bbb R$. – Arnaud Mortier Jun 08 '18 at 18:27
  • 1
    I've had professors who simply used the same notation $[a,b]$, regardless of which one of $a$ or $b$ was greater; so for example $[5,3]$ was considered as totally acceptable and equivalent to $[3,5]$. I don't know if they used this anywhere other than lecture notes though. – Arnaud D. Jun 08 '18 at 19:25
  • 1
    This. It doesn't really matter which externally defined a or b is larger, the notation [a,b] implies that the interval exists and that, so far as expressing the interval is concerned, the local ab. That is, you may reorder in your head to instruct a proper interval. You would only need to be more pedantic if you were actually constructing the interval with a dumb processing object, like a computer. – Dúthomhas Jun 08 '18 at 19:52
  • 6
    The article is saying that writing $[a,b]$ when $a<b$ is allowed; it later goes on to say "when $a>b$, [this notation is] usually taken to represent the empty set". That's the usual convention. You can always declare that you're going against this convention and define $[a,b] = [b,a]$ to be the same interval, but this is not too different from defining new notation. – Misha Lavrov Jun 08 '18 at 20:08
2

While I appreciate your goal to avoid sophistication than necessary, you might be a typical victim of obscurity. Because while you are trying to prevent a needless assumption on the ordering you are introducing a mental load on the reader with "an interval defined by two endpoints with no known preference".

However this is already the default stance of the reader. Nobody sets out to read $[a,b]$ as I wonder whether $a>b$?. In fact this is the reason why we use consecutive letters. Consider $[\beta, \Phi]$ it doesn't have the same effect does it? It has more certainty attached to it as if they were defined somewhere else and we are reading from the middle of a paragraph.

Hence if you want to keep things simple just use $\{a,...,b\}$ it is a set notation thus no ordering is needed per se and also it is a common enough construct which implies continuation from one to the other in some sense regardless of the order.

percusse
  • 562
  • 1
    I have to say I'm not convinced by ${a,\ldots,b}$, because it feels a lot like a finite set, maybe even more than $[a,b]$ makes you feel like $a<b$. But I take your point that you don't want to put extra mental load on the reader. – Arnaud Mortier Jun 11 '18 at 13:04
1

You could use set comprehension, but be careful. English is ambiguous about which endpoint is smaller in a way that’s helpful here, but also about whether an interval is open or closed.

$$S = \left\{ x \in \mathbb{R} \mid \text{\(x\) is between \(a\) and \(b\), excluding[/including] the endpoints} \right\}$$

Davislor
  • 2,576