Debian Codegraph @

texmf-dist/doc/latex/lie-hasse/lie-hasse.tex

raw
1 \documentclass{amsart}
2 \title[The Lie Hasse package]{The Lie Hasse package \\ Version 1.02}
3 %% My name:
4 \makeatletter
5 \DeclareRobustCommand{\scotsMc}{\scotsMcx{c}}
6 \DeclareRobustCommand{\scotsMC}{\scotsMcx{\textsc{c}}}
7 \DeclareRobustCommand{\scotsMcx}[1]{%
8 M%
9 \raisebox{\dimexpr\fontcharht\font`M-\height}{%
10 \check@mathfonts\fontsize{\sf@size}{0}\selectfont
11 \kern.3ex\underline{\kern-.3ex #1\kern-.3ex}\kern.3ex
12 }%
13 }
14 \expandafter\def\expandafter\@uclclist\expandafter{%
15 \@uclclist\scotsMc\scotsMC
16 }
17 \makeatother
18 \newcommand{\authorsname}{\texorpdfstring{Benjamin \scotsMc{}Kay}{Benjamin McKay}}
19 \author{\authorsname}
20 \address{School of Mathematical Sciences, University College Cork, Cork, Ireland}
21 \email{[email protected]}
22 \date{4 December 2024}
23 \usepackage[T1]{fontenc}
24 \usepackage[utf8]{inputenx}
25 \usepackage{etoolbox}
26 \usepackage{lmodern}
27 \RequirePackage[tt=lining]{cfr-lm}
28 \usepackage[kerning=true,tracking=true]{microtype}
29 \usepackage{amsmath}
30 \usepackage{amsfonts}
31 \usepackage{mathtools}
32 \usepackage{mathtext}
33 \usepackage[english]{babel}
34 \usepackage[pagebackref]{hyperref}
35 \hypersetup{
36 colorlinks = true, %Colours links instead of ugly boxes
37 urlcolor = black, %Colour for external hyperlinks
38 linkcolor = black, %Colour of internal links
39 citecolor = black %Colour of citations
40 }
41 \usepackage{lie-hasse}
42 \usetikzlibrary{positioning}
43 \usepackage{fancyvrb}\fvset{obeytabs,tabsize=2,fontsize=\small}
44 \usepackage[listings]{tcolorbox}
45 \tcbuselibrary{breakable}
46 \tcbuselibrary{skins}
47 \usepackage{varwidth}
48 \usepackage{xspace}
49 \newcommand{\TikZ}{Ti\textit{k}Z\xspace}
50 \definecolor{example-color}{gray}{1}
51 \definecolor{example-border-color}{gray}{.8}
52 \tcbset{
53 coltitle=black,
54 colback=example-color,
55 colframe=example-border-color,
56 enhanced,breakable,
57 pad at break*=1mm,
58 toprule=1.2mm,
59 bottomrule=1.2mm,
60 leftrule=1mm,
61 rightrule=1mm,
62 toprule at break=-1mm,
63 bottomrule at break=-1mm,
64 before upper={\widowpenalties=3 10000 10000 150}
65 }
66 \tikzset{
67 /Dynkin diagram,
68 edge length=1cm,
69 ordering=Carter,
70 vertical shift=0}
71 \tikzset{
72 background rectangle/.style={
73 shade,
74 top color=olive!20,
75 bottom color=white,
76 draw=olive!15,
77 very thick,
78 rounded corners},
79 }
80 \begin{document}
81 \maketitle
82 \begin{center}%
83 \begin{tikzpicture}[show background rectangle]
84 \hasse[
85 edge/.style={},
86 root radius=.02cm,
87 edge length=.5cm,
88 edge quotes/.style={opacity=0}%
89 ]E8%
90 \end{tikzpicture}%
91 \end{center}%
92 \begin{center}
93 \begin{varwidth}{\textwidth}
94 \tableofcontents
95 \end{varwidth}
96 \end{center}
97 \setlength{\arrayrulewidth}{1.5pt}
98
99 \section{Quick introduction}
100 This package draws the Hasse diagram of the poset of the positive simple roots of each complex simple Lie group, as drawn by Ringel \cite{Ringel:2013}.
101 \begin{tcolorbox}[title={Load the package}]
102 \begin{Verbatim}
103 \documentclass{article}
104 \usepackage{lie-hasse}
105 \begin{document}
106 The Hasse diagram of \(F_4\) is
107 \begin{center}
108 \hasse F4
109 \end{center}
110 \end{document}
111 \end{Verbatim}
112 \end{tcolorbox}
113 \par\noindent{}The Hasse diagram of \(F_4\) is
114 \begin{center}
115 \hasse[edge length=1cm]F4
116 \end{center}
117 Each edge is labelled with the simple root by which vertices differ.
118 \begin{tcblisting}{title={Inside a \TikZ statement}}
119 \(B_4\) has Dynkin diagram \tikz \dynkin{B}{4};, Hasse diagram
120 \begin{center}
121 \hasse[edge length=1cm]B4
122 \end{center}
123 \end{tcblisting}
124 \begin{tcblisting}{title={Inside a Dynkin diagram environment, diagrams fit together}}
125 The Hasse diagram of \(B_4\) is
126 \begin{dynkinDiagram}[vertical shift=0,edge length=1cm]{B}{4}
127 \hasse[edge length=1cm]B4
128 \end{dynkinDiagram}
129 \end{tcblisting}
130 We shut off the default vertical shift of the Dynkin diagram, so that it starts at the origin.
131 There is an option to \verb!\hasse! for this:
132 \begin{tcblisting}{title={Attaching the Dynkin diagram}}
133 The Hasse diagram of \(B_4\) is
134 \begin{center}
135 \hasse[attach Dynkin diagram=true]B4
136 \end{center}
137 \end{tcblisting}
138
139 \newpage
140
141 Unfortunately, attaching a Dynkin diagram looks terrible for \(D\) or \(E\) series, so a Dynkin diagram appears below.
142 \begin{tcblisting}{title={Attaching the Dynkin diagram}}
143 The Hasse diagram of \(D_5\) is
144 \begin{center}
145 \hasse[attach Dynkin diagram=true]D5
146 \end{center}
147 \end{tcblisting}
148 \begin{tcblisting}{title={Inside a \TikZ environment}}
149 \begin{tikzpicture}
150 \hasse A4
151 \draw (4;1) circle (5pt);
152 \draw[red] (2;3) circle (5pt);
153 \end{tikzpicture}
154 \end{tcblisting}
155 In this example, we see that the roots of the Hasse diagram are \TikZ{} nodes labelled \(g;i\) for grade \(g\) (i.e. \(g\) units up the page) and index \(i\) (i.e. \(i^{\text{th}}\) root of grade \(g\) drawn on the page, starting from the left).
156
157 \newpage
158 \section{Prettier}
159 The package includes a more elaborate \verb!\hasseDiagrams! command, taking a list of semicolon separated Dynkin diagram identfiers.
160 \begin{tcolorbox}[title={With some global options to make prettier diagrams}]
161 \begin{Verbatim}
162 \tikzset{
163 background rectangle/.style={
164 shade,
165 top color=olive!20,
166 bottom color=white,
167 draw=olive!15,
168 very thick,
169 rounded corners},
170 /Lie Hasse diagram,
171 edge length=1.2cm,
172 show name=true,
173 vertical shift=0}
174 \hasseDiagrams{A4;B4;C4}
175 \end{Verbatim}
176 \end{tcolorbox}
177 \begingroup
178 \tikzset{
179 background rectangle/.style={
180 shade,
181 top color=olive!20,
182 bottom color=white,
183 draw=olive!15,
184 very thick,
185 rounded corners},
186 /Lie Hasse diagram,
187 edge length=1.2cm,
188 show name=true,
189 vertical shift=0}
190 \hasseDiagrams{A4;B4;C4}
191 \endgroup
192 Global options:
193 \begin{verbatim}
194 \tikzset{/Lie Hasse,
195 edge/.style={ultra thick},
196 edge quotes/.style={
197 /Dynkin diagram/text style,
198 auto,
199 inner sep=2pt},
200 \end{verbatim}
201 allow to change the edges, and to change the way that labels are printed, and how close labels are to the edges.
202 To give even greater control, the user can define a command \verb!\edgeQuote! of one argument, which is applied to the label placed on every edge of the Hasse diagram.
203 The default is
204 \begin{verbatim}
205 \NewDocumentCommand\edgeQuote{m}{\contour{white}{#1}}
206 \end{verbatim}
207 which ensures that every label, which is black text by default, has a slight white outline to make it easier to read against a coloured background.
208
209
210 \section{Root order}
211 We order the roots as in the Dynkin diagram package: with orderings Adams, Bourbaki, Carter, Dynkin and Kac.
212 \emph{Warning:} the default is Carter, \emph{not} Bourbaki; the default in the Dynkin diagram package is Bourbaki.
213 We can use this like:
214 \begin{Verbatim}
215 \tikzset{/Lie Hasse diagram,show name=true,show ordering=true}
216 \hasseDiagrams{[ordering=Adams]E6;[ordering=Bourbaki]E6}
217 \hasseDiagrams{[ordering=Carter]E6;[ordering=Dynkin]E6}
218 \hasseDiagrams{[ordering=Kac]E6}
219 \end{Verbatim}
220
221 \begingroup
222 \tikzset{/Lie Hasse diagram,show name=true,show ordering=true}
223 \hasseDiagrams{[ordering=Adams]E6;[ordering=Bourbaki]E6}
224 \hasseDiagrams{[ordering=Carter]E6;[ordering=Dynkin]E6}
225 \hasseDiagrams{[ordering=Kac]E6}
226 \endgroup
227 The Lie Hasse package inherits the ordering of roots from the Dynkin diagrams package, so we can set it with
228 \begin{Verbatim}
229 \tikzset{/Dynkin diagram/ordering=Bourbaki}
230 \end{Verbatim}
231
232 \section{Graph height and width}
233 The \emph{height} of a Hasse diagram is the number of grades.
234 The \emph{width} of each grade is the number of vertices on that grade.
235 We recover these with
236 \begin{Verbatim}
237 \newcount\h
238 \rootSystemHeight[G][2]{\h}
239 \end{Verbatim}
240 to store the height of \(G_2\) in a counter called \verb!\h!, and
241 \begin{Verbatim}
242 \newcount\w
243 \rootSystemWidthAtGrade[G][2]{3}{\w}%
244 \end{Verbatim}
245 to store the width of \(G_2\) at grade \(3\) in a counter called \verb!\w!.
246
247 Once you use \verb!\dynkin G2! or \verb!\hasse G2! or the other commands, like
248 \begin{Verbatim}
249 \rootSystemHeight[G][2]{\h}
250 \end{Verbatim}
251 the system stores that your default root system is \(G_2\).
252 Subsequently calls to
253 \begin{Verbatim}
254 \rootSystemHeight{\h}
255 \end{Verbatim}
256 and
257 \begin{Verbatim}
258 \rootSystemWidthAtGrade{3}{\w}
259 \end{Verbatim}
260 do not need to specify the root system.
261
262 \begingroup
263 The \verb!show height! option:
264 \begin{Verbatim}
265 \tikzset{/Lie Hasse diagram,show name=true,show height=true}
266 \hasseDiagrams{G2}
267 \end{Verbatim}
268 \begin{center}
269 \tikzset{/Lie Hasse diagram,show name=true,show height=true}
270 \hasse G2
271 \end{center}
272
273 The \verb!show widths! option:
274 \begin{Verbatim}
275 \tikzset{/Lie Hasse diagram/show widths=true}
276 \hasseDiagrams{G2}
277 \end{Verbatim}
278 \tikzset{/Lie Hasse diagram/show widths=true}
279 \hasseDiagrams{G2}
280 \tikzset{/Lie Hasse diagram/show height=false}
281 \tikzset{/Lie Hasse diagram/show widths=false}
282 \endgroup
283
284 \section{Root decompositions}
285 Each positive root in a root system is a unique nonnegative integer linear combination of positive simple roots.
286 We can recover this expression as
287 \begin{Verbatim}
288 \rootSum[G][2]{5}{1}{\rs}
289 \end{Verbatim}
290 which, for the root system \(G_2\), and the root at position \(5;1\) in our Hasse diagram, stores in the variable \verb!\rs! a string which looks like \rootSum[G][2]{5}{1}{\rs}\texttt{\rs}.
291 This is a comma separated list of the integer coefficients.
292 \emph{Warning:} for the moment, this list of coefficients is in Carter ordering.
293 If we omit \verb![G][2]!, the current default root system is implied.
294
295 Here is the Dynkin diagram of \(E_8\), indicating the order of the roots in Carter ordering.
296 \begin{Verbatim}
297 \dynkin[label,ordering=Carter,edge length=.35cm]{E}{8}
298 \end{Verbatim}
299 \begin{center}
300 \dynkin[label,ordering=Carter,edge length=.35cm]{E}{8}
301 \end{center}
302 Here is the same Dynkin diagram, except showing, at each simple root, the coefficient of that simple root in the highest root.
303 \begin{Verbatim}
304 \rootSum[E][8]{29}{1}{\rs}
305 \dynkin[expand labels=\rs,ordering=Carter,edge length=.35cm]{E}{8}
306 \end{Verbatim}
307 \rootSum[E][8]{29}{1}{\rs}
308 \begin{center}
309 \dynkin[expand labels=\rs,ordering=Carter,edge length=.35cm]{E}{8}
310 \end{center}
311
312 The option \verb!for all roots! allows execution of code once on every root.
313 \begin{Verbatim}
314 \tikzset{/Lie Hasse diagram,
315 edge length=3.2cm,
316 compact root/.code={},
317 noncompact root/.code={},
318 edge quotes/.style={opacity=0},
319 embedded Dynkin diagram/.style={
320 edge length=.4cm,
321 root radius=.05cm
322 },
323 for all roots/.code 2 args={\drawRootAsDynkinSum{#1}{#2}}}
324 \hasse D5
325 \end{Verbatim}
326 \begingroup
327 \tikzset{/Lie Hasse diagram,
328 edge length=3.2cm,
329 compact root/.code={},
330 noncompact root/.code={},
331 edge quotes/.style={opacity=0},
332 embedded Dynkin diagram/.style={
333 edge length=.4cm,
334 root radius=.05cm
335 },
336 for all roots/.code 2 args={\drawRootAsDynkinSum{#1}{#2}}}
337 \hasseDiagrams{D5}
338 \endgroup
339 See more below on compact versus noncompact roots; the code \verb!compact! is applied to draw all of the compact roots, and the code \verb!noncompact! to draw the noncompact roots.
340 Setting those codes to be empty, and setting \verb!edge quotes! to be transparent, we get a much simpler Hasse diagram, so that we can see the embedded Dynkin diagrams more clearly.
341
342 \section{\texorpdfstring{For all roots \ldots}{For all roots ...}}
343 You can make your own macros loop over all of the roots: you define a macro \verb!\foo{g}{i}!, which is fed the grade \(g\) of each root in the diagram, and the \emph{index} \(i\).
344 A simple example:
345 \begin{Verbatim}
346 \newcommand{\foo}[2]%
347 {%
348 \node[below,scale=.5] at (#1;#2) {\(#1,#2\)};%
349 }%
350 \end{Verbatim}
351 \newcommand{\foo}[2]%
352 {%
353 \node[below,scale=.5] at (#1;#2) {\(#1,#2\)};%
354 }%
355 Inside a \TikZ{} or \verb!dynkinDiagram! environment:
356 \begin{Verbatim}
357 \tikzset{/Lie Hasse diagram/edge quotes/.style={opacity=0},
358 /Dynkin diagram/edge length=1.5cm}
359 \begin{tikzpicture}
360 \hasse D6%
361 \forAllPositiveRoots{\foo}%
362 \end{tikzpicture}
363 \end{Verbatim}
364 \begin{center}
365 \begingroup
366 \tikzset{/Lie Hasse diagram/edge quotes/.style={opacity=0},
367 /Dynkin diagram/edge length=1.5cm}
368 \begin{tikzpicture}
369 \hasse D6%
370 \forAllPositiveRoots{\foo}%
371 \end{tikzpicture}
372 \end{center}
373
374 If you put this into the \verb!for all roots! option, it executes on its own:
375 \begin{Verbatim}
376 \tikzset{/Lie Hasse diagram/for all roots/.code 2 args={\foo{#1}{#2}}}
377 \hasseDiagrams{C4;D4}
378 \end{Verbatim}
379 \begin{center}
380 \begingroup
381 \tikzset{/Lie Hasse diagram/for all roots/.code 2 args={\foo{#1}{#2}}}
382 \hasseDiagrams{C4;D4}
383 \endgroup
384 \end{center}
385 \endgroup
386
387 \section{Three dimensional effect}
388 We draw the \(D,E,F\) Hasse diagrams, following Ringel \cite{Ringel:2013}, as an arrangement of cubes.
389 Nutma \cite{Nutma:2010} draws the Hasse diagrams using a more elementary approach, but including also the affine Kac--Moody algebras.
390 Opposite sides of any square have the same edge label, by commutativity of addition.
391 Hence we don't need to see every edge perfectly.
392 The three dimensional effect is the default:
393 \begin{Verbatim}
394 \hasse D4\hasse E6
395 \end{Verbatim}
396 \begin{center}
397 \hasse D4\hasse E6
398 \end{center}
399 We can turn it off:
400 \begin{Verbatim}
401 \hasse[three D=false] D4
402 \hasse[three D=false] E6
403 \end{Verbatim}
404 \begin{center}
405 \hasse[three D=false] D4
406 \hasse[three D=false] E6
407 \end{center}
408 or globally with \verb!\tikzset{/Lie Hasse diagram/three D=false}!.
409
410 The astute reader will perhaps notice that the three dimensional effect is not realistic.
411 To be Hasse diagrams, the roots have to line up horizontally by grade.
412 This is inconsistent with three dimensional projection of our cubes.
413 We have also tried to use only a small number of layers in the three dimensional geometry, so the images are not perfect, but easy enough to read.
414
415 We can change the \verb!z shift! to slant the three dimensional images to the right:
416 \begingroup
417 \begin{Verbatim}
418 \hasse[z shift=.1]F4\hasse[z shift=.2]F4\hasse[z shift=.3]F4\hasse[z shift=.4]F4
419 \end{Verbatim}
420 \hasse[z shift=.1]F4\hasse[z shift=.2]F4\hasse[z shift=.3]F4\hasse[z shift=.4]F4
421 \endgroup
422
423 We only use three colours and opacities for the faces:
424 \begin{Verbatim}
425 top/.style={black!20,opacity=.4},
426 left/.style={black!20,opacity=.9},
427 right/.style={black!20,opacity=.6},
428 \end{Verbatim}
429 You can change these:
430 \begin{Verbatim}
431 \hasse[
432 top/.style={red,opacity=.1},
433 right/.style={red,opacity=.2},
434 left/.style={red,opacity=.4}]E6
435 \end{Verbatim}
436 \begin{center}
437 \hasse[
438 top/.style={red,opacity=.1},
439 right/.style={red,opacity=.2},
440 left/.style={red,opacity=.4}]E6
441 \end{center}
442
443 \section{Label the simple roots}
444 Ringel \cite{Ringel:2013} labels his edges like
445 \begin{Verbatim}
446 \hasse[labels={f,e,d,c,u,b,a}]E7
447 \end{Verbatim}
448 \begin{center}
449 \hasse[labels={f,e,d,c,u,b,a}]E7
450 \end{center}
451
452 \section{Parabolic subgroups}
453 This package offers nothing over Ringel's original pictures, except that the user can pick some simple roots whose associated edges are drawn differently.
454 The chosen simple roots are called \emph{compact}, following terminology from the theory of parabolic subgroups.
455 We let the reader explore the notation for parabolic subgroups in the Dynkin diagrams package, and use this to declare various roots compact.
456 \begin{Verbatim}
457 \tikzset{/Lie Hasse diagram,attach Dynkin diagram=true,three D=false}
458 \hasse D{**x*x*x*}
459 \end{Verbatim}
460 \begingroup
461 \begin{center}
462 \tikzset{/Lie Hasse diagram,attach Dynkin diagram=true,three D=false}
463 \hasse D{**x*x*x*}
464 \end{center}
465 \endgroup
466
467 Our motivation comes from trying to identify the invariant vector subbundles of the tangent bundle of a rational homogeneous variety \cite{MathOverflow:123801}.
468 Such diagrams are often unreadable if we don't turn off the three dimensional graphics.
469 By default, noncompact root edges are not drawn.
470 \begingroup
471 \tikzset{/Lie Hasse diagram,attach Dynkin diagram=true,show name=false,three D=false}
472 \begin{Verbatim}
473 \hasse E{*xx*x*}
474 \end{Verbatim}
475 \begin{center}
476 \hasse E{*xx*x*}
477 \end{center}
478 \begin{Verbatim}
479 \hasse A{x*x*}
480 \end{Verbatim}
481 \begin{center}
482 \hasse A{x*x*}
483 \end{center}
484 \begin{Verbatim}
485 \hasse[parabolic=113]B8
486 \end{Verbatim}
487 \begin{center}
488 \hasse[parabolic=113]B8
489 \end{center}
490 \begin{Verbatim}
491 \hasse C{**xx*x**}
492 \end{Verbatim}
493 \begin{center}
494 \hasse C{**xx*x**}
495 \end{center}
496 \newpage
497 \begin{Verbatim}
498 \hasse E{*x*x*x**}
499 \end{Verbatim}
500 \begin{center}
501 \hasse E{*x*x*x**}
502 \end{center}
503 \newpage
504 \begin{Verbatim}
505 \hasse F{**xx}
506 \end{Verbatim}
507 \begin{center}
508 \hasse F{**xx}
509 \end{center}
510 \begin{Verbatim}
511 \hasse G{*x}
512 \end{Verbatim}
513 \begin{center}
514 \hasse G{*x}
515 \end{center}
516 \endgroup
517
518 \section{Examples}
519 \begingroup
520 \tikzset{/Lie Hasse diagram,attach Dynkin diagram=true,show name=true}
521 \begin{Verbatim}
522 \hasseDiagrams{A1;A2;A3;A4;A5;A6}
523 \hasseDiagrams{B3;B4;B5}
524 \hasseDiagrams{C2;C3;C4}
525 \hasseDiagrams{C5;C6}
526 \hasseDiagrams{E6;E7}
527 \hasseDiagrams{E8}
528 \hasseDiagrams{F4;G2}
529 \end{Verbatim}
530 \hasseDiagrams{A1;A2;A3;A4;A5;A6}
531 \hasseDiagrams{B3;B4;B5}
532 \hasseDiagrams{C2;C3;C4}
533 \hasseDiagrams{C5;C6}
534 \hasseDiagrams{E6;E7}
535 \hasseDiagrams{E8}
536 \hasseDiagrams{F4;G2}
537 \endgroup
538
539 \section{Black and white}
540 Publishing in colour on paper can be expensive.
541 Simple global options:
542 \begin{Verbatim}
543 \tikzset{
544 background rectangle/.style={
545 shade,
546 top color=gray!15,
547 bottom color=white,
548 draw=gray!5,
549 very thick,
550 rounded corners},
551 /Dynkin diagram/text style/.style={black,scale=.75},
552 /Lie Hasse diagram,
553 edge length=1cm,
554 edge/.style={draw=black!50,ultra thick},
555 edge quotes/.style={black,auto,inner sep=3pt,scale=.75},
556 three D=true,
557 show name=true}
558 \end{Verbatim}
559 \begingroup
560 \tikzset{
561 background rectangle/.style={
562 shade,
563 top color=gray!15,
564 bottom color=white,
565 draw=gray!5,
566 very thick,
567 rounded corners},
568 /Dynkin diagram/text style/.style={black,scale=.75},
569 /Lie Hasse diagram,
570 edge length=1cm,
571 edge/.style={draw=black!50,ultra thick},
572 edge quotes/.style={black,auto,inner sep=3pt,scale=.75},
573 three D=true,
574 show name=true}%
575 change our examples to
576 \hasseDiagrams{A1;A2;A3;A4;A5;A6}
577 \hasseDiagrams{B3;B4;B5}
578 \hasseDiagrams{C2;C3;C4}
579 \hasseDiagrams{C5;C6}
580 \hasseDiagrams{E6;E7}
581 \hasseDiagrams{E8}
582 \hasseDiagrams{F4;G2}
583 \endgroup
584
585 \bibliographystyle{amsplain}
586 \bibliography{lie-hasse}
587 \end{document}