Ticket #3660: trac_3660.patch
| File trac_3660.patch, 10.0 kB (added by mhansen, 5 months ago) |
|---|
-
a/sage/combinat/crystals/crystals.py
old new 10 10 \begin{itemize} 11 11 \item each edge has a label in $I$ 12 12 \item for each $i$ in $I$, each node $x$ has: 13 - at most one $i$-successor $f_i(x)$ 14 - at most one $i$-predecessor $e_i(x)$ 13 \begin{itemize} 14 \item at most one $i$-successor $f_i(x)$ 15 \item at most one $i$-predecessor $e_i(x)$ 16 \end{itemize} 15 17 Furthermore, when the exists, 16 - $f_i(x)$.weight() = x.weight() - $\alpha_i$ 17 - $e_i(x)$.weight() = x.weight() + $\alpha_i$ 18 \begin{itemize} 19 \item $f_i(x)$.weight() = x.weight() - $\alpha_i$ 20 \item $e_i(x)$.weight() = x.weight() + $\alpha_i$ 21 \end{itemize} 22 \end{itemize} 18 23 19 24 This crystal actually models a representation of a Lie algebra if it 20 25 satisfies some further local conditions due to Stembridge. … … 61 66 syntax details may be subject to changes. 62 67 63 68 TODO: 64 - Vocabulary and conventions: 65 - elements or vectors of a crystal? 66 - For a classical crystal: connected / highest weight / irreducible 67 - ... 68 - More introductory doc explaining the mathematical background 69 - Layout instructions for plot() for rank 2 types 70 - Streamlining the latex output 71 - Littelmann paths and/or alcove paths (this would give us the exceptional types) 72 - RestrictionOfCrystal / DirectSumOfCrystals 73 - Crystal.crystal_morphism 74 - Affine crystals 69 \begin{itemize} 70 \item Vocabulary and conventions: 71 \begin{itemize} 72 \item elements or vectors of a crystal? 73 \item For a classical crystal: connected / highest weight / irreducible 74 \item ... 75 \end{itemize} 76 \item More introductory doc explaining the mathematical background 77 \item Layout instructions for plot() for rank 2 types 78 \item Streamlining the latex output 79 \item Littelmann paths and/or alcove paths (this would give us the exceptional types) 80 \item RestrictionOfCrystal / DirectSumOfCrystals 81 \item Crystal.crystal_morphism 82 \item Affine crystals 83 \end{itemize} 75 84 76 85 Most of the above features (except Littelmann/alcove paths) are in 77 86 MuPAD-Combinat (see lib/COMBINAT/crystals.mu), which could provide … … 157 166 r""" 158 167 Runs sanity checks on the crystal: 159 168 \begin{itemize} 160 \item Checks that count, list, and __iter__ are169 \item Checks that count, list, and __iter__ are 161 170 consistent. For a ClassicalCrystal, this in particular checks 162 171 that the number of elements returned by the brute force 163 172 listing and the iterator __iter__ are consistent with the Weyl 164 173 dimension formula. 165 \item Should check Stembridge's rules, etc.174 \item Should check Stembridge's rules, etc. 166 175 \end{itemize} 167 176 168 177 EXAMPLES: … … 300 309 This requires dot2tex to be installed in sage-python. 301 310 302 311 Here some tips for installation: 303 - Install graphviz >= 2.14304 - Make sure sage-python is >= 2.4305 -Download pyparsing-1.4.11.tar.gz pydot-0.9.10.tar.gz dot2tex-2.7.0.tar.gz312 \begin{itemize} 313 \item Install graphviz >= 2.14 314 \item Download pyparsing-1.4.11.tar.gz pydot-0.9.10.tar.gz dot2tex-2.7.0.tar.gz 306 315 (see the dot2tex web page for download links) 307 316 (note that the most recent version of pydot may not work. Be sure to install the 0.9.10 308 317 version.) 309 318 Install each of them using the standard python install, but using sage-python: 310 319 311 sagedir=/opt/sage-2.10-opteron-ubuntu64-x86_64-Linux/ # FIX ACCORDING TO YOUR SAGE INSTALL 312 sagepython=$sagedir/local/bin/sage-python 313 for package in pyparsing-1.4.11 pydot-0.9.10 dot2tex-2.7.0; do\ # Use downloaded version nums 320 \begin{verbatim} 321 # FIX ACCORDING TO YOUR SAGE INSTALL 322 export sagedir=/opt/sage/ 323 export sagepython=$sagedir/local/bin/sage-python 324 325 # Use downloaded version nums 326 for package in pyparsing-1.4.11 pydot-0.9.10 dot2tex-2.7.0; do\ 314 327 tar zxvf $package.tar.gz;\ 315 328 cd $package;\ 316 329 sudo $sagepython setup.py install;\ 317 330 cd ..;\ 318 331 done 332 \end{verbatim} 319 333 320 -Install pgf-2.00 inside your latex tree334 \item Install pgf-2.00 inside your latex tree 321 335 In short: 322 - untaring in /usr/share/texmf/tex/generic 323 - clean out remaining pgf files from older version 324 - run texhash 336 \begin{itemize} 337 \item untaring in /usr/share/texmf/tex/generic 338 \item clean out remaining pgf files from older version 339 \item run texhash 340 \end{itemize} 341 \end{itemize} 325 342 326 343 You should be done! 327 344 To test, go to the dot2tex-2.7.0/examples directory, and type: 328 345 329 $sagedir//local/bin/dot2tex balls.dot > balls.tex 330 pdflatex balls.tex 331 open balls.pdf # your favorite viewer here 346 \begin{verbatim} 347 $sagedir//local/bin/dot2tex balls.dot > balls.tex 348 pdflatex balls.tex 349 open balls.pdf \#your favorite viewer here 350 \end{verbatim} 332 351 333 352 EXAMPLES: 334 353 sage: C = CrystalOfLetters(['A', 5]) 335 354 sage: C.latex() #optional requires dot2tex 355 ... 336 356 """ 337 357 338 358 try: -
a/sage/combinat/crystals/tensor_product.py
old new 575 575 return repr(self.to_tableau()) 576 576 577 577 def _latex_(self): 578 """578 r""" 579 579 EXAMPLES: 580 580 sage: T = CrystalOfTableaux(['A',3], shape = [2,2]) 581 581 sage: t = T(rows=[[1,2],[3,4]]) -
a/sage/combinat/root_system/cartan_matrix.py
old new 1 """ 2 Cartan matrices 3 """ 1 4 #***************************************************************************** 2 5 # Copyright (C) 2007 Mike Hansen <mhansen@gmail.com>, 3 6 # -
a/sage/combinat/root_system/cartan_type.py
old new 1 """ 2 Cartan types 3 """ 1 4 #***************************************************************************** 2 5 # Copyright (C) 2007 Mike Hansen <mhansen@gmail.com>, 3 6 # -
a/sage/combinat/root_system/coxeter_matrix.py
old new 1 """ 2 Coxeter matrices 3 """ 1 4 #***************************************************************************** 2 5 # Copyright (C) 2007 Mike Hansen <mhansen@gmail.com>, 3 6 # -
a/sage/combinat/root_system/dynkin_diagram.py
old new 1 """ 2 Dynkin diagrams 3 """ 1 4 #***************************************************************************** 2 5 # Copyright (C) 2007 Mike Hansen <mhansen@gmail.com>, 3 6 # -
a/sage/combinat/root_system/root_system.py
old new 682 682 """ 683 683 Create the ambient lattice for the root system for E6, E7, E8. 684 684 Specify the Base, i.e., the simple roots w.r. to the canonical 685 basis for R^8.685 basis for $R^8$. 686 686 687 687 EXAMPLES: 688 688 sage: e = RootSystem(['E',6]).ambient_lattice() … … 864 864 """ 865 865 Create the ambient lattice for the root system for F4. 866 866 Specify the Base, i.e., the simple roots w.r. to the canonical 867 basis for R^4.867 basis for $R^4$. 868 868 869 869 EXAMPLES: 870 870 sage: e = RootSystem(['F',4]).ambient_lattice() -
a/sage/combinat/root_system/weyl_characters.py
old new 242 242 243 243 def __pow__(self, n): 244 244 """ 245 Returns self^n.245 Returns $self^n$. 246 246 247 The coefficients in chi^kare the degrees of those irreducible representations248 of the symmetric group S_kcorresponding to partitions of length <=3.247 The coefficients in $chi^k$ are the degrees of those irreducible representations 248 of the symmetric group $S_k$ corresponding to partitions of length <=3. 249 249 250 250 EXAMPLES: 251 251 sage: A2 = WeylCharacterRing(['A',2]) … … 871 871 Here A3(x,y,z,w) can be understood as a representation of SL(4). The 872 872 weights x,y,z,w and x+t,y+t,z+t,w+t represent the same representation 873 873 of SL(4) - though not of GL(4) -- since A3(x+t,y+t,z+t,w+t) is the 874 same as A3(x,y,z,w) tensored with det^t. So as a representation of874 same as A3(x,y,z,w) tensored with $det^t$. So as a representation of 875 875 SL(4), A3(1/4,1/4,1/4,-3/4) is the same as A3(1,1,1,0). The exterior 876 876 square representation SL(4) --> GL(6) admits an invariant symmetric 877 877 bilinear form, so is a representation SL(4) --> SO(6) that lifts to