Is Mathematics Or Philosophy More Fundamental?
Answer: Philosophy is more fundamental than mathematics.
This is changing, but mathematics is incapable at this time of comprehensively describing epistemology, whereas, philosophy can.
Hence; mathematics is restrained to pure ontology. It does not reach far enough into the universe to distinguish anything other than ontologies. This will change soon. I am working on exactly this problem. See http://mathematica-universalis.com for more information on my work. (I’m not selling anything on this site.)
Also, mathematics cannot be done without expressing some kind of philosophy to underlie any axioms which it needs to function.
Implication is a ‘given’ in mathematics. It assumes a relation which we call implication. Mathematics certainly ‘consumes’ them as a means to create inferences, but the inference form, the antecedent, and the consequent are implicit axioms based upon an underlying metaphysics.
Ergo: philosophy is more general and universal than mathematics.
Often epistemology is considered separate from metaphysics, but that is incorrect, because you cannot answer questions as to ‘How do we know?” without an underlying metaphysical framework within which such a question and answer can be considered.