Individual cost in the network creation game
Lax899194.PlayerCost · concepts/Lax899194/PlayerCost.lean · lax-899194
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Definition
For an edge price , player has cost . The distance is the length of a shortest path, and is infinite if there is no path. A player pays for every edge it purchases, including an edge also purchased by its other endpoint.
Concept map
Lean source view on GitHub
| 1 | import Lax899194.NetworkCreationGame |
| 2 | import Mathlib.Combinatorics.SimpleGraph.Metric |
| 3 | import Mathlib.Data.Real.ENatENNReal |
| 4 | import Mathlib.Algebra.BigOperators.Group.Finset.Defs |
| 5 | |
| 6 | /-! |
| 7 | --- |
| 8 | title: Individual cost in the network creation game |
| 9 | type: definition |
| 10 | --- |
| 11 | For an edge price , player has cost |
| 12 | . |
| 13 | The distance is the length of a shortest path, and is infinite if there is no |
| 14 | path. A player pays for every edge it purchases, including an edge also |
| 15 | purchased by its other endpoint. |
| 16 | |
| 17 | # Formalization notes |
| 18 | |
| 19 | Costs take values in the extended nonnegative reals so that disconnected |
| 20 | networks retain the infinite penalty. `SimpleGraph.edist` supplies the graph |
| 21 | distance, and `ENat.toENNReal` preserves both finite distances and infinity. |
| 22 | The edge price is a finite nonnegative real; the theorem assumes it is positive. |
| 23 | -/ |
| 24 | |
| 25 | namespace Lax899194.PlayerCost |
| 26 | |
| 27 | open Lax899194.NetworkCreationGame |
| 28 | open scoped BigOperators NNReal ENNReal |
| 29 | |
| 30 | /-- Edge expenditure plus the sum of distances from player `i` to all players. -/ |
| 31 | noncomputable def playerCost {n : ℕ} (α : ℝ≥0) (s : Profile n) |
| 32 | (i : Fin n) : ℝ≥0∞ := |
| 33 | (α : ℝ≥0∞) * (s i).val.ncard + |
| 34 | ∑ j : Fin n, ((graph s).edist i j).toENNReal |
| 35 | |
| 36 | end Lax899194.PlayerCost |
| 37 |
Formalization notes
Costs take values in the extended nonnegative reals so that disconnected networks retain the infinite penalty. supplies the graph distance, and preserves both finite distances and infinity. The edge price is a finite nonnegative real; the theorem assumes it is positive.
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments