Similar Items: Linear Abadi and Plotkin Logic