شعار Logical Reasoning

Logical Reasoning

المجتمع
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.

نظرة عامة

الناشرTibsfox
المستودعgsd-skill-creator
اسم المهارةlogical-reasoning
النجوم
70
التفريعات
9
الملفات المرفقة
تعليمات فقط
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

  • مفتوحة المصدر

    نشرها Tibsfox على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Logical Reasoning في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى الإضافات → المهارات.
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/Tibsfox/gsd-skill-creator/tree/main/examples/skills/critical-thinking/logical-reasoning
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات → المهارات → إضافة مهارة → من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

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
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Logical Reasoning في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج Logical Reasoning تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Logical Reasoning بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تترتب أي تكلفة على المهارة غير المستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

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.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي 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.

لماذا تستخدم Logical Reasoning على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Logical Reasoning عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Logical Reasoning في TypingMind؟

افتح الإضافات → المهارات → التثبيت من GitHub في TypingMind والصق https://github.com/Tibsfox/gsd-skill-creator/tree/main/examples/skills/critical-thinking/logical-reasoning. يقرأ TypingMind ملف SKILL.md الخاص بها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Logical Reasoning؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Logical Reasoning؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Logical Reasoning معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Logical Reasoning مجانية؟

نشرها Tibsfox على GitHub. راجع المستودع للاطلاع على شروط الترخيص. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