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

When two theorems are equivalent? [Formal definition]

I understand that two mathematical statements (theorems) are equivalent when one can prove any of the statements by using the other one. Is there a formalism for such a description?
digital-Ink
  • 1,986
3
votes
1 answer

False $\Sigma_1$-sentences consistent with PA

I'm preparing for an exam and encounter the following exercise in the notes I use. In the next chapter we shall see that there are $\Sigma_1$-sentences which are false in $\mathcal{N}$ but consistent with PA. Use this to show that the following…
Garogolun
  • 212
3
votes
1 answer

Proving Identities Involving Symmetric Differences (How to Prove It, Velleman)

I tried searching for this (easy) question (both on here and on google in general), so if it's already been asked I apologize. My question concerns #13a in section 1.4, Operations on Sets in Velleman's How to Prove It. You are asked to prove the…
3
votes
3 answers

Truth values in formal systems

Given any sentence $A$ of ZFC (or any other formal system, really), we have exactly four possibilities: $A$ is true and not false $A$ is false and not true $A$ is true and false at the same time (i.e. ZFC is inconsistent) $A$ is neither true…
user132181
  • 2,726
3
votes
7 answers

Simple Logic Question

I've very little understanding in logic, how can I simply show that this is true: $$((X \wedge \neg Y)\Rightarrow \neg Z) \Leftrightarrow ((X\wedge Z)\Rightarrow Y)$$ Thanks a lot.
Anonymous
  • 2,388
3
votes
3 answers

Formal logic to prove $x+1 = 1 +x$

So i've been stuck on this problem for about an hour. I can't figure out how to do it, and help would be absolutely amazing. This is what's given: $0 + 1 = 1$ $\forall x (x + 0 = x)$ $\forall x \forall y [x + (y+1)= (x+y)+1]$ $[0 + 1 = 1 + 0…
jack schmidt
3
votes
2 answers

Determine whether or not $\neg q \to \neg (q \land (p \to \neg q))$ is a tautology

I have been trying to solve this but I got stuck at the end. $$\begin{align} \neg q \to \neg (q \land (p \to \neg q)) &\equiv \neg \neg q\lor \neg (q \land ( \neg p\lor \neg q)) \\& \equiv q\lor \neg q \land \neg ( \neg p\lor \neg q) \\&\equiv T…
Fasil
  • 41
3
votes
1 answer

Multiple solutions to this Singapore Contest Logic question?

This problem has been making the round on the internet. The solution provided gives one answer, and I don't disagree with the logic to arrive at that answer. However, it seems to me that there is at least one additional solution. I will post the…
3
votes
1 answer

Rice’s theorem explanation

I've recently read a article 'Theories of computational complexity'. In the article it states that with Rice's theorem one can prove that, for example, {$i∈[\mathbb N:\phi_i$ is a constant function}, is not recursive, but I can't see how. I already…
Jonathan
3
votes
1 answer

Is an expression with different logical operators (^ and v) commutative?

I have to prove that $(¬q \wedge (p \rightarrow q)) \rightarrow ¬p$ is a tautology. I have done the following: $$\begin{align}&¬(¬q \wedge (p \rightarrow q)) \vee ¬p \\ &\implies ¬¬q \vee ¬(p \rightarrow q) \vee ¬p \\ &\implies q \vee ¬¬p…
null
  • 355
3
votes
1 answer

Formal logic equivalent of a "self fulfilling prophecy?"

For example Will this query be answered correctly? Yes Has this query been answered correctly? a) yes, therefore "yes" is the correct answer, therefore this query has been answered correctly. b) no, therefore "no" is the correct answer, therefore…
Luken
  • 169
3
votes
1 answer

How do I use proof by contradiction to prove that for all prime numbers $x$, $y$, and $z$, $x^2 + y^2 \neq z^2$?

Original implication: For all prime numbers $x$, $y$, and $z$, $x^2 + y^2 \neq z^2$. I'm not certain if I'm understanding the process of proof by contradiction correctly. What I am understanding so far is that I must first make the initial statement…
pudi
  • 31
3
votes
1 answer

condition for a CNF formula to be a tautology

Is there an easy condition (for example based on clauses) that implies that a formula in CNF is a tautology? Or is this as hard as for general formulas (not in CNF)? I first thought of $F$ is a tautology iff every clause of $F$ is a tautology. But…
user136457
  • 2,560
  • 1
  • 22
  • 41
3
votes
1 answer

Does $\varphi\models\forall x\varphi$ hold if $x$ is a free variable of $\varphi$?

The question is pretty much in the title. We are asked to show $$\models \varphi\rightarrow \forall x\varphi\quad\text{ if $x$ is not a free variable of $\varphi$}.$$ It seems to me that this is pretty obvious, because if $x$ is not free, then the…
Jo Mo
  • 2,075
3
votes
3 answers

Write the statement using quantifiers

I have a statement S: "No positive number $x$ satisfies the equation $f(x) = 5$." Can I write the statement S as $\nexists x \mid f(x) = 5$.
Vinod
  • 2,209