Skip to main content
skill CX Codex

propositional-logic — Claude Code skill: what it does, how to install

Guides solving propositional logic problems using truth tables, Z3 proofs, and semantic tableaux.

MIT 1 installs ★ 3,951 updated 2026-01-26

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add parcadei/Continuous-Claude-v3 --skill propositional-logic -a claude-code
Open on GitHub

What propositional-logic does

This skill outlines a structured decision tree for mathematical logic tasks. It directs the agent to classify formulas into tautologies, contradictions, or contingent statements, picking the right verification route. Formulas with up to four variables are evaluated via truth tables in sympy_compute.py, while natural deduction and satisfiability checks rely on Z3.

The skill relies on terminal execution via uv run python -m runtime.harness. If uv or the local helper scripts scripts/z3_solve.py and scripts/sympy_compute.py are missing from the workspace, the agent cannot execute automated proofs.

What it helps with

  • check propositional satisfiability using Z3
  • generate truth tables for formulas with 4 or fewer variables
  • verify deductive arguments with Modus Ponens
  • decompose logical statements using semantic tableaux

Example prompts for the agent

  • Check satisfiability for "And(p, Implies(p, q), Not(q))" using z3_solve.py
  • Generate a truth table for "p & (p >> q) >> q" using sympy
  • Verify whether "Implies(And(p, Implies(p, q)), q)" is a tautology

How to install propositional-logic

1Skills CLI (Vercel)

npx skills add parcadei/Continuous-Claude-v3 --skill propositional-logic -a claude-code

2Manually: put the files in place

~/.claude/skills/propositional-logic/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/propositional-logic/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about propositional-logic

How to install propositional-logic in Claude Code?

Run npx skills add parcadei/Continuous-Claude-v3 --skill propositional-logic -a claude-code in your terminal. The configuration is placed at ~/.claude/skills/propositional-logic/SKILL.md.

What does propositional-logic do?

It guides the agent through decision steps and command patterns to verify mathematical logic formulas with SymPy and Z3.

What dependencies are required to run the solvers?

You need uv installed, Bash access, and the bundled scripts/z3_solve.py and scripts/sympy_compute.py scripts inside your environment.

Source text

SKILL.md · MIT
---
name: propositional-logic
description: "Problem-solving strategies for propositional logic in mathematical logic"
allowed-tools: [Bash, Read]
---

# 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
```bash
uv run python -m runtime.harness scripts/z3_solve.py sat "And(p, Implies(p, q), Not(q))"
```

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

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

### Z3_Modus_Ponens
```bash
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.

© parcadei · MIT · parcadei/Continuous-Claude-v3

Similar skills

All skills for Science and research →

From the same set161

The whole set →
agentica-sdk A reference for the Agentica SDK: the @agentic decorator, spawn(), agent state, token limits and MCP wiring. CX Codex +1 476installs tdd tdd — a skill that keeps the agent on a strict red-green-refactor loop: failing test first, minimal code next, then verification. CX Codex +1 474installs system-overview system-overview displays the Continuous Claude architecture, showing memory layers, 9 registered hook types, and session continuity mechanisms. CX Codex +1 474installs proof-theory proof-theory — a skill for mathematical logic proofs and decision trees across strategies. Guides you through direct proof, proof by contradiction, case analysis, and induction; verifies soundness, completeness, and cut elimination. CX Codex +1 1installs predicate-logic A skill for tackling predicate logic in mathematical logic. Handles quantifier analysis, normal form conversion, proof construction, and countermodel search. CX Codex +1 1installs prime-numbers Skill for working with prime numbers in graph and number theory. Offers strategies for primality testing (trial division, Miller-Rabin, AKS), factorization, and applications of Fermat's and Wilson's theorems through Bash and Read tools. CX Codex +1 1installs matrices matrices — a skill for matrix operations: identifies types, performs arithmetic, solves linear systems. Includes decompositions like LU, QR, SVD and works across Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, and OpenCode. CX Codex +1 1installs leann-search leann-search runs semantic code queries against a LEANN vector index when exact keyword matches fall short. CX Codex +1 ★ 3,951repo stars

Project sponsors

Companies that keep this analytics open