In a similar vein to this question, I am trying to understand the occurrence of rational solutions $\lambda$ to the following equation $$\cos(\lambda \pi) = \cos^2 (a\pi) - \cos ( b\pi ) \sin^2 \left( a\pi \right),$$ where above $a,b \in \mathbb{Q}$.
In particular, I want to conjecture that if $a$ is not an integer multiple of $\frac{1}{4}$, and if $b$ is not an integer multiple of $\frac{1}{2}$, then $\lambda$ must be irrational. These two constraints are simply coming from the fact that $\cos(\lambda \pi) = \cos^2(a \pi)$ has no rational solutions $\lambda$ if $a$ is not an integer multiple of $\frac{1}{4}$ (see linked question above), and the observation that if $b = 1$ then $$\cos^2 (a\pi) - \cos ( b\pi ) \sin^2 \left( a\pi \right) = 1$$ and if $b = 2$ then $$\cos^2 (a\pi) - \cos ( b\pi ) \sin^2 \left( a\pi \right) = \cos^2 (a\pi) - \sin^2 \left( a\pi \right) = \cos(2a \pi).$$
I have tried to mimic the approach used in the linked question above, but have been unable to make progress using that technique or others. I wondered if I am missing something and there is a clear way to show this, or if perhaps my constraints are not tight enough and the answer is more complicated?
Thanks!