Here is the puzzle:
Alice and Bob leave in a world where all diamonds are divided into 2 types: Light and Heavy. All diamonds look exactly the same. All light diamonds weight exactly the same, all heavy also weight exactly the same but a bit more than the light (by an unknown, infinitely small amount more).
Now, Bob wants to sell Alice N light and N heavy diamonds. Before he does it he has to prove that those are exactly N light and N heavy, not like 2N light or any other combination of light and heavy. And he must do it using infinitely precise scales, which can only compare two weights (i.e. they don't show the weight difference, only which one is heavier). He must do it in 4 weightings.
What is the maximum N, which Bob can sell?
For example, it's easy to solve the puzzle for N = 15.
Name all diamonds according to their weight. Light: L1, L2, ...; heavy: H1, H2, ...
Weighting 1: compare L1 vs H1. Alice sees that the first is lighter and believes that L1 is a light diamond and H1 is a heavy diamond.
Weighting 2: compare L2+L3+H1 vs H2+H3+L1. Alice sees that the first set of diamonds is lighter and concludes that L2,L3 is light diamond and H2,H3 is heavy, since this is the only way for Weighting1 and Weighting2 to be as they are.
Weighting 3: compare L4L5L6L7H1H2H3 vs H4H5H6H7L1L2L3.
Weighting 4: compare L8..L15H1..H7 vs H8..L15L1..L7.
And I know, in fact, there is a solution for $N=27$.
What I need to know is a maximum $N_{max}$, a weighting procedure for $N_{max}$ diamonds, and proof that there is no possible procedure for $N_{max}+1$ diamonds.