Skip to content

Add Nexus Mutual RAMM spot price specs and ratchet proofs#19

Open
fricoben wants to merge 3 commits intomainfrom
fricoben/nexus-mutual-specs
Open

Add Nexus Mutual RAMM spot price specs and ratchet proofs#19
fricoben wants to merge 3 commits intomainfrom
fricoben/nexus-mutual-specs

Conversation

@fricoben
Copy link
Copy Markdown

Summary

  • Adds a new RammSpotPrice contract modeling Nexus Mutual's RAMM ratchet mechanism with buy/sell reserve dynamics
  • Adds three new proof tasks: BuyGeBookValue, SellLeBookValue, and SellLeBuy ensuring spot prices stay within the expected price band
  • Extends the existing RammPriceBand contract with trust assumptions documentation and expands proofs (~830 new lines) covering ratchet convergence and boundary invariants
  • Updates generated task files and lakefile.lean to wire in the new modules

Test plan

  • Verify lake build completes without errors
  • Confirm all new proof tasks type-check successfully

🤖 Generated with Claude Code

fricoben and others added 3 commits April 10, 2026 12:00
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The task manifests expect declarations like `syncPriceBand_sets_book_value`
to exist in Proofs.lean, but the refactor renamed them to `_main` suffixed
versions. Add `abbrev` aliases for the original names. Restore editable
task files to placeholder state (`exact ?_`) and revert the lakefile glob
that would fail to compile them.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant