\(\DeclarePairedDelimiterX{\Set}[2]{\{}{\}}{#1 \nonscript\;\delimsize\vert\nonscript\; #2}\) \( \DeclarePairedDelimiter{\set}{\{}{\}}\) \( \DeclarePairedDelimiter{\parens}{\left(}{\right)}\) \(\DeclarePairedDelimiterX{\innerproduct}[1]{\langle}{\rangle}{#1}\) \(\newcommand{\ip}[1]{\innerproduct{#1}}\) \(\newcommand{\bmat}[1]{\left[\hspace{2.0pt}\begin{matrix}#1\end{matrix}\hspace{2.0pt}\right]}\) \(\newcommand{\barray}[1]{\left[\hspace{2.0pt}\begin{matrix}#1\end{matrix}\hspace{2.0pt}\right]}\) \(\newcommand{\mat}[1]{\begin{matrix}#1\end{matrix}}\) \(\newcommand{\pmat}[1]{\begin{pmatrix}#1\end{pmatrix}}\) \(\newcommand{\mathword}[1]{\mathop{\textup{#1}}}\)
Needs:
Direct Products ›
Set Numbers ›
Family Unions and Intersections ›
Needed by:
Alphabets ›
Arrays ›
Decision Processes ›
Index Lists ›
Integer Partitions ›
Joint Probability Distributions ›
Maximum Likelihood Distributions ›
Natural Number Notation ›
Natural Summation ›
Number Factorizations ›
Number Partitions ›
Numbered Partitions ›
Ordered Undirected Graphs ›
Polynomials ›
Predictors ›
Real Plane ›
Sequences ›
Size of Direct Products ›
Typed Graphs ›
Undirected Paths ›
Links:
Sheet PDF ›
Graph PDF ›

Lists

Why

We want to talk about several objects in order.

Definition

Suppose $A$ is a set. A list (or finite sequence, $n$-tuple, string, dataset) in $A$ (or of elements from or of $A$) is a function

\[ a: \set{1, \dots , n} \to A. \]

In other words, a list is a family whose index set is $\set{1, \dots , n}$. The length (or size) of the list is the size of its domain. The $k$th entry (or term, record) of $A$ is the result $a_k$ of $k$; here $k \in \set{1, \dots , n}$.

Notation

Since the natural numbers are naturally ordered, we denote lists using this order, from left to right, between parentheses. For example, we denote the function $a: \set{1, \dots , 4} \to A$ by $(a_1, a_2, a_3, a_4)$.

Orderings and numberings

Let $A$ be a set with $\num{A} = n$. We call a list $a: \set{1, \dots , n} \to A$ an ordering of $A$ if $a$ is invertible. In this case, we call the inverse of the ordering a numbering (or enumeration) of $A$. An ordering associates with each number a unique object and a numbering associates with each object a unique number (the object’s index).

Relation to Direct Products

A natural direct product is a product of a list of sets. We denote the direct product of a list of sets $A_1, \dots , A_n$ by $\prod_{i = 1}^{n} A_i$. If each $A_i$ is the same set $A$, then we denote the product $\prod_{i = 1}^{n} A_i$ by $A^n$. The direct product $A^n$ is the set of lists in $A$ .

Natural unions and intersections

We denote the family union of the list of sets $A_1, \dots , A_n$ by $\cup_{i = 1}^{n} A_i$. Similarly, we denote the intersection by $\cap _{i = 1}^{n} A_i$.

Slices

An index range for a list $s$ of length $n$ is a pair $(i, j)$ for which $1 \leq i < j \leq n$. The slice corresponding to $(i,j)$ is the length $j-i$ list $s'$ defined by $s'_1 = s_{i}$, $s'_2 = s_{i+1}, \dots, s'_{j} = s_{i + j-1}$.

We denote the $(i,j)$-slice of $s$ by $s_{i:j}$. If $i = 1$ we use $s_{:j}$ and if $j = n$ we use $s_{i:}$ as shorthands for the slices $s_{1:j}$ and $s_{i:n}$.

Copyright © 2023 The Bourbaki Authors — All rights reserved — Version 13a6779cc — About — Show the old page view