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.
lean_solana/QEDGen/Solana/State.lean
View on GitHubimport QEDGen.Solana.Account
namespace QEDGen.Solana.State
inductive Lifecycle
| open
| closed
deriving Repr, DecidableEq
def closes (before after : Lifecycle) : Prop :=
before = Lifecycle.open /\ after = Lifecycle.closed
-- Lifecycle is irreversible: once closed, always closed
theorem closed_irreversible (p_lifecycle : Lifecycle) :
p_lifecycle = Lifecycle.closed → p_lifecycle ≠ Lifecycle.open := by
intro h
rw [h]
intro contra
cases contra
-- Closes implies the result is closed
theorem closes_is_closed (p_before p_after : Lifecycle) :
closes p_before p_after → p_after = Lifecycle.closed := by
intro h
exact h.2
-- Closes implies the original was open
theorem closes_was_open (p_before p_after : Lifecycle) :
closes p_before p_after → p_before = Lifecycle.open := by
intro h
exact h.1
-- If already closed, cannot close again (closes requires open → closed)
theorem closed_cannot_close (p_after : Lifecycle) :
¬ closes Lifecycle.closed p_after := by
intro h
have := closes_was_open Lifecycle.closed p_after h
cases this
-- Helper: decidable equality for lifecycle
theorem lifecycle_eq_or_ne (p_l1 p_l2 : Lifecycle) :
p_l1 = p_l2 ∨ p_l1 ≠ p_l2 := by
cases p_l1 <;> cases p_l2 <;> simp
end QEDGen.Solana.State
namespace QEDGen.Solana
abbrev Lifecycle := QEDGen.Solana.State.Lifecycle
abbrev closes := QEDGen.Solana.State.closes
abbrev closed_irreversible := QEDGen.Solana.State.closed_irreversible
abbrev closes_is_closed := QEDGen.Solana.State.closes_is_closed
abbrev closes_was_open := QEDGen.Solana.State.closes_was_open
abbrev closed_cannot_close := QEDGen.Solana.State.closed_cannot_close
abbrev lifecycle_eq_or_ne := QEDGen.Solana.State.lifecycle_eq_or_ne
namespace Lifecycle
abbrev «open» : QEDGen.Solana.Lifecycle := QEDGen.Solana.State.Lifecycle.open
abbrev closed : QEDGen.Solana.Lifecycle := QEDGen.Solana.State.Lifecycle.closed
end Lifecycle
end QEDGen.Solana
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 |