282 points · by todsacerdoti · 5y ago · 112 comments
Not the focus of the article, but a good view of logic is that it is the art of consistency. A powerful, single-purpose tool to tell its user if they hold mutually inconsistent beliefs. I can believe that the sky is blue, the sky is green and that the sky is exactly one colour - but if I use logic I can detect that something in my worldview is woefully broken.
Science is also very comfortable with holding competing theories, whereas in conventional logic that would be "explosively" destructive.
Also, I do think that physics is pretty axiomatic right from it's roots. Newton's main inspiration for forming his theory is the work of Euclid, i.e. first formal system that was ever created.
And in terms of modern physics, I reiterate that there is no enthusiasm from either mathematicians or physicists to axiomatize physics.
Science is comfortable with uncertainty, but not with things that are illogical. It has to be logical, and the scientists have to accept some sort of logic to give theories a better-worse hierarchy.
Except most of sciences take experiment as the criterion of truth rather than logical inference. Real-world science can almost always be expected to be inconsistent - simply because each scientific theory is a "local" approximation, and theories developed for different areas of the same science are not required to be mutually consistent in order to be useful. One (in)famous example is quantum mechanics and general relativity.
I’m not sure that’s the case. Just searching “philosophy of logic” yields oodles of resources. It’s an entire field of study.
One could also say that logic is the study of what is not disproven.
Well, it turns out even here there are still shades of gray, and the difference between classical and intuitionistic logic is the perfect example. Not everyone even agrees on the foundation of what logic and math are. And, each has their own benefits and strengths (intuitionistic logic tends to go hand in hand with type theory as the basis for theorem provers / proof assistants for mostly practical reasons).
Classical logic has always made the most sense to me, because accepting the law of excluded middle leads to a neater world of arguments to me. If you can't prove something, it is treated as false. Might be harsh, but that harshness yields simplicity.
I have come to at least understand the intuitionistic perspective though, because of how prevalent it is in the verification space - I have been super into F* recently (https://www.fstar-lang.org/), and this comes from a line of logics and programming languages that owe their life to intuitionistic logic. I like Andrej Bauer's position of being a "mathematical relavist," where he says "we cannot ignore the many worlds of mathematics" (http://math.andrej.com/2012/10/03/am-i-a-constructive-mathem...).
Math and logic are vast spaces with different systems and perspectives, and rather than treat one as universal truth, it is practically more beneficial to be familiar with the different systems and their perspectives, and to be able to switch between them when practical.
Maybe I'm being excessively literal in interpreting the phrasing here, but that doesn't seem like how I would describe classical logic? There are plenty of cases where neither a thing nor its negation can be shown in some system which is based on classical logic (I'm sure you are well aware of this fact, so I'm probably just misinterpreting you by being too literal).
But yes, I also share the sentiment that, for ordinary/day-to-day reasoning, classical logic is substantially more intuitive than intuitionistic logic, and makes things simpler.
Can I think of a precise way to say the thing that I imagine you must have meant by that?
In both classical logic and intuitionistic logic, if by assuming something you can derive False, then you can prove the negation of the thing. So that's not the distinguishing thing. If by assuming the falsehood of something you can derive False, in classical logic you can use that as a proof of the thing. (double negation elimination), while in intuitionistic logic you only get the double negation. This, I think at least mostly describes the difference (though not all the like, implications of it), but I'm not sure how to make it into something similar to "If you can't prove something, it is treated as false."
Though, that statement does remind me of the idea of a/the Constructible universe in set theory..
What use is a neat argument if it is divorced from reality?
LoEM tricks us into viewing ontologies as static, leading to subtle but drastic errors in thinking.
LoEM/classical logic should always be employed as a conscious assumption, with awareness of its drawbacks. Leave room for dialectical reasoning as well.
I mean, there’s game semantics, but as far as I’ve seen, there’s no reason to confuse the idea of that by appealing to “dialectics”.
Are there any examples of an insight which is uncontroversially regarded as an insight, and uncontroversially regarded as being first made as a result of viewing things in terms of “dialectics”?
Also, do you mean the law of the excluded middle, or the law of non-contradiction? [edit: I removed a part I said here because I realized I didn’t know what I was talking about with it. It referenced Kierkegaard, but, again, I didn’t know what I was saying.]
Refraining from affirming the law of the excluded middle can be useful at times, but I cannot accept the rejection (or non-affirmation) of the law of non-contradiction. If one thinks that one has a true contradiction, one is simply confused.
Consider the time just before the concept of negative numbers was widely accepted. There were natural numbers, perhaps zero as well, and the operation of addition. Someone realized you could reverse the process of addition and yield subtraction. Yet when you applied this "reverse addition" to some pairs of numbers, you would get an impossible result, a number that doesn't exist. This represents a contradiction in the method. A reasonable logician would stop there and simply avoid doing contradictory subtraction. A super smart and reasonable logician would go further and reject subtraction altogether since its "not closed over N", "not safe", etc.
However, a "confused" accountant might see the value in such impossible values. He's balancing payments for dozens of deals and finds that his calculations are much smoother if he temporarily allows the impossible values, as long as he marks them as "impossible", like with a small horizontal line.
His increased efficiency brings him success and his methods spread, and eventually "negative numbers" becomes a core component of virtually all mathematics. All because this one accountant was "confused" and pragmatic.
a) far too extreme of a position to be useful to anyone b) not true in any sense of the word
Classical logic has been behind the bulk of mathematical results in the last 100 years or so. It may not be perfect, but no system is.
And any useful innovations tend to come about from dialectical reasoning, because classical logic is incapable of genuine ontological generation.
For example, infinitesimal calculus was not "embedded" somewhere in the existing mathematics, waiting to be logically deduced by an expert logician; Newton developed new methods of mathematically modeling unquantifiable quantities to address contradictions in the application of traditional mathematics to physical systems.
Curiously, Category Theory appears to be the most “illustrated” mathematical theory by its very nature (because of the wide use of diagrams in any text on it) and, at the same time, the most misunderstood one (or, often, not understood at all) - because its conceptual content and the patterns it considers are so deep that no amount of illustration could convey that depth, to the point that even drawing diagrams, however complex, is a skill comparable to being able to write numbers on a piece of paper - which is just as far from what we think what the understanding of the subject is.
My experience is different - for me category theory abstracts / generalizes / encodes ideas that we understand well in a particular setting. Intuition comes from particular examples and is then "categorified" to make more general arguments. Of course some times it goes the other way ("hey you really need to do X because the category you are working with doesn't have property Y").
And sometimes the imported understanding is not quite accurate, like always there are issues. I don't think that impacts the main line of this argument, though it may be an example of the depth that category theory brings.
Not to speak about “derived” concepts…
On a simple level, limits in category theory don't need to involve infinite things at all, you can take the limit over a small category like (x --> x <-- x).
With regard to derived concepts, one can draw pictures of "projective resolutions" or draw level by level pictures of the nerve of the category you want to work with. So I think you can in fact make useful pictures even in this case.
0. https://bartoszmilewski.com/2014/10/28/category-theory-for-p...
I'm no expert, but as I understood it, category theory can be used to construct a semantics for certain constructive logics, such as type theory, but to claim that intuitionistic logic is "based on" category theory seems off. A logic can exist all by itself, regardless of which theory is used to give semantics for it. Right?
In fact, a theory can always be formulated using a minimum number of axioms, so none requires some other theory as its base. For example, the system of real numbers can be built starting from the natural numbers, but what this achieves is, this just gives a “proof of existence” of the reals, i.e of consistency of the definition of the reals as a complete ordered field.
It just so happens that the people who like one tend to like the other, and so explorations of the semantics of classical logic (mostly, model theory) use Set theory.
The Tarski-style algebrization of logic which is "logics as orders" stuff from this article is an alternative to that one can do without category theory. Heyting algebra vs boolean algebra is sufficient to distinguish classical and intuitionistic logic.
Category theory is this not necessary for intuitionism, but is nicer, because the point is to compute things. Otherwise we just speak abstractly of what can be computed, which is like a pessimist compromise between realism and idealism.
So
Logic : order :: type theory : category
Roughly, and the right side makes intuitionism a lot more exciting and applicable.
"If we view classical logic as based on set theory, then intuitionistic logic would be based on category theory and its related theories."
And regarding the fact that CT is not "needed" for algebraic logic what I say is "category theory and its related theories." where I consider orders related to categories.
First observation: True and False are the limit and co-limit of the Bool Category.
Question 1: About ordering, would you say that ordering is a requirement (as in a necessary property) of Cat Theory? It was mentioned in Bartosz Milewski's book but it wasn't as strongly emphasized as in your article.
Question 2: You mention how you can't express "A or not A" using intuistic logic. Since it is expressible in Set Theory, could we not use an Adjoint between the Bool and Set Categories respectively? Specifically Kan extensions?
1. Ordering is not required for a category to be a category, the necessary requirements are just the ones listed in the beginning of the book. It is just that orders can be seen as categories.
2. You can express "A or not A" in intuitionistic logic it is just that it is not necessarily true. Also, not sure how would you express that or any logical relation in set theory.
I've picked up those things peace by peace form Wikipedia to be able to understand the slang in Haskell land. But it was a long and puzzling process. This great summary offered here will hopefully help other people in the future get a coherent picture more quickly. (I hope the SEO is good so people will find it. I'm at least going to recommend it form now on whenever someone asks related questions).
It could be extended with type-theory I guess.
Also I would be interested to know more about the relation of those things described with abstract geometry and/or topology.
But it's fantastic already as it stands!
For a side project of mine, I've started to use "True" to mean proven and "False" to mean not-proven, under the argument that if it were disproven, that's the same as a true proof for a counterargument.
Actually, there is no "neither true nor false" in intuitionistic logic as well, because there is no True and False in a first place. There is only Proven and not Proven.
Don't think in terms of true and false, think in terms of proofs
Would you do uncertainty logic next?
https://arxiv.org/abs/1506.03123 https://arxiv.org/abs/1810.01310
I've been assuming most/all things in life are uncertain. It's had a profoundly helpful impact on my life, so I'm trying to come to a deeper understanding of how to reason about an uncertain universe, which I think may be something a lot of people are needing these days. The first paper helped a bit, but I haven't really dug into and understood most of it.
For logic, it really depends of what you are searching for, for classical logic you can read the the classics, for example Russell and Tarski.
For constructive logic I cannot think of a good introduction (besides mine ;) ), I personally picked it up from books about category theory and computer science.
A topos is essentially a cartesian closed category with a subject classifier. In Set this is the two element set of 1/0 which is a Boolean algebra and thus the internal logic of the category Set is classical.
In general though the subobject classifier is a heyting algebra which expresses the semantics of intuitionistic logic.
There is also a very good, but introductory, book by Goldblatt on Topoi that covers this logical aspect
So in terms of logics the category of Sets is the exception.
By internal logic I mean that for every topos one builds up a theory using it's objects and function between them. An equivalence theorem (see J. Bell) states that a given topos is essentially equal to the category generated by this internal theory.
This program began with Lawvere who noticed that conjunction and implication were really adjoints, the same one as between the product and hom functors in a cartesian closed category.
> Axiom schemas/Rules of inferene
I once read somewhere that theology is the science of the unknowable. So for how much theology is a science then is discussed within theology itself ie one cannot know how much of the unknowable is existing in an ontological sense.
(Incidentally, “science of the unknowable” seems like an oxymoron, because “science” means “knowledge”…)
All the sciences have questions that do not have answers.
A good book that actually knows what it is talking about is The Logic of Information.
https://www.amazon.com/Logic-Information-Theory-Philosophy-C...
Logic models the mathematical reasoning itself, like vector spaces model our world and differential equations model most of physics. At no point however we should confuse the model with the studied object. As such logic is a field of mathematics and not mathematics itself. The best illustration of this is that theorems in the field of logic use results from e.g. set theory.
Of course using a formal logic to prove theorems is valid. Still the formal logic has to be studied with "intuitive" mathematics. The book uses the metaphor of spiraling downstairs to illustrate this.
I really don’t think this is right. Logic is a discipline of consistent re-writing of expressions. However, there may be (even existing) things that are not expressable to sufficient degree in finite (or even countably infinite) strings, which I think means they are outside of logic. There are definitely “possible” things that are outside of logic (because not expressable).
Logic is one of the fundamental axioms of the universe. We assume logic is true and consistently applies everywhere throughout the universe. This "rewriting expressions" thing is just a symbolic representation of logic. It is not logic in itself. The symbolic representation of logic by writing down "expressions" works because logic is a inherit property of our universe and since you are writing those "expressions" in that same universe, it works.
There is no way to prove or verify logic is consistently real. We just recursively assume logic is real. We observe it to be real and assume that the observation will consistently apply across all time and space.
Another thing that I should mention that is an axiom of our universe is probability. WE have no way of knowing why rolling dice or random variables follow the rules of probability. These are just arbitrary rules and we assume that they're consistently true about our universe. Logic along with probability are two things that we have zero methodology of verifying the veracity of but we just assume these two things are fundamental properties of the universe.
A more elegant way to look at it is to just assume probability is the foundational axiom of our universe. Logic is just a special case of probability where all causal connections are 100%. Of course given inherit unreliability and limited knowledge of all things we never actually see or can verify 100% causality on anything. This effectively limits logic to mathematical and axiomatic games while science is the only available tool for the real world.
Science is a whole different beast. Given the assumptions that probability is real and that logic is real, science is an attempted methodology to verify theorems or statements about the universe using the axioms of probability and logic.
For example Newton guesses that a ball should travel a certain distance according to his made up laws of motion. Using science we perform several experimental observations of moving a ball and statistically correlate to a certain degree that yes the ball does indeed move according to newtons laws of motion. This is what science is. It is making a hypothesis and using statistics to sort of verify it. The term "sort of" is key here because science is limited to the fact that it can never prove anything.
One thing to note here is that EVEN when we assume logic and probability is true, science is unable to prove anything is true. You can make 10,000 observations about newtons law, it proves nothing because at any point in time a new observation can render the entire hypothesis as false. Thus falsification is possible with science [1] but proof is impossible. Proof is the domain of mathematics and logic games and cannot exist in the real world due to limited knowledge.
This is not some pedantic philosophy I'm making up. This is foundational to a true understanding of what science and logic is. To quote Einstein:
"No amount of experimentation can ever prove me right; a single experiment can prove me wrong."
There are a lot of intelligent people who don't understand the true depth of the above quote. But if you get it, then you truly understand what science is, and the differences between science and logic. Obviously both the OP and the parent poster don't fully get it... by combining logic and science into one thing and calling it the "science of the possible" it shows that they don't have a clear delineation of the two terms. Most people think of science as some kind of fuzzy "technical study" of a topic. No. This is wrong. There is a clearer definition of science that separates it from logic and mathematics.
[1] Note that technically total falsification is also impossible. Inherit unreliability of observation tools and limited knowledge makes it so that no observation can be 100% reliable. Thus even falsification is technically limited to the domain of logic and mathematical games.
This definitely a very opinionated view on what is logic. There is no reason to embed anything in universe/anything else. If you remove expressability, I’m not sure what properties remain. At the same time you can have rules outside of anything physical (in a sense of denoting something that subsists). Consistency of re-writing rules (in a sense that one can always write a propositional string that cannot be reduced to true or false), is an entirely separate beast.
> Logic is just a special case of probability
This is factually false. Probability is embeddable into predicate logic, but predicate logic is not embeddable into (Bayesian) probability. This is actually an open problem (how to define a probability theory that is equivalent to predicate logic).
> Science is a whole different beast
On this I do agree, I wouldn’t call logic a “science.”
It is by definition, not opinion.
Completely wrong. How can someone say I'm factually false when your own statement is completely and utterly incorrect. I don't think you're really aware of what's going on here:
https://en.wikipedia.org/wiki/Subjective_logic
It's not an "open problem" or aka "unsolved problem" in the sense you implied. Far from it. Rather it is just not a popular field of study.
>This definitely a very opinionated view on what is logic. There is no reason to embed anything in universe/anything else. If you remove expressability, I’m not sure what properties remain.
I don't think you get it. The nature of an axiom IS by definition an opinion. An axiom is an Assumption. Assumptions are just things that are assumed to be true, they are NOT things that are proven to be true. Thus the only thing an assumption can be if it is an unproven statement is that it is an OPINION. When anyone makes a statement about logic such as my statement "Logic is a fundamental axiom of the universe." Or "Logic is NOT a fundamental axiom of the universe" is by DEFINITION a statement of OPINION.
When I say it's a fundamental axiom it means that it is something all of humanity consistently assumes to be true. Our culture, our science, our mathematics, our interpretation of reality and the universe as we know it is founded on the assumption that logic is true. It is a general statement about the broad "opinion" of all of humanity.
Look at your own statement. You said and I quote: "There is no reason to embed anything in universe/anything else." What does this statement even mean? What is reason? Reason IS Logic. Look it up. You are literally saying there is no logical reason to embed logic into our universe. Yet here you are making a logical statement in a universe where you say we cannot assume logic is true.
We assume logic is true. You can't make a single argument otherwise. Literally all arguments you've ever made in your life hinge on logic being true. That is unless all your arguments are illogical. Are you saying your own argument is illogical?
There's really nothing left to argue about here. Our entire technical framework of reality is founded on the "Opinion" that logic real.
>On this I do agree, I wouldn’t call logic a “science.”
If you truly understood what's going on, you would agree with me on all points. Not just this.
Is it the classical logic of the quantum logic you are talking about?
I'm making a vague sweeping statement here that eventually gets a bit more cleared up later in my writeup.
Maybe you were trying to promote understanding over correctness but I would recommend that you do both as such fuzzy wording leads to people inconsistently and incorrectly using the word "science."
https://arxiv.org/abs/1506.03123 https://arxiv.org/abs/1810.01310
https://www.cs.ru.nl/B.Jacobs/PAPERS/ProbabilisticReasoning....
Logic describes our universe well but even here it starts falling apart pretty fast. The idea of axiomatic systems as we know them is flawed. Mainly due to Godel's and partly from what we know of the psyche.
In the halting problem example, how often do you create infinite loops as a programmer? Even in the software verification space, proving termination of an algorithm is fairly simple. So, the halting problem doesn't really affect us in daily programming.
The same with the incompleteness theorem. The fact that we can't say _every single thing possible_ (completeness) has no bearing on our ability to say _an innumerable amount of very practical things._
The amount of things that formal logic can express is so vast and useful that, to call it "flawed" is a pretty big misunderstanding on the incompleteness theorem.
Our current computers all have finite memory and so a trivial algorithm can tell if a real program on a real computer will halt (terminate) or not.
Of course the trivial algorithm has huge (but finite) memory requirement :)
Regarding the psyche part, I have actually written an article about that which might change your opinion https://boris-marinov.github.io/logic-thought/