In math you learn to follow a series of developments, building structure that leads to statements that are true. These are the foundation for more bricks in the wall and even bigger constructions. e.g. The proof of Fermat's last theorem.
My sense of philosophy - after reading maybe a dozen of the classics, was there was little that was accepted as true. Yes, there are self-consistent chains of reasoning but the foundation blocks are more a matter of "taste", and the amount of rigor in the chains varied - complicated by the fact that human language is inherently not very precise.