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
6
votes
2 answers

A step in the completeness proof of first-order logic

In Enderton's Mathematical Logic, in presenting the completeness proof for first-order logic he constructs a maximally consistent set of sentences $\Delta$ and then a structure from this. He writes: We now make from $\Delta$ a structure…
6
votes
2 answers

What is the correct Venn diagram to represent $A\subseteq B$, $B\subseteq C$, $C\subseteq A$?

Give an example, and find the Venn diagram, for $$A\subseteq B,\quad B\subseteq C, \quad C\subseteq A$$ Our solution: We proved it to conclude that $A=B=C$. so, the example is $A=\{1,2,3\}$, $B=\{1,2,3\}$, $C=\{1,2,3\}$ but in the Venn diagram,…
hind
  • 59
6
votes
1 answer

Definable with parameters (Example)

Throughout my course in Logic, I have not yet encountered a set that is definable with parameters. (Most of the examples are definable without parameters) Is there a simple example of a set that is definable with parameters from a nonempty set…
yoyostein
  • 19,608
6
votes
2 answers

Why are the two versions of Gödel Completeness theorem equivalent?

There're two versions of Gödel Completeness theorem: If $\Gamma \vDash \phi$, then $\Gamma \vdash \phi$. Any consistent set of fomulas is satisfiable. I've seen a proof of the second version which is extending a consistent set of fomulas to a…
6
votes
3 answers

Are these statements logically equivalent?

i. If it rains next Sunday, then Andy will only go to the football game if Bob does. ii. If Andy will only go to the foot ball game on Sunday if it rains, then Bob will definitely go to the Sunday football game regardless of the weather. My gut…
yunone
  • 22,333
6
votes
5 answers

Logic Question: How does $(P\to R )\vee (Q\to R) \equiv (P \wedge Q)\to R$?

I can prove that these two statements are equivalent, but I can't make sense of them logically. For instance, if P = "have a cold", Q = "have a headache", and R = "go see a doctor" then the statement: If you have a cold then go see a doctor or if…
Bavneet
  • 121
  • 6
6
votes
2 answers

Definition of (in)consistency in propositional logic

In my textbook I have this (syntactic) definition of inconsistency: We say that $\Sigma$ ($\subseteq\textrm{Prop}(A)$) is inconsistent if $\Sigma\vdash\bot$. I think the intuitive definition of inconsistency is that some set $\Sigma$ of…
pizet
  • 1,163
  • 1
  • 9
  • 19
6
votes
6 answers

Mathematical Logic unusual question

So a true or false question came in my quiz today. It went like this:- If the moon is made out of chocolate then I am a purple dinosaur. This is a p implies q statement but i cant really seem to prove or disprove either so i said that its true. The…
Hazard
  • 191
6
votes
3 answers

Hats Question: Confusion Over Its Formulation

10 people in a circle and they are each given a red or blue hat. They can see each other's hats, but not their own. They are told that at least one red hat was assigned (we know that 3 red and 7 blue were assigned). They can't talk to each other.…
6
votes
3 answers

Struggling with understanding proof by contradiction

I'm struggling with understanding proof by contradiction. So, I understood proof by contradiction as written below. Want to prove "$p$ is true". First, assume that "$p$ is false". Show that this assumption leads to a contradiction e.g. $q$ is true…
whwjddnjs
  • 663
6
votes
3 answers

How to show that $\vdash (\forall x \beta \to \alpha) \leftrightarrow \exists x (\beta \to \alpha)$?

Assume $x$ doesn't occur free in $\alpha$, show that: $$\vdash (\forall x \beta \to \alpha) \leftrightarrow \exists x (\beta \to \alpha)$$ This is an exercise on page 130, A Mathematical Introduction to Logic, Herbert B. Enderton(2ed). Here's my…
6
votes
3 answers

Information-theoretic proof of Gödel's Theorem?

I'm looking for an information-theoretic proof of Gödel's Theorem that goes something like this, without any reference to diagonalization: Every axiom system in the scope of Gödel's Theorem has a finite number of bits. It requires an infinite…
ShyPerson
  • 1,720
6
votes
7 answers

Does law of excluded middle prove itself?

Law of excluded middle says that for any proposition ($A$) either it is true or it's negation ($\bar{A}$) is true: $A\veebar\bar{A}$. When I was taught math logic, this was given as an axiom, but I thought of a proof of this law. My proof goes like…
Džuris
  • 2,590
6
votes
2 answers

Why is $x$ free but $\forall x$ is not?

For example $F(x)$ is considered open because $x$ can be anything but then $\forall x F(x)$ is considered bound even though to my eye "can be anything" and "for all" seem kind of like saying the same thing. What's the difference / why does it…
user525966
  • 5,631
6
votes
3 answers

In Peter Smith's "Introduction to Gödel's Theorems," why are so many properties characterized as "effectively"

In "Introduction to Gödel's Theorems," the adverb "effectively" is almost ubiquitous: effectively enumerable, effectively decidable, effectively computable, etc. Here are some sample quotes: A property/relation is effectively decidable iff there…
user12802