Serre theorem on pro-p groups with cd<2