Solution (source code)

= Solution

Fix an effective coding of machines and write $W_w$ for the computably enumerable language recognized by code $w$. A set $I$ of codes is an <index set> when membership depends only on the recognized language:
$$
W_u=W_v\implies(u\in I\iff v\in I).
$$
It is nontrivial when it is neither empty nor all of $\mathbb B$.