@@ -5,7 +5,7 @@ Authors: Oliver Nash
55-/
66import algebra.lie.free
77import algebra.lie.quotient
8- import data.matrix.basic
8+ import data.matrix.notation
99
1010/-!
1111# Lie algebras from Cartan matrices
@@ -182,12 +182,12 @@ The corresponding Dynkin diagram is:
182182o --- o --- o --- o --- o
183183```
184184-/
185- def E₆ : matrix (fin 6 ) (fin 6 ) ℤ := ![ ![ 2 , 0 , -1 , 0 , 0 , 0 ],
186- ![ 0 , 2 , 0 , -1 , 0 , 0 ],
187- ![ -1 , 0 , 2 , -1 , 0 , 0 ],
188- ![ 0 , -1 , -1 , 2 , -1 , 0 ],
189- ![ 0 , 0 , 0 , -1 , 2 , -1 ],
190- ![ 0 , 0 , 0 , 0 , -1 , 2 ] ]
185+ def E₆ : matrix (fin 6 ) (fin 6 ) ℤ := !![ 2 , 0 , -1 , 0 , 0 , 0 ;
186+ 0 , 2 , 0 , -1 , 0 , 0 ;
187+ -1 , 0 , 2 , -1 , 0 , 0 ;
188+ 0 , -1 , -1 , 2 , -1 , 0 ;
189+ 0 , 0 , 0 , -1 , 2 , -1 ;
190+ 0 , 0 , 0 , 0 , -1 , 2 ]
191191
192192/-- The Cartan matrix of type e₇. See [ bourbaki1968 ] plate VI, page 281.
193193
@@ -198,13 +198,13 @@ The corresponding Dynkin diagram is:
198198o --- o --- o --- o --- o --- o
199199```
200200-/
201- def E₇ : matrix (fin 7 ) (fin 7 ) ℤ := ![ ![ 2 , 0 , -1 , 0 , 0 , 0 , 0 ],
202- ![ 0 , 2 , 0 , -1 , 0 , 0 , 0 ],
203- ![ -1 , 0 , 2 , -1 , 0 , 0 , 0 ],
204- ![ 0 , -1 , -1 , 2 , -1 , 0 , 0 ],
205- ![ 0 , 0 , 0 , -1 , 2 , -1 , 0 ],
206- ![ 0 , 0 , 0 , 0 , -1 , 2 , -1 ],
207- ![ 0 , 0 , 0 , 0 , 0 , -1 , 2 ] ]
201+ def E₇ : matrix (fin 7 ) (fin 7 ) ℤ := !![ 2 , 0 , -1 , 0 , 0 , 0 , 0 ;
202+ 0 , 2 , 0 , -1 , 0 , 0 , 0 ;
203+ -1 , 0 , 2 , -1 , 0 , 0 , 0 ;
204+ 0 , -1 , -1 , 2 , -1 , 0 , 0 ;
205+ 0 , 0 , 0 , -1 , 2 , -1 , 0 ;
206+ 0 , 0 , 0 , 0 , -1 , 2 , -1 ;
207+ 0 , 0 , 0 , 0 , 0 , -1 , 2 ]
208208
209209/-- The Cartan matrix of type e₈. See [ bourbaki1968 ] plate VII, page 285.
210210
@@ -215,14 +215,14 @@ The corresponding Dynkin diagram is:
215215o --- o --- o --- o --- o --- o --- o
216216```
217217-/
218- def E₈ : matrix (fin 8 ) (fin 8 ) ℤ := ![ ![ 2 , 0 , -1 , 0 , 0 , 0 , 0 , 0 ],
219- ![ 0 , 2 , 0 , -1 , 0 , 0 , 0 , 0 ],
220- ![ -1 , 0 , 2 , -1 , 0 , 0 , 0 , 0 ],
221- ![ 0 , -1 , -1 , 2 , -1 , 0 , 0 , 0 ],
222- ![ 0 , 0 , 0 , -1 , 2 , -1 , 0 , 0 ],
223- ![ 0 , 0 , 0 , 0 , -1 , 2 , -1 , 0 ],
224- ![ 0 , 0 , 0 , 0 , 0 , -1 , 2 , -1 ],
225- ![ 0 , 0 , 0 , 0 , 0 , 0 , -1 , 2 ] ]
218+ def E₈ : matrix (fin 8 ) (fin 8 ) ℤ := !![ 2 , 0 , -1 , 0 , 0 , 0 , 0 , 0 ;
219+ 0 , 2 , 0 , -1 , 0 , 0 , 0 , 0 ;
220+ -1 , 0 , 2 , -1 , 0 , 0 , 0 , 0 ;
221+ 0 , -1 , -1 , 2 , -1 , 0 , 0 , 0 ;
222+ 0 , 0 , 0 , -1 , 2 , -1 , 0 , 0 ;
223+ 0 , 0 , 0 , 0 , -1 , 2 , -1 , 0 ;
224+ 0 , 0 , 0 , 0 , 0 , -1 , 2 , -1 ;
225+ 0 , 0 , 0 , 0 , 0 , 0 , -1 , 2 ]
226226
227227/-- The Cartan matrix of type f₄. See [ bourbaki1968 ] plate VIII, page 288.
228228
@@ -231,10 +231,10 @@ The corresponding Dynkin diagram is:
231231o --- o =>= o --- o
232232```
233233-/
234- def F₄ : matrix (fin 4 ) (fin 4 ) ℤ := ![ ![ 2 , -1 , 0 , 0 ],
235- ![ -1 , 2 , -2 , 0 ],
236- ![ 0 , -1 , 2 , -1 ],
237- ![ 0 , 0 , -1 , 2 ] ]
234+ def F₄ : matrix (fin 4 ) (fin 4 ) ℤ := !![ 2 , -1 , 0 , 0 ;
235+ -1 , 2 , -2 , 0 ;
236+ 0 , -1 , 2 , -1 ;
237+ 0 , 0 , -1 , 2 ]
238238
239239/-- The Cartan matrix of type g₂. See [ bourbaki1968 ] plate IX, page 290.
240240
@@ -244,8 +244,8 @@ o ≡>≡ o
244244```
245245Actually we are using the transpose of Bourbaki's matrix. This is to make this matrix consistent
246246with `cartan_matrix.F₄`, in the sense that all non-zero values below the diagonal are -1. -/
247- def G₂ : matrix (fin 2 ) (fin 2 ) ℤ := ![ ![ 2 , -3 ],
248- ![ -1 , 2 ] ]
247+ def G₂ : matrix (fin 2 ) (fin 2 ) ℤ := !![ 2 , -3 ;
248+ -1 , 2 ]
249249
250250end cartan_matrix
251251
0 commit comments