The present invention provides a heterocycle derivative having a superior amyloid β production inhibitory activity and use thereof.
The present invention relates to a compound represented by the formula (I):
wherein each symbol is as defined in the present specification, or a salt thereof.