Let $L$ be the free Lie algebra generated by the set $X = \{x_i\}_{i \in \mathbb{N}}$ over a field $k$. A Lie monomial is a bracketed word of elements of $X$ of finite length, and $L$ is spanned by the Lie monomials. I would like to introduce a filtration of $L$ by ideals $L^{(n)}$ in the following way.
Introduce a weight $w$ on the generators $x_i \in X$ such that $w(x_i) = s$, if $(s-1)p < i \leqslant sp$ (for some fixed prime $p$). For example, the generators $x_1, \ldots , x_p$ are of weight one, and the generators $x_{p+1}, \ldots , x_{2p}$ are of weight two, etc.
What I would like to do, speaking naïvely, is to extend the weight to Lie monomials, that is for an element $[x_{i_1}, \ldots , x_{i_m}] \in L$ (non-zero, and with arbitrary order of bracket) to define its weight as $\left(\sum_{1 \leqslant j \leqslant m}w(x_{i_j})\right)$.
The problem I have is that the Lie monomials are not linearly independent, so it is not clear to me whether this is well defined or not.
Assuming I can define the weight of a Lie monomial as above, the goal is to define for any $n \geqslant 1$ an ideal $L^{(n)} \subset L$ such that $L^{(n)}$ is spanned by all Lie monomials of weight $\geqslant n$.
I have to admit to not being very familiar with Lie algebras, so I may be missing something fundamental, but I have tried to think along the following lines.
We can construct a basis of $L$ from the generating set $X$ by means of a Hall basis, the basis is given by basic commutators of the generators $x_i$, and as these basic commutators are linearly independent then we can their weight inductively by $w([u,v]) = w(u) + w(v)$. In this way we can obtain a basis $\mathcal{B} = \{ b_i\}_{i\in \mathbb{N}}$ of $L$ where all $b_i$ are basic commutators. A general element of $L$ is a linear combination $\sum_{i\geqslant 0}k_ib_i$, where $k_i \in k$, and $k_i = 0$ for all but finitely many $i$. We can define the weight of a general element $l \in L$ as $w(0) = \infty$ and $w(l) = \min\{ w(b_i): k_i\neq0 \}$ for non zero $l$.
The issue is that the basis is still somehow inexplicit, so that for a general Lie monomial $[x_{i_1}, \ldots , x_{i_m}]$ I still need to express it as a linear combination of basic commutators in order to determine its weight. Suppose $l = [x_{i_1}, \ldots , x_{i_m}]$ is a Lie monomial such that $\left(\sum_{1 \leqslant j \leqslant m}w(x_{i_j})\right) = n$. If $l$ is a basic commutator then certainly $w(l) = n$, but if $l$ is not a basic commutator then is it the case that $l$ is necessarily a linear combination of basic commutators of weight $\geqslant n$?
I've started to look at the Poincare-Birkhoff-Witt theorem, to see if the question is more easily considered in the (associative) universal enveloping algebra of $L$, but being unfamiliar with this area I thought I would swallow my pride and see if anyone might be able to provide me with some pointers!
Thanks in advance for any advice. Please do add a comment if anything isn't clear.