x402agent/SolanaOS / skills/solana-formal-verification
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.
example/percolator/examples/offsets.rs
View on GitHubuse std::mem::{size_of, offset_of};
fn main() {
use percolator::RiskEngine;
println!("sizeof RiskEngine = {}", size_of::<RiskEngine>());
println!("c_tot: {}", offset_of!(RiskEngine, c_tot));
println!("pnl_pos_tot: {}", offset_of!(RiskEngine, pnl_pos_tot));
println!("pnl_matured_pos_tot: {}", offset_of!(RiskEngine, pnl_matured_pos_tot));
println!("adl_mult_long: {}", offset_of!(RiskEngine, adl_mult_long));
println!("adl_mult_short: {}", offset_of!(RiskEngine, adl_mult_short));
println!("adl_epoch_long: {}", offset_of!(RiskEngine, adl_epoch_long));
println!("adl_epoch_short: {}", offset_of!(RiskEngine, adl_epoch_short));
println!("side_mode_long: {}", offset_of!(RiskEngine, side_mode_long));
println!("insurance_floor: {}", offset_of!(RiskEngine, insurance_floor));
println!("num_used_accounts: {}", offset_of!(RiskEngine, num_used_accounts));
println!("accounts: {}", offset_of!(RiskEngine, accounts));
use percolator::Account;
println!("sizeof Account = {}", size_of::<Account>());
println!("capital: {}", offset_of!(Account, capital));
println!("pnl: {}", offset_of!(Account, pnl));
println!("position_basis_q: {}", offset_of!(Account, position_basis_q));
println!("adl_a_basis: {}", offset_of!(Account, adl_a_basis));
println!("adl_epoch_snap: {}", offset_of!(Account, adl_epoch_snap));
}
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 |