Skip to content
Development
Skill

/predicate-logic

Problem-solving strategies for predicate logic in mathematical logic

From plugin
vibecosystem
532200 skills138 agents7 hooks
Install
$ npx -y skills add vibeeval/vibecosystem --skill predicate-logic --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/predicate-logic

Context preview

The summary Claude sees to decide when to auto-load this skill.

Problem-solving strategies for predicate logic in mathematical logic

SKILL.md

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

Predicate Logic

When to Use

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

Decision Tree

1. **Quantifier Analysis**

  • Identify: ForAll (universal), Exists (existential)
  • Scope of quantifiers and free/bound variables
  • `z3_solve.py prove "ForAll([x], P(x)) implies P(a)"`

2. **Prenex Normal Form**

  • Move all quantifiers to front
  • Standardize variables to avoid capture
  • `sympy_compute.py simplify "prenex(formula)"`

3. **Skolemization (for Exists)**

  • Replace existential quantifiers with Skolem functions
  • Exists x. P(x) -> P(c) or P(f(y)) depending on scope
  • Needed for resolution-based proofs

4. **Resolution Proof**

  • Convert to CNF, negate conclusion
  • Apply resolution rule until empty clause or saturation
  • `z3_solve.py prove "resolution_valid"`

5. **Model Theory**

  • Construct countermodel to refute invalid argument
  • Finite model for finite domain
  • `z3_solve.py model "Exists([x], P(x) & Not(Q(x)))"`

Tool Commands

Z3_Forall

uv run python -m runtime.harness scripts/z3_solve.py prove "ForAll([x], Implies(P(x), Q(x)))"

Z3_Exists

uv run python -m runtime.harness scripts/z3_solve.py sat "Exists([x], And(P(x), Not(Q(x))))"

Z3_Universal_Instantiation

uv run python -m runtime.harness scripts/z3_solve.py prove "Implies(ForAll([x], P(x)), P(a))"

Z3_Model

uv run python -m runtime.harness scripts/z3_solve.py model "Exists([x], P(x))"

Cognitive Tools Reference

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

Read more
Ships withvibecosystem

Your AI software team. Built on Claude Code. vibecosystem turns Claude Code into a full AI software team — 138 specialized agents that plan, build, review, test, and learn from every mistake. No configuration needed — just install and code.

Get the whole plugin

Other skills on vibecosystem.