The VikiD Truth

Knowledge base / Mathematics / Logic, sets & foundations

Everything Else | Philosophy | Logic | Economics | Politics | Ethics | Aesthetics | Articles

VikiD Logic

Logic is the study of abstract, hypothetical connections, involving necessity.

These connections are between ‘Statements’, ‘Propositions’, or ‘Assertions’.

Classified into two groups, valid vs invalid.

Modus Ponens is the very most basic type of connection. It says,

if  A => B
    A
   ---
  ∴ B

that is, if A implies B, and we “assert” A is “valid”, then we can conclude B is also “valid”.

This is a pattern of thought that we consider “true” or “valid” axiomatically. We define it as such. It cannot be derived from logic itself.

The plain idea

Logic is the study of what follows from what. Not whether a statement is true, but whether, if certain statements are true, another one must be. That “must” is the necessity in the definition above. Logic is the rulebook for that “must”.

So an argument has two separate qualities, and confusing them is the root of most bad reasoning:

“All fish can fly; a salmon is a fish; so a salmon can fly” is perfectly valid and completely unsound. Logic certifies the pipe, not the water you pour into it.

Why it matters

Logic is the skeleton of mathematics, the grammar of computer chips and the immune system of a good mind. Every proof is a chain of valid steps. Every if statement in a program and every logic gate in a processor is propositional logic made physical. And every time someone tries to sell you a conclusion, logic lets you ask the only question that matters: does that actually follow?

An everyday analogy: a recipe that cannot fail

Think of a valid argument as a recipe guaranteed to work if the ingredients are good. Logic checks the recipe. It cannot check whether your eggs are rotten. Garbage in, garbage out; but with a valid recipe, truth in, truth out.

The building blocks

Propositional logic glues statements together with a handful of connectives:

SymbolRead asTrue when
¬A\neg Anot AA is false
A∧BA \land BA and Bboth are true
A∨BA \lor BA or Bat least one is true
A⇒BA \Rightarrow Bif A then Bexcept when A is true and B is false
A⇔BA \Leftrightarrow BA if and only if Bboth have the same truth value

The odd one is the conditional. “If it rains, the street is wet” is only broken by rain on a dry street. When it isn’t raining, the promise hasn’t been tested, so logic counts it as kept. This feels strange at first, and it is the source of endless confusion.

A worked example: checking validity with a truth table

Is this argument valid? If A then B. B. Therefore A.

ABA⇒BA \Rightarrow BBconclusion A
TTTTT
TFFFT
FTTTF
FFTFF

Look at row three: both premises true, conclusion false. So the argument is invalid. It is the famous fallacy of affirming the consequent. “If he’s a burglar he’d have a crowbar; he has a crowbar; so he’s a burglar.” Maybe he’s a builder.

Do the same for modus ponens (if A then B; A; therefore B) and you will find no such row. That is what “valid” means: no possible world where the premises hold and the conclusion fails.

Beyond the basics

Logic in silicon

In 1937 a 21-year-old Claude Shannon noticed that George Boole’s algebra of true and false describes electrical switching circuits exactly. Put two switches in series and current flows only if both are closed: that is A∧BA \land B. Put them in parallel and current flows if either is closed: A∨BA \lor B. Every processor since is built from this observation, billions of tiny AND, OR and NOT gates evaluating propositions billions of times a second. When people say computers “only understand ones and zeros”, what they really mean is that computers only understand logic.

Common misconceptions

How it connects

The truth revealed: logic doesn’t tell you what is true. It tells you what you are committed to once you’ve said what you believe.

Further Reading

Last edited · 9 revisions

Tags: #Math