The Role of Logic in Language Learning