Solana OS RWA & Tokenized Equities PoC

Model only. No live program for this PoC yet. Programs (devnet): Airdrop · p-token.

Sunrise-issued tokenized equities — issued by Backpack Securities, distributed via Sunrise — modeled in pure Lean 4 as Poc/Rwa.lean: the on-chain issuer fingerprint, the backing law for tokenized share claims, and a Backpack cross-venue quote gate, with the safety claims as kernel-checked theorems.

Layer A — the issuer fingerprint

A mint is Sunrise-issued iff it is a Token-2022 mint whose freeze authority, metadata update authority, permanent delegate, metadata pointer, pausable and confidential-transfer authorities are all the Sunrise issuer wallet 2cVYpagTt7ZGc3mmTXBa7fAznUtx5DUu6aCq8uVDaf4a and whose on-chain tokenMetadata name reads "<Name> - Backpack Securities". 93 mints passed every check in the fleet's 2026-11-24 on-chain re-scan.

isSunriseIssued — the fingerprint as an executable check over a MintRecord (Token-2022 flag, the six authorities, the two names). xStocks mints fail this fingerprint and are excluded — a different issuer's tokenized equity is not a Sunrise asset, however similar the ticker looks.

In the model, pubkeys are Nat ids per this repo's convention (the gate uses a fixed issuerId); the real wallet string is the one above.

Layer B — backing and lifecycle

An Equity is a tokenized share claim: 1 token = 1 underlying share claim, with custody (shares held) and supply (tokens outstanding) in micro-units. The one law of the layer is Backed: supply ≤ custody — never more claim outstanding than shares held.

depositCustody — underlying shares arrive; supply untouched. mintTokens — issue claims against custody: never beyond it, never while paused. redeem — burn claims and release shares: both sides drop together, so redemption can never change the backing headroom. split — a stock split scales custody and supply by the same factor.

transferOk — the holder-side gate: a transfer needs an unpaused equity, an unfrozen holding, and sufficient balance. The freeze authority in Layer A is what makes a frozen holding possible at all.

Layer C — Backpack cross-venue deviation + the quote gate

Two venues price the same asset: Solana spot and the Backpack perp mark (Backpack Exchange, api.backpack.exchange, public read-only market data; a Sunrise asset may have a perp symbol "<TICKER>.US_USDC_PERP"). deviationBps is the absolute gap in basis points between the two legs (prices in micro-USDC); flagged marks a gap over threshold.

acceptQuote — the composed gate a quote must pass before anyone acts on it: the mint passes the Sunrise fingerprint (Layer A), the equity is unpaused and backed (Layer B), and the cross-venue deviation is within threshold (Layer C). Acceptance is a gate, not an execution — nothing is ever executed off the back of it.

Theorems — status in Lean (Poc/Rwa.lean, 16 total)

issued_facts · issued_freezePROVED — a mint passing the fingerprint is Token-2022, all six of its authorities are the issuer, and its metadata name carries the Backpack Securities suffix.

not_issued_of_freeze_mismatch · not_issued_of_not_token2022PROVED — a freeze-authority mismatch, or a non-Token-2022 mint, can never be Sunrise-issued.

mint_preserves_backed · mint_supply_le_custodyPROVED — anything minting returns is backed: supply never exceeds custody.

redeem_preserves_backed · redeem_headroom_invariantPROVED — redemption preserves backing, and the headroom custody − supply is exactly unchanged by it.

deposit_preserves_backed · split_preserves_backedPROVED — deposits and same-factor splits preserve the backing law.

mint_paused_none · redeem_too_much_nonePROVED — a paused equity cannot mint; redeeming more than the outstanding supply always fails.

deviationBps_self · flagged_sound · not_flagged_of_withinPROVED — a price against itself deviates 0 bps; a flagged pair is really over threshold; a pair within threshold is never flagged.

acceptQuote_factsPROVED — an accepted quote means: Sunrise-issued mint, unpaused and backed equity, deviation not flagged.

Real custody holdings · live prices · legal title, dividends, votingNOT MODELED — custody is an accounting number in the model, prices in the demo are labeled SAMPLEs, and the token is a claim model, not a legal instrument.

Sunrise API execution · Backpack authenticated tradingNOT MODELED — the Sunrise adapter posture is "awaiting key" (base URL unverified, no key bound); Backpack is read-only market data only.

