Logotipo de Logical Reasoning

Logical Reasoning

Comunidad
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.

Descripción general

EditorTibsfox
Repositoriogsd-skill-creator
Nombre de la habilidadlogical-reasoning
Estrellas
70
Forks
9
Archivos incluidos
Solo instrucciones
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Todo en las instrucciones

    Todo lo que necesita el modelo está en las instrucciones: no hay archivos adicionales que sincronizar.

  • Código abierto

    Publicada por Tibsfox en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Logical Reasoning en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/Tibsfox/gsd-skill-creator/tree/main/examples/skills/critical-thinking/logical-reasoning
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

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
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Logical Reasoning en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Logical Reasoning automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Logical Reasoning no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

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.

Preguntas frecuentes

¿Qué hace la habilidad de IA 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.

¿Por qué usar Logical Reasoning en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Logical Reasoning está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Logical Reasoning en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/Tibsfox/gsd-skill-creator/tree/main/examples/skills/critical-thinking/logical-reasoning. TypingMind lee el archivo SKILL.md de esa carpeta e instala su contenido como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Logical Reasoning?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Logical Reasoning?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Logical Reasoning con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Logical Reasoning?

Tibsfox la ha publicado en GitHub. Consulta el repositorio para conocer las condiciones de la licencia. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