KnapsackAuction.binaryToAllocation
defimported Lean
The 0/1 allocation vector associated with a binary allocation profile.
Statement
set_option autoImplicit true in set_option relaxedAutoImplicit true in open scoped BigOperators in variable {I : Type*} {U : Type*} [Field U] [LinearOrder U] [IsStrictOrderedRing U] in variable [Fintype I] [DecidableEq I] in def KnapsackAuction.binaryToAllocation (x : BinaryAllocation I) : I → U
- Defined in
- EconCSLib, `KnapsackAuction.binaryToAllocation`
- Lean proof
- By xbei (from the file's git history), from github.com/gametheoryinlean/EconCSLib at
1a88f809b538(Copyright (c) 2026 EconCSLib contributors. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.30.0.KnapsackAuction.binaryToAllocation← KnapsackAuction.binaryToAllocation (EconCSLib/MechanismDesign/Auction/Knapsack.lean:132): verbatim
- Verified
- 08 Oct 2026
- Axioms
- none listed
- Built on 1
- KnapsackAuction.BinaryAllocationA discrete knapsack allocation profile: each agent is either selected or not.
- Used by 9
- KnapsackAuction.binaryToAllocation_fractionalFeasible_of_binaryRespectsCapacityKnapsackAuction.binaryToAllocation_fractionalFeasible_of_binaryRespectsCapacity
- KnapsackAuction.fractionalSocialWelfare_realBidOfNat_binaryToAllocationKnapsackAuction.fractionalSocialWelfare_realBidOfNat_binaryToAllocation
- KnapsackAuction.binaryLoadThe weighted load induced by a binary allocation profile.
- KnapsackAuction.binarySocialWelfare_updateKnapsackAuction.binarySocialWelfare_update
- KnapsackAuction.welfareMaximizingAllocationRule_isMonotoneKnapsackAuction.welfareMaximizingAllocationRule_isMonotone
- KnapsackAuction.welfareMaximizingAllocationRuleThe welfare-maximizing allocation rule for the knapsack auction, obtained by choosing a feasible binary allocation with maximal social…
- KnapsackAuction.fractionalGreedyWelfare_ge_zeroOneWelfare_of_optimalIf the ratio-sorted greedy fractional allocation is optimal for the fractional relaxation, then its welfare dominates the welfare of the…
- KnapsackAuction.binarySocialWelfareSocial welfare of a binary allocation profile at valuation profile
b. - KnapsackAuction.zeroBinaryRespectsCapacityKnapsackAuction.zeroBinaryRespectsCapacity
Lean source view module on GitHub
set_option autoImplicit true in set_option relaxedAutoImplicit true in open scoped BigOperators in variable {I : Type*} {U : Type*} [Field U] [LinearOrder U] [IsStrictOrderedRing U] in variable [Fintype I] [DecidableEq I] in /-- The `0/1` allocation vector associated with a binary allocation profile. -/ def KnapsackAuction.binaryToAllocation (x : BinaryAllocation I) : I → U := fun i => if x i then 1 else 0