Let $p>q$ be positive integers, set $P=\{1,2,...,p\}$, and $Q\subset P$ be an unknown set of $q$ elements.
In every step, we can guess a set $T\subset P$ and then know the size $|T\cap Q|$ of its intersection with $Q$. What is the minimal number of steps, $S(p,q)$, in which we are guaranteed to find $Q$?
I want to prove the following lemma.
Lemma. $P_1,P_2$ are sets of $p_1,p_2$ elements disjoint, given $|P_i\cap Q|=r_i,i=1,2$, note the minimal step number to surely get Q be $S(p_1,p_2;r_1,r_2)$, then $S(p_1,p_2;r_1,r_2)=S(p_1,r_1)+S(p_2,r_2)$.