Logic
Map
Arrows point from what you learn first to what it opens. Point at a concept to light up its chain and where it comes back deeper. Right-click a concept (or press and hold it) for its lessons and stories.
- Proven to depth123+
- Open
- Locked
- Comes back deeper
Depth 2Depth 2Depth 2Depth 3Depth 2Depth 2Depth 4Depth 3Depth 2Depth 3Depth 3Depth 2Depth 2Depth 2Depth 3Depth 2Depth 3Depth 2Depth 2Depth 2Depth 2Depth 3Depth 2Depth 2Depth 2Depth 2Depth 2Depth 3Depth 4Depth 2Depth 3Depth 2Depth 2Depth 2Depth 2Depth 3Depth 2Depth 3Depth 4Depth 2Depth 3Depth 4Depth 2Depth 2Depth 2Depth 2Depth 2Depth 2Depth 2Depth 2Depth 2Depth 2Depth 2Depth 3Depth 2Depth 2Depth 2Depth 2Depth 5Depth 3Depth 3Depth 4Depth 4Depth 2Depth 2Depth 2Depth 2Depth 2Depth 2All, some and noneAlways true claimsAnd and orAppeal to authorityArgumentArgument from analogyAttacking the personBandwagonBrackets and the main connectiveCan they all be true together?Cause or coincidenceChecking a proofCircular reasoningClaimCompactnessCompletenessConditional statementsContradictions and contingent claimsCounterexampleDecidabilityDeduction and inductionEither way, the same resultEquivocationFalse dilemmaFinding a proofFor every xFormal arithmeticFormal proofsFrom a clash, anythingGödel numberingGödel's incompletenessHasty generalisationHenkin's constructionHidden premiseHow far a quantifier reachesIdentityIf and only ifIndicator wordsLetters for claimsLoaded questionLogic about logicLogic gatesLogical fallacyMaximal consistent setsNames and predicatesNatural deductionNeeded and enoughNegationNon-standard modelsNot all and not anyObjection and replyOnly if and unlessPrinciple of charityProof by climbingProof by contradictionProof or counterexampleProof rules for all and someProving an ifRelationsRules of inferenceRussell's paradoxSaying the same thingShortcuts you earnSlippery slopeSmall worlds (models)SoundnessSoundness of a proof systemStraw manSubstitutionSupposing for a whileSwapping equal partsSyllogismThe Löwenheim-Skolem theoremsThe diagonal argumentThe diagonal lemmaThe domainThe halting problemThe liar paradoxThe order of quantifiersThe shape of an argumentThe short table testTheorems: proved from nothingThere is at least oneTruth tablesTruth treesTuring machinesTurning English into lettersTwo kinds of followsUsing a word and naming itValidityWell-formed formulasWhat truth tables can't seeWhen the parts decide the wholeExpertiseIn EpistemologyMathematical proofIn Sets and ProofSetsIn Sets and Proof
Learning path
In the order the concepts build on each other.
- ClaimReadyA sentence that is either true or false, even if nobody knows which yet. Questions, orders, greetings and wishes are not claims, and a sentence about taste tells us about the speaker.
- Proof by climbingLockedTo prove a claim for endlessly many cases, show it for the first case and show that each case leads to the next. Mathematicians call this induction.Opens after: Mathematical proof
- The diagonal argumentReadyTake any list of endless rows of 0s and 1s. Walk the diagonal and flip each digit, and the new row differs from row n at place n, so it is not on the list. Cantor used this in 1891 to show some endless collections are bigger than the counting numbers.
- All, some and noneLockedQuantity words say how much of a group a claim is about. In logic "some" means at least one, the opposite of "all are" is "some are not", and an "all" claim can't be turned around.Opens after: Claim
- ArgumentLockedIn logic, a set of claims where some (the reasons, or premises) are given to support another (the conclusion) - not a quarrel. Shouting or repeating a claim adds no reasons.Opens after: Claim
- Letters for claimsLockedA long claim can be given a short name, a capital letter such as P. A key says what each letter means, and one letter always means the same claim.Opens after: Claim
- Russell's paradoxLockedThe set of all ordinary sets, those that are not members of themselves, is a member of itself exactly when it is not. Russell showed this to Frege in 1902 and it broke Frege's system. Modern set theory forbids such sets.Opens after: Sets, The diagonal argument
- Using a word and naming itLockedQuotes turn a word into a name of itself. The same holds for formulas, and the signs φ and ψ let us speak about any formula at once.Opens after: Claim
- Conditional statementsLocked"If... then" claims about a link: whenever the if part happens, the then part does too. One is broken only when the if part is true and the then part false - so a wet street doesn't prove it rained.Opens after: Argument
- Hidden premiseLockedA reason an argument needs but doesn't say out loud. Most everyday arguments leave one out, and it is often the part worth checking.Opens after: Argument
- Indicator wordsLockedSignpost words that show the parts of an argument: "so" and "therefore" come before a conclusion, "because" and "since" before a reason.Opens after: Argument
- NegationLockedThe negation of a claim is its real opposite: true exactly when the claim is false. The negation of "all passed" is "not all passed" - not "none passed".Opens after: Claim, All, some and none
- ValidityLockedAn argument is valid when its conclusion must be true if its reasons are true. It is about the shape of the argument, not whether the reasons are true.Opens after: Argument
- And and orLockedAn and-claim is true only when both parts are; an or-claim when at least one is. "Or" usually allows both, and the opposite of "cold and windy" is "not cold or not windy".Opens after: Negation
- Brackets and the main connectiveLockedBrackets group parts of a claim, as in arithmetic. The main connective is the step done last, and it decides what kind of claim the whole formula is.Opens after: Negation
- CounterexampleLockedOne case that shows an "all" claim is false, or a case where an argument's reasons are true and its conclusion false. One is enough.Opens after: Validity
- Deduction and inductionLockedDeduction aims for a conclusion that must be true if the reasons are. Induction goes from examples to a conclusion that is likely, stronger or weaker - and never completely sure.Opens after: Validity
- Either way, the same resultLockedAn argument by cases says: one of two things is true, each one leads to R, so R. A truth table checks it: no row has every premise true and R false.Opens after: Validity
- Loaded questionLockedA question with a claim built into it, so that any short answer agrees with the claim - "Have you stopped cheating at cards?" The way out is to answer the hidden claim.Opens after: Claim, Hidden premise
- Logical fallacyLockedA common pattern of reasoning that seems to support a conclusion but doesn't. Spotting one shows the reasons fail - not that the conclusion is false.Opens after: Validity
- Needed and enoughLockedSomething is needed (a necessary condition) when the result can't happen without it, and enough (a sufficient condition) when it makes the result sure. Air is needed for a fire, but not enough.Opens after: Conditional statements
- Proof by contradictionLockedShowing a claim is false by pretending it is true and following it to something impossible (reductio ad absurdum). If it leads to the impossible, its opposite must be true.Opens after: Validity, Negation
- Shortcuts you earnLockedA derived rule is proved once from the basic rules and then used as one step. Modus tollens and disjunctive syllogism save lines but add no new power.Opens after: Negation
- SoundnessLockedA sound argument passes two checks: its conclusion follows (it is valid) and all its reasons are true - so its conclusion must be true.Opens after: Validity
- SyllogismLockedAn argument with two reasons and a conclusion, each an "all", "some" or "no" claim about groups, linked by a middle group. Circle diagrams show whether it is valid.Opens after: All, some and none, Validity
- The shape of an argumentLockedArguments about different things can have the same shape, like "If P then Q. P. So Q." Validity belongs to the shape, so checking one shape covers every argument that has it.Opens after: Validity, Letters for claims
- The short table testLockedInstead of writing every row, try to build the bad row: make the conclusion false and every premise true, and work out the letters. A clash means the argument is valid. No clash gives a counterexample.Opens after: Validity
- What truth tables can't seeLockedA truth table sees only not, and, or and if. An argument that depends on all or some can look invalid by table when it is valid, because the letters hide the reason.Opens after: Validity, All, some and none
- Appeal to authorityLockedUsing what an expert says as a reason. It is a good reason from a real expert on their own field, especially when experts agree; it is a fallacy when someone speaks outside their field.Opens after: Logical fallacy, Expertise
- Argument from analogyLockedReasoning that because two things are alike in some ways, they are alike in another. It is strong when they are alike in the ways that matter for the conclusion.Opens after: Deduction and induction
- Attacking the personLockedAnswering an argument by attacking the person who made it - insults, "you do it too", "who are you to say" - instead of their reasons.Opens after: Logical fallacy
- BandwagonLockedTreating "many people believe it" or "everyone does it" as a reason that it is true or right. A claim is true or false depending on the world, not a vote.Opens after: Logical fallacy
- Cause or coincidenceLockedOne thing coming after another, or two things happening together, doesn't show that one causes the other: it could be chance, or a third thing causing both.Opens after: Deduction and induction
- Circular reasoningLockedUsing the conclusion, or the same idea in other words, as a reason for itself (begging the question). It can be valid and still give no reason to believe anything.Opens after: Argument, Logical fallacy
- EquivocationLockedUsing one word in two meanings in the same argument, so that it only seems to follow - like reading a "Fine for parking" sign as praise.Opens after: Logical fallacy, Validity
- False dilemmaLockedOffering only two choices when there are really more, so that rejecting one seems to force the other.Opens after: Logical fallacy
- Hasty generalisationLockedJumping to a claim about all of a group, or about what always happens, from too few examples or from examples all of one kind.Opens after: Deduction and induction
- Only if and unlessLocked"Only if" names something needed: "you may swim only if you wear a cap" means no cap, no swimming - not that a cap lets you in. "Unless" means "if not".Opens after: Needed and enough
- Slippery slopeLockedA chain of ifs from a small step to something terrible. The chain's shape is valid, but if each link is only likely, the whole chain is much less likely than any link.Opens after: Deduction and induction, Logical fallacy
- Straw manLockedChanging someone's argument into a weaker or sillier one - bigger, with "all" or "never" added - and arguing against that instead.Opens after: Logical fallacy
- The liar paradoxLockedThe sentence that says of itself that it is false is true only if it is false, and false only if it is true. It comes from two sensible ideas kept together. Tarski in 1933 gave one answer: speak of truth only from a metalanguage.Opens after: Using a word and naming it, Proof by contradiction
- Truth tablesLockedA truth table lists every way the world could be, one row each, and gives the value of a claim in every row. Two letters make four rows and three letters make eight.Opens after: Letters for claims, And and or
- Well-formed formulasLockedA formula is exactly what a few building rules can make from letters, and every formula has one tree that shows how it was built.Opens after: Brackets and the main connective
- Always true claimsLockedA claim that is true in every row of its truth table is an always-true claim (a tautology). It can never be wrong, but it says nothing about the world.Opens after: Truth tables
- DecidabilityLockedA kind of question is decidable if a method with exact steps answers every question of that kind, always stopping with yes or no. Truth tables decide validity for letter logic: n letters give 2ⁿ rows, a finite list.Opens after: Truth tables
- If and only ifLockedP ↔ Q says that P and Q have the same value. It is the same as (P → Q) ∧ (Q → P): an arrow in each direction. Definitions use it.Opens after: Conditional statements, Only if and unless
- Logic gatesLockedIn 1854 George Boole wrote logic as algebra with 1 and 0. In 1937 Claude Shannon showed that circuits of switches follow the same tables. AND, OR and NOT gates are the parts every computer is built from.Opens after: Truth tables
- Principle of charityLockedUnderstanding someone's argument in its best, most sensible form before answering it - and changing your mind when their reasons are better.Opens after: Straw man
- Saying the same thingLockedTwo claims are equivalent when their columns match in every row of a truth table. De Morgan's laws are two examples, and one row that differs is enough to show two claims are not the same.Opens after: Truth tables
- SubstitutionLockedTo put a term in for a variable is to replace its free occurrences by that term, by recursion on the formula. It is safe when no variable of the term is caught by a quantifier.Opens after: Well-formed formulas
- Truth treesLockedA truth tree tests an argument by listing the premises and the denied conclusion and breaking each line into simpler ones. If every branch closes the argument is valid; an open branch gives a counter-row.Opens after: Truth tables, Validity
- Turning English into lettersLockedTo write a sentence in letters, make a key, find the main connective first, then write the parts. But and although mean and, neither P nor Q is ¬P ∧ ¬Q, and not both is ¬(P ∧ Q).Opens after: Brackets and the main connective, Only if and unless
- When the parts decide the wholeLockedA sign is truth-functional when the values of the parts fix the value of the whole. Our five signs are. Words like because and before are not, so they have no table.Opens after: Truth tables
- Contradictions and contingent claimsLockedA claim that is false in every row is a contradiction. A claim that is true in some rows and false in others is contingent, like most everyday claims.Opens after: Always true claims
- Formal proofsLockedA formal proof is a numbered list of lines. Each line is a premise or follows from earlier lines by a rule, and its reason is written beside it. A proof shows an argument is valid without a truth table.Opens after: Validity, Turning English into letters
- Names and predicatesLockedA name picks out one thing, and a predicate is a claim with a gap. Fill the gap with a name and you get a claim that is true or false.Opens after: Turning English into letters, What truth tables can't see
- Objection and replyLockedAn objection is a reason to doubt an argument: a reason is false, or the reasons don't support the conclusion. A reply answers it - it's false, it doesn't matter much, or the plan changes.Opens after: Counterexample, Principle of charity
- Swapping equal partsLockedDe Morgan and double negation can swap a part inside a line, because equivalent parts never change the truth value of the whole.Opens after: Saying the same thing, Shortcuts you earn
- The halting problemLockedGiven a program and an input, does it stop or loop for ever? In 1936 Turing showed that no single program answers this correctly for every program and input. The proof builds a program that does the opposite of what the supposed answerer says about it.Opens after: The diagonal argument, Decidability
- Turing machinesLockedA Turing machine is a tape, a head and a finite table of instructions. It makes computing exact: a computation is a run, a list of configurations, and we can prove what a machine does.Opens after: Decidability
- Can they all be true together?LockedA set of claims is consistent when at least one row of the table makes all of them true. If no row does, it is inconsistent, and at least one claim is false.Opens after: Contradictions and contingent claims
- Checking a proofLockedEvery line of a proof can be checked by its rule alone, with no understanding of the topic. Four faults are common: the wrong shape, a closed box, wrong lines cited and a box left open.Opens after: Formal proofs
- For every xLockedThe symbol ∀ says every thing in the domain has some feature. ∀x Fx is true when no thing fails, and one counterexample makes it false.Opens after: Names and predicates
- From a clash, anythingLockedClash-out (X) lets a proof write any claim after it has reached ⊥. It is harmless when premises are true, because true claims never clash, but inconsistent beliefs can prove anything.Opens after: Negation, Contradictions and contingent claims
- Proof or counterexampleLockedA proof shows an argument is valid and a bad row shows it is invalid. Failing to find a proof shows nothing, so try a proof and a table side by side.Opens after: Formal proofs, Validity
- RelationsLockedA relation is a predicate with two or more gaps, like x likes y. The order of the names matters: Lab and Lba are different claims.Opens after: Names and predicates
- Rules of inferenceLockedA rule of inference is a tiny argument shape that was checked once and is then trusted. If-out (→E) takes an if-then and its if-part and gives the then-part.Opens after: Formal proofs, Conditional statements
- Supposing for a whileLockedA proof may suppose a claim without asserting it. The assumption opens a box, the lines inside depend on it, and when the box closes only the whole box can be used.Opens after: Formal proofs
- There is at least oneLockedThe symbol ∃ says at least one thing in the domain has some feature. That thing is a witness. ∃x Fx stays true if all things are F.Opens after: Names and predicates
- Finding a proofLockedTo find a proof, write the premises at the top and the goal at the bottom. Ask which rule could give the goal and what it would need, and work forwards and backwards until the two meet.Opens after: Rules of inference
- How far a quantifier reachesLockedA quantifier reaches over what its brackets hold, or over the short piece next to it. A variable it does not reach is free, and then the formula is not a claim.Opens after: For every x, There is at least one, Brackets and the main connective
- Maximal consistent setsLockedA set of sentences is maximal consistent when it cannot prove ⊥ and nothing can be added to it without making it prove ⊥. Such a set decides every sentence and treats each connective as the truth table does.Opens after: Can they all be true together?
- Not all and not anyLocked¬∀x Fx says the same as ∃x ¬Fx, and ¬∃x Fx says the same as ∀x ¬Fx. It is De Morgan's rules grown up: ∀ is a big and, ∃ is a big or.Opens after: For every x, There is at least one, Negation
- Proving an ifLockedTo prove an if-then A → B, assume A in a box, reach B, then close the box and write A → B, citing the whole box. This rule is called if-in (→I).Opens after: Supposing for a while, Conditional statements
- The domainLockedThe domain is the collection of things that ∀ and ∃ talk about. It is written first in a key. The same formula can be true in one domain and false in another.Opens after: For every x
- Natural deductionLockedNatural deduction is a proof system with an in-rule and an out-rule for each connective. Its moves copy how people argue: suppose something, split into cases, look for a clash.Opens after: Proving an if, Negation, Either way, the same result
- Small worlds (models)LockedA model is a small made-up world: a domain, who each name is, and which things (or pairs) each predicate fits. We check a claim in it step by step: ∀ looks at every thing, ∃ hunts for one witness.Opens after: The domain, Relations
- The order of quantifiersLocked∀x∃y Lxy says everyone likes someone, maybe different people. ∃y∀x Lxy says one person is liked by everyone. The second gives the first, never the other way.Opens after: Relations, How far a quantifier reaches
- Theorems: proved from nothingLockedA proof with no premises and every box closed proves a theorem, a claim that is true whatever the world is like. Examples are P → P and P ∨ ¬P.Opens after: Proving an if, Always true claims
- Logic about logicLockedInstead of using a logic system, we ask questions about it: does it ever prove something false, does it prove every truth, and what can it never do?Opens after: Formal proofs, Small worlds (models)
- Proof rules for all and someLockedFour new rules let a proof use and prove claims with ∀ and ∃. All-out and some-in move between a named thing and a claim about every or some thing. All-in and some-out need a fresh name.Opens after: Natural deduction, For every x, There is at least one
- Two kinds of followsLockedA conclusion can follow by proof (⊢, rules and lines) or by truth (⊨, no row or world breaks it). They are two ideas, and metalogic asks whether they agree.Opens after: Well-formed formulas, Natural deduction, Validity
- IdentityLockedTwo names can name one thing. We write a = b for the same thing and a ≠ b for two different things. Equals-in and equals-out let a proof use this, and with it we can count.Opens after: Names and predicates, Proof rules for all and some
- Soundness of a proof systemLockedA proof system is sound when whatever it proves really follows. We check each rule with a small truth table to see that it never leads from true lines to a false one.Opens after: Two kinds of follows
- CompletenessLockedA proof system is complete when every valid argument has a proof. Together with soundness it means a proof exists exactly when the argument is valid. Post showed it for letter logic in 1921, Gödel for all and some in 1930.Opens after: Soundness of a proof system
- CompactnessLockedIf every finite part of a set of sentences has a model, the whole set has a model. The proof joins completeness, which turns 'no model' into a proof of ⊥, with the fact that a proof uses only finitely many sentences.Opens after: Completeness
- Formal arithmeticLockedFormal arithmetic writes the arithmetic of the natural numbers as axioms in first-order logic. The theory Q has seven axioms, Peano arithmetic adds induction, and what Q cannot prove shows what induction is for.Opens after: Completeness
- Gödel's incompletenessLockedIn 1931 Gödel showed that any consistent system for arithmetic, whose proofs a machine can check, has a sentence G that says it has no proof in the system. G is true, yet the system cannot prove it. Such a system also cannot prove its own consistency.Opens after: Completeness, The liar paradox, The diagonal argument
- Henkin's constructionLockedA sentence like ∃xFx says that a thing exists without naming it. Henkin's construction adds a witness sentence with a new name for every such sentence, and then builds a model whose objects are the names themselves.Opens after: Completeness
- The Löwenheim-Skolem theoremsLockedA satisfiable set of sentences in a countable language has a countable model, and a set with an infinite model also has an uncountable one. So first-order sentences cannot fix the size of an infinite structure.Opens after: Completeness
- Gödel numberingLockedA Gödel numbering turns each string, and each proof, into a number, using prime powers. A sentence about numbers can then speak about proofs, and a theory can represent the check of a proof.Opens after: Formal arithmetic, Turing machines
- Non-standard modelsLockedSome structures make exactly the same sentences of arithmetic true as the natural numbers, and still have an object that is no numeral's value. Compactness builds them, so no first-order axioms single out the natural numbers.Opens after: Compactness
- The diagonal lemmaLockedThe diagonal lemma lets a sentence of arithmetic speak about itself. For every property ψ of numbers that a formula can express, there is a sentence G that Q proves equivalent to ψ holding of the number of G.Opens after: Gödel numbering, The diagonal argument
Connections to other domains
- Conditional statements leads to ConditionalsControl Flow
- Argument leads to Moral reasoningEthics
- Cause or coincidence, depth 2 needs Clinical trialHealth Evidence
- Needed and enough leads to KnowledgeEpistemology
- Hasty generalisation leads to Survivorship biasEpistemology
- Conditional statements leads to PredictionPhilosophy of Science
- Cause or coincidence leads to Random assignmentPhilosophy of Science
- Hasty generalisation leads to Sample sizePhilosophy of Science
- Cause or coincidence leads to CausationMetaphysics
- Appeal to authority needs ExpertiseEpistemology
- Deduction and induction leads to The problem of inductionEpistemology
- The order of quantifiers, depth 2 needs Mathematical proofSets and Proof
- Proof by contradiction leads to Prime numbersNumber Theory
- Counterexample leads to Mathematical proofSets and Proof
- Deduction and induction leads to Scientific methodPhilosophy of Science
- Proof by climbing needs Mathematical proofSets and Proof
- Russell's paradox needs SetsSets and Proof
- Cause or coincidence leads to Reverse causationPhilosophy of Science
- Hidden premise leads to Is and oughtEthics
- Counterexample leads to Principles and cases, back and forthEthics
- Finding a proof, depth 3 needs Mathematical proofSets and Proof
- Cause or coincidence leads to Mill's methodsPhilosophy of Science
- Saying the same thing leads to ConfirmationPhilosophy of Science