Loops HouseNo Proof, No Upgrade (Emet)

NEAR HACKATHON
Links
Team
1 member- MIOwner
Mike Murunov
Overview
AI agents will write contract patches. Today the holder of the upgrade key decides which patch a contract installs.
Emet: no proof, no upgrade. A Lean 4 proof checker (nanoda) runs inside a NEAR contract. A second contract, a gate with no access key, holds the only right to upgrade a third. The gate uses that right only after the checker accepts a proof for the patch. Anyone can supply the proof, an AI agent included. A bounty board pays the first valid proof or counterexample.
Emet is live on NEAR testnet. The test subject is one line of NEAR Intents. In November 2025 one pull request added a comment, "refunds are capped by deposited amounts", and an expression that did not cap them. The team's own regression test for the incident of 29 September to 1 October 2026 fails on that expression: 80 transfers leave 80 credits with no token behind them. Here the comment is a Lean statement, and the checker refutes that code. The gate refused to upgrade without a proof. It refused a binary that differed in one bit. It installed the team's own fix after the checker accepted the proof (137 TGas). Emet found nothing new: the NEAR Intents team found and fixed the issue.
An open-weight model on NEAR AI Cloud wrote a counterexample to a wrong patch, and the testnet board paid for it. The same checker accepted two theorems of NEAR Proof Arena's Lean specification of nearcore, as they are.
NEAR fits this design. A proof check is one function call. The gate is the only holder of the contract's own Upgrader role. Every contract deletes its key in the transaction that deploys it. A question to the checker is a free view call, with no wallet.
Try it: open https://emet.formalized.si/ and press "Check this patch on NEAR". Or run ./verify.sh --live: 36 read-only checks against testnet in about a minute.
Scope: the proof is about one extracted expression, not the whole contract. We trust or test the extractor, the compiler, the checker and the gate code.