logic
3
总安装量
2
周安装量
#58682
全站排名
安装命令
npx skills add https://github.com/chrislemke/stoffy --skill logic
Agent 安装分布
opencode
2
claude-code
2
mcpjam
1
kilo
1
cline
1
Skill 文档
Logic Skill
Master the principles of valid reasoning: formal logic, informal logic, fallacy detection, and paradox analysis.
Fundamentals
Basic Concepts
| Term | Definition |
|---|---|
| Argument | Premises + Conclusion |
| Premise | Statement offered as support |
| Conclusion | Statement being supported |
| Valid | Conclusion follows from premises |
| Sound | Valid + true premises |
| Cogent | Strong inductive + true premises |
Validity vs. Soundness
VALIDITY: If premises true, conclusion must be true
(Logical form preserves truth)
SOUNDNESS: Valid + Actually true premises
(Guarantees true conclusion)
EXAMPLE:
All cats are mammals. (True)
All mammals are animals. (True)
â´ All cats are animals. (True) â SOUND
All fish are mammals. (False)
All mammals can fly. (False)
â´ All fish can fly. (False) â VALID but not SOUND
Propositional Logic
Connectives
| Symbol | Name | Meaning |
|---|---|---|
| ¬ | Negation | Not P |
| â§ | Conjunction | P and Q |
| ⨠| Disjunction | P or Q |
| â | Conditional | If P then Q |
| â | Biconditional | P iff Q |
Valid Argument Forms
MODUS PONENS MODUS TOLLENS
P â Q P â Q
P ¬Q
âââââ âââââ
ⴠQ ⴠ¬P
HYPOTHETICAL SYLLOGISM DISJUNCTIVE SYLLOGISM
P â Q P ⨠Q
Q â R ¬P
âââââ âââââ
â´ P â R â´ Q
CONSTRUCTIVE DILEMMA REDUCTIO AD ABSURDUM
P â Q Assume P
R â S ...
P ⨠R Derive contradiction
âââââ âââââ
ⴠQ ⨠S ⴠ¬P
Invalid Forms (Fallacies)
AFFIRMING THE CONSEQUENT DENYING THE ANTECEDENT
P â Q P â Q
Q ¬P
âââââ âââââ
â´ P â INVALID ⴠ¬Q â INVALID
Predicate Logic
Quantifiers
| Symbol | Name | Meaning |
|---|---|---|
| âx | Universal | For all x |
| âx | Existential | There exists x |
Valid Inferences
UNIVERSAL INSTANTIATION EXISTENTIAL GENERALIZATION
âx(Fx) Fa
âââââ âââââ
â´ Fa â´ âx(Fx)
UNIVERSAL GENERALIZATION EXISTENTIAL INSTANTIATION
(arbitrary a) Fa âx(Fx)
âââââ âââââ
â´ âx(Fx) â´ Fa (for new constant a)
Informal Fallacies
Fallacies of Relevance
| Fallacy | Description | Example |
|---|---|---|
| Ad hominem | Attack the person | “You’re wrong because you’re stupid” |
| Appeal to authority | Irrelevant authority | “A celebrity says X” |
| Appeal to emotion | Manipulate feelings | Fear-mongering |
| Red herring | Change subject | Diverting attention |
| Straw man | Misrepresent argument | Attack weaker version |
Fallacies of Presumption
| Fallacy | Description | Example |
|---|---|---|
| Begging the question | Assume conclusion | Circular reasoning |
| False dilemma | Only two options | “With us or against us” |
| Hasty generalization | Small sample | “Two Xs did Y, so all Xs” |
| Slippery slope | Unsupported chain | “A leads to Z inevitably” |
Fallacies of Ambiguity
| Fallacy | Description | Example |
|---|---|---|
| Equivocation | Shifting meaning | “Light” (weight/illumination) |
| Amphiboly | Grammatical ambiguity | Headlines |
| Composition | Parts â whole | “Atoms invisible â´ tables invisible” |
| Division | Whole â parts | “Team good â´ each player good” |
Paradoxes
Liar Paradox
"This sentence is false"
If true â It says it's false â False
If false â It says it's false, which is true â True
RESPONSES:
âââ Tarskian hierarchy: No self-reference
âââ Paraconsistent logic: Accept contradiction
âââ Gapping: Sentence is neither true nor false
âââ Contextualism: Truth conditions shift
Sorites Paradox (Heap)
1 grain is not a heap.
If n grains is not a heap, n+1 grains is not a heap.
â´ 1,000,000 grains is not a heap. â
RESPONSES:
âââ Epistemicism: Sharp boundary, we don't know where
âââ Supervaluationism: True under all precisifications
âââ Degree theory: "Heap" admits degrees
âââ Contextualism: Boundary shifts with context
Russell’s Paradox
R = {x : x â x} (Set of all sets not members of themselves)
Is R â R?
If yes â By definition, R â R
If no â By definition, R â R
RESPONSE: Type theory, set-theoretic axioms preventing
unrestricted comprehension
Modal Logic
Basic Modal Operators
| Symbol | Meaning |
|---|---|
| â¡P | Necessarily P |
| âP | Possibly P |
Relations
â¡P â ¬â¬P (Necessary = not possibly not)
âP â ¬â¡Â¬P (Possible = not necessarily not)
Systems
| System | Characteristic Axiom |
|---|---|
| K | Basic modal logic |
| T | â¡P â P (Necessity implies truth) |
| S4 | â¡P â â¡â¡P (Iterated necessity) |
| S5 | âP â â¡âP (Possibility is necessary) |
Argument Analysis Protocol
ANALYZING ARGUMENTS
âââââââââââââââââââ
1. IDENTIFY CONCLUSION
What is being argued for?
2. IDENTIFY PREMISES
What reasons are given?
3. SUPPLY HIDDEN PREMISES
What's assumed but not stated?
4. EVALUATE VALIDITY
Does conclusion follow?
5. EVALUATE SOUNDNESS
Are premises true?
6. CHECK FOR FALLACIES
Any reasoning errors?
Key Vocabulary
| Term | Meaning |
|---|---|
| Entailment | P logically implies Q |
| Tautology | True under all interpretations |
| Contradiction | False under all interpretations |
| Contingent | Neither tautology nor contradiction |
| Consistent | Can all be true together |
| Inference | Moving from premises to conclusion |
| Deduction | Conclusion follows necessarily |
| Induction | Conclusion follows probably |
Integration with Repository
Related Skills
argument-mapping: Visualizing argument structurethought-experiments: Logical analysis of scenarios