yoda jedi said:
"as far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality"
I had been considering talking about formalism, and this is about as good of a set-up line as I can get, so...
Logic and reasoning is a game. If I have "A" and "A implies B" in some region of play, then I can play the "modus ponens" card to allow me to place "B" in that region. There is no deep reason why "B" should be placed there; it's just the rules of the game.
The basic idea is that you construct the game so that we can
interpret the game as something else. For example, I could play a game where I have two dots and a bunch of lines on a sheet of paper, and I look for a short path between the dots. If I've chosen the game board well, I can go out, get in my car, and interpret the path I just drew as a route I should follow in order to get someplace I want!
This method of transforming a problem I care about into another one I can work with is one of the most basic notions of reasoning. In fact, unless we adopt an extreme form of solipsism, it's more or less forced upon us; e.g. I don't actually get to reason about the apple sitting on the table: I am only capable of reasoning about the abstract notion my brain has synthesized from my sense of sight and past experiences with things my brain has called apples and tables. In fact, "the apple sitting on the table" is already part of that abstraction!
But, delving into that topic is somewhat of a tangent. The point is, when we want to reason about something, we create a game, along with an interpretation of that game into something else. Mathematicians often create a game where that "something else" is another sort of mathematical object. Physical scientists play games where the interpretation is into 'reality'. And so forth.
When we do a good job with the level of detail and the rules of the game, we are able to play the game to completion, and our interpretation of the results of the game accurately reflects the thing we were trying to reason about.
For the purposes of reasoning about certain aspects of 'reality', quantum mechanics is a rather good game to play. There is a meta-game that involves deciding which game to play in order to reason about said aspects of 'reality'. Currently, the best known strategy for the meta-game is "play quantum mechanics". There is even a meta-meta-game about how to go about finding strategies for the meta-game. The best known one for that is "play science".
This is the part where I sharply disagree with Ken G's depiction of the use of reason and science: he seems to equate the use of the strategy "play quantum mechanics" with ignorance that the meta-game exists, and use of the strategy "play science" with ignorance of the meta-meta-game exists.