Rest assured that you can defeat gym leaders with pokemon significantly under their strength. One on one my 600cp pidgeot knocked off a 1200cp dragonite.