Logo von Logical Reasoning

Logical Reasoning

Community
Tibsfox
logical-reasoning

Deductive and inductive reasoning, formal and informal logical structure, validity, soundness, and rules of inference. Covers propositional logic, quantified reasoning, syllogisms, common inference patterns (modus ponens, modus tollens, hypothetical syllogism, disjunctive syllogism), and the distinction between deductive certainty and inductive probability. Use when the question is not whether a premise is true but whether the reasoning from premises to conclusion is logically valid.

Übersicht

HerausgeberTibsfox
Repositorygsd-skill-creator
Skill-Namelogical-reasoning
Sterne
70
Forks
9
Mitgelieferte Dateien
Nur Anweisungen
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • In sich abgeschlossen

    Alles, was das Modell braucht, steht in den Anweisungen — keine zusätzlichen Dateien zum Synchronisieren.

  • Open Source

    Von Tibsfox auf GitHub veröffentlicht. Prüfen Sie den Quellinhalt vor der Installation.

Installation

Installieren Sie den KI-Skill Logical Reasoning in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner — liest SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/Tibsfox/gsd-skill-creator/tree/main/examples/skills/critical-thinking/logical-reasoning
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill anlegen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format lesen kann, kann diesen Skill nutzen — kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Tibsfox/gsd-skill-creator.git /tmp/gsd-skill-creator
mkdir -p .claude/skills
cp -r /tmp/gsd-skill-creator/examples/skills/critical-thinking/logical-reasoning .claude/skills/logical-reasoning
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Logical Reasoning in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Logical Reasoning automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Logical Reasoning nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Keys.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

Logical Reasoning

Logic is the study of what follows from what. A valid logical argument has a form that preserves truth — if the premises are true, the conclusion cannot be false. This skill covers the core machinery of deductive and inductive reasoning: the rules of inference, the standard argument forms, the common errors, and the boundary between the two styles of reasoning.

Agent affinity: paul (chair-level framing), elder (inference-pattern drills), tversky (inductive strength)

Concept IDs: crit-deductive-reasoning, crit-inductive-reasoning, crit-argument-structure

The Reasoning Toolbox at a Glance

#PatternFormType
1Modus ponensIf P then Q; P; therefore QDeductive, valid
2Modus tollensIf P then Q; not Q; therefore not PDeductive, valid
3Hypothetical syllogismIf P then Q; if Q then R; therefore if P then RDeductive, valid
4Disjunctive syllogismP or Q; not P; therefore QDeductive, valid
5Constructive dilemma(P or Q); (if P then R); (if Q then S); therefore (R or S)Deductive, valid
6Universal instantiationAll A are B; x is an A; therefore x is a BDeductive, valid
7Existential generalizationa has property P; therefore something has property PDeductive, valid
8Affirming the consequentIf P then Q; Q; therefore PDeductive, INVALID
9Denying the antecedentIf P then Q; not P; therefore not QDeductive, INVALID
10Enumerative inductionEvery observed A has been B; therefore all A are BInductive, probable
11Statistical generalizationn% of sampled A are B; therefore about n% of all A are BInductive, probable
12Inference to the best explanationH explains the observations better than alternatives; therefore HInductive, probable
13Analogical reasoningA and B share features F1..Fn; A has Fm; therefore B has FmInductive, probable

Deductive Reasoning: Form Preserves Truth

A deductive argument is valid when the premises entail the conclusion. If the form is valid and all premises are true, the conclusion must be true. This is the only style of reasoning that guarantees its conclusions.

Pattern 1 — Modus Ponens

Form: If P then Q. P. Therefore Q.

Worked example.

P1. If it is raining, then the street is wet.
P2. It is raining.
C.  The street is wet.

Modus ponens is the engine of deductive reasoning. Most chained arguments reduce to sequences of modus ponens applications.

Pattern 2 — Modus Tollens

Form: If P then Q. Not Q. Therefore not P.

Worked example.

P1. If the theory is correct, the experiment will show effect X.
P2. The experiment did not show effect X.
C.  The theory is not correct (or is incomplete).

Modus tollens is the engine of scientific falsification. Popper built his philosophy of science on it.

Pattern 3 — Hypothetical Syllogism (Chain Rule)

Form: If P then Q. If Q then R. Therefore if P then R.

Worked example.

P1. If interest rates rise, then borrowing becomes more expensive.
P2. If borrowing becomes more expensive, then business investment slows.
C.  If interest rates rise, then business investment slows.

Long conditional chains can be built by repeated hypothetical syllogism. Breaks in the chain (any false sub-implication) invalidate the whole.

Pattern 4 — Disjunctive Syllogism

Form: P or Q. Not P. Therefore Q.

Worked example.

P1. The problem is either the cable or the router.
P2. We tested the cable and it works fine.
C.  The problem is the router.

