Suppose to have a Lie group $\mathbb G$ whose Lie algebra $g$ admits a stratification $g=V_1\bigoplus V_2$ with $\text{dim} V_1=m$ and $g=Lie(V_1)$, i.e. $g$ is generated by $V_1$. In other words, $\mathbb G$ is a Carnot group of step 2. Moreover, suppose we have a basis for $V_1$ given by $\{X_1,\dots,X_m\}$ so we know that the vector fields $\{X_1,\dots,X_m\}$ generate a subbundle $H\mathbb G$ of rank $m$ of the tangent bundle $T\mathbb G,$ in the sense that its fibers are given by $$(H\mathbb G)_p=\text{span}\{X_1(p),\dots,X_m(p)\}.$$ We call vector fields that are sections of $H\mathbb G$ horizontal vector fields. Thus, if $X$ is horizontal, there exist smooth functions $a_1,\dots,a_m:\mathbb G\to \mathbb R$ such that $X=\sum a_i X_i$.
Now, let $Y_1,\dots,Y_m$ be left invariant, smooth, horizontal vector fields that are orthonormal. My question is: $g=Lie\{Y_1,\dots, Y_m\}$?
It is clear that $g\supseteq Lie\{Y_1,\dots, Y_m\}$, the problem is the reverse inclusion. Any suggestions?
I've tried to prove that $\{X_1,\dots,X_m\}\subseteq Lie\{Y_1,\dots,Y_m\}$, but I'm stuck on this. I know that -since $Y_i$ are horizontal and orthonormal- $(H\mathbb G)_p=\text{span}\{Y_1(p),\dots,Y_m(p)\},$ so for any $p\in \mathbb G$ and for any $1\leq i\leq m$ there are coefficients $b^i_j, j=1,\dots,m$ which depend on $p$ such that $X_i(p)=\sum_{j=1}^m b^i_j Y_j(p).$ Does this imply $X_i\in Lie\{Y_1,\dots,Y_m\}$? If the coefficients $b^i_j$ didn't depend on $p$, I would say that $X_i\in Lie\{Y_1,\dots,Y_m\}$ is true, but in general $b^i_j=b^i_j(p).$
Yes it's true. It's based on a general result: if $\mathfrak{g}$ is any nilpotent Lie algebra over any field, and $\mathfrak{h}$ is any subalgebra such that $\mathfrak{h}+[\mathfrak{g},\mathfrak{g}]=\mathfrak{g}$. Then $\mathfrak{h}=\mathfrak{g}$. This is easy to prove by an induction on the nilpotency length.