PR

propositional-logic

Solves propositional logic problems using Z3 solvers, truth tables, and natural deduction rules.

Install

mkdir -p .claude/skills/propositional-logic && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/2320" && unzip -o skill.zip -d .claude/skills/propositional-logic && rm skill.zip

Installs to .claude/skills/propositional-logic

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Problem-solving strategies for propositional logic in mathematical logic
72 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Classify logical formulas as tautologies or contradictions
  • Generate truth tables for formulas
  • Perform satisfiability checking
  • Apply natural deduction inference rules
  • Verify logical arguments using semantic tableaux

How it works

The skill utilizes Z3 and SymPy to programmatically evaluate logical expressions, providing automated verification for propositional logic problems.

Inputs & outputs

You give it
Logical formula string
You get back
Satisfiability status or truth table

When to use propositional-logic

  • Prove logical equivalence
  • Solve satisfiability problems
  • Generate truth tables
  • Verify inference rules

About this skill

Propositional Logic

When to Use

Use this skill when working on propositional-logic problems in mathematical logic.

Decision Tree

  1. Identify Formula Structure

    • Classify: tautology, contradiction, or contingent?
    • Main connective: AND, OR, IMPLIES, NOT, IFF?
    • z3_solve.py sat "formula" to check satisfiability
  2. Truth Table Method

    • For small formulas (<=4 variables): enumerate all valuations
    • sympy_compute.py truthtable "p & (p -> q) -> q"
    • Tautology = all T, Contradiction = all F
  3. Natural Deduction

    • Apply inference rules: Modus Ponens, Modus Tollens
    • Conditional proof: assume antecedent, derive consequent
    • z3_solve.py prove "Implies(And(p, Implies(p,q)), q)"
  4. Semantic Tableaux

    • Build tree by decomposing formula
    • Closed branches = contradictions
    • All branches closed = valid argument

Tool Commands

Z3_Sat

uv run python -m runtime.harness scripts/z3_solve.py sat "And(p, Implies(p, q), Not(q))"

Z3_Tautology

uv run python -m runtime.harness scripts/z3_solve.py prove "Implies(And(p, Implies(p, q)), q)"

Sympy_Truthtable

uv run python -m runtime.harness scripts/sympy_compute.py truthtable "p & (p >> q) >> q"

Z3_Modus_Ponens

uv run python -m runtime.harness scripts/z3_solve.py prove "Implies(And(p, Implies(p,q)), q)"

Cognitive Tools Reference

See .claude/skills/math-mode/SKILL.md for full tool documentation.

When not to use it

  • When working with non-propositional logic systems
  • When manual proof generation is strictly required

Prerequisites

Z3SymPy

Limitations

  • Limited to propositional logic
  • Truth table method is restricted to formulas with 4 or fewer variables

How it compares

It replaces manual truth table construction and proof derivation with automated computational solvers.

Compared to similar skills

propositional-logic side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
propositional-logic (this skill)27moReviewIntermediate
literature-review5592moReviewAdvanced
openalex-database487moReviewIntermediate
annas-archive-ebooks227moReviewBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

literature-review

K-Dense-AI

Conduct comprehensive, systematic literature reviews using multiple academic databases (PubMed, arXiv, bioRxiv, Semantic Scholar, etc.). This skill should be used when conducting systematic literature reviews, meta-analyses, research synthesis, or comprehensive literature searches across biomedical, scientific, and technical domains. Creates professionally formatted markdown documents and PDFs with verified citations in multiple citation styles (APA, Nature, Vancouver, etc.).

5591,298

openalex-database

davila7

Query and analyze scholarly literature using the OpenAlex database. This skill should be used when searching for academic papers, analyzing research trends, finding works by authors or institutions, tracking citations, discovering open access publications, or conducting bibliometric analysis across 240M+ scholarly works. Use for literature searches, research output analysis, citation analysis, and academic database queries.

48202

annas-archive-ebooks

ratacat

Use when needing to look up book content, find a book by title/author, download an ebook, or reference material from a published book. Triggers on book lookups, ebook downloads, "find the book", "get the PDF/EPUB of". Downloads produce PDF/EPUB/MOBI files - use ebook-extractor skill to convert to text.

22177

scientific-critical-thinking

davila7

Evaluate research rigor. Assess methodology, experimental design, statistical validity, biases, confounding, evidence quality (GRADE, Cochrane ROB), for critical analysis of scientific claims.

1888

biorxiv-database

lifangda

Efficient database search tool for bioRxiv preprint server. Use this skill when searching for life sciences preprints by keywords, authors, date ranges, or categories, retrieving paper metadata, downloading PDFs, or conducting literature reviews.

780

gpt-researcher

assafelovic

GPT Researcher is an autonomous deep research agent that conducts web and local research, producing detailed reports with citations. Use this skill when helping developers understand, extend, debug, or integrate with GPT Researcher - including adding features, understanding the architecture, working with the API, customizing research workflows, adding new retrievers, integrating MCP data sources, or troubleshooting research pipelines.

1464

Search skills

Search the agent skills registry