Sets, shapes and definitions

B⊆D\mathcal{B} \subseteq \mathcal{D} Subset

A ⊆ B: every element of A is also in B. ⊇ is the same, read from the other side.

In ML papers

A⊆BA \subseteq B says AA is a subset of BB: everything in AA is also in BB. A mini-batch is a subset of the dataset, B⊆D\mathcal{B} \subseteq \mathcal{D}; the tokens a top-kk sampler keeps are a subset of the vocabulary. B⊇AB \supseteq A says the same thing from BB's side.

⊊\subsetneq adds "and not equal" (a proper subset). Plain ⊂\subset is ambiguous: some authors mean ⊆\subseteq, others mean proper subset. Usually the difference does not matter for the argument.

How to type it

LaTeXShows
\subseteq⊆\subseteq
\subset⊂\subset
\subsetneq strict, explicitly⊊\subsetneq
\supseteq⊇\supseteq

A worked example

{2,4}⊆{1,2,3,4},{2,5}⊈{1,2,3,4}\{2, 4\} \subseteq \{1, 2, 3, 4\}, \quad \{2, 5\} \not\subseteq \{1, 2, 3, 4\}

The second fails because 55 is missing from the larger set.

Common confusions

Related

x∈Rd\mathbf{x} \in \mathbb{R}^dElement ofD={(xi,yi)}i=1N\mathcal{D} = \{(\mathbf{x}_i, y_i)\}_{i=1}^{N}Set bracesA∪B,A∩BA \cup B, \quad A \cap BUnion and intersectionlog⁡p(x)≥LELBO\log p(x) \geq \mathcal{L}_{\text{ELBO}}Inequalities

Decode this example →