Workspace initialization and outer auction loop (auctionCoreProg) #
Initializes the owner, price, and reversed unassigned-person stack arrays for an n × n
auction instance and runs boundedWhile over bidStepProg from Auction.BidStep until the
stack empties, matching the pure auction loop state in ≤ bids * (4 * n + 6) + 3 * n memory
operations.
The initialization step (initStep), its realize certificate, and the boundedWhile induction
remain private to this module.
Main definitions #
Cslib.Algorithms.WordRAM.Auction.auctionCoreProg,Cslib.Algorithms.WordRAM.Auction.AuctionCoreSafe: core auction program and safety predicate.
Main results #
Cslib.Algorithms.WordRAM.Auction.auctionCoreProg_realizes,Cslib.Algorithms.WordRAM.Auction.auctionCoreProg_spec: Word-RAM realization and full-loop specification ofauctionCoreProg.
Workspace state initialization #
Bounded-while outer loop #
Initialize workspace state (owner, price, stack) and run the Gauss–Seidel auction loop
until all persons are assigned.
Word-width safety predicate for auctionCoreProg.
realize certificate for auctionCoreProg.
Full specification of auctionCoreProg: initializes arrays and reaches the exact final state
auction (fun e => (C e : ℤ)) ws.eps within bids * (4 * n + 6) + 3 * n memory steps.