Skip to content

x402agent/SolanaOS / skills/solana-formal-verification

qedgen

Flagged

Formally 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.

FileKindSize
.gitignoreother753 B
.npmignoreother352 B
Cargo.lockmanifest46.3 KB
Cargo.tomlmanifest307 B
LICENSEother1.0 KB
README.mdmarkdown3.7 KB
SKILL.mdskill md10.8 KB
bin/leanstralexecutablescript6.2 MB
claude.mdmarkdown6.8 KB
crates/qedgen/Cargo.tomlmanifest544 B
crates/qedgen/lean_support/QEDGen.leanother166 B
crates/qedgen/lean_support/QEDGen/Solana.leanother166 B
crates/qedgen/lean_support/QEDGen/Solana/Account.leanother4.0 KB
crates/qedgen/lean_support/QEDGen/Solana/Authority.leanother285 B
crates/qedgen/lean_support/QEDGen/Solana/Cpi.leanother3.3 KB
crates/qedgen/lean_support/QEDGen/Solana/State.leanother1.9 KB
crates/qedgen/lean_support/QEDGen/Solana/Token.leanother1.4 KB
crates/qedgen/lean_support/QEDGen/Solana/Valid.leanother2.0 KB
crates/qedgen/lean_support/README.mdmarkdown2.8 KB
crates/qedgen/lean_support/lake-manifest.jsonconfig119 B
crates/qedgen/lean_support/lakefile.leanother112 B
crates/qedgen/lean_support/lean-toolchainother25 B
crates/qedgen/lean_support/test_lemmas.leanother1.2 KB
crates/qedgen/src/api.rsscript32.3 KB
crates/qedgen/src/consolidate.rsscript6.9 KB
crates/qedgen/src/main.rsscript4.1 KB
crates/qedgen/src/project.rsscript3.1 KB
crates/qedgen/src/spec.rsscript19.3 KB
crates/qedgen/src/validate.rsscript5.6 KB
crates/qedgen/templates/.gitignoreother29 B
crates/qedgen/templates/Main.leanother154 B
crates/qedgen/templates/PROMPT_TEMPLATE.mdmarkdown3.2 KB
crates/qedgen/templates/README.lean.mdmarkdown1.6 KB
crates/qedgen/templates/lakefile.leanother293 B
crates/qedgen/templates/lean-toolchainother25 B
docs/CNAMEother10 B
docs/index.htmlother10.9 KB
docs/llms-full.txtmarkdown8.7 KB
docs/llms.txtmarkdown2.1 KB
docs/logo-dark.svgother648 B
docs/logo-light.svgother648 B
docs/style.cssother7.6 KB
example/escrow/.gitignoreother67 B
example/escrow/.prettierignoreother61 B
example/escrow/Anchor.tomlconfig353 B
example/escrow/Cargo.lockmanifest72.8 KB
example/escrow/Cargo.tomlmanifest215 B
example/escrow/migrations/deploy.tsscript428 B
example/escrow/package.jsonmanifest528 B
example/escrow/programs/escrow/Cargo.tomlmanifest376 B
example/escrow/programs/escrow/Xargo.tomlconfig62 B
example/escrow/programs/escrow/src/lib.rsscript6.7 KB
example/escrow/tests/escrow.tsscript8.6 KB
example/escrow/tsconfig.jsonconfig205 B
example/percolator/.cargo/config.tomlconfig33 B
example/percolator/.gitignoreother320 B
example/percolator/Cargo.lockmanifest8.5 KB
example/percolator/Cargo.tomlmanifest639 B
example/percolator/LICENSEother11.1 KB
example/percolator/README.mdmarkdown4.9 KB
example/percolator/examples/offsets.rsscript1.3 KB
example/percolator/scripts/audit-proof-strength.mdmarkdown6.4 KB
example/percolator/scripts/proof-strength-audit-results.mdmarkdown89.2 KB
example/percolator/scripts/run_kani_full_audit.shexecutablescript1.2 KB
example/percolator/spec.mdmarkdown108.4 KB
example/percolator/src/i128.rsscript20.4 KB
example/percolator/src/percolator.rsscript139.2 KB
example/percolator/src/wide_math.rsscript59.8 KB
example/percolator/tests/amm_tests.rsscript7.4 KB
example/percolator/tests/common/mod.rsscript4.7 KB
example/percolator/tests/fuzzing.proptest-regressionsother4.7 KB
example/percolator/tests/fuzzing.rsscript43.1 KB
example/percolator/tests/proofs_arithmetic.rsscript17.1 KB
example/percolator/tests/proofs_audit.rsscript35.0 KB
example/percolator/tests/proofs_instructions.rsscript64.8 KB
example/percolator/tests/proofs_invariants.rsscript21.0 KB
example/percolator/tests/proofs_lazy_ak.rsscript22.4 KB
example/percolator/tests/proofs_liveness.rsscript17.1 KB
example/percolator/tests/proofs_safety.rsscript104.2 KB
example/percolator/tests/proofs_v1131.rsscript25.4 KB
example/percolator/tests/unit_tests.rsscript93.8 KB
install.shexecutablescript4.9 KB
package.jsonmanifest1.1 KB

