I have to validate the following identity which is defined: $$ \sum_{k=1}^n (-1)^{k-1} \cdot q^{\frac{k(k-1)}{2}} \cdot \frac{\prod_{i=n-k+1}^n(1-q^i)}{\prod_{i=1}^k(1-q^i)} = 1 $$ where $0<q<1$.
I verified the expression numerically with R/Matlab by choosing different values for $q$ and so far it is correct. I also verified trivial cases where $n=2,3,4$ and it is also correct. But I couldn't figure out how one can prove it for all of $n$.
I hope someone could give me a hint to proceed or share some experiences in proving this kind of identities. Thanks in advance!
Edit: I thought giving a context might be interesting. The original identity that I am working is: $$ \sum_{k=1}^n \frac{1}{(1-q^k)(q^{-1},q^{-1})_{k-1}(q,q)_{n-k}} = \frac{1}{(q^{-1},q^{-1})_0 (q,q)_n} = \frac{1}{(q,q)_n} $$ where $(q,q)_n = \prod_{i=1}^n (1-q^i) $ is the q_Pochhamer symbol with $(q,q)_0 = 1$. These two identities are equivalent, I need to prove at least one :P
Update: I have demonstrated the following identity, in case of somebody is interested: $$ \sum_{k=1}^n \frac{1}{(q^{-1},q^{-1})_{k-1}(q,q)_{n-k}} = 1 $$
Even though this and the original are surprisingly close to each other, I couldn't find away to demonstrate the first identity.