Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
""" Root system data for (untwisted) type A affine """ #***************************************************************************** # Copyright (C) 2008-2009 Nicolas M. Thiery <nthiery at users.sf.net>, # # Distributed under the terms of the GNU General Public License (GPL) # http://www.gnu.org/licenses/ #*****************************************************************************
""" EXAMPLES::
sage: ct = CartanType(['A',4,1]) sage: ct ['A', 4, 1] sage: ct._repr_(compact = True) 'A4~'
sage: ct.is_irreducible() True sage: ct.is_finite() False sage: ct.is_affine() True sage: ct.is_untwisted_affine() True sage: ct.is_crystallographic() True sage: ct.is_simply_laced() True sage: ct.classical() ['A', 4] sage: ct.dual() ['A', 4, 1]
sage: ct = CartanType(['A', 1, 1]) sage: ct.is_simply_laced() False sage: ct.dual() ['A', 1, 1]
TESTS::
sage: TestSuite(ct).run() """
""" Return a latex representation of ``self``.
EXAMPLES::
sage: ct = CartanType(['A',4,1]) sage: latex(ct) A_{4}^{(1)} """
""" Returns the extended Dynkin diagram for affine type A.
EXAMPLES::
sage: a = CartanType(['A',3,1]).dynkin_diagram() sage: a 0 O-------+ | | | | O---O---O 1 2 3 A3~ sage: sorted(a.edges()) [(0, 1, 1), (0, 3, 1), (1, 0, 1), (1, 2, 1), (2, 1, 1), (2, 3, 1), (3, 0, 1), (3, 2, 1)]
sage: a = DynkinDiagram(['A',1,1]) sage: a O<=>O 0 1 A1~ sage: sorted(a.edges()) [(0, 1, 2), (1, 0, 2)] """
else:
r""" Return a latex representation of the Dynkin diagram.
EXAMPLES::
sage: print(CartanType(['A',4,1])._latex_dynkin_diagram()) \draw (0 cm,0) -- (6 cm,0); \draw (0 cm,0) -- (3.0 cm, 1.2 cm); \draw (3.0 cm, 1.2 cm) -- (6 cm, 0); \draw[fill=white] (0 cm, 0 cm) circle (.25cm) node[below=4pt]{$1$}; \draw[fill=white] (2 cm, 0 cm) circle (.25cm) node[below=4pt]{$2$}; \draw[fill=white] (4 cm, 0 cm) circle (.25cm) node[below=4pt]{$3$}; \draw[fill=white] (6 cm, 0 cm) circle (.25cm) node[below=4pt]{$4$}; \draw[fill=white] (3.0 cm, 1.2 cm) circle (.25cm) node[anchor=south east]{$0$}; <BLANKLINE> """ ret = "\\draw (0, 0.1 cm) -- +(%s cm,0);\n"%node_dist ret += "\\draw (0, -0.1 cm) -- +(%s cm,0);\n"%node_dist ret += self._latex_draw_arrow_tip(0.33*node_dist-0.2, 0, 180) ret += self._latex_draw_arrow_tip(0.66*node_dist+0.2, 0, 0) ret += node(0, 0, label(0)) ret += node(node_dist, 0, label(1)) return ret
""" Return an ascii art representation of the extended Dynkin diagram.
EXAMPLES::
sage: print(CartanType(['A',3,1]).ascii_art()) 0 O-------+ | | | | O---O---O 1 2 3
sage: print(CartanType(['A',5,1]).ascii_art(label = lambda x: x+2)) 2 O---------------+ | | | | O---O---O---O---O 3 4 5 6 7
sage: print(CartanType(['A',1,1]).ascii_art()) O<=>O 0 1
sage: print(CartanType(['A',1,1]).ascii_art(label = lambda x: x+2)) O<=>O 2 3 """
""" Type `A_1^1` is self dual despite not being simply laced.
EXAMPLES::
sage: CartanType(['A',1,1]).dual() ['A', 1, 1] """
""" Return the default folded Cartan type.
In general, this just returns ``self`` in ``self`` with `\sigma` as the identity map.
EXAMPLES::
sage: CartanType(['A',1,1])._default_folded_cartan_type() ['A', 1, 1] as a folding of ['A', 3, 1] sage: CartanType(['A',3,1])._default_folded_cartan_type() ['A', 3, 1] as a folding of ['A', 3, 1] """
|