INSIDE THE LAB

ML-VIC-001 / RESEARCH CASE / EDITION 1.0

VICKREY
AUCTION.

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.

OUTCOME MODEL / NO RESERVE
COMPARE / PICK HIGHER BID
WINNERParticipant 0
PRICE5units
Model rules & boundaries

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

What this case demonstrates

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.

What we built

An auction core: the higher bid wins and the winner pays the lower bid. Ties go to participant 0.

What the record covers

Selected auction properties and the connection from the structured implementation to exact runtime bytes, within the documented model and assumptions.

What it does not provide

A complete auction application, asset custody, payment execution, or an independent security audit.

RESULTS AND SCOPE / AUCTION MODEL

Two bids.
One item. No reserve.

The model uses nonnegative whole-number bids. There is no reserve price; even a zero / zero tie allocates the item to participant 0.

b0 ≥ b1

Participant 0 wins; price = b1.

b0 < b1

Participant 1 wins; price = b0.

Source: Model.lean / auction ↗

The computational core

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 assumptions

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.

Source: Economics.lean / economic model ↗

RESULTS AND SCOPE / RECORDED PROPERTIES

What the saved
check reports.

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.

C01

One winner, including ties

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_zero

Source 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

C02

The correct second price

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_correct

Source 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

C03

Truthful bidding (DSIC)

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_bounded

Source 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

C04

Nonnegative utility when truthful

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_rationality

Source 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

C05

Allocation to the higher value

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_allocation

Source 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

C06

Balanced model accounting

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_accounting

Source 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

C07

Encoding and bounded values

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_range

Source 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

C08

Structured AST and Yul execution

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_refinement

Source 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

C09

Compilation to the exact bytes

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_certificate

Source 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

C10

Execution of the exact runtime

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_runtime

Source 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

C11

Invalid-input rejection in Yul

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_refinement

Source 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

Follow the chain.
Keep the boundary.

The recorded proof connects the chosen structured program to its exact runtime and execution in a specified fresh frame.

RECORDED SCOPE / C01–C06 · Economics.lean

Define who wins and what the winner pays. Under the stated assumptions, the record also covers truthful bidding and utility.

Correct encoded resultOROutOfGas

Source: EvmRefinementGoal.lean + SettlementProof.lean ↗

Runtime guarantee

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 ↗

The selected execution frame

  • Runtime bids: Fin (2^128); model bids: Nat; utility: Int.
  • Exactly 64 input bytes: two big-endian uint256 words, each value below 2^128. No function selector; msg.value = 0.
  • Exactly 64 output bytes: winner index and payment. Compiler target: Cancun.
  • The starting state is freshGasfulEntry, not an arbitrary transaction or deployed contract state.

Source: Abi.lean + record / runtime ↗

What this result does not establish

  • Yul text to solc transformation
  • serialized JSON parsing
  • contract deployment
  • transaction-level reachability and complete Ethereum lifecycle
  • a sufficient EVM gas bound for success
  • on-chain ETH transfers
  • escrow and commit-reveal protocol incentives
  • collusion and budget constraints

Source: Record / formal_scope.excluded ↗Status: Explicitly outside the recorded guarantee

Invalid inputs have a different boundary.

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.

Source: Vickrey.admissible_invalid_input_refinement ↗

Exact Lean endpoint and trust assumptions Unchanged mathematical definition +
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 run

The 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.

Source: Original README + EvmRefinementGoal.lean ↗

TECHNICAL EVIDENCE

A result tied
to one commit.

The historical verification, the publication checks, and a fresh replay are different kinds of evidence.

Recorded local verification

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.

PINNED COMMITd02ea87ce713d589c72328b89902a92d11275480

Branch: codex/verify-refinement. The original repository was private at retrieval; its main branch contains an older prototype.

TREEda1a82df7e4612091f2996fea7ffc1d8b33cb01b
RUNTIME SHA-256 / 157 BINARY BYTES5ad69bf3ad48717a7beb1a083d2229241934fd01370062bbcdf89e15ff29349eTEXT .HEX FILE SHA-256 / A DIFFERENT BYTE SEQUENCE2607c4326db51db03c769e25e905db191b582a9a17ae731411dfe0b2b28fdef5
Lean 4.28.0solc 0.8.26+commit.8a97fa7aFoundry 1.5.1Recorded host macOS 15.3.1 arm64

Source: 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.

Publication and packaging notes
20 OCT 2026 / PUBLICATION

Package identity checked

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

DOCUMENTED WEBSITE ADAPTATION

Publication checks and platform limitations

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

Inspect. Check.
Then replay with access.

The public evidence can be inspected now. Checking archive consistency and replaying the proofs require different materials and establish different things.

FILE CONSISTENCY ONLY

Check package integrity

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.py

Run 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

PRIVATE SOURCE ACCESS REQUIRED

Replay the full verification

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.

Obtain the full pinned source

python3 tools/build_source_bundle.py --repo-root /path/to/vickrey-lean-solidus

The 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.

Run a fresh check in the full source tree

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 verify

Keep 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.

Environment and dependencies

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

Read the record.
Inspect the evidence.

English explanations sit alongside unchanged original evidence. No source license or right to public redistribution is inferred.

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

Start with the rules
you need to make real.

This case demonstrates a focused research boundary. Your mechanism needs its own requirements, assumptions and verification goals.

Discuss your project