Network creation game
Lax899194.NetworkCreationGame · concepts/Lax899194/NetworkCreationGame.lean · lax-899194
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Definition
There are players, indexed by . A strategy of player is a set of other players: player purchases an edge to each member of . A strategy profile specifies one strategy for every player.
The resulting network is undirected. Distinct players and are adjacent when or . Either endpoint may purchase an edge, and both endpoints may purchase the same edge.
Concept map
Lean source view on GitHub
| 1 | import Mathlib.Combinatorics.SimpleGraph.Basic |
| 2 | import Mathlib.Data.Set.Card |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: Network creation game |
| 7 | type: definition |
| 8 | --- |
| 9 | There are players, indexed by . A strategy of player |
| 10 | is a set of other players: player purchases an edge to each member |
| 11 | of . A strategy profile specifies one strategy for every player. |
| 12 | |
| 13 | The resulting network is undirected. Distinct players and are |
| 14 | adjacent when or . Either endpoint may purchase an edge, |
| 15 | and both endpoints may purchase the same edge. |
| 16 | |
| 17 | # Formalization notes |
| 18 | |
| 19 | Strategies are subsets of `Fin n`, with self-purchases excluded by their type. |
| 20 | Every such subset is finite. Edge ownership remains part of the profile even |
| 21 | though the resulting graph is a simple graph. |
| 22 | -/ |
| 23 | |
| 24 | namespace Lax899194.NetworkCreationGame |
| 25 | |
| 26 | /-- The other players to which player `i` purchases edges. -/ |
| 27 | def Strategy (n : ℕ) (i : Fin n) := { S : Set (Fin n) // i ∉ S } |
| 28 | |
| 29 | /-- A choice of strategy for every player. -/ |
| 30 | abbrev Profile (n : ℕ) := (i : Fin n) → Strategy n i |
| 31 | |
| 32 | /-- The undirected network formed by all purchased edges. -/ |
| 33 | def graph {n : ℕ} (s : Profile n) : SimpleGraph (Fin n) where |
| 34 | Adj i j := j ∈ (s i).val ∨ i ∈ (s j).val |
| 35 | symm := ⟨fun _ _ h => h.elim Or.inr Or.inl⟩ |
| 36 | loopless := ⟨fun i h => h.elim (s i).property (s i).property⟩ |
| 37 | |
| 38 | end Lax899194.NetworkCreationGame |
| 39 |
Formalization notes
Strategies are subsets of , with self-purchases excluded by their type. Every such subset is finite. Edge ownership remains part of the profile even though the resulting graph is a simple graph.
Builds on
none
Used by
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments