x402agent/SolanaOS / skills/qedgen
qedgen
FlaggedFormally verify programs by writing Lean 4 proofs. Trigger this skill whenever the user wants to formally verify code, generate Lean 4 proofs, prove properties about algorithms or smart contracts, verify invariants, convert program logic into formal specifications, or anything involving Lean 4 and formal verification. Also trigger when the user mentions "qedgen", "lean proof", "formal proof", "verify my code", "prove correctness", "formal verification", or wants mathematical guarantees about their implementation.
docs/llms.txt
View on GitHub# QEDGen
> An agent skill that formally verifies Solana programs by generating Lean 4 proofs. Your agent writes the proofs; Mistral's Leanstral model handles hard sub-goals. Install with `npx skills add qedgen/solana-skills`. Works with any coding agent supporting the Agent Skills spec.
QEDGen verifies your core business logic. Your agent reads the codebase, writes Lean 4 models and proofs, iterates on compiler errors, and calls Leanstral (Mistral's theorem prover) only for hard sub-goals.
## Docs
- [README](https://raw.githubusercontent.com/qedgen/solana-skills/main/README.md): Installation, usage, CLI commands, and requirements
- [SKILL.md](https://raw.githubusercontent.com/qedgen/solana-skills/main/SKILL.md): Full proof-writing workflow, support library API, proof patterns, tactic rules, and error fixes
- [CLAUDE.md](https://raw.githubusercontent.com/qedgen/solana-skills/main/CLAUDE.md): Build commands, architecture, crate structure, and development guide
## Examples
- [Escrow Proofs](https://raw.githubusercontent.com/qedgen/solana-skills/main/example/escrow/formal_verification/EscrowProofs.lean): 9/9 verified proofs for an Anchor token escrow (access control, state machines, arithmetic safety)
- [Escrow Spec](https://raw.githubusercontent.com/qedgen/solana-skills/main/example/escrow/formal_verification/SPEC.md): Verification spec for the escrow program
- [Percolator Proofs](https://raw.githubusercontent.com/qedgen/solana-skills/main/example/percolator/formal_verification/PercolatorProofs.lean): 7/7 verified proofs for a pure Rust risk engine (conservation, arithmetic safety, state machine, fee isolation)
- [Percolator Spec](https://raw.githubusercontent.com/qedgen/solana-skills/main/example/percolator/formal_verification/SPEC.md): Verification spec for the percolator engine
## Optional
- [Verification Scope](https://raw.githubusercontent.com/qedgen/solana-skills/main/example/escrow/formal_verification/VERIFICATION_SCOPE.md): What is verified vs. trusted as axioms
- [Lean Support Library](https://raw.githubusercontent.com/qedgen/solana-skills/main/lean_solana/QEDGen.lean): Root import for the Solana axiom library
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |