ArticleslgStudy

mathematics

Iverson bracket

Iverson bracket is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Iverson bracket rather than just read about it. In short: In mathematics, the Iverson bracket, named after Kenneth E. Iverson, is a notation that generalises the Kronecker delta, which is the Iverson bracket of the statement x = y.

Key takeaways

  • Iverson bracket belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Iverson bracket to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Iverson bracket from memory before moving on to harder problems.

Reference excerpt

In mathematics, the Iverson bracket, named after Kenneth E. Iverson, is a notation that generalises the Kronecker delta, which is the Iverson bracket of the statement x = y. It maps any statement to a function of the free variables in that statement. This function is defined to take the value 1 for the values of the variables for which the statement is true, and takes the value 0 otherwise. It is generally denoted by putting the statement inside square brackets: [P]={1if P is true;0otherwise. In other words, the Iverson bracket of a statement is the indicator function of the set of values for which the statement is true. The Iverson bracket allows using capital-sigma notation without restriction on the summation index. That is, for any property P(k) of the integer k, one can rewrite the restricted sum ∑k:P(k)f(k) in the unrestricted form ∑kf(k)⋅[P(k)]. With this convention, f(k) does not need to be defined for the values of k for which the Iverson bracket equals 0; that is, a summand f(k)[𝐟𝐚𝐥𝐬𝐞] must evaluate to 0 regardless of whether f(k) is defined. The notation was originally introduced by Kenneth E. Iverson in his programming language APL, though restricted to single relational operators enclosed in parentheses, while the generalisation to arbitrary statements, notational restriction to square brackets, and applications to summation, was advocated by Donald Knuth to avoid ambiguity in parenthesized logical expressions.

Properties There is a direct correspondence between arithmetic involving Iverson brackets, logical expressions, and set operations. For instance, let A and B be sets, and let P(k1,…) and Q(k1,…) be properties of integers; then we have [][P∧Q] = [P][Q] ;[P∨Q] = [P]+[Q]−[P][Q] ;[¬P] = 1−[P] ;[P XOR Q] = |[P]−[Q]|=([P]−[Q])2 ;[k∈A]+[k∈B] = [k∈A∪B]+[k∈A∩B] ;[x∈A∩B] = [x∈A][x∈B] ;[∀m :P(k,m)] = ∏m[P(k,m)] ;[∃m :P(k,m)] = min⁡{1,∑m[P(k,m)]}=1−∏m[¬P(k,m)] ;#{m|P(k,m)} = ∑m[P(k,m)] .

Examples The notation allows moving boundary conditions of summations (or integrals) as a separate factor into the summand, freeing up space around the summation operator, but more importantly allowing it to be manipulated algebraically.

Double-counting rule We mechanically derive a well-known sum manipulation rule using Iverson brackets: ∑k∈Af(k)+∑k∈Bf(k)=∑kf(k)[k∈A]+∑kf(k)[k∈B]=∑kf(k)([k∈A]+[k∈B])=∑kf(k)([k∈A∪B]+[k∈A∩B])=∑k∈A∪Bf(k) +∑k∈A∩Bf(k).

Summation interchange The well-known rule ∑j=1n∑k=1jf(j,k)=∑k=1n∑j=knf(j,k) is likewise easily derived: ∑j=1n∑k=1jf(j,k)=∑j,kf(j,k)[1≤j≤n][1≤k≤j]=∑j,kf(j,k)[1≤k≤j≤n]=∑j,kf(j,k)[1≤k≤n][k≤j≤n]=∑k=1n∑j=knf(j,k).

Counting For instance, Euler's totient function that counts the number of positive integers up to n which are coprime to n can be expressed by φ(n)=∑i=1n[gcd⁡(i,n)=1],for n∈ℕ+.

Simplification of special cases Another use of the Iverson bracket is to simplify equations with special cases. For example, the formula ∑1≤k≤ngcd⁡(k,n)=1k=12nφ(n) is valid for n > 1 but is off by ⁠1/2⁠ for n = 1. To get an identity valid for all positive integers n (i.e., all values for which φ(n) is defined), a correction term involving the Iverson bracket may be added: ∑1≤k≤ngcd⁡(k,n)=1k=12n(φ(n)+[n=1])

Common functions Many common functions, especially those with a natural piecewise definition, may be expressed in terms of the Iverson bracket. The Kronecker delta notation is a specific case of Iverson notation when the condition is equality. That is, δij=[i=j]. The indicator function of a set A, often denoted 𝟏A(x), 𝐈A(x) or χA(x), is an Iverson bracket with set membership as its condition: 𝐈A(x)=[x∈A]. The Heaviside step function, sign function, and absolute value function are also easily expressed in this notation: H(x)=[x≥0],sgn⁡(x)=[x>0]−[x<0], and |x|=x[x>0]−x[x<0]=x([x>0]−[x<0])=x⋅sgn⁡(x). The comparison functions max and min (returning the larger or smaller of two arguments) may be written as max⁡(x,y)=x[x>y]+y[x≤y] and min⁡(x,y)=x[x≤y]+y[x>y]. The floor and ceiling functions can be expressed as ⌊x⌋=∑nn⋅[n≤x<n+1] and ⌈x⌉=∑nn⋅[n−1<x≤n], where the index n of summation is understood to range over all the integers. The ramp function can be expressed R(x)=x⋅[x≥0]. The trichotomy of the reals is equivalent to the following identity: [a<b]+[a=b]+[a>b]=1. The Möbius function has the property (and can be defined by recurrence as) ∑d|nμ(d)=[n=1], where d|n means the sum is taken over all positive integers d that are divisors of n.

Formulation in terms of usual functions In the 1830s, Guglielmo dalla Sommaja used the expression 00x to represent what now would be written [x>0]; he also used variants, such as (1−00−x)(1−00x−a) for [0≤x≤a]. Following one common convention (that 00=1), those quantities are equal where defined: 00x is 1 if x > 0, is 0 if x = 0, and is undefined otherwise.

Notational variations In addition to the now-standard square brackets [ · ] , and the original parentheses ( · ) , blackboard bold brackets have also been used, e.g. ⟦ · ⟧ , as well as other unusual forms of bracketing marks available in the publisher's typeface, accompanied by a marginal note.

See also Boolean function Type conversion in computer programming: many languages allow numeric or pointer quantities to be used as boolean quantities Indicator function

References

Worked examples

Example 1 — a first encounter with Iverson bracket

Start with the simplest possible case. Write down what Iverson bracket claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Iverson bracket before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Iverson bracket ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Iverson bracket

In research
Iverson bracket appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Iverson bracket in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Iverson bracket is common in secondary-school and first-year university syllabi. It links to neighbouring topics Mathematical notation, so understanding it makes those chapters shorter.
In everyday life
Look for Iverson bracket outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Iverson bracket” →

How to study Iverson bracket in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Iverson bracket means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Iverson bracket out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Iverson bracket in simple terms?

In mathematics, the Iverson bracket, named after Kenneth E. Iverson, is a notation that generalises the Kronecker delta, which is the Iverson bracket of the statement x = y.

Why does Iverson bracket matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Iverson bracket?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Iverson bracket.

Tags

  • Mathematical notation

Keep exploring