No question is needed to know the chosen element x of a singleton set {x}, but if there are more elements, one cannot know, so a(0) = 1 is the maximum size of a set where the answer can be known with 0 questions.
With one single question, the maximum size is the same, a(1) = 1: if there are more elements, one cannot know x from one single answer which may be a lie.
With two questions one can determine the chosen x in a two-element set M = {a, b}: Pick a singleton T = {a}; if the answer is yes you know x = a, if the answer is no, ask again and you can know whether x = a or x = b. It is easily seen that one cannot determine the chosen x of a 3-element set M = {a, b, c}, in general. (The first answer may be "No" in which case it is useless because it can be a lie.)
To illustrate a(3) = 3, consider M = {a, b, c} and the following table of optimal questions and possible outcomes:
Q1: A1, Q2 : A2, Q3: A3 -> Final Deduction:
{a}: Y - - - - - - - - - -> x = a, no lies used
" : N, {a,b}: Y, {a}: Y -> x = a, 1 lie used on Q1
" : N -> x = b, no lies used
" : N, {b}, Y -> x = b, 1 lie used on Q2
" , N -> x = c, no lies used.
Here, a double quote " means "the same as above up to here".
An illustration for a(n = 4) = 6 is as follows:
Q1 : A1, Q2 : A2, Q3 : A3, Q4: A4 -> Final Deduction
{a,b,c}: Y, {a} : Y - - - - - - - -> x=a, no lies used
" : N, {a,b}: Y, {a}: Y -> x=a, 1 lie used on Q2
" : N -> x=b, no lies used
" : N, {b}: Y -> x=b, 1 lie used on Q3
" : N -> x=c, no lies used
" : N, {a,b,c,d}: Y, {a,b}: Y, {a}: Y -> x=a, 1 lie used on Q1
" : N -> x=b, 1 lie used on Q1
" : N, {c}: Y -> x=c, 1 lie used on Q1
" : N -> x=d, no lies used
" : N, {d,e}: Y, {d}: Y -> x=d, 1 lie used on Q2
" : N -> x=e, no lies used
" : N, {e}: Y -> x=e, 1 lie used on Q3
" : N -> x=f, no lies used.
Here we have 2^4 - 3 = 13 lines corresponding to a final "leaf" in the tree, which isn't a complete binary tree, because receiving "Y-Y" on Q1 & Q2 ends the game with only 1 conclusion instead of 4 leaves that would have the complete binary tree with 2 more questions after A1 = A2 = Y. This is similar to the n = 3 question tree having only 2^8 - 3 = 5 final nodes. A rigorous proof that these sets of questions are optimal and the sizes are maximal would be significantly longer.