predicate-logic
SolidProblem-solving strategies for predicate logic in mathematical logic
AI & Automation 496 stars
41 forks Updated 1 months ago MIT
Install
Quality Score: 87/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# 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
```bash
uv run python -m runtime.harness scripts/z3_solve.py prove "ForAll([x], Implies(P(x), Q(x)))"
```
### Z3_Exists
```bash
uv run python -m runtime.harness scripts/z3_solve.py sat "Exists([x], And(P(x), Not(Q(x))))"
```
### Z3_Universal_Instantiation
```bash
uv run python -m runtime.harness scripts/z3_solve.py prove "Implies(ForAll([x], P(x)), P(a))"
```
### Z3_Model
```bash
uv run python ...
Details
- Author
- vibeeval
- Repository
- vibeeval/vibecosystem
- Created
- 2 months ago
- Last Updated
- 1 months ago
- Language
- C#
- License
- MIT
Integrates with
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Listed
predicate-logic
Problem-solving strategies for predicate logic in mathematical logic
3,795 Updated 4 months ago
parcadei AI & Automation Solid
propositional-logic
Problem-solving strategies for propositional logic in mathematical logic
496 Updated 1 months ago
vibeeval AI & Automation Solid
propositional-logic
Problem-solving strategies for propositional logic in mathematical logic
2,210 Updated 1 weeks ago
foryourhealth111-pixel AI & Automation Listed
propositional-logic
Problem-solving strategies for propositional logic in mathematical logic
3,795 Updated 4 months ago
parcadei AI & Automation Solid
proof-theory
Problem-solving strategies for proof theory in mathematical logic
496 Updated 1 months ago
vibeeval