The present invention provides with the active compound of choline energy muscarine M1 receptor forward direction allosteric modulators, the prevention or therapeutic agent of alzheimer's disease, schizophrenia, pain, sleep disturbance, Parkinson's disease dementia, Lewy body dementias etc. may be used as. The present invention relates to compound or its salts representated by formula (I), wherein for example appended specification of each symbol is defined.本發明提供了具有膽鹼能毒蕈鹼M1受體正向別構調節劑活性的化合物,其可以用作阿爾茨海默氏疾病、精神分裂症、疼痛、睡眠障礙、帕金森氏症痴呆、Lewy體痴呆等等的預防或治療藥物。本發明涉及式(I)所代表的化合物或其鹽,其中,每個符號如所附的說明書所定義。