Logo vun Logical Reasoning

Logical Reasoning

Communautéit
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.

Iwwersiicht

EditeurTibsfox
Repositorygsd-skill-creator
Skill-Nummlogical-reasoning
Stären
70
Forks
9
Matgeliwwert Fichieren
Nëmmen Instruktiounen
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    Vum Tibsfox op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Logical Reasoning an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/Tibsfox/gsd-skill-creator/tree/main/examples/skills/critical-thinking/logical-reasoning
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

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
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Logical Reasoning an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Logical Reasoning automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Logical Reasoning net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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.

Heefeg gestallte Froen

Wat mécht de 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.

Firwat Logical Reasoning op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Logical Reasoning besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Logical Reasoning an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/Tibsfox/gsd-skill-creator/tree/main/examples/skills/critical-thinking/logical-reasoning an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Logical Reasoning benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Logical Reasoning benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Logical Reasoning domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Logical Reasoning gratis?

De Skill gëtt vum Tibsfox op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