docs/index.html

View on GitHub
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>QEDGen — Mathematical proof for Solana programs</title>
  <meta name="description" content="One skill turns your coding agent into a theorem prover. Lean 4 proofs for your Solana programs — every proof compiles.">
  <meta property="og:title" content="QEDGen — Mathematical proof for Solana programs">
  <meta property="og:description" content="One skill turns your coding agent into a theorem prover. Lean 4 proofs for your Solana programs — every proof compiles.">
  <meta property="og:url" content="https://qedgen.dev/">
  <meta property="og:type" content="website">
  <meta property="og:image" content="https://qedgen.dev/og.png">
  <meta property="og:image:width" content="1200">
  <meta property="og:image:height" content="630">
  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:title" content="QEDGen — Mathematical proof for Solana programs">
  <meta name="twitter:description" content="One skill turns your coding agent into a theorem prover. Lean 4 proofs for your Solana programs — every proof compiles.">
  <meta name="twitter:image" content="https://qedgen.dev/og.png">
  <link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 42 42' fill='none'><rect x='4' y='4' width='34' height='34' rx='4' stroke='%2338bdf8' stroke-width='2.5'/><path d='M12 21L18 27L30 15' stroke='%2338bdf8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/><rect x='28' y='28' width='6' height='6' fill='%2338bdf8'/></svg>">
  <link rel="stylesheet" href="style.css">
</head>
<body>

<div class="hero-glow"></div>

<!-- Nav -->
<nav>
  <div class="container">
    <a class="logo-mark" href="#">
      <svg class="logo-svg" width="28" height="28" viewBox="0 0 42 42" fill="none" xmlns="http://www.w3.org/2000/svg">
        <rect x="4" y="4" width="34" height="34" rx="4" stroke="#38bdf8" stroke-width="2.5"/>
        <path d="M12 21L18 27L30 15" stroke="#38bdf8" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/>
        <rect x="28" y="28" width="6" height="6" fill="#38bdf8"/>
      </svg>
      <span class="logo-text">QEDGen</span>
    </a>
    <div class="links">
      <a href="https://github.com/qedgen/solana-skills/blob/main/SKILL.md" target="_blank" rel="noopener noreferrer">Docs</a>
      <a href="https://github.com/qedgen/solana-skills" target="_blank" rel="noopener noreferrer">GitHub</a>
    </div>
  </div>
</nav>

<!-- Hero — single screen, split layout -->
<header class="hero">
  <div class="container hero-grid">
    <div class="hero-copy">
      <div class="badge"><span class="badge-dot"></span> Proofs, not promises</div>
      <h1>Prove your Solana code is correct.<br><span class="accent-text">Mathematically. &#x220E;</span></h1>
      <p class="subtitle">One skill. Your agent reads your code, writes Lean 4 proofs, and iterates until they compile.</p>
      <pre class="install-cmd"><code>npx skills add qedgen/solana-skills</code></pre>
      <p class="compat">Works with Cursor, Windsurf, Claude Code, GitHub Copilot, and any agent supporting <a href="https://agentskills.io" target="_blank" rel="noopener noreferrer">Agent Skills</a>.</p>
      <div class="cta">
        <a href="https://github.com/qedgen/solana-skills" class="btn btn-primary" target="_blank" rel="noopener noreferrer"><svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8z"/></svg> Star on GitHub</a>
        <a href="https://github.com/qedgen/solana-skills/blob/main/SKILL.md" class="btn btn-secondary" target="_blank" rel="noopener noreferrer">View the Skill</a>
      </div>
    </div>
    <div class="hero-diagram">
      <svg viewBox="0 0 360 420" xmlns="http://www.w3.org/2000/svg">
        <defs>
          <marker id="arr" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse">
            <path d="M 0 0 L 10 5 L 0 10 z" fill="#e2e8f0"/>
          </marker>
          <marker id="arr-a" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse">
            <path d="M 0 0 L 10 5 L 0 10 z" fill="#38bdf8"/>
          </marker>
          <marker id="arr-m" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse">
            <path d="M 0 0 L 10 5 L 0 10 z" fill="#6b7280"/>
          </marker>
        </defs>

        <!-- Box 1: Your Code -->
        <rect x="95" y="8" width="170" height="66" rx="8" fill="rgba(255,255,255,0.03)" stroke="rgba(255,255,255,0.08)"/>
        <svg x="173" y="16" width="14" height="14" viewBox="0 0 16 16">
          <path fill="#71717a" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8z"/>
        </svg>
        <text x="180" y="46" text-anchor="middle" fill="#e2e8f0" font-size="12" font-weight="600" font-family="'Geist Mono',monospace">Your Code</text>
        <text x="180" y="60" text-anchor="middle" fill="#6b7280" font-size="10" font-family="'Geist Mono',monospace">Rust / Anchor</text>

        <!-- Arrow 1 → 2 -->
        <line x1="180" y1="74" x2="180" y2="94" stroke="#e2e8f0" stroke-width="1" marker-end="url(#arr)"/>

        <!-- Box 2: Your Agent -->
        <rect x="95" y="96" width="170" height="66" rx="8" fill="rgba(255,255,255,0.03)" stroke="rgba(255,255,255,0.08)"/>
        <svg x="173" y="104" width="14" height="14" viewBox="0 0 16 16">
          <path fill="#71717a" d="M8 1 L9.5 6.5 L15 8 L9.5 9.5 L8 15 L6.5 9.5 L1 8 L6.5 6.5 Z"/>
        </svg>
        <text x="180" y="134" text-anchor="middle" fill="#e2e8f0" font-size="12" font-weight="600" font-family="'Geist Mono',monospace">Your Agent</text>
        <text x="180" y="149" text-anchor="middle" fill="#52525b" font-size="7.5" font-family="'Geist Mono',monospace" letter-spacing="0.5">Claude &#xb7; Cursor &#xb7; Copilot</text>

        <!-- Arrow 2 → 3 -->
        <line x1="180" y1="162" x2="180" y2="182" stroke="#e2e8f0" stroke-width="1" marker-end="url(#arr)"/>

        <!-- Box 3: SPEC.md -->
        <rect x="95" y="184" width="170" height="66" rx="8" fill="rgba(255,255,255,0.03)" stroke="rgba(255,255,255,0.08)"/>
        <svg x="173" y="192" width="14" height="14" viewBox="0 0 16 16">
          <path fill="none" stroke="#71717a" stroke-width="1.3" stroke-linejoin="round" d="M4 1 h5 l4 4 v10 h-9 z"/>
          <path fill="none" stroke="#71717a" stroke-width="1.3" d="M9 1 v4 h4"/>
        </svg>
        <text x="180" y="222" text-anchor="middle" fill="#e2e8f0" font-size="12" font-weight="600" font-family="'Geist Mono',monospace">SPEC.md</text>
        <text x="180" y="236" text-anchor="middle" fill="#6b7280" font-size="10" font-family="'Geist Mono',monospace">goals &amp; properties</text>

        <!-- Arrow 3 → 4 -->
        <line x1="180" y1="250" x2="180" y2="270" stroke="#e2e8f0" stroke-width="1" marker-end="url(#arr)"/>

        <!-- Box 4: Lean 4 Proofs -->
        <rect x="95" y="272" width="170" height="66" rx="8" fill="rgba(255,255,255,0.03)" stroke="rgba(56,189,248,0.25)"/>
        <text x="180" y="292" text-anchor="middle" fill="#38bdf8" font-size="16" font-weight="600" font-family="Georgia,serif" font-style="italic">&#x03BB;</text>
        <text x="180" y="310" text-anchor="middle" fill="#e2e8f0" font-size="12" font-weight="600" font-family="'Geist Mono',monospace">Lean 4 Proofs</text>
        <text x="180" y="324" text-anchor="middle" fill="#6b7280" font-size="10" font-family="'Geist Mono',monospace">lake build</text>

        <!-- Arrow 4 → ∎ -->
        <line x1="180" y1="338" x2="180" y2="366" stroke="#38bdf8" stroke-width="1.5" marker-end="url(#arr-a)"/>

        <!-- QED tombstone -->
        <rect x="155" y="368" width="50" height="42" rx="8" fill="#38bdf8"/>
        <text x="180" y="395" text-anchor="middle" fill="#09090b" font-size="18" font-weight="800">&#x220E;</text>

        <!-- Leanstral -->
        <rect x="5" y="283" width="74" height="44" rx="6" fill="rgba(255,255,255,0.03)" stroke="rgba(255,255,255,0.08)" stroke-dasharray="4 3"/>
        <text x="42" y="300" text-anchor="middle" fill="#6b7280" font-size="9" font-family="'Geist Mono',monospace">Leanstral</text>
        <text x="42" y="314" text-anchor="middle" fill="#6b7280" font-size="8" font-family="'Geist Mono',monospace">theorem prover</text>

        <!-- Leanstral arrow -->
        <line x1="95" y1="305" x2="81" y2="305" stroke="#6b7280" stroke-width="1" stroke-dasharray="4 3" marker-end="url(#arr-m)"/>

        <!-- Iterate loop -->
        <path d="M 265 305 Q 300 305 300 217 Q 300 129 265 129" fill="none" stroke="#6b7280" stroke-width="1" stroke-dasharray="4 3" marker-end="url(#arr-m)"/>
        <text x="305" y="220" text-anchor="start" fill="#6b7280" font-size="9" font-family="'Geist Mono',monospace">iterate</text>
      </svg>
    </div>
  </div>
</header>

<!-- Footer -->
<footer>
  <div class="watermark">Q.E.D.</div>
  <div class="container">
    <div class="footer-left">
      <svg width="20" height="20" viewBox="0 0 42 42" fill="none" xmlns="http://www.w3.org/2000/svg">
        <rect x="4" y="4" width="34" height="34" rx="4" stroke="#38bdf8" stroke-opacity="0.5" stroke-width="2.5"/>
        <path d="M12 21L18 27L30 15" stroke="#38bdf8" stroke-opacity="0.5" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/>
        <rect x="28" y="28" width="6" height="6" fill="#38bdf8" fill-opacity="0.5"/>
      </svg>
      <span class="footer-name">QEDGen</span>
      <span class="footer-copy">MIT License</span>
    </div>
    <div class="footer-links">
      <a href="https://github.com/qedgen/solana-skills" target="_blank" rel="noopener noreferrer">GitHub</a>
      <a href="https://github.com/qedgen/solana-skills/blob/main/SKILL.md" target="_blank" rel="noopener noreferrer">SKILL.md</a>
      <a href="https://github.com/qedgen/solana-skills/issues" target="_blank" rel="noopener noreferrer">Issues</a>
    </div>
  </div>
</footer>

</body>
</html>
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: 472kUpdated Claude CodeCodexVerifiedInstall
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: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
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 availableStars: 322kUpdated Claude CodeCodexVerifiedInstall