Skip to content

Commit 16bbe72

Browse files
committed
Fix syntax problems in the documentation
1 parent c0823f6 commit 16bbe72

File tree

1 file changed

+35
-35
lines changed

1 file changed

+35
-35
lines changed

GameTheory/GameTheory.m2

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -877,13 +877,13 @@ doc ///
877877
Example
878878
G1 = graph ({}, Singletons => {1,2,3});
879879
G2 = graph ({{1,2}}, Singletons => {3});
880-
I1 = spohnCI(PR,X,G1)
881-
I2 = spohnCI(PR,X,G2)
880+
I1 = spohnCI(PR,X,G1);
881+
I2 = spohnCI(PR,X,G2);
882882
-- One can also add the linear constraint coming from the probabilities.
883883
-- For generic games, the ideal J1 models totally mixed Nash equilibria.
884884
J = probabilitySumIdeal(PR)
885-
J1 = I1 + J
886-
J2 = I1 + J
885+
J1 = I1 + J;
886+
J2 = I1 + J;
887887
References
888888
This package is based on the following papers:
889889

@@ -900,11 +900,11 @@ doc ///
900900
Journal of Algebra, Volume 666, 2025.
901901

902902
Acknowledgement
903-
We thank Ben Hollering<@HREF"https://sites.google.com/view/benhollering"@> and Mahrud Sayrafi<@HREF"https://www-users.cse.umn.edu/~mahrud/"@> for their support
904-
during the Macaulay2 in the Sciences Workshop<@HREF"https://www.mis.mpg.de/de/events/series/macaulay2-in-the-sciences"@> where the development of this package began.
903+
We thank @HREF("https://sites.google.com/view/benhollering","Ben Hollering")@ and @HREF("https://www-users.cse.umn.edu/~mahrud/","Mahrud Sayrafi")@ for their support
904+
during the @HREF("https://www.mis.mpg.de/de/events/series/macaulay2-in-the-sciences","Macaulay2 in the Sciences Workshop")@ where the development of this package began.
905905
Contributors
906906
The following people have generously contributed their time and effort to this project:
907-
Luca Sodomaco<@HREF"https://sites.google.com/view/luca-sodomaco/home"@>.
907+
Luca Sodomaco @HREF("https://sites.google.com/view/luca-sodomaco/home","Luca Sodomaco")@.
908908
Caveat
909909
GameTheory uses Polyhedra.m2 for the methods of correlated equilibria and GraphicalModels.m2 for the methods of conditional independence equilibria.
910910
Throughout the package, we followed Macaulay2's convention of zero-based indexing. This can be seen e.g., in the methods of @TO nashEquilibriumRing@
@@ -968,7 +968,7 @@ doc ///
968968
Description
969969

970970
Text
971-
The type `Tensor` is a mutable hash table with additional metadata to represent multi-dimensional arrays.
971+
The type Tensor is a mutable hash table with additional metadata to represent multi-dimensional arrays.
972972
Each tensor has an associated format (list of dimensions), a coefficient ring, and a set of index keys.
973973

974974
Example
@@ -1129,7 +1129,7 @@ doc ///
11291129
A list of entries of the tensor along the specified dimension.
11301130
Description
11311131
Text
1132-
This method varies the index at the position given by the length of `Lstart`, iterating from 0 to $d_i - 1$, where $d_i$ is the corresponding index of the format.
1132+
This method varies the index at the position given by the length of Lstart, iterating from 0 to $d_i - 1$, where $d_i$ is the corresponding index of the format.
11331133

11341134
The slice is formed by fixing all other indices and varying only the one at the slicing position.
11351135

@@ -1434,12 +1434,12 @@ doc ///
14341434
For an $n$-player game where the $i$-th player has $d_i$ pure strategies, the maximum number of isolated totally mixed Nash equilibria is given
14351435
by the degree $c(\mathbf{d})$ of the top Chern class of the following vector bundle:
14361436

1437-
\[ E \coloneqq \bigoplus_{i=0}^{n-1} \ko_{\mathbb{P}^{\mathbf{d}}}({\mathbf{1}}_i)^{\oplus(d_i-1)},\]
1437+
\[E := \bigoplus_{i=0}^{n-1} \mathcal{O}_{\mathbb{P}^{\mathbf{d}}}(\mathbf{1}_i)^{\oplus (d_i - 1)},\]
14381438

