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

Convert a formula into a disjunctive normal form

I am struggling with a simple logic problem. I need to convert into a disjunctive normal form the following: $\lnot (P \lor \lnot Q) \lor (\lnot P \iff Q)$ After turning the biconditionals into the equivalent conjunction/disjunction I got stuck. Any…
2
votes
2 answers

Finding input for bitwise operation with known result.

Considering the following situation. x ^ (((x << 0xf) & 0xffffffff) & 0xefc60000) = y If result y is known, is it be posible to find the unknown value of x ? If so, how can it be done? All I know that value x =< 0xffffffff
2
votes
2 answers

The sum of the first $n$ natural numbers is $n(n+1)/2.$ How do we express this in Peano arithmetic?

The following is a well-known proposition. $$\forall n \in \mathbb{N} :\sum_{j=1}^n j = \frac{n(n+1)}{2}$$ How do we actually express a sentence like this in the language of Peano Arithmetic?
goblin GONE
  • 67,744
2
votes
1 answer

Understanding an argument from How to Prove It

I am going through the book "How to prove it". But I am not quite able to wrap my head around this question from Velleman, Daniel J.. How to Prove It (A Structured Approach) (S.56). Cambridge University Press, which I am supposed to analyze with the…
eeqesri
  • 709
2
votes
2 answers

circular logic: saying addition in commutative because it is commutative

We know $ (\mathbb{C}, +, \cdot) $ is a field because all of the field axioms apply here, with one of them being commutativity. I wanted to prove something and I wrote that addition in $ \mathbb{C} $ is commutative because $ \mathbb{C} $ is a field.…
talopl
  • 999
2
votes
1 answer

Is there a simple form of a Gödel sentence?

Suppose I create a Gödel sentence $G$ which is true in the natural numbers $N$, but false in some non-standard model $M$. I understand that $G$ is a very messy sentence, but is it possible to simpify it to a form where it's obvious that this…
2
votes
3 answers

Formal fallacy that describes that lack of observation does not prove non-existence?

Is there a formal fallacy to describe lack of an observation is not proof that it does not exist, or lack of an occurrence is not proof that it can never happen?
2
votes
2 answers

Why is AAI-3 a valid categorical syllogism?

I'm reading a mathematical logic book and the book introduces some old logic stuff such as Aristotellian logic, and according to it there are 24 valid categorical syllogisms one of which is described as AAI-3, in essence it's an argument of the…
zlaaemi
  • 1,037
2
votes
1 answer

How to prove $\mathbb{N} \models \langle x,y \rangle =\langle u,v \rangle \rightarrow x=u, y=v$

I am struggling with $$\mathbb{N} \models \langle x,y \rangle =\langle u,v \rangle \rightarrow x=u, y=v $$ where $\langle x,y \rangle:=(x+y)^2 +x$ is $L_{PA}-term$, where $L_{PA}$ is languague of Peano arithmetic and $\mathbb{N}$ the standard model…
Tusau
  • 81
2
votes
3 answers

How to translate Four-sided Dice Puzzle to a logical formula?

The puzzle: We have $3$ dice, each having $4$ sides. Every side of every dice has a single letter on it (rather than a number). We want to be able to make each of the words CAT, SON, POD, RIG, PEG, TAP, DIN, APE by rolling all dice together and…
abus
  • 21
2
votes
2 answers

Youtube suggestions for learning mathematical logic

There is a bunch of lecture series on youtube about mathematical logic. Are there some videos you have found to be particularly good? And that you could recommend?
Higgsino
  • 131
2
votes
2 answers

Proof by contradiction with two assumptions

I'm curious whether the following technique has ever been used in a proof of something. Assume two propositions $A$ and $B$, then derive a contradiction. Thus you know that either $\lnot A$ or $\lnot B$ or both, but you don't know which.
2
votes
1 answer

Decide whether the argument is valid and the form.

If you see a lion, you will walk away. If you walk away, it won't eat you. If you see a lion, then it won't eat you. My answer said: The argument is valid by modus ponens. Why am I wrong?
MethodManX
  • 1,127
2
votes
3 answers

Is $ \forall x \forall y P(x, y)$ equivalent to $\forall y \forall x P(x, y)$

Question Is it the case that the statement $ \forall x \forall y P(x, y)$ is equivalent to the statement $\forall y \forall x P(x, y)$ ? Thoughts I know that if one of the quantifiers in the original statement was $\exists$, then it wouldn't be…
ripull
  • 21
2
votes
1 answer

Converse, Inverse, and Contrapositive: Please check my answers.

Statement: If you finish your work, you can watch movies converse -> If you can watch movies, then you finished your work. inverse -> If you did not finish your work, then you can not watch movies. contrapositive -> If you can not watch movies, then…
MethodManX
  • 1,127