Questions tagged [logic]

Questions about mathematical logic, including model theory, proof theory, computability theory (a.k.a. recursion theory), and non-standard logics. Questions which merely seek to apply logical or formal reasoning to other areas of mathematics should not use this tag. Consider using one of the following tags as well, if they fit the question: (model-theory), (set-theory), (computability), and (proof-theory). This tag is not for logical puzzles, use (puzzle).

This tag broadly covers the field of mathematical logic, which deals with questions involving formalized mathematical statements, mathematical structures, and their relationships. The development of mathematical logic in the late 19th and early 20th centuries was intertwined with the interest in foundations of mathematics (), although much current work in logic is not directly related to foundations.

The elementary content of mathematical logic involves formal mathematical languages, quantifiers, and formal proofs of statements. These formal proofs are carried out in formal proof systems (see ), which model ordinary mathematical reasoning but, unlike natural language proofs, have a fully specified syntax and grammar that could in principle be verified mechanically. Specific tags for these topics include and . The full development of these ideas happens in the field of . A well known application of proof-theoretic methods is Gödel's incompleteness theorem .

The field of studies models of formal languages. Examples include algebraic structures such as groups and rings, as well as more esoteric structures. The field focuses on definability within such structures, relative to particular formal languages.

The field of studies formalized notations of computability, such as Turing computability and hyperarithmetical computability, as well as their applications to mathematics.

The field of studies sets by considering formal axiomatic systems of set theory such as ZFC. Questions about basic topics that might be found in "Chapter 0" of an undergraduate textbook (such as unions, intersections, subsets, etc.) are classified on this site as , while the includes questions about models of ZFC, large cardinals, the method of forcing, etc. Some researchers view set theory as part of mathematical logic, while others view it as a distinct area; the logic tag is not mandatory for set theory questions.

There are other areas which overlap with mathematical logic, but are not always considered part of it. The field of has many similarities to logic, and has important foundational aspects.

The foundational aspects of logic include mathematical constructivism, which is classified here as .


This tag does not include questions about ordinary logical reasoning in mathematical proof writing. Questions that ask about the logical structure or logical methods of ordinary mathematical proofs should be labeled with the tag unless they ask about specific formal proof systems.

This tag should not be used for what a layperson might called "a logical puzzle". For these sort of questions please use and as appropriate. (Unless the solution is done via a method relevant to the logic tag, of course.)

27971 questions
3
votes
1 answer

Checking if $p$ tautologically implies $q$

What is the difference between $p\Rightarrow q$ and $p\to q$? Is $p\to q$ a necessary and sufficient condition for checking $p\Rightarrow q$ is a tautology? Are there alternative approaches?
3
votes
2 answers

"Contronominale" proposition

Given an implication to prove, say p implies q, it is well known that it is equivalent to prove -q implies -p. In italian this second equivalent proposition is called "contronominale" of the previous proposition. How is it called in english?
xyz
  • 960
3
votes
2 answers

How is uncountability characterized in second order logic?

How is uncountability characterized in second order logic? Also, why is this characterization of uncountability "absolute" in the way that FOL's characterization of uncountability is not? A very direct answer will be much appreciated. Much thanks.
pichael
  • 899
  • 6
  • 13
3
votes
1 answer

The four outcomes of the tetralemma

In the tetralemma system of logic ( https://en.m.wikipedia.org/wiki/Tetralemma ) each theory can be evaluated to following four outcomes True, False,Neither true nor false , both true and false. What is the necessity of having the last two values as…
ARi
  • 444
3
votes
2 answers

Proof Using Truth Tables

Pleae forgive the very basic question, but I know nothing really of formal logic and so would appreciate some feedback. The truth table defining the implication operator P Q P implies Q T T T T F F F T T F …
AFX
  • 565
3
votes
1 answer

Formal proof of De Morgan's laws for quantifiers

Consider the set of inference rules for first order logic (analogous to the ones listed here : http://en.wikipedia.org/wiki/Sequent_calculus#Inference_rules) I am stuck in proving the following rule $$\vdash_{\gamma} \neg \forall x.\phi \implies…
Jernej
  • 5,002
3
votes
6 answers

Explain proof by contradiction.

Would anyone mind explaining me how proof by contradiction works? I have a very vague understanding of it so I always avoid using it when it comes to discrete math. From what I've seen its something that is extremely useful when it comes to proofs.…
RiGid
  • 255
3
votes
2 answers

Tricky Tautology

I'm having difficulty deriving the following tautology: $$ \neg(p \rightarrow q) \rightarrow p. $$ The difficulty lies in that the proof needs to be constructed using only the following rules of inference: modus ponens, modus tollens, and double…
andy
  • 33
3
votes
4 answers

If vs Iff - concise explanation

So I'm trying to come up with a simple explanation on the difference between if and iff, whilst also testing my understanding. Are these statements valid: X > 2 if X = 5 X= 5 iff X = 5
Izhaki
  • 247
3
votes
2 answers

What does it mean to prove something?

What does it mean to prove something? I am constantly told that something is defined to work in some way (take as an example the truth table of p implies q) and that you don't need to prove it works right. But the problem is that I don't see the…
user270346
3
votes
2 answers

How can Löb's theorem possibly be true?

Löb's theorem tells us that "if P is provable, then P" is provable, then P is provable. How can this be true? Wouldn't this imply that all false statements are true, because: All false statements are unprovable For all false statements, "if P is…
user80458
3
votes
2 answers

How to make truth table

I have $F(p, q) = (p \land q) \lor (\lnot p \land q)$ and i need to prove that $\lnot F(\lnot p, \lnot q) \Leftrightarrow F(p, q)$ is not tautology. I made truth table for $F(p, q)$ and it looks like this: $$ \begin{array}{c||c||c} p & q &…
3
votes
2 answers

What is $Th(\mathbb{N})$? How to correctly reason about it?

So I am curious how to correctly reason about $Th(\mathbb{N})$. Is it a set of constants 0,1 and relations on them? E.g can we say that $(1+1+1+1) * (1+1+1)$ is in $Th(\mathbb{N})$ because we take a constant $(1+1+1+1) \in \mathbb{N}$ and constant…
3
votes
3 answers

Introduction to Logic proof

I have to prove $P \land\lnot\bot$ with the following assumption: $$P \lor \bot$$ I have never seen the contradiction sign in a line not being by itself before, so I am not sure how to go forward. I'm assuming I won't be able to use Fitch? It…
John Snoe
  • 313
3
votes
3 answers

Whether to use AND or OR in describing an inequality

My understanding is that the following: $5 < x < 10$ is read as "x is greater than 5 AND less than 10," whereas the solution to $| x + 2 | > 4$, which is $x > 2, x < -6$, should be read as "x is greater than 2 OR less than -6" Am I using this…
J.Ko
  • 141