Subset
A ⊆ B: every element of A is also in B. ⊇ is the same, read from the other side.
In ML papers
says is a subset of : everything in is also in . A mini-batch is a subset of the dataset, ; the tokens a top- sampler keeps are a subset of the vocabulary. says the same thing from 's side.
adds "and not equal" (a proper subset). Plain is ambiguous: some authors mean , others mean proper subset. Usually the difference does not matter for the argument.
How to type it
| LaTeX | Shows |
|---|---|
\subseteq | |
\subset | |
\subsetneq strict, explicitly | |
\supseteq |
A worked example
The second fails because is missing from the larger set.
Common confusions
- compares two sets; (Element of) says one element belongs to a set. but .