Skip to content

Repository files navigation

Morpho Midnight × Verity

Proves the Certora rule updatePositionViewProperties on Midnight.updatePositionView, imported directly from the Solidity of midnight@96d31343.

  • Import.lean: the Solidity import
  • Spec.lean: the rule updatePositionViewProperties as a definition, in the CVL vocabulary, without the CVL ghosts (not needed for a single call)
  • Proof.lean: the theorem that the rule holds (supporting lemmas in Lemmas/)
  • check/: what is trusted and how the import is checked
git submodule update --init --recursive
./check/check.sh

Cursor Cloud environment

.cursor/environment.json uses .cursor/Dockerfile to install Lean 4.31.0. The install hook prepares checksum-pinned solc 0.8.34, the committed Lake dependencies, the imported model/specification, and lean-lsp-mcp 0.31.0. Install and startup readiness checks reject Cursor's fallback/default image.

Feature-branch draft Builds can be tested but cannot be promoted directly. A supported saved-snapshot route has now passed a no-ref Build and fresh startup validation; activation requires Save in the Cursor Environment panel. This infrastructure PR is optional for durable default-branch configuration. Proof experiments use cursor/proof-sandbox, which removes the old proofs; this infrastructure branch preserves them. See check/CURSOR_CLOUD_TEST.md for native Build evidence and activation status.

sh scripts/doctor.sh checks local readiness. sh scripts/lean-mcp.sh runs stdio Lean diagnostics. .cursor/mcp.json configures Cursor IDE; custom Cloud MCPs additionally require account/team enablement. The server provides compiler diagnostics and proof goals; shell verification remains available without MCP. Run .lake/lean-mcp/bin/python scripts/check-lean-mcp.py for the diagnostic/goal smoke test. Run the existing ./check/check.sh for full verification.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages