Formal Models of Active Learning from Contrastive Examples