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
1 answer

Show that $(A ∩ B) ▵ C = (A ▵ C) ▵ (A \setminus B)$

I want to show the following equality (using logical connectives, not venn diagrams) Show that: $$(A ∩ B) ▵ C = (A ▵ C) ▵ (A \setminus B)$$ $A ▵ B$ is defined as: $(A ∪ B) \setminus (A ∩ B)$ My attempt: If I expand the symmetric difference symbol…
2
votes
3 answers

Predicate Logic expressions - are the equivalent?

Are the following expressions equivalent? ¬∃x(student(x) ∧ learn(x)) ∀x(student(x) ∧ learn(x)) ¬∀x(student(x) ∧ learn(x))
2
votes
2 answers

Understanding implication in logic truth tables (excerpt from textbook)

We have the following argument: $P \implies Q$ (Premise 1) $P$ (Premise 2) $—$ $∴Q$ (Conclusion) The accompanying truth table is: I don't understand this section of my textbook: The premises are both true only in line four of the table, and in…
2
votes
2 answers

Theory of real numbers and using functions

If I want to develop formally theory of real numbers, I start with the axioms of real numbers and then, using logical laws, I can prove or disprove statements about real numbers. But I cannot define what is a function from $\mathbb{R}$ to…
halfpog
  • 1,055
2
votes
1 answer

formalizing Euclid's theorem

How can one formalize Euclid's theorem (i. e. that there are infinitely many prime numbers) in Peano-Arithmetic (firstorder)?
2
votes
2 answers

Question about the unexpected hanging paradox

The following is the unexpected hanging paradox: A judge tells a condemned prisoner that he will be hanged at noon on one weekday in the following week but that the execution will be a surprise to the prisoner. He will not know the day of the…
2
votes
3 answers

Negation of a logical statement

My question is that when I negate the statement $$(\forall x\in \mathbb{R})( \exists n \in \mathbb{N})(x < 1/n),$$ do I negate all of the statement or just the first part $(\forall x \in \mathbb{R})$?
2
votes
1 answer

Axiomatizability of the algebra of (a fragment of) calculus

Consider the set $S$ of all infinitely-differentiable functions on the reals. Consider the structure $(S,+,-,*,0,1,Id,D)$, where $+$,$-$, and $*$ are function addition, subtraction and multiplication of functions, $0$ and $1$ are constant functions,…
user107952
  • 20,508
2
votes
2 answers

Which law of logical equivalence says P ∨(~P ∧ Q) ≡ P ∨Q?

I'm going through the exercises in the book Discrete Mathematics with Applications. I'm asked to show that two circuits are equivalent by converting them to boolean expressions and using the laws in this table. 1. Commutative laws: p∧q ≡ q∧p …
2
votes
1 answer

What makes a logical expression false?

Assume that we are given a logical expression like $A$ and ($B$ or $C$) and $D$. The total evaluation of the expression is false and we know the value of each operand $(A,B,C,D)$. I need to develop an algorithm which get a logical expression and the…
2
votes
1 answer

In Logic Theory

In logic theory, if we have a finite domain A of k elements, then we can construct only finitely many structures (finite structures) each of which has A as domain. I think the number of structures will be $2^{k}$. How to prove it - if my claim is…
Janice
2
votes
2 answers

How to prove that $1=2$ from $0<0$

Maybe a simple question, but I heard that an inconsistent theory can imply everything. For example: How to prove that $1=2$ from $0<0$.
user165633
  • 2,941
2
votes
1 answer

The deduction theorem according to AIMA

I'm currently reading Artificial Intelligence, by Russel & Norvig. They state that: A) A sentence is valid if it is true in all models B) The deduction theorem: "For any sentences $\alpha$ and $\beta$, $\alpha \models \beta$ if and only if ($\alpha…
E.E.
  • 123
2
votes
1 answer

First Order Theories

Are there first order theories where every sentence or its negation is a theorem of the theory? I know there are many examples of theories without this property, such as fields and statements such as (4+1)=0. In the rational numbers this is false…
2
votes
3 answers

How is closure of equality possible for natural numbers on ZFC?

I've recently been delving into axiomatic set theories for the first time, and I've been troubled by the construction of natural numbers with the Peano axioms under ZFC. What I don't understand is how equality can be closed under the natural…
user201700