14391439
where $\mathbb{P}^{\mathbf{d}}=\prod_{i=0}^{n-1}\mathbb{P}^{d_i-1}$ and $\mathbf{1}_i=(1,\ldots,1,0,1,\ldots,1)$, where the entry $0$ is in the $i$-th component.
14401440
In particular, this function computes the integer $c(\mathbf{d})$ as the coefficient of the monomial
14411441
$\prod_{i=0}^{n-1} h_i^{d_i-1}$ in $\prod_{i=0}^{n-1} \hat{h}_i^{d_i-1}$ with $\hat{h}_i\coloneqq \sum_{j\neq i}h_j$,
1442-
where $h_i$ denotes the pullback of the hyperplane class on the $i$-th factor $\mathbb{P}^{d_i-1}$ of $\PP^\bd$ via the projection map.
1442+
where $h_i$ denotes the pullback of the hyperplane class on the $i$-th factor $\mathbb{P}^{d_i-1}$ of $\mathbb{P}^{\mathbf{d}}$ via the projection map.
14431443

14441444
Example
14451445
d = {2,2,2};
@@ -1685,7 +1685,7 @@ doc ///
16851685
Di = {2,2,3};
16861686
PR = probabilityRing(Di);
16871687
X = randomGame(Di);
1688-
I = spohnIdeal(PR,X)
1688+
I = spohnIdeal(PR,X);
16891689
SeeAlso
16901690
probabilityRing
16911691
randomGame
@@ -1895,8 +1895,8 @@ doc ///
18951895

18961896
A single conditional independence statement is a list consisting of three disjoint
18971897
lists of indices for random variables, e.g. $\{ \{1,2\},\{4\}, \{3\} \}$
1898-
which represents the conditional independence statement ``$(X_1, X_2)$
1899-
is conditionally independent of $X_4$ given $X_3$''.
1898+
which represents the conditional independence statement "$(X_1, X_2)$
1899+
is conditionally independent of $X_4$ given $X_3$".
19001900
Given an undirected graph $G$, the conditional independence statements are produced via
19011901
the globalMarkov function from the GraphicalModels package. A global Markov statement
19021902
for $G$ is a list $\{A, B, C\}$ of three disjoint lists of vertices of $G$, where the
@@ -1908,7 +1908,7 @@ doc ///
19081908
maps it to an ideal of PR via the mapToProbabilityRing function.
19091909

19101910
Example
1911-
FF = ZZ/32003
1911+
FF = ZZ/32003;
19121912
d = {2,3,2};
19131913
PR = probabilityRing (d, CoefficientRing => FF);
19141914
G = graph ({}, Singletons => {1,2,3});
@@ -1990,24 +1990,24 @@ doc ///
19901990
an undirected graph.
19911991
A single conditional independence statement is a list consisting of three disjoint
19921992
lists of indices for random variables, e.g. $\{ \{1,2\},\{4\}, \{3\} \}$
1993-
which represents the conditional independence statement ``$(X_1, X_2)$
1994-
is conditionally independent of $X_4$ given $X_3$''. In the context of game theory, the variable
1993+
which represents the conditional independence statement "$(X_1, X_2)$
1994+
is conditionally independent of $X_4$ given $X_3$". In the context of game theory, the variable
19951995
$X_i$ represents the strategy of player $i$.
19961996

19971997
Given an undirected graph $G$, the conditional independence statements are produced via
19981998
the globalMarkov function from the GraphicalModels package. A global Markov statement
19991999
for $G$ is a list $\{A, B, C\}$ of three disjoint lists of vertices of $G$, where the
20002000
subset $C$ separates the subset $A$ from the subset $B$ in the graph $G$.
20012001
Example
2002-
FF = ZZ/32003
2002+
FF = ZZ/32003;
20032003
d = {2,2,2};
20042004
X = randomGame(d, CoefficientRing => FF);
20052005
PR = probabilityRing(d, CoefficientRing => FF);
20062006
V = spohnIdeal(PR, X);
20072007
G1 = graph ({}, Singletons => {1,2,3});
20082008
G2 = graph ({{1,2}}, Singletons => {3});
2009-
I1 = intersectWithCImodel(V, G1)
2010-
I2 = intersectWithCImodel(V, G2)
2009+
I1 = intersectWithCImodel(V, G1);
2010+
I2 = intersectWithCImodel(V, G2);
20112011

20122012
Text
20132013
Here is an example where the vertices of the graph need to be relabeled.
@@ -2020,8 +2020,8 @@ doc ///
20202020
V = spohnIdeal(PR, X);
20212021
G1 = graph {{John,Matthew},{Matthew,Sarah}};
20222022
G2 = graph {{a,b},{b,c},{c,a}};
2023-
I1 = intersectWithCImodel(V, G1, {John,Matthew,Sarah})
2024-
I2 = intersectWithCImodel(V, G2, {a,b,c})
2023+
I1 = intersectWithCImodel(V, G1, {John,Matthew,Sarah});
2024+
I2 = intersectWithCImodel(V, G2, {a,b,c});
20252025

20262026
Text
20272027
Here is an example where the conditional independence relations are given with a List.
@@ -2034,8 +2034,8 @@ doc ///
20342034
V = spohnIdeal(PR, X);
20352035
G = graph ({{1,2}},Singletons => {3});
20362036
L = {{{1,2},{3},{}}};
2037-
I1 = intersectWithCImodel(V, G)
2038-
I2 = intersectWithCImodel(V, L)
2037+
I1 = intersectWithCImodel(V, G);
2038+
I2 = intersectWithCImodel(V, L);
20392039
I1 == I2
20402040

20412041
Text
@@ -2103,48 +2103,48 @@ doc ///
21032103
an undirected graph.
21042104
A single conditional independence statement is a list consisting of three disjoint
21052105
lists of indices for players, e.g. $\{ \{1,2\},\{4\}, \{3\} \}$
2106-
which represents the conditional independence statement ``The strategies of Players 1 and 2
2107-
are conditionally independent of Player 4's strategy given Player 3's strategy''.
2106+
which represents the conditional independence statement "The strategies of Players 1 and 2
2107+
are conditionally independent of Player 4's strategy given Player 3's strategy".
21082108

21092109
Given an undirected graph $G$, the conditional independence statements are produced via
21102110
the globalMarkov function from the GraphicalModels package. A global Markov statement
21112111
for $G$ is a list $\{A, B, C\}$ of three disjoint lists of vertices of $G$, where the
21122112
subset $C$ separates the subset $A$ from the subset $B$ in the graph $G$.
21132113
Example
2114-
FF = ZZ/32003
2114+
FF = ZZ/32003;
21152115
d = {2,2,2};
21162116
X = randomGame(d, CoefficientRing => FF);
21172117
PR = probabilityRing(d, CoefficientRing => FF);
21182118
G1 = graph ({}, Singletons => {1,2,3});
21192119
G2 = graph ({{1,2}}, Singletons => {3});
2120-
I1 = spohnCI(PR,X,G1)
2121-
I2 = spohnCI(PR,X,G2)
2120+
I1 = spohnCI(PR,X,G1);
2121+
I2 = spohnCI(PR,X,G2);
21222122

21232123
Text
21242124
Here is an example where the vertices of the graph need to be relabeled.
21252125

21262126
Example
2127-
FF = ZZ/32003
2127+
FF = ZZ/32003;
21282128
d = {2,3,2};
21292129
X = randomGame(d, CoefficientRing => FF);
21302130
PR = probabilityRing(d, CoefficientRing => FF);
21312131
G1 = graph {{John,Matthew},{Matthew,Sarah}};
21322132
G2 = graph {{a,b},{b,c},{c,a}};
2133-
I1 = spohnCI(PR,X,G1, {John,Matthew,Sarah})
2134-
I2 = spohnCI(PR,X,G2, {a,b,c})
2133+
I1 = spohnCI(PR,X,G1, {John,Matthew,Sarah});
2134+
I2 = spohnCI(PR,X,G2, {a,b,c});
21352135

21362136
Text
21372137
Here is an example where the conditional independence relations are given with a List.
21382138

21392139
Example
2140-
FF = ZZ/32003
2140+
FF = ZZ/32003;
21412141
d = {2,2,2};
21422142
X = randomGame(d, CoefficientRing => FF);
21432143
PR = probabilityRing(d, CoefficientRing => FF);
21442144
G = graph ({{1,2}},Singletons => {3});
21452145
L = {{{1,2},{3},{}}};
2146-
I1 = spohnCI(PR,X,G)
2147-
I2 = spohnCI(PR,X,L)
2146+
I1 = spohnCI(PR,X,G);
2147+
I2 = spohnCI(PR,X,L);
21482148
I1 == I2
21492149

21502150
Text

0 commit comments

Comments
 (0)