Caution. Requires that the disjunction be genuinely exhaustive. If the problem could also be the ISP, the modem, or the wall jack, P1 is false and the argument is unsound.

Pattern 5 — Constructive Dilemma

Form: P or Q. If P then R. If Q then S. Therefore R or S.

Worked example.

P1. Either we cut spending or we raise revenue.
P2. If we cut spending, services will degrade.
P3. If we raise revenue, taxes will increase.
C.  Either services will degrade or taxes will increase.

Constructive dilemma shows how binary choices push the consequence forward.

Pattern 6 — Universal Instantiation

Form: All A are B. x is an A. Therefore x is a B.

Worked example.

P1. All mammals have a four-chambered heart.
P2. A platypus is a mammal.
C.  A platypus has a four-chambered heart.

This is the most basic application of quantified reasoning to particular cases.

Pattern 7 — Existential Generalization

Form: a has property P. Therefore there exists something with property P.

Worked example.

P1. Kepler-452b is an exoplanet.
C.  There exists at least one exoplanet.

Existential generalization moves from specific evidence to existence claims. It is logically weaker than universal generalization but is always valid when the premise is.

Invalid Deductive Forms (Formal Fallacies)

Fallacy 8 — Affirming the Consequent

Form: If P then Q. Q. Therefore P. (INVALID)

Worked example.

P1. If it is raining, then the street is wet.
P2. The street is wet.
C.  It is raining.  [DOES NOT FOLLOW]

The street could be wet because a truck sprayed it, a pipe broke, or the street cleaners came by. Q can hold for reasons other than P.

Fallacy 9 — Denying the Antecedent

Form: If P then Q. Not P. Therefore not Q. (INVALID)

Worked example.

P1. If you study hard, you will pass the exam.
P2. You did not study hard.
C.  You will not pass the exam.  [DOES NOT FOLLOW]

Not studying is not the only route to failing, and studying is not the only route to passing. The conditional tells us what one path to Q looks like; it does not say all paths must go through P.

The valid/invalid pair. Modus ponens and modus tollens are valid; affirming the consequent and denying the antecedent are not. Learning these four patterns together — and being able to name each one — is the single highest-leverage step in deductive reasoning fluency.

Inductive Reasoning: Probability, Not Certainty

Inductive arguments do not guarantee their conclusions. They make them more or less probable given the evidence. The goal is strength, not validity.

Pattern 10 — Enumerative Induction

Form: Every observed A has been B. Therefore all A are B (or: the next A will be B).

Worked example.

P1. Every observed swan in Europe was white.
C.  All swans are white.

This was widely believed until black swans were discovered in Australia. Enumerative induction is only as strong as the range of observations. A sample confined to one region, time, or context generalizes only to that context.

Pattern 11 — Statistical Generalization

Form: n% of sampled A are B. Therefore about n% of all A are B, within a margin determined by sample size and sampling method.

Worked example.

P1. In a random sample of 1,500 US adults, 54% approve of policy X
    (margin of error +/- 3%).
C.  Approximately 51-57% of all US adults approve of policy X.

Strength depends on sample size, randomness, representativeness, and absence of systematic bias. A sample of 1,500 drawn randomly is very different from a sample of 1.5 million that self-selected.

Pattern 12 — Inference to the Best Explanation (Abduction)

Form: Hypothesis H explains the observations. H is better than the alternative hypotheses considered. Therefore H is (probably) true.

Worked example.

P1. The patient has fever, productive cough, and infiltrates on chest X-ray.
P2. Bacterial pneumonia explains all three findings.
P3. Viral pneumonia and pulmonary embolism explain the findings less well.
C.  The patient likely has bacterial pneumonia.

Strength depends on whether the alternatives considered are actually exhaustive. A hypothesis that is the best among three is not necessarily the best among all possible explanations.

Pattern 13 — Analogical Reasoning

Form: A and B share features F1..Fn. A has feature Fm. Therefore B (probably) has feature Fm.

Worked example.

P1. Rats and humans share much of their digestive biology, liver enzymes,
    and toxicity pathways.
P2. Substance X was toxic to rats at dose D.
C.  Substance X is likely toxic to humans at comparable dose.

Strength depends on how many relevant features the two objects share, and whether any key disanalogy exists. Analogies are strongest when the shared features are the same features that would determine the outcome.

Deductive vs. Inductive: The Boundary

PropertyDeductiveInductive
GuaranteeValid deduction: premises true implies conclusion trueProbable at best
Truth preservationYes (when valid)No
Adding premisesCannot invalidate a valid argumentCan strengthen or weaken
Role of formValidity determined by form aloneStrength depends on content and context
When to useMath, logic, formal systems, definitional claimsEmpirical science, everyday reasoning, prediction

Common mistake. Treating a probable inductive conclusion as if it had deductive force. Scientific generalizations are inductive. They can be well-supported and still be wrong.

Quantifiers and Scope

Logical reasoning hinges on distinguishing "all," "some," "no," and "most."

  • All A are B. Universal affirmative. Every member of A is in B.
  • No A are B. Universal negative. No member of A is in B.
  • Some A are B. Particular affirmative. At least one member of A is in B.
  • Some A are not B. Particular negative. At least one member of A is outside B.

Valid moves: from "All A are B" you can infer "Some A are B" (assuming A is non-empty). Invalid moves: from "Some A are B" you cannot infer "All A are B," and from "All A are B" you cannot infer "All B are A" (conversion error).

Worked example (conversion error).

P1. All Seattle residents are Americans.
C.  All Americans are Seattle residents.  [INVALID]

Proof Structure Quick Guide

When constructing a deductive argument:

  1. State the conclusion you intend to prove.
  2. List premises that are individually defensible.
  3. Apply inference rules step by step, labeling each step with the rule used.
  4. Arrive at the conclusion from the last inference step.
  5. Verify no invalid moves appear in the chain.

When to Use

  • Evaluating a formal argument in philosophy, mathematics, or computer science
  • Analyzing legal reasoning where rules of inference matter
  • Testing whether a claimed conclusion follows from stated assumptions
  • Building a chain of reasoning that must hold under adversarial scrutiny
  • Teaching the difference between valid reasoning and true conclusions

When NOT to Use

  • Pure empirical questions where the issue is data quality, not inference — use evidence-assessment
  • Decisions under uncertainty where probability distributions matter more than logical form — use decision-making
  • Questions about bias-driven belief formation — use cognitive-biases

Common Mistakes

MistakeWhy it failsFix
Affirming the consequentMany causes can produce Q besides PRecognize the pattern; demand additional evidence
Denying the antecedentP is not the only way to QRecognize the pattern; check other paths
Conversion error"All A are B" is not the same as "All B are A"Distinguish subject and predicate
Treating induction as deductionProbable conclusions can still be wrongState the conclusion with its uncertainty
Undistributed middleSyllogism fails when the middle term does not cover all casesCheck that the middle term connects the premises genuinely
EquivocationUsing a word with two meanings in the same argumentFix the meaning at the outset

Cross-References

  • paul agent: Applies the elements of reasoning framework — inference is one element among eight.
  • elder agent: Uses standard inference patterns as drills for developing reasoning fluency.
  • tversky agent: Focuses on inductive reasoning and its systematic biases.
  • argument-evaluation skill: How inference rules are applied to evaluate real arguments.
  • cognitive-biases skill: Cognitive biases that distort even valid logical reasoning.
  • evidence-assessment skill: Inductive reasoning from evidence to conclusions.

References

  • Copi, I. M., Cohen, C., & McMahon, K. (2014). Introduction to Logic. 14th edition. Pearson.
  • Tomassi, P. (1999). Logic. Routledge.
  • Hurley, P. J. (2014). A Concise Introduction to Logic. 12th edition. Cengage.
  • Salmon, W. C. (1984). Logic. 3rd edition. Prentice-Hall.
  • Jeffrey, R. C. (2006). Formal Logic: Its Scope and Limits. 4th edition. Hackett.

Häufig gestellte Fragen

Was macht der KI-Skill Logical Reasoning?

Deductive and inductive reasoning, formal and informal logical structure, validity, soundness, and rules of inference. Covers propositional logic, quantified reasoning, syllogisms, common inference patterns (modus ponens, modus tollens, hypothetical syllogism, disjunctive syllogism), and the distinction between deductive certainty and inductive probability. Use when the question is not whether a premise is true but whether the reasoning from premises to conclusion is logically valid.

Warum Logical Reasoning in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Logical Reasoning besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Logical Reasoning in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/Tibsfox/gsd-skill-creator/tree/main/examples/skills/critical-thinking/logical-reasoning ein. TypingMind liest die Datei SKILL.md und installiert den Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Logical Reasoning nutzen?

Jedes Modell, das Sie in TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Logical Reasoning verwenden?

So viele Sie möchten. Solange ein Modell Skills unterstützt, können Sie Logical Reasoning damit verwenden – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama und weitere – alles in TypingMind mit Ihren eigenen API-Schlüsseln.

Ist der KI-Skill Logical Reasoning kostenlos?

Der Skill wird von Tibsfox auf GitHub veröffentlicht. Die Lizenzbedingungen finden Sie im Repository. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: eine Datei namens SKILL.md mit einem Namen und einer Beschreibung sowie allen Skripten, Vorlagen oder Referenzdateien, die das Modell möglicherweise benötigt. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und benötigen daher weder Server noch API-Schlüssel oder Laufzeitumgebung. Sie funktionieren mit jedem Modell.

Alle

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