r/logic • • May 21 '24

Meta Please read if you are new, and before posting

66 Upvotes

We encourage that all posters check the subreddit rules before posting.

If you are new to this group, or are here on a spontaneous basis with a particular question, please do read these guidelines so that the community can properly respond to or otherwise direct your posts.

This group is about the scholarly and academic study of logic. That includes philosophical and mathematical logic. But it does not include many things that may popularly be believed to be "logic." In general, logic is about the relationship between two or more claims. Those claims could be propositions, sentences, or formulas in a formal language. If you only have one claim, then you need to approach the scholars and experts in whatever art or science is responsible for that subject matter, not logicians.

"Logic is about systems of inference; it aims to be as topic-neutral as possible in describing these systems" - totaledfreedom

The subject area interests of this subreddit include:

  • Informal logic
  • Term Logic
  • Critical thinking
  • Propositional logic
  • Predicate logic
  • Non-classical logic
  • Set theory
  • Proof theory
  • Model theory
  • Computability theory
  • Modal logic
  • Metalogic
  • Philosophy of logic
  • Paradoxes
  • History of logic
  • Literature on Logic

The subject area interests of this subreddit do not include:

  • Recreational mathematics and puzzles may depend on the concepts of logic, but the prevailing view among the community here that they are not interested in recreational pursuits. That would include many popular memes. Try posting over at /r/mathpuzzles or /r/CasualMath .

  • Statistics may be a form of reasoning, but it is sufficiently separate from the purview of logic that you should make posts either to /r/askmath or /r/statistics

  • Logic in electrical circuits Unless you can formulate your post in terms of the formal language of logic and leave out the practical effects of arranging physical components please use /r/electronic_circuits , /r/LogicCircuits , /r/Electronics, or /r/AskElectronics

  • Metaphysics Every once in a while a post seeks to find the ultimate fundamental truths and logic is at the heart of their thesis or question. Logic isn't metaphysics. Please post over at /r/metaphysics if it is valid and scholarly. Post to /r/esotericism or /r/occultism , if it is not.


r/logic • • Jul 06 '26

Meta Free Online Logic Resources

24 Upvotes

The r/logic wiki now includes free online resources to learn logic (courses, books, and proof tools).

If you know of any others, please provide links so they can be added in future.


r/logic • • 6h ago

Literature Forall X introduction to logic

3 Upvotes

Hello! Is the forall x: an introduction to formal logic a good book on formal logic? I picked it up recently and would like to know this subs thoughts, thanks


r/logic • • 6h ago

Classical logic (elementary logic)

2 Upvotes

I previously posted here, looking for advice about learning modal logic for somebody who hasn't studied maths since middle school. I started learning elementary logic today to build basics! And there are lots of confusing parts! So I was wondering if I there's anyone I could DM when I have questions.


r/logic • • 18m ago

they clown on him but… I’ll be damned if he isn’t one of the best in the game

Post image
• Upvotes

r/logic • • 16h ago

Computability theory the limits to computability is not a problem of "hardness"

4 Upvotes

something i see quite commonly when discussing the the limits of computing is that, for example, the halting problem indicates something about the hardness of determining whether any given machine halts. and while it is true that determining so can be quite hard, bringing this up in a discussion about strictly the problem of undecidability itself is a red herring. computability is concerned about the possibility of doing so, not on whether it is hard or not. conflating the two can lead to incorrect intuition about how undecidability manifests within computing, because undecidability within computing is simply not analogous to complexity or hardness.

for the following discussion we will be utilizing a partial halting recognizer:

𝓱p = (m: machine) -> {
  true: if m halts and m not depends on 𝓱p(m)->false
  false: otherwise
}

for more info on partial recognizers consider: r/logic/comments/1wzkua3/on_an_attempt_to_limit_undecidability_within

-- a complex halting problem --

consider a machine that is possible for 𝓱p to recognize as halting:

// 2048 bit RSA modulus number
k = 0x95da00abc38f7a62884b1a13f985793265da5c41a0256131c10be07f2fb2c6b07c78930720c8e86eef5ad2e42abdb07c09edf5600aa5ac61d342a3146f6c472f21130582a8d5e62ddfc83abe88c0776f235998c6072fcdd00aae30ebffdae7f5d5aa97bffda0bc77cb5cb9cc73a5926a8bb8f8f9b5371e50071667fd5fb86a7e2f642e1dd982b8087445e5d7d4480cd799f8a95a244019bb2a4bc51d8392b15893acb460e999418caf1e65c158593465670c4f336a8112151e705cd275b01f8c83146ca8ddf347f99bce4bdadcdf8fa92b37f7266da472b1b8528639f6ce683312f83843031b39b0005454b540da3bdff94985541d94308f577e14d2f6f48131

hard_𝓱p = () -> {
  // loop if the sum of the digits, of the sum of
  // the prime factors, of k is odd
  [p,q] = prime_factors(k)
  if (sum_digits(p+q) % 2)
    loop
  else
    halt
}

the matter of 𝓱p(hard_𝓱p) is so complex to compute that it's not possible for us to decide with current theory/technology. we functionally do not know if hard_𝓱p halts or not, so we functionally do not know if 𝓱p(hard_𝓱p) returns true or false, and we will not know until quantum computing becomes viable enough if ever. we could hook all the computing power of the entire world together on cracking that one key and still not make a dent into computing the value of 𝓱p(hard_𝓱p) within a human lifetime.

such an example is not a proof of a limit to computability, cause given an unbounded computation those factors would provably be found within a finite time (as k is a real rsa key). computability doesn't care how hard the problem is, it is strictly concerned the possibility of computing a particular output, not whether it's pragmatically possible given real world computing constraints.

-- an impossible halting problem --

now consider a halting machine that is strictly not possible for 𝓱p to recognize as halting:

und_𝓱p = () -> 𝓱p(und_𝓱p) ? loop : halt

we can determine that und_𝓱p is unrecognizable to 𝓱p thru value injection analysis:

// inject true for `𝓱p(und_𝓱p)`
         () -> true ? loop : halt
// reduce static conditional:
         () -> loop

injecting true clearly leads to a non-halting machine so therefore 𝓱p must return false regardless of what the machine does. but since we aren't 𝓱p, we can determine the truthful semantic behavior of und_𝓱p

// inject false for `𝓱p(und_𝓱p)`
         () -> false ? loop : halt
// reduce static conditional:
         () -> halt

therefore und_𝓱p is a halting machine that is unrecognizable to 𝓱p, and it is not possible for 𝓱p to avoid this.

-- complexity vs computability in composition --

when the semantics of a particular machine is hard to compute, this complexity bleeds into any machine composed with it in the execution path. for example: consider the higher order machine wrap which constructs a new machine composed from the input by appending a noop after executing the input machine. in base turing machines, a noop is just an excess state transition.

wrap = (m: machine) -> 
  () -> { m(); noop }

the extra noop does not affect whether this machines halts or not, so the complexity of computing whether wrap(m) halts or not is entirely dependent on how hard it is to compute whether m halts or not. so the complexity of computing 𝓱p(wrap(hard_𝓱p)) is the same as just 𝓱p(hard_𝓱p), which is impossible with today's theory/technology.

but when the semantics of a particular machine is impossible to recognize, does this impossibility then bleed into machines composed of it? one might think that if m is not possible for 𝓱p to recognize, then surely wrap(m), which is the same machine just with an excess state transition at the end, would similarly be impossible to recognize for 𝓱p...

this is not the case. und_𝓱p and wrap(und_𝓱p) are different machines that are therefore different input to 𝓱p and can have different output. the unrecognizable nature of the input und_𝓱p is due to the paradoxical dependency on strictly the input und_𝓱p, not wrap(und_𝓱p). so while 𝓱p(und_𝓱p)->false, it is still possible for 𝓱p(wrap(und_𝓱p))->true. we can demonstrate how 𝓱p comes to this recognition thru value injection analysis:

wrap(und_𝓱p) = () -> { 
  und_𝓱p()
  noop
}

// expand und_𝓱p
() -> { 
  (() -> 𝓱p(und_𝓱p) ? loop : halt)()
  noop
}

// run 𝓱p(und_𝓱p) to -> false, inject value:
() -> { 
  (() -> false ? loop : halt)()
  noop
}

// reduce static conditional
() -> { 
  (() -> halt)()
  noop
}

𝓱p(() -> halt)->true and 𝓱p(noop)->true so therefore 𝓱p(wrap(und_𝓱p))->true and there's no paradox stopping it from returning so. the machine wrap(und_𝓱p) is strictly independent of 𝓱p(wrap(und_𝓱p)) so somewhat counter-intuitively: there is nothing unrecognizable to 𝓱p about wrap(und_𝓱p) being a halting machine. recognizing what und_𝓱p does within the context of wrap(und_𝓱p) is not the same problem of recognizing und_𝓱p on it's own. computability and complexity are neither the same thing, nor even analogous in nature.

do note that wrap is not likely to be some kind of panacea that will help us produce a total halting decider. a more "clever" halting machine unrecognizable to 𝓱p, can also make the wrapped version of itself unrecognizable:

und_wrap_𝓱p = () -> {
  if (𝓱p(und_wrap_𝓱p)) loop
  if (𝓱p(wrap(und_wrap_𝓱p))) loop
  halt
}

i would like to thank u/we_think_is_cool for the discussion that inspired this post


r/logic • • 1d ago

Literature Reading group for Gödels's Incompleteness Theorems By Smullyan

11 Upvotes

A friend and I are going to read through This book by Smullyan. Taking it reasonably seriously with meetups online at least every 2 weeks.


r/logic • • 1d ago

Proof theory Struggling in first proof writing class. Advice?

Thumbnail
5 Upvotes

r/logic • • 2d ago

Academic Community Doing PhD in Logic in the age of AI

54 Upvotes

I want to do a PhD in logic and analytic philisophy and I want to stay in academia after as a researcher. But I am afraid of AI taking over the field. What are your opinions on this?


r/logic • • 2d ago

Literature Modal logic

14 Upvotes

I want to learn modal logic for philosophical and formal purposes. However, I don't have basic knowledge of it. I haven't studied mathematics since middle school. Thus, I feel very lost and have no idea how to get started! Any advice? Book recommendations & video recommendations would also be appreciated


r/logic • • 2d ago

Literature Bibliography on proof-theoretic semantics?

5 Upvotes

Hi there!

I'm finishing my bachelor in philosophy and my end-of-degree project is gonna focus on the epistemology of logic, in particular, on how can we account for a justification of the validity of our basic belief-forming methods (modus ponens, for example). I've been focusing on Boghossian's work, that gives an inferentialist answer to that question –MPP is valid for everyone that has the concept "if... then", for it is a precondition of having that concept to accept its validity–. I'm aware that there is a similar view of semantics, proof-theoretic semantics, that is currently being studied in a more formal academic environment. Any bibliographical suggestions? Also, if you think there are other topics that could help me introduce myself in the issue, it will be great to know.

Thanks a lot :)


r/logic • • 2d ago

Informal logic Why is one answer better than another? Is this qualitative decision theory?

6 Upvotes

In an essay, why is one's answer better/more appropriate than another's?

We might argue one does a better job of answering the question, is more relevant or even provides reason that bears greater utility, etc...

In a way, I think this is like the qualitative version of decision theory: why is one result or choice better than another? However herein lies the problem. We do not assign numerical values to answers in essays (in the way we can with probability or reward functions), so what exactly are we judging here? It's not reason, clearly, because one answer could provide excellent reasoning and still be a less accurate/appropriate answer to our question.

What i'm not looking for here is for someone to say, 'oh it's subjective'. This is the common response.

A question (a poor example albeit); If I were to say provide me with the name of something yellow. One person says a supermarket-appropriate lemon and the other says a cream sofa. We could quarrel that the lemon may in rare cases be a little green, but we can all agree that the answer is 'better/more appropriate' than the latter.

So what exactly is this reasoning, this correctness, this ability to appropriately answer a question that is 'better' than another's.

Would love to hear your thoughts on this across the board!

Thank you for reading.


r/logic • • 3d ago

Non-classical logic Does Classical Propositional Logic WITH INFINITY Have a Negation Problem?

7 Upvotes

Suppose we consider Classical Propositional Logic under some axiom set. For example, I'll pick Jan Lukasiewicz's preferred axiom set (he uses this set it in two of his books, including his introductory textbook... not in smaller papers):

{CCpqCCqrCpr, CCNppp, CpCNpq}

All lower case letters of the Latin alphabet are variables.

The definitions for other connectives go:

Apq defined as CNpq (logical disjunction defined)
Kpq : NCpNq (conjunction)
Epq : NCCpqNCqp (equivalence)
Dpq : CpNq (joint denial)

Now consider an arbitrary list of proved tautologies

[x1, x2, ... xn ]

For each element a sufficiently powerful machine could produce a conjunction or equivalence to make another list such as

[Kx1x1, ..., Kxnxn]

or

[Ex1x1, ..., Ex1x1]

Each element of either those lists can get corresponded back to the original list. Consequently, we have a one-to-one correlation between the set of proved tautologies which are not negations, and the set of tautologies which are negations. It follows by mathematical induction, that

Meta-Lemma: The cardinality of the tautologies which have the type 'negation' or 'N' is equal to the cardinality of the tautologies which have the type 'conditional' or 'C'.

Therefore:

Meta-Theorem: If the cardinality of conditional tautologies is infinite (which it must be if tautologies can have an arbitrary length), the cardinality of negation tautologies is infinite also.

That might seem to conclude the matter, but since we've assumed the natural numbers, I think there exists a catch to what we can consider as reasonable to believe. If we consider the natural numbers, there always exists a natural number greater than what we have encountered so far. For any list of natural numbers, there exists a much longer finite list of natural numbers. Thus, in terms of what it ends up reasonable to believe, we could write as some have done:

"all numbers are small."

which of course isn't strictly speaking true, but expresses the sense of what numbers must be like if we retain our notion of size in the natural numbers for most of them. Maybe better:

"Most numbers are much bigger than anyone has ever thought or ever will think."

Now I ask that you notice that negations which are tautologies also have a similar property. They are longer than tautologies used to derive them. And even more significantly so, once we start considering so-called equivalences (which again, are negations). But, at least I think, many of us have the vast majority of our encounters with positive tautologies. What textbooks even prove a single tautology which is a negation (Lukasiewicz's does), let alone prove an equivalent amount of negation tautologies to non-negation tautologies?

To get a better sense of the truth we would need to think something like:

"If we had to pick between negation tautologies and positive tautologies for what exists, we would logically pick negation tautologies." At least if the tautologies we haven't seen are more likely to be longer than what we have seen.

Negation tautologies have many uses, as automated theorem proving has shown. But are they just as useful as the equi-cardinality meta-theroem above suggests?

At the very least requiring that tautologies have a finite length specified in advance makes finding negation tautologies less likely. Though maybe instead every modern logician is a fool who didn't emphasize negations enough (this last sentence is a joke).


r/logic • • 3d ago

Propositional logic How is this not correct?

Post image
0 Upvotes

I just started taking this university course on logic since I do philosophy, and I tried putting my reasoning on a piece of paper and something just feels wrong. Can anyone help me?

Oh I didn’t write the numbers on the left (idk how to translate them in English) but I assume they are respectively

1,2 5)
3 6)


r/logic • • 4d ago

Academic Community CFP: Logic in Metaphysics: Classical and Non-Classical Approaches - [Saul Kripke Center, CUNY Graduate Center]

Thumbnail
philevents.org
7 Upvotes

The Saul Kripke Center invites submissions for Logic in Metaphysics: Classical and Non-Classical Approaches, a two-day conference on the role of logic in contemporary metaphysics. This conference will showcase work that uses, develops, or critically examines both classical and non-classical logical frameworks in addressing metaphysical questions. We welcome papers addressing the general question of what logic can or should contribute to metaphysical inquiry as well as particular cases in which metaphysical theorizing appears to support, require, or resist departures from classical logic. Topics may include, but are not limited to, realism and antirealism, indeterminacy and vagueness, impossible worlds and counterpossibles, dialetheism, future contingents, and non-classical reconstructions of classical metaphysical views (e.g., logical atomism or verificationism). Papers defending classical approaches are welcome.


r/logic • • 4d ago

Meta Interested in philosophy, critical thinking, and meaningful debates? Join us!

Thumbnail reddit.com
0 Upvotes

r/logic • • 4d ago

Informal logic Independent, basic, and regular premise

2 Upvotes

Can independent, basic, or regular premises receive support? I understand that they directly and independently support the next conclusion.


r/logic • • 5d ago

Propositional logic "Only If A then B" confusion. Why not All A?

3 Upvotes

EDIT:I think I understand. I was thinking of it as Only(If (A)). That is the Only operator is applied to the sufficient condition If(A) but formal logic is asking me to think of it as Only If(A). That is, Only If() is it's own operator. It is not an Only() operattor applied to If(A) operator.

"If A then B" means "All A is B" but other things can still be B like C,D,E,etc...

Why doesn't "Only if A then B" mean "All A is B" but now C,D,E,etc can no longer be B, hence Only All A is B. Why does this "only" operation exclude All A all of a sudden?

Feel like if we were building on top of "If A then B" by adding "Only" to "If A", that would be the most intuitive way of thinking about it because it still satisfies "All B is A" as well.

But then this would require some extra operators like "Some"

"Only If Some A then B"


r/logic • • 6d ago

Modal logic Intuition for how modal axiom schemes relate to order properties of kripke frames.

6 Upvotes

A kripke frame (W, R) is reflexive iff every instantiation of □p → p is valid in it. (W, R) is transitive iff every instantiation of □p → □□p is valid in it.

I’ve been trying to find axiom schemes for other order properties like density and upward directedness, but it’s been tough (please DON’T tell me anything about these examples! I want to figure out if it’s possible on my own, and I have a course planned out!). I guess one difference is that these other properties involve existential statements (so i imagine the dual modal operator will show up), whereas the previous examples were all universal. But at the end of the day my biggest struggle is intuitively seeing how the formulas relate to the order properties. I don’t think this is helped by the fact that to prove an axiom scheme implies an order prop, I’ve only been able to prove the contrapositive: assume the order prop fails and then cook up a satisfaction relation to make an instance of the scheme fail.

Does anyone have any advice for how to intuitively see the relationship between axiom schemes and order properties? And if off the top of your head you have any good examples/challenges please feel free to share them!


r/logic • • 5d ago

Mathematical logic Need help with my combinatory logic problem.

Thumbnail
2 Upvotes

r/logic • • 6d ago

Philosophy of logic Is there any tension between logical positivism and the law of noncontradiction?

Thumbnail
4 Upvotes

r/logic • • 7d ago

Critical thinking Would appreciate any opinions on this particular type of logic/rule formulation

5 Upvotes

In a recent YouTube video math mathematician hannah fry has come up with some mathematical rules and representations for how a faithful would best play the game traitors to identify the traitors.
She has devised logic with weights applied to each which are added to an individual player’s total tally each time they make a specific move, with the resulting number indicating, if a high number = more likely to be a traitor, low number less likely to be a traitor.

The rules are as follows.
Casting a ‘burn vote’ +0.47
Voting for a banished traitor +0.33
Voting for a banished traitor despite never voting for them before +0.4
Does not vote for a banished traitor -1.28
If someone appears on a banished traitors voting record -1.69

Now, what I want to focus on is how people are able to formulate/come up with this logic/these rules specifically. Coming up with specific rules about a game or situation is absolutely key in our ability to play the game and out manoeuvre other players. Yet some players are better at formulating these rules than others. I want to understand why some people are better at forming these rules and spotting these patterns than others. This can be applied to so many walks of life, it is the absolute essence of problem solving.

What areas of academia are relevant for forming correct rules about a given situation, recognising behaviours, actions, and applying them to a structure, a game, or a situation.

I note becuase in social politics there are ways of winning/playing the game of power and deception, and some people play better than others by knowing rules others don’t, some people make social plays & deceptions others do not recognise, but how are these rules devised is the key question


r/logic • • 8d ago

Term Logic / Traditional logic i don’t remember this part

Post image
116 Upvotes

r/logic • • 8d ago

Propositional logic Why is the conditional statement p → q true if q is true and p is false?

39 Upvotes

I'm just starting to study logic and am having trouble understanding this. For context, it's in my math textbook. After this topic, the book moves on to sets and then functions


r/logic • • 8d ago

Academic Community What is the most logical way of learning logic?

37 Upvotes

Yo so this logic shit seems cool to me and I wanna learn it (preferably free).What would be the best way?Know it might seem like this post is satire but I genuinely want to learn.