Registry — the five demo assets (real mints, on-chain verified 2026-11-24)

TickerNameMintBackpack perp
AAPLAppleAAPLEDt8RpzPgXyhvFzkMBofvFSQw9gpeMCoUdPdLnB8AAPL.US_USDC_PERP
NVDANvidiaNVDAVuiB7hwd3m5Wa1JuHNovPaPG6BH1QNztbKFxNjvNVDA.US_USDC_PERP
TSLATeslaTSLAqBbv4CNCnzWFeB7LmydAyEiNMJtve7DYKLpdK4STSLA.US_USDC_PERP
SPYState Street SPDR S&P 500 ETF TrustSPYBo66VJPFjh1pXMb9Le53kDYWTK1zzYVDeVRWtsbiSPY.US_USDC_PERP
QQQInvesco QQQ TrustQQQvDYxG7g11Rr4rnaJqDddmP9ocH74YhE3mDaG37R9QQQ.US_USDC_PERP

Five of the 93 fingerprint-verified Sunrise mints — the fleet's original verified five. The model carries them as data only; it never reads them from the chain.

Lean demo transcript (poc-rwa, 23/23 checks)

The binary's scenario: fingerprint pass for a Sunrise-shaped AAPL mint and exclusion of an xStocks-style one; then the AAPL lifecycle from empty — deposit 1,000,000 custody, mint 400,000, an over-custody mint rejected, redeem 150,000, a 2:1 split, a pause blocking minting — then the deviation check and quote gate on labeled SAMPLE prices.

== Poc.Rwa demo: Sunrise × Backpack tokenized equities == Sunrise-issued = Backpack Securities issuance, fingerprinted on-chain (Token-2022, six authorities = issuer, metadata name "<Name> - Backpack Securities"); xStocks mints fail it. registry: 5 assets (AAPL, NVDA, TSLA, SPY, QQQ) — real mints, verified 2026-11-24 fingerprint: Sunrise-shaped AAPL mint issued = true fingerprint: xStocks-style AAPL mint (freeze authority differs) issued = false deposit custody 1000000 -> custody 1000000, supply 0 mint 400000 -> custody 1000000, supply 400000 (backed: true) mint 700000 more (supply would exceed custody): true redeem 150000 -> custody 850000, supply 250000 (headroom 600000, unchanged) split 2:1 -> custody 1700000, supply 500000 (backed: true) pause the equity -> mint blocked: true SAMPLE prices: spot 250000000 vs mark 250000000 micro-USDC -> deviation 0 bps SAMPLE prices: spot 250000000 vs mark 240000000 micro-USDC -> deviation 416 bps, flagged at 100 bps: true quote gate: Sunrise + backed + unpaused + SAMPLE equal prices -> accept true quote gate: same but SAMPLE deviating prices -> accept false PASS fingerprint: Sunrise-shaped AAPL mint passes PASS fingerprint: xStocks-style mint (freeze authority differs) is excluded PASS fingerprint: non-Token-2022 mint is excluded PASS fingerprint: metadata name without the Backpack Securities suffix is excluded PASS registry: five real assets listed PASS lifecycle: deposit custody 1000000 lands, supply untouched PASS lifecycle: mint 400000 against custody succeeds, backed PASS lifecycle: mint beyond custody is rejected PASS lifecycle: mint while paused is rejected PASS lifecycle: redeem 150000 drops custody and supply together PASS lifecycle: redeem headroom is unchanged (600000 before and after) PASS lifecycle: redeem more than supply is rejected PASS lifecycle: split 2:1 doubles custody and supply, backed PASS lifecycle: split by zero is rejected PASS transfer: unpaused equity, unfrozen holder, within balance — ok PASS transfer: frozen holding is rejected PASS transfer: amount above balance is rejected PASS deviation: SAMPLE equal prices give 0 bps, not flagged at 100 PASS deviation: SAMPLE spot 250000000 vs mark 240000000 is 416 bps, flagged at 100 PASS quote gate: accepts Sunrise + backed + unpaused + within threshold (SAMPLE prices) PASS quote gate: rejects a flagged deviation (SAMPLE prices) PASS quote gate: rejects a non-Sunrise mint PASS quote gate: rejects a paused equity SUMMARY: 23/23 checks passed RESULT: PASS