What we built
An auction core: the higher bid wins and the winner pays the lower bid. Ties go to participant 0.
ML-VIC-001 / RESEARCH CASE / EDITION 1.0
Two bids. One winner.
A precise, checkable boundary.
How do you connect an auction’s rules to the code that computes its result? This case documents a saved check of one small auction core — and makes clear what that check does and does not cover.
Recorded verification
This is a recorded research verification result, not an independent security audit.
Illustrative outcome calculation in integer units, not ETH deposits. Ties go to participant 0, including 0 / 0. Winner pays min(b0, b1); loser pays zero. No funds move. Not a new proof run.
INTERACTIVE EXPLANATION, NOT PROOF EXECUTION
A computational core for a two-participant Vickrey auction. It determines the winner and payment, while the published verification record documents selected properties and their connection to a specific runtime.
An auction core: the higher bid wins and the winner pays the lower bid. Ties go to participant 0.
Selected auction properties and the connection from the structured implementation to exact runtime bytes, within the documented model and assumptions.
A complete auction application, asset custody, payment execution, or an independent security audit.
RESULTS AND SCOPE / AUCTION MODEL
The model uses nonnegative whole-number bids. There is no reserve price; even a zero / zero tie allocates the item to participant 0.
Participant 0 wins; price = b1.
b0 < b1Participant 1 wins; price = b0.
The core computes the winner and payment amount. It does not hold assets, transfer funds, or enforce delivery of the auctioned item.
Source: Record / mechanism + formal_scope ↗
Economic properties depend on the stated model assumptions, including enforcement of the modeled payment and item transfer. They do not establish collusion resistance or the security of a complete auction protocol.
The model assumes two participants with nonnegative private values and utility equal to value received minus payment. Strategic results consider one participant changing their own bid.
RESULTS AND SCOPE / RECORDED PROPERTIES
C01–C06 concern the economic model; later groups concern encoding and execution. These are recorded proof results for the pinned source, not a percentage of protocol security.
There is always one winner. A tie goes to participant 0.
EXACT SCOPE / mathematical_model
Exactly one participant wins; participant 0 wins when bids are equal.
Vickrey.allocation_uniqueVickrey.allocation_rulesVickrey.tie_to_zeroSource status: PROOF_PRESENT_IN_PINNED_REPOSITORY; RECORDED_CHECK_PASSED
The local excerpt preserves the original declaration; imported dependencies are not all included.
Source: Vickrey/Economics.lean ↗Status: Proof reported in pinned repository; saved check passed
The higher bidder wins and pays the lower bid, not its own bid.
EXACT SCOPE / mathematical_model
The winner pays min(b0, b1); the loser pays 0.
Vickrey.payment_correctSource status: PROOF_PRESENT_IN_PINNED_REPOSITORY; RECORDED_CHECK_PASSED
The local excerpt preserves the original declaration; imported dependencies are not all included.
Source: Vickrey/Economics.lean ↗Status: Proof reported in pinned repository; saved check passed
Under the stated economic assumptions, changing your own bid away from your value cannot improve your utility over truthful bidding.
EXACT SCOPE / mathematical_model
A truthful bid weakly dominates any unilateral deviation for every rival bid.
Vickrey.dsicVickrey.dsic_boundedSource status: PROOF_PRESENT_IN_PINNED_REPOSITORY; RECORDED_CHECK_PASSED
The local excerpt preserves the original declaration; imported dependencies are not all included.
Source: Vickrey/Economics.lean ↗Status: Proof reported in pinned repository; saved check passed
With truthful bidding and the stated assumptions, the modeled value received is at least the modeled payment.
EXACT SCOPE / mathematical_model
A participant bidding truthfully has nonnegative utility.
Vickrey.individual_rationalitySource status: PROOF_PRESENT_IN_PINNED_REPOSITORY; RECORDED_CHECK_PASSED
The local excerpt preserves the original declaration; imported dependencies are not all included.
Source: Vickrey/Economics.lean ↗Status: Proof reported in pinned repository; saved check passed
When bids reflect values, the item goes to a participant who values it most.
EXACT SCOPE / mathematical_model
Under truthful bidding, welfare equals max(v0, v1).
Vickrey.welfare_maximizationVickrey.welfare_dominates_allocationSource status: PROOF_PRESENT_IN_PINNED_REPOSITORY; RECORDED_CHECK_PASSED
The local excerpt preserves the original declaration; imported dependencies are not all included.
Source: Vickrey/Economics.lean ↗Status: Proof reported in pinned repository; saved check passed
The abstract payment accounting balances. The core does not actually move funds.
EXACT SCOPE / mathematical_model
Participant transfers plus seller revenue sum to zero; this is not a proof of ETH transfers.
Vickrey.accountingVickrey.utility_accountingSource status: PROOF_PRESENT_IN_PINNED_REPOSITORY; RECORDED_CHECK_PASSED
The local excerpt preserves the original declaration; imported dependencies are not all included.
Source: Vickrey/Economics.lean ↗Status: Proof reported in pinned repository; saved check passed
The input and output use fixed-size encodings, and accepted bids are unsigned values below 2^128.
EXACT SCOPE / abi
Two 32-byte words; bids and price stay in the bounded domain.
Vickrey.word_exactVickrey.word_orderVickrey.input_sizeVickrey.output_sizeVickrey.abi_word_roundtripVickrey.price_in_rangeSource status: PROOF_PRESENT_IN_PINNED_REPOSITORY; RECORDED_CHECK_PASSED
The local excerpt preserves the original declaration; imported dependencies are not all included.
Source: Vickrey/Abi.lean ↗Status: Proof reported in pinned repository; saved check passed
The selected structured program is linked to the auction model. The number 128 counts source-interpreter steps; it is not a gas budget.
EXACT SCOPE / structured_ast_and_yul
The selected structured AST is related to the model for every valid bid; source fuel = 128, not gas.
Vickrey.structured_ast_decodes_exactlyVickrey.settlement_refinementSource status: PROOF_PRESENT_IN_PINNED_REPOSITORY; RECORDED_CHECK_PASSED
The declaration source is not among the 15 supplied excerpts; its presence and successful check are reported by the pinned record.
Source: record.en.json / C08 ↗Status: Proof reported in pinned repository; saved check passed
The recorded proof connects the selected compiler pipeline to these exact runtime bytes, rather than assuming compilation is correct.
EXACT SCOPE / compiler
The real compiler endpoint premises, stack checks and runtime-byte equality are discharged.
Vickrey.compiler_certificateSource status: PROOF_PRESENT_IN_PINNED_REPOSITORY; RECORDED_CHECK_PASSED
The local excerpt preserves the original declaration; imported dependencies are not all included.
Source: Vickrey/SettlementProof.lean ↗Status: Proof reported in pinned repository; saved check passed
From the specified fresh ABI frame, the exact code returns the right encoded result or runs out of gas. No gas limit guaranteeing success is proven.
EXACT SCOPE / evm_fresh_frame
With sufficient logical interpreter fuel: the exact encoded auction outcome or actual OutOfGas.
Vickrey.settlement_runtimeSource status: PROOF_PRESENT_IN_PINNED_REPOSITORY; RECORDED_CHECK_PASSED
The local excerpt preserves the original declaration; imported dependencies are not all included.
Source: Vickrey/SettlementProof.lean ↗Status: Proof reported in pinned repository; saved check passed
Bad inputs are rejected in the specified Yul model. This is not an all-cases guarantee for the gas-charged EVM runtime.
EXACT SCOPE / yul_only
An empty revert at the Yul layer when calldata.size < 2^256; not a universal rejection theorem for the EVM runtime.
Vickrey.admissible_invalid_input_refinementSource status: PROOF_PRESENT_IN_PINNED_REPOSITORY; RECORDED_CHECK_PASSED
The local excerpt preserves the original declaration; imported dependencies are not all included.
Source: Vickrey/Admissibility.lean ↗Status: Proof reported in pinned repository; saved check passed
TRUTHFUL BIDDING IS WEAK DOMINANCE UNDER THE MODEL ASSUMPTIONS. IT DOES NOT GUARANTEE EVERY STRATEGY IS SAFE OR EVERY DEVIATION IS STRICTLY WORSE.
VERIFICATION SCOPE
The recorded proof connects the chosen structured program to its exact runtime and execution in a specified fresh frame.
Define who wins and what the winner pays. Under the stated assumptions, the record also covers truthful bidding and utility.
Source: EvmRefinementGoal.lean + SettlementProof.lean ↗
For valid inputs, from the specified fresh ABI frame and with sufficient logical interpreter fuel, the recorded theorem permits either the correct encoded auction result or OutOfGas. It does not establish a gas limit that guarantees successful execution.
Logical interpreter fuel and EVM gas are different quantities.
Source: Vickrey.settlement_runtime : ExactRuntimeGasfulSettlement ↗
Fin (2^128); model bids: Nat; utility: Int.msg.value = 0.freshGasfulEntry, not an arbitrary transaction or deployed contract state.Source: Record / formal_scope.excluded ↗Status: Explicitly outside the recorded guarantee
The rejection result is at the Yul layer, with the assumption calldata.size < 2^256. It is not a universal invalid-input theorem for the gas-charged EVM runtime. The lengths 64 and 2^256 + 64 would otherwise alias as CALLDATASIZE.
def ExactRuntimeGasfulSettlement : Prop :=
∀ (a b : Bid) (base : SourceState) (gas : EvmYul.UInt256),
∃ openFuel : Nat,
let run := EvmYul.EVM.X (max openFuel (gas.toNat + 6))
(EvmYul.EVM.D_J (Bytecode.ofList Generated.runtimeBytes)
(EvmYul.UInt256.ofNat 0))
(freshGasfulEntry Generated.runtimeBytes base a b gas)
(∃ final, run = .ok (.success final (encodeOutcome (auction a.val b.val)))) ∨
GasfulBridge.OutOfGasFrameSemantics runThe concrete compiler premises are discharged by Vickrey.compiler_certificate, rather than left as assumptions about compilation. The proof starts from an existing structured Generated.astJson value; Yul text-to-solc transformation and serialized JSON parsing are outside this boundary.
Trust remains in the Lean kernel and toolchain, the adequacy of the selected upstream EVM/Yul semantics, the economic assumptions and the declared frame. Reported allowlisted axioms: propext, Classical.choice, Quot.sound.
Three unchanged legacy parser/unbounded-calldata diagnostic targets remain UNPROVEN; they do not replace the selected verification gate. A separate experimental commit/reveal/escrow wrapper is also formally UNPROVEN; its executable tests do not extend this core proof.
TECHNICAL EVIDENCE
The historical verification, the publication checks, and a fresh replay are different kinds of evidence.
VERIFIED · 22 stages · all exit codes 0. The original README also reports 293.1 seconds, 264 public theorems including helper lemmas, 1113 valid and 14 invalid Anvil cases. These are historical counts, not fresh website tests or 264 independent security guarantees.
Source: verification.json; counts in original README ↗Status: Historical verification record
This is a recorded research verification result, not an independent security audit.
d02ea87ce713d589c72328b89902a92d11275480Branch: codex/verify-refinement. The original repository was private at retrieval; its main branch contains an older prototype.
TREEda1a82df7e4612091f2996fea7ffc1d8b33cb01b5ad69bf3ad48717a7beb1a083d2229241934fd01370062bbcdf89e15ff29349eTEXT .HEX FILE SHA-256 / A DIFFERENT BYTE SEQUENCE2607c4326db51db03c769e25e905db191b582a9a17ae731411dfe0b2b28fdef5Source: versions.json; dependency revisions in lake-manifest.json ↗Status: Pinned historical environment
Hashes identify byte sequences against an unsigned record; they are not an auditor’s signature, keccak256, or a deployed contract address. The raw end_to_end_verified flag refers only to the record’s declared structured-AST-to-runtime scope. No hosted CI run is established.
Source: Source index + original record ↗Status: Unsigned artifact identifiers
These notes describe publication and file-integrity checks. They do not establish a fresh proof replay or an independent audit.
The supplied packaging record reports 15 matching original Git blob IDs and 12 included inputs matching a historical list of 115 SHA-256 values. The 157 binary runtime bytes match their recorded hash.
Source: packaging-checks.json ↗Status: Package integrity only
PACKAGE_INTEGRITY_OK was reproduced for 29 package files, 15 originals, 12/115 historical hashes and 157 runtime bytes. Of 8 utility tests attempted during that adaptation, 6 passed; Windows symlink privilege and CRLF/LF conversion prevented two from passing. Lean, Anvil and remote full-source export were not rerun.
Source: English report / adaptation checks ↗Status: Documented local packaging checks
REPRODUCING THE VERIFICATION
The public evidence can be inspected now. Checking archive consistency and replaying the proofs require different materials and establish different things.
Read the recorded results, source excerpts, assumptions, and runtime identifiers. These materials are publicly available.
Source: ML-VIC-001 publication record ↗Status: Published evidence, not a fresh run
Follow the supplied procedure to check the original evidence package against its recorded inventory. This checks file consistency, not the Lean proofs.
python3 tools/verify_package.pyRun this inside the original unpacked archive, not the adapted website directory. Expected: PACKAGE_INTEGRITY_OK. The procedure checks the unsigned package inventory.
Source: Reproduction guide / package checks ↗Status: Integrity-check procedure
Obtain authorized access to the complete pinned source and required dependencies, then follow the reproduction instructions. A fresh successful replay is not claimed by this publication.
python3 tools/build_source_bundle.py --repo-root /path/to/vickrey-lean-solidusThe export tool requires authorized private-repository access. It checks all 115 historical input hashes and 15 originals, excludes uncommitted changes and credentials, and does not run Lean. Remote export was not tested for this publication.
cd vickrey-source-d02ea87
cp -R results ../recorded-results-d02ea87
cp versions.json ../recorded-versions-d02ea87.json
cp lake-manifest.json ../recorded-lake-manifest-d02ea87.json
make bootstrap
make verifyKeep the historical evidence untouched; save new logs and versions separately. Bootstrap may update lock or metadata files. A new run does not expand the recorded verification boundary, and OutOfGas remains an allowed outcome.
The source recommends macOS arm64, Python 3.12+, Git, Xcode CLI and elan. Cold builds need a network connection, several GB of disk and about 5 GB RAM for one certificate according to the README. Bootstrap supplies macOS arm64 tools; Linux requires solc/forge/cast/anvil in PATH and is not confirmed by this publication.
Recorded tool versions: Lean 4.28.0, solc 0.8.26+commit.8a97fa7a, Foundry 1.5.1. Dependency Git revisions are in versions.json and lake-manifest.json.
The package contains 15 excerpts, not every Lean import or compiler certificate. Third-party dependencies and executables are absent. Do not run make verify inside source-excerpts.
Source: English reproduction guide, translated from REPRODUCE.md ↗Status: Procedure supplied; no fresh successful replay claimed
DOWNLOADS
English explanations sit alongside unchanged original evidence. No source license or right to public redistribution is inferred.
All 11 claim groups, exact theorem, assumptions, evidence and limitations in English.
Commands, pinned tools, private-source access and the limits of a fresh run.
English translation. Numbers, IDs, theorem names, hashes and source statuses preserved.
15 unchanged source excerpts and package tools. Includes original Russian commentary. Not a full offline proof bundle.
The exact binary identified by the record. Not a deployable protocol or asset-custody system.
Original file paths, Git blob IDs, SHA-256 values and private-repository provenance.
SOURCE: ML-VIC-001 EDITION 1.0 / STATUS: EDITORIAL TRANSLATION + ORIGINAL EVIDENCE. ORIGINAL MANIFESTS APPLY TO THE ORIGINAL PACKAGE, NOT THE ADAPTED WEBSITE’S EXTRA ENGLISH FILES.
FROM A BOUNDED CORE TO YOUR MECHANISM
This case demonstrates a focused research boundary. Your mechanism needs its own requirements, assumptions and verification goals.
Discuss your project