Conner wrote:
In this case your tabi socks (value 1), regular socks (values 1 + 2), and sandals (values 2 + 4) would conflict with each other and thus couldn't be layered.
Perhaps you misunderstand.
It is desired that tabi socks conflict with regular socks, thus both have a 1 in bit position 0 (value 1).
It is desired that regular socks conflict with sandals, thus both have a 1 in bit position 1 (value 2).
It is desired that sandals conflict with regular shoes, thus both have a 1 in bit position 2 (value 4).
It is desired that tabi socks be compatible with sandals, and indeed they have no overlapping "1" bits (001 = 1 vs 110 = 6).
It is desired that either type of sock is compatible with regular shoes, and indeed no combination of sock/shoe has overlapping "1" bits.
I just tested these layer codes on Smaugfuss and the layering works as desired.