cargo
Rust package manager (36 subcommands).
dafny-formal-verification
Formally verified SPI colors, Galois connections, and p-adic number theory in Dafny
Full skill instructions
Category: Formal Verification - Low-Level Algebraic Proofs
Status: Production Ready
Dependencies: theorem-prover-orchestration
Four formally verified Dafny modules (1,822 lines total) proving correctness of:
All files compile to C#, Java, JavaScript, Python, and Go.
Theorems Proven:
GaloisClosure: α(γ(c)) = c for all 226 colorsAlphaSurjective: Every color reachable from eventsXorIdentity: 0 ⊕ a = a = a ⊕ 0XorAssociative: (a ⊕ b) ⊕ c = a ⊕ (b ⊕ c)XorCommutative: a ⊕ b = b ⊕ aXorSelfInverse: a ⊕ a = 0HandoffPreservesColor: Device-independent color assignmentRingTopologyInvariant: Contiguous layer partitionsSingleBitFlipDetectable: Fault detection in pipelinesKey Sections:
Theorems Proven:
UltrametricInequality: d(x,z) ≤ max(d(x,y), d(y,z)) [AXIOM]CanonicalUniqueness: Unique representation in canonical form [AXIOM]ColorUltrametric: Color space is ultrametricColorUniqueness: Distinct canonical representations → distinct colorsNoBoundaryAttractors: No clipping/clamping needed (totally disconnected topology)Specializations:
Theorems Proven:
Foundation:
Core Handoff Semantics
dafny /compile:py spi_galois.dfy
# Generates: spi_galois.py
from spi_galois import SPIGalois, Color, Event
# Verify Galois closure
c = Color(42)
closure_valid = SPIGalois.verify_galois_closure(c)
print(f"Color {c.index} satisfies closure: {closure_valid}")
# Compute color from event
event = Event(seed=0x6761795f636f6c6f, token=10, layer=1, dim=1)
color = SPIGalois.alpha(event)
print(f"Event maps to color: {color.index}")
# C#
dafny /compile:cs spi_galois.dfy
# Java
dafny /compile:java spi_galois.dfy
# JavaScript (Node.js)
dafny /compile:js spi_galois.dfy
# Go
dafny /compile:go spi_galois.dfy
Routing:
search_proof("Galois Closure") → Returns spi_galois.dfy line 170compile_proof("GaloisClosure", :python) → Dafny Python extractionverify_equivalence([Dafny, Lean4, Coq]) → Cross-prover verificationCanonical Proof Locations:
dafny-formal-verification/proofs/
├── spi_galois.dfy
├── padic.dfy
├── galois_exponential.dfy
└── galois_handoff.dfy
A Galois connection between two ordered sets:
Properties:
p-adic numbers form an ultrametric space where:
Benefits over IEEE 754 floats:
Distributed computation model where:
Fault Detection:
dafny-formal-verification/
├── SKILL.md # This file
├── proofs/
│ ├── spi_galois.dfy
│ ├── padic.dfy
│ ├── galois_exponential.dfy
│ └── galois_handoff.dfy
├── dafny_runner.jl # Compilation & verification
├── cross_compile.jl # Multi-target extraction
└── examples/
├── verify_closure.py # Python example
├── compile_all.sh # Compile to all targets
└── fault_detection_demo.py # Ring topology fault detection
theorem-prover-orchestration - Master dispatcherlean4-music-topos - High-level Lean theoremsstellogen-proof-search - Automated proof discoverygay-mcp - SPI color system runtimeformal-verification-ai - AI system correctness# As part of plurigrid/asi
npx ai-agent-skills install plurigrid/asi --with-theorem-provers
# Standalone
npx ai-agent-skills install dafny-formal-verification
| Target | Status | File Extension | Notes |
|---|---|---|---|
| C# | ✓ | .cs | Full library |
| Python | ✓ | .py | Runtime compatible |
| JavaScript | ✓ | .js | Node.js/browser |
| Java | ✓ | .java | JVM interop |
| Go | ✓ | .go | Concurrent use |
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.
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.
Install Codex skills into $CODEX_HOME/skills from a curated list or a GitHub repo path. Use when a user asks to list installable skills, install a curated skill, or install a skill from another repo (including private repos).
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