cs-formal

Installation
SKILL.md

cs-formal

Purpose

This skill provides tools for applying formal methods in computer science, including type theory (HoTT and System F), logic systems, Hoare triples, TLA+ for model checking, and verification in Coq or Lean. Use it to prove program correctness and verify specifications.

When to Use

Apply this skill when verifying software properties, such as concurrency bugs in distributed systems (e.g., with TLA+), proving theorems in dependent types (e.g., HoTT), or checking code invariants via Hoare triples. Use it for safety-critical code, academic proofs, or integrating formal verification into development workflows.

Key Capabilities

  • Parse and verify Hoare triples: e.g., {P} C {Q} for pre/post conditions.
  • Generate TLA+ specifications for model checking concurrent systems.
  • Interact with Coq/Lean for theorem proving, including inductive types and tactics.
  • Evaluate type theory constructs, like System F polymorphic functions.
  • Export proofs or models as JSON for integration, using OpenClaw's API.

Usage Patterns

Invoke this skill via OpenClaw's CLI for interactive sessions or API for scripted workflows. For CLI, prefix commands with openclaw cs-formal. Use API endpoints like /api/cs-formal/verify with JSON payloads. Always specify the tool (e.g., --tool coq) and input file. For pipelines, chain with other skills by piping output, e.g., verify a TLA+ model then analyze results.

Related skills
Installs
29
GitHub Stars
5
First Seen
Mar 5, 2026