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

Negation in natural language

"In every supermarket, if we can buy fish then the supermarket has a refrigerator" Is the negation of this sentence 1) There exists a supermarket where we can buy fish and it doesn't have a refrigerator or 2) There exists a supermarket where if you…
Disjoint
  • 127
3
votes
2 answers

A silly question with unprovability

By Gödel's incompleteness theorems, we can get a true but unprovable sentance $\psi$. However, we know it is true since its falsity implies contradiction. Then, why couldn't we accept this "proof" since it shows that $\psi$ must be true? Does it…
Lwins
  • 624
3
votes
1 answer

Difference between conditional and biconditional statement

So, I can see the difference between something like: A. A car is green if it is made in England. and B. A car is green if and only if it is made in England. Then, if you had a Russian-made green car, it would be true for A. but not for B. So B is a…
user32544
3
votes
1 answer

Formalizing "isomorphism preserves everything" using language of logic

In many areas of mathematics there is a notion of isomorphism, which is a map that preserves some structure – an algebraic structure, a topology, a sheaf etc. It is "obvious" that every isomorphism of given structures preserves everything defined by…
Kamil
  • 81
  • 6
3
votes
2 answers

Why do we know that a set S of sentences implies the sentence A if the union of S and the negation of A is inconsistent?

As in the title: Why do we know that a set $S$ of sentences implies the sentence $A$ if the set $S \cup \lnot A$ is inconsistent? I "know" it's because if $S \cup \lnot A$ is inconsistent, then $S \cup A$ must be consistent. But why must $S \cup A$…
user265554
  • 2,853
3
votes
1 answer

Proof in Fitch and counterexample in Tarski's World - From $A \to B$, infer $A \to (B \land C)$.

Good official morning community, Strengthening the Consequent: From A→B A→B , infer $A \to (B \land C)$. I know that this proof is invalid and I want to make a counter example to prove that. How can I write $A \to (B \land C)$ and A→B A→B in…
user489611
3
votes
0 answers

Books on third-order logic and above.

I was wondering if anyone knows where I could get books on third-order predicate logic, in order to learn third order logic. I searched bookstores and Google everywhere I could think. I am also interested in fourth-order and so on. thanks or Could…
mcampbe
  • 31
3
votes
1 answer

(In)Completeness: First Order x Second Order

Why is First Order Logic complete (as proved by Gödel in his Master thesis) while Second Order Logic is not (as implied by Gödel's PhD thesis)? What are the key differences between the two systems that make them differ on such a crucial property? Is…
Ari
  • 39
3
votes
2 answers

What's the sense in "Implies" logic?

Possible Duplicate: In classical logic, why is$ (p\Rightarrow q)$ True if both p and q are False? How to interpret material conditional and explain it to freshmen? We're told that Mathematicians regard the propositions “P implies Q” and “if P…
3
votes
2 answers

Proof there was no tautologically equivalent wff to $(A\leftrightarrow B)$, constructed only by conditional symbol .

The way I did was to simply construct a truth table about $\rightarrow$, and treat the 2,3 line as ordered pairs in vertical direction. (Given $A: T T FF$ $B:TFTF$.) I got $(T,F)$ from $A$ and $(F,T)$ from $B$. Thus all the possible in the 2,3 line…
user416486
3
votes
0 answers

Write out the contrapositive to the statement

Statement: $(\lnot p \wedge \lnot q) \rightarrow (\lnot p \vee \lnot q)$ contrapositive: $(p \wedge q) \rightarrow (p \vee q)$ This is also a tautology Is my logic correct?
3
votes
2 answers

Is a paradox a counterexample to $p \lor \neg p$ always being true?

Consider the following paradox: On Silicy everyone lies all the time, and if you are not from Silicy, you speak the truth all the times. Call the proposition "I am from Silicy" $p$. Then $p$ is not true, because then he is from Silicy, thus…
user388557
  • 2,544
3
votes
2 answers

Need help on interpretation of mathematical statements into math logic

My assignment is to translate mathematical statements into formula of predicate logic. But before I can write formulas about these statements, I'm really confused about their meaning. Given that the mathematical notation of a quadratic polynomial…
Cecile
  • 888
3
votes
1 answer

Modular Inverses Discrete Math

I have to find the modular inverse of a sequence of numbers. When I do the inverse of $5\pmod {37}$, I get $-7$. $$37 = 7(5)+2$$ $$5 = 2(2)+1\text{, then}$$ $$2 = 1(37)-7(5).$$ so the inverse is $-7.$ But $-7\times 5 \pmod{37}$ is $2$. Shouldn't…
3
votes
1 answer

Substitution for bound variables in logic

Let $$ be $(∀ (, , ))$. What is $[( + + )/]$? Clearly, if I substitute in $y = x + y + z$ then the issue will be that $x$ will be bound so we cannot directly substitute in. How does substitution work in this case?