Knaph

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.

  1. 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.
  2. 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
  3. 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.
  4. 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
  5. 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
  6. 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
  7. 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
  8. 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
  9. 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
  10. 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
  11. 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
  12. 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
  13. 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
  14. 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
  15. 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
  16. 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
  17. 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
  18. 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
  19. 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
  20. 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
  21. 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
  22. 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
  23. 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
  24. 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
  25. 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
  26. 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
  27. 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
  28. 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
  29. 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
  30. 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
  31. 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
  32. 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
  33. 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
  34. 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
  35. 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
  36. False dilemmaLockedOffering only two choices when there are really more, so that rejecting one seems to force the other.Opens after: Logical fallacy
  37. 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
  38. 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
  39. 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
  40. 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
  41. 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
  42. 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
  43. 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
  44. 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
  45. 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
  46. 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
  47. 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
  48. 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
  49. 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
  50. 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
  51. 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
  52. 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
  53. 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
  54. 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
  55. 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
  56. 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
  57. 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
  58. 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
  59. 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
  60. 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
  61. 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
  62. 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
  63. 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
  64. 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
  65. 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
  66. 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
  67. 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
  68. 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
  69. 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
  70. 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
  71. 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
  72. 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?
  73. 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
  74. 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
  75. 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
  76. 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
  77. 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
  78. 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
  79. 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
  80. 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)
  81. 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
  82. 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
  83. 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
  84. 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
  85. 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
  86. 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
  87. 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
  88. 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
  89. 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
  90. 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
  91. 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
  92. 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
  93. 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