Propositional Logic
Problem-solving strategies for propositional logic in mathematical logic
MCP get_skill({ skillId: "propositional-logic-dacf009d" })Use this skill with your agent
Create a free account and connect via MCP
# 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.
Related Skills
More skills in Education & Writing
Academic Plotting
Generates publication-quality figures for ML papers from research context. Given a paper section or description, extracts system components and relationships to generate architecture diagrams via Gemini. Given experiment results or data, auto-selects chart type and generates data-driven figures via matplotlib/seaborn. Use when creating any figure for a conference paper.
Add Educational Comments
Add educational comments to the file specified, or prompt asking for file to comment if one is not provided.
AI Prompt Engineering & Safety Best Practices
Comprehensive best practices for AI prompt engineering, safety frameworks, bias mitigation, and responsible AI usage for Copilot and LLMs.
Anti Slop
Comprehensive toolkit for detecting and eliminating "AI slop" - generic, low-quality AI-generated patterns in natural language, code, and design. Use when reviewing or improving content quality, preventing generic AI patterns, cleaning up existing content, or enforcing quality standards in writing, code, or design work.
Apple Notes
Create, view, edit, delete, search, move, or export Apple Notes via the memo CLI on macOS.
Asc Whats New Writer
Generate engaging, localized App Store release notes (What's New) from git log, bullet points, or free text using canonical metadata under `./metadata`. Optionally pairs with promotional text updates.
Explore Other Categories
Skills from other categories with shared topics
Mathematical Logic Expert
Expert in formal logic, model theory, computability, and foundations of mathematics
/math - Unified Math Capabilities
Unified math capabilities - computation, solving, and explanation. I route to the right tool.
Algorithmic Art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.