Opposition logic and neural network models in artificial grammar learning