The question of whether math is invented or discovered is far from settled. I know next to nothing about math, but a quick google search for "math created or invented" brings up so much controversy I find it unlikely that it's been decided. See Mathematical Platonism and its Opposites by Barry Mazur (p. 19 in: http://www.ems-ph.org/journals/newsletter/pdf/2008-06-68.pdf). He says it's The Question that won't go away.