Bonjour Tryphon, c'est un résultat bien connu
On considère $\mathbb{R}$ comme un espace vectoriel sur $\mathbb{Q}$. Comme
$$\mathbb{R}=H\oplus\mathbb{Q}u,$$
chaque réel $x\in\mathbb{R}$ s’écrit de manière unique sous la forme
$$x=h+qu,\qquad h\in H,\quad q\in\mathbb{Q}.$$
On définit donc l’application
$$\Phi:H\times\mathbb{Q}\longrightarrow\mathbb{R},\qquad\Phi(h,q)=h+qu.$$
L’écriture étant unique, $\Phi$ est une bijection. La bijection donne
$$|\mathbb{R}|=|H\times\mathbb{Q}|=|H|\cdot|\mathbb{Q}|=|H|\cdot\aleph_0,$$
Si $H$ était fini ou dénombrable, alors $H\times\mathbb{Q}$ serait dénombrable. Cela contredirait le fait que $\mathbb{R}$ est non dénombrable. Ainsi, $H$ est infini.
Pour tout cardinal infini $\kappa$, on a $\kappa\cdot\aleph_0=\kappa$. En appliquant cette propriété à $\kappa=|H|$, on obtient
$$|\mathbb{R}|=|H|\cdot\aleph_0=|H|.$$
$H$ et $\mathbb{R}$ ont la même cardinalité.
edit J'ajoute . Dans ton contre exemple, j’ai compris que tu as pris $E=H\cup\{u\}$ sans l’ecrire. Alors $f$ reste bornée sur $E$, mais aucun $a$ ne convient : un $h\in H\setminus\{0\}$ imposerait $a=0$, tandis que $f(u)=u$ imposerait $a=1$.