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
12
votes
4 answers

Truth Table for If P then Q

Possible Duplicate: In classical logic, why is (p -> q) True if both p and q are False? The Logic table for If P then Q is as follows: P Q If P then Q T T T T F F F T T F F T What I don't understand is, How can…
Inquest
  • 6,635
12
votes
9 answers

If $x^2=x$, then $x=1$. Is this statement true or false?

I understand that this equation has two solutions, that is $x=1$ or $x=0$. But if you say this statement is false, you are like saying that $x=1$ is not the solution for the equation. If a basket contains $2$ apples and $1$ orange, and I say that…
nahtanoj
  • 129
12
votes
9 answers

The meaning of Implication in Logic

How do I remember Implication Logic $(P \to Q)$ in simple English? I read some sentence like If $P$ then $Q$. $P$ only if $Q$. $Q$ if $P$. But I am unable to correlate these sentences with the following logic. Even though the truth table is very…
P K
  • 1,121
11
votes
3 answers

What is a primitive notion and an Axiom?

I'm a beginner of learning about Classes, Sets, Types of Definitions(Intensional, Extensional and Ostensive) when I came across primitive notion and Axioms. Now I understand Axiom of Extensionality but the actual definition of an Axiom is just…
11
votes
1 answer

What's the difference between $P \to Q$ and $P \implies Q$?

background: I am trying to fully understand the meaning of implication which i understand intuitively . I learned that $P \to Q$ is a connective , which means that $P$ and $Q$ don't have a logical connection or any reason why $P$ being true should…
Akram Hassan
  • 1,087
11
votes
5 answers

Implication and equivalence arrows, when to use them?

In my course book we have something called implication arrows $\Rightarrow$ and equivalence arrows $\Leftrightarrow$ and I have never managed to understand them. When do I know which to use and how do I know that I'm correct when I use them?
Zolomon
  • 317
11
votes
5 answers

What is the difference between "infinitely many $n$" and "large enough $n$"?

I'm faced with this sentence in a solution of a problem: The negation of "$P(n)$ for infinitely many $n$" is "$\lnot p(n)$ for large enough $n$". What is the difference between infinitely many and large enough $n$?
Fatemeh Karimi
  • 402
  • 5
  • 13
11
votes
4 answers

How could a statement be true without proof?

Godel`s incompleteness theorem states that there may exist true statements which have no proofs in a formal system of particular axioms. Here I have two questions; 1) How can we say that a statement is true without a proof? 2) What has the self…
Isaacadel
  • 151
11
votes
3 answers

How do I prove $x \vee \neg x$ in Hilbert system?

How to prove $x \vee \neg x$ using the following axioms? $A \rightarrow (B \rightarrow A)$ $(A \rightarrow (B \rightarrow C)) \rightarrow ((A \rightarrow B) \rightarrow (A \rightarrow C))$ $(A \wedge B) \rightarrow A$ $(A \wedge B)…
Karolis Juodelė
  • 9,702
  • 1
  • 25
  • 39
11
votes
6 answers

How do we know that we'll never prove a contradiction in Math

I know that we can prove a contradiction in naive set theory. Let D be a set of all sets that don't contain itself. Say D does not contain D. Then D contains D. That means D contains itself. A contradiction. Hence, D contains D. But that means D…
user4951
  • 1,714
10
votes
2 answers

What are good resources for learning predicate logic / predicate calculus?

I'm trying to learn predicate logic. And I'm looking for some good resources on it: I've seen that I learn better when I can program So I was wondering if there was a 'predicate logic' programning language? Maybe an interactive tutorial? Maybe lots…
elviejo79
  • 111
10
votes
1 answer

Is Rosser's trick necessary?

A version of Gödel's first incompleteness theorem goes as follows: Any true, definably axiomatized theory $T$ in the language of arithmetic is incomplete. (by $T$ being true I mean $\mathbb{N}\vDash T$). An explicit proof of this (avoiding…
Miha Habič
  • 7,164
10
votes
2 answers

How is a Godel sentence constructed?

I'm missing something in the argument for Godel's First Incompleteness Theorem, and I'm hoping that someone can clear up my muddle. Godel constructs a sentence that is true iff it is unprovable. Here's my understanding of how he constructs it (taken…
MBP
  • 1,205
10
votes
1 answer

Urns with marbles and gems

In an urn there are three spherical marbles, a red, a green and a blue. Only two of them contain a gemstone inside, while the third is empty. We are not allowed to see or touch them, but we are given the following information about them: The…
10
votes
2 answers

How to convert an English sentence that contains "Exactly two" or "Atleast two" into predicate calculus sentence?

How to convert an English sentence that contains "Exactly two" or "Atleast two" into predicate calculus sentence? For example: There are two people with income less than 4K/year.
Alexander Suraphel
  • 653
  • 2
  • 5
  • 9