Let $G$ be a Lie group, $S \subseteq G$. Is there a smallest Lie subgroup of $G$ containing $S$? (i.e a Lie subgroup $H$ which is contained in every Lie subgroup which contains $S$).
We need to distinguish between two cases:
If we talk about embedded (equivalently closed) Lie subgroups, then the answer is positive: Take $\tilde H=\cap \{H \, \, | \, \, H \text{ is a closed Lie subgroup of $G$ which contains $S$}\}$.
Then $\tilde H$ is a closed subgroup, hence (by the closed subgroup theorem), it is a closed (embedded) Lie subgroup of $G$, so we are done.
What happens if we allow immersed Lie subgroups?
The definition I am using is that $H \le G$ is a Lie subgroup, if it is a subgroup endowed with some topology and smooth structure, making it a Lie group, and an immersed submanifold of $G$.
Now if we try to repeat the "intersection construction" (with immersed subgroups), the result is a group, but it's not clear that it is an immersed submanifold.
Is there in fact an example where the intersection won't be a Lie subgroup?
I am not very familiar with immersed submanifolds, so not entirely sure if this counts as an example or not, but it is too long for a comment.
Let $G$ be the torus $S^1 \times S^1$. If we think about it as $\mathbb{R}^2/\mathbb{Z}^2$ then I think that the subgroup $H$ which is the image of the line $y = rx$ where $r$ is a fixed irrational number, is an immerged Lie subgroup of the torus that is not a Lie subgroup in the ordinary sense: it is dense in $G$ but isomorphic to $\mathbb{R}$ when considered as a Lie group on its own. Is this correct?
Now taking the intersection of this $H$ with another, nicer, 1-dimensional subgroup $K$ (such as $S^1 \times 1$) we find that the intersection is dense and even equidistributed in $K$ (there is a lot of theory about the equidistribution of the sequence $rn \mod 1$ where $r$ is a fixed irrational and $n$ runs through the natural numbers, this should apply here too, I'd say). But as far as I can tell the intersection $H \cap K$ is not an immersed Lie subgroup of $G$ in a meaningful way.
However as I said, I am not feeling too confident about my understanding of immersions, so please share your thoughts on if and why this answer does or does not make sense!
(To be clear: I figured any two immersed subgroups whose intersection is not a submanifold would constitute an example. Taking $S$ in retrospect to be this intersection saves us from the somewhat daunting task of thinking about the intangible set of 'all subgroups containing $S$' for some pre-chosen $S$)