Secret Sequences
Introduction
Ria has a secret sequence s=(s1,s2,s3,s4)∈N4 that Nate wants to know. Nate is allowed to ask questions in the form of sequences q=(q1,q2,q3,q4)∈N4, to which Ria will reply s1q1+s2q2+s3q3+s4q4.
We can treat the sequences in N4 as vectors, so Ria's response can also be written as s⋅q, where ⋅ is the dot product.
We would like to prove the following statement false:
One question q∈N4 is always sufficient to decode a secret s∈N4.
Note: all sequences are in N4.
Interpretations
What we mean by "decode" is that given q and s⋅q, Nate should be able to uniquely determine s; that is, for all t, with s=t, we have q⋅s=q⋅t. In shorter notation, ∀t=s⟹s⋅q=t⋅q
Let D(q,s) denote the predicate that q can "decode" s.
Now we have two interpretations of the above statement:
(The "magic question" interpretation) There is some fixed question q that can decode any secret s. The quantifier chain is ∃q,∀sD(q,s).
(The "luck" interpretation) For any secret s, there is some question q that can decode s. The quantifier chain is ∀s,∃q,D(q,s).
Combinations of Quantifiers
The two interpretations suggest that similar quantifier chains will be interesting.
1. ∃q,∃s,D(q,s) is True.
"There is some question that can decode some secret."
Proof: The question q=(1,1,1,1) decodes the secret sequence s=(1,1,1,1).
2. ∀q,∀s,D(q,s) is False.
"Every question decodes every secret." is False.
Proof: We must show that ∃q,∃s,∃t=s,q⋅s=q⋅t. Take q=(1,1,1,1), s=(2,1,1,1), and t=(1,2,1,1). Then q⋅s=2+1+1+1=q⋅t.
3. ∀q,∃s,D(q,s) is True.
"It is possible to ask any question and sometimes decode the secret," is True.
Proof: Given any question q=(q1,q2,q3,q4), let s=(1,1,1,1), and suppose indirectly that there is some t=(t1,t2,t3,t4)=s for which q1+q2+q3+q4=q⋅s=q⋅t=q1t1+q2t2+q3t3+q4t4. If any ti>1, then q⋅t>q⋅s, so t1=t2=t3=t4=1, contradicting that s=t.
4. ∃s,∀q,D(q,s) is True.
"There is some secret that can be decoded by any question," is True.
Proof: Let s=(1,1,1,1), and similarly to (3), for all q=(q1,q2,q3,q4), there is no t=s for which q1+q2+q3+q4=q⋅s=q⋅t=t1q1+t2q2+t3q3+t4q4.
5. ∃q,∀s,D(q,s) is False.
"There is some fixed question that can decode any secret," is False.
Proof: We must show that ∀q,∃s,∃t=s,q⋅s=q⋅t.
Well, given any q=(q1,q2,q3,q4), let s=(1+q2,1,1,1) and t=(1,1+q1,1,1). Then q⋅s=q1(1+q2)+q2+q3+q4=q1+q2(1+q1)+q3+q4=q⋅t.
6. ∀s,∃q,D(q,s)
``For any secret, we can pick a question to decode it''
Proof: Let s=(s1,s2,s3,s4). Pick a1,a2,a3,a4∈N, pairwise relatively prime, and ai>sj. Let q1=a2a3a4 q2=a1a3a4 q3=a1a2a4 q4=a1a2a3. Then assume indirectly that there is some t∈N4 for which 0=q1(s1−t1)+q2(s2−t2)+q3(s3−t3)+q4(s4−t4). Since a1 divides the last three terms, a1 must divide q1(s1−t1). Since a1 does not divide a1, divides s1−t1. Since s1 and t1 are positive integers, s1−t1<s1; since a1>s1 and a1∣s1−t1, we must have that t1≥s1. Similarly, t2≥s2, t3≥s3, and t4≥s4. Then we have that q1(s1−t1)+q2(s2−t2)+q3(s3−t3)+q4(s4−t4)<0, a contradiction.