Let $G = (\{A,S\}, \{a,b\}, S, P\}$ be the grammar with the following productions: \begin{align} & S \to aAb | Sb \\ & A \to aAb | ab \end{align}
- What is the language $L(G)$ generated by the grammar?
- Prove your answer to 1. by induction.
Here is my attempt. I think that the language generated by $G$ is $$L= \{a^nb^{n+k} \mid n\geq2,k\geq0. \} $$ I need to prove that $L = L(G)$ by induction on length, but I don't know how to do it properly because I have two parameters ($n,k$). There also need to be two directions to the proof.
I found this post, but it is of no help to me.
What is the base case? I tried looking about distinguishing whether the length is even or odd, and I think I got the pattern between $(n,k)$ correctly, but I really don't have a clue how to start the proof.