cargo
Rust package manager (36 subcommands).
chain-of-states
CoSProver framework for translating informal proofs to Lean4 via intermediate formal proof states.
Full skill instructions
Trit: -1 (MINUS - Validator)
GF(3) Triad: chain-of-states (-1) ⊗ proof-of-frog (0) ⊗ alife (+1) = 0
CoSProver framework for translating informal proofs to Lean4 via intermediate formal proof states.
From Wang et al. (2025): "Translating Informal Proofs into Formal Proofs Using a Chain of States"
Informal Proof (natural language)
↓ Stage 1: Extract CoS
Chain of States [s₀ → s₁ → ... → sₙ]
↓ Stage 2: Generate tactics
Formal Lean4 Proof
Key Observations:
"Let x > 0. Since x > 0, we have x² > 0."
↓
[⊢ x > 0 → x² > 0] → [h : x > 0 ⊢ x² > 0] → [⊢ True]
theorem sq_pos (x : ℝ) (h : x > 0) : x² > 0 := by
-- Tactic for s₀ → s₁
intro h
-- Tactic for s₁ → s₂
exact sq_pos_of_pos h
| CoS Concept | Proof-of-Frog Equivalent |
|---|---|
| Proof state sᵢ | Knowledge nugget |
| Tactic τᵢ | Frog leap |
| State transition | Eating a frog |
| Full proof | Pond traversal |
🥒 TADPOLE (s₀) -- Initial goal state
↓ τ₁ (intro)
🐸 FROGLET (s₁) -- Hypothesis introduced
↓ τ₂ (apply)
🦎 MATURE FROG (sₙ) -- QED
structure ProofState where
goal : Expr
context : List Expr
trit : Int -- GF(3) stage
structure ChainOfStates where
states : List ProofState
transitions : List Tactic
def cos_invariant (cos : ChainOfStates) : Prop :=
(cos.states.map (·.trit)).sum % 3 = 0
def extract_cos(informal_proof: str) -> List[ProofState]:
"""
Extract Chain of States from informal proof text.
Each state is a formal representation of proof progress.
"""
steps = segment_proof(informal_proof)
return [formalize_state(s) for s in steps]
| Dimension | Chain-of-Thought (CoT) | Chain of States (CoS) |
|---|---|---|
| Target | Reasoning trace | Proof states |
| Granularity | Natural language | Formal expressions |
| Verification | None | Lean type checker |
| Composability | Weak | Strong (tactic composition) |
| Benchmark | miniF2F | ProofNet |
|---|---|---|
| Direct generation | 36.2% | 18.4% |
| CoSProver | 42.8% | 24.1% |
| Improvement | +6.6% | +5.7% |
# Load skill
skill chain-of-states
# Extract CoS from informal proof
python cos_extract.py "Let n be even. Then n² is even."
# Generate Lean4 tactics
lean4 cos_to_tactics.lean
Либиди Фрог (Proof-of-Frog) + Chain of States = compositional proof verification:
proof-chain(-1) ⊗ proof-of-frog(0) ⊗ alife(+1) = 0 ✓
Where Chain of States provides the -1 (validator) role:
- Validates each state transition
- Ensures GF(3) conservation across proof steps
- Connects informal human reasoning to formal verification
using Gay
seed = gay_seed(2512) # arXiv paper ID
palette(3) # CoS triad colors
| Stage | Color | Meaning |
|---|---|---|
| Initial | #B0285F | Unproven goal |
| Intermediate | #77DEB1 | Progress state |
| Terminal | #8ADB6E | QED |
The interaction IS the skill improving itself.
Every use of this skill is an opportunity for worlding:
Add Interaction Exemplars here as the skill is used.
Rust package manager (36 subcommands).
Translate Figma nodes into production-ready code with 1:1 visual fidelity using the Figma MCP workflow (design context, screenshots, assets, and project-convention translation). Trigger when the user provides Figma URLs or node IDs, or asks to implement designs or components that must match Figma...
**Status**: 🌳 Production Ready (upstream in StringZilla v3+) **Type**: High-Performance String Operations / SIMD-Accelerated Text Processing **Principle**: Zero-copy views, SIMD/SWAR acceleration, deterministic hashing **Frame**: Cross-language interoperability (C, C++, Python, Rust, Go, Swift, ...
Conformal Geometric Algebra (CGA) for circles, spheres, and Möbius transformations
Verifies code implements exactly what documentation specifies for blockchain audits. Use when comparing code against whitepapers, finding gaps between specs and implementation, or performing compliance checks for protocol implementations.
Systems programming and performance optimization using Zig. Provides low-level abstractions, memory-safe compiled code, and performance benchmarking. Use for system-level operations, optimization, and interoperability with C/POSIX APIs.
Topological soliton detection and agency bridge with anyonic fusion algebra for concept composition
PayPal MCP server integration for invoices, payments, subscriptions, disputes, and transaction reporting via @paypal/mcp.
Unison language - content-addressed functional programming with abilities for effects, distributed computing, and structural types. Use for pure functional code, effect management, distributed systems, and refactoring-safe codebases.
Google Tasks management via TasksACSet. Transforms task operations into GF(3)-typed Interactions, routes to triadic queues, detects saturation for task-zero-as-condensed-state.
World C Skill
Syrup binary serialization for OCapN/CapTP wire format. Canonical encoding for capability messages.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience