MindFormal
v1.0.0
One Mind
MindFormal
.
Tools
.
A595Trade
.
OfferBudget
Search
return to top
source
Imports
Init
Mathlib.Tactic
Mathlib.Data.Fintype.Card
Mathlib.Data.Fintype.Prod
Mathlib.Data.Fintype.Sigma
Imported by
MindFormal
.
A595Trade
.
OfferIndex
MindFormal
.
A595Trade
.
offer_index_card
MindFormal
.
A595Trade
.
decision_budget
MindFormal
.
A595Trade
.
sweep_offer_budget
MindFormal
.
A595Trade
.
common_offer_budget
source
@[reducible, inline]
abbrev
MindFormal
.
A595Trade
.
OfferIndex
(
N
G
T
:
ℕ
)
:
Type
A public enumeration slot: sweep, seller, distinct buyer, grid price.
Equations
MindFormal.A595Trade.OfferIndex
N
G
T
=
(
Fin
T
×
(
s
:
Fin
N
) ×
{
b
:
Fin
N
//
b
≠
s
}
×
Fin
G
)
Instances For
source
theorem
MindFormal
.
A595Trade
.
offer_index_card
(
N
G
T
:
ℕ
)
:
Fintype.card
(
OfferIndex
N
G
T
)
=
N
*
(
N
-
1
)
*
G
*
T
source
theorem
MindFormal
.
A595Trade
.
decision_budget
{
N
G
T
D
:
ℕ
}
(
slot
:
Fin
D
→
OfferIndex
N
G
T
×
Fin
2
)
(
hi
:
Function.Injective
slot
)
:
D
≤
2
*
(
N
*
(
N
-
1
)
*
G
*
T
)
source
theorem
MindFormal
.
A595Trade
.
sweep_offer_budget
(
N
K
G
:
ℕ
)
:
Fintype.card
(
OfferIndex
N
G
(
K
*
(
N
-
K
)))
=
N
*
(
N
-
1
)
*
G
*
K
*
(
N
-
K
)
source
theorem
MindFormal
.
A595Trade
.
common_offer_budget
(
N
Q
:
ℕ
)
:
Fintype.card
(
OfferIndex
N
1
Q
)
=
N
*
(
N
-
1
)
*
Q