2024-04-15 19:35:13 +0200 | commented answer | Combinatorial elements and classes Thank you! |

2024-04-15 19:35:02 +0200 | marked best answer | Combinatorial elements and classes I would like to construct a free module over QQ (for simplicity) whose basis is index by finite sequences of strictly decreasing positive half odd integers (so odd numbers divided by 2).
Sadly, I'm running into trouble before I even managed to get started properly. I think my class will need to inherit from So how do I import CombinatorialElement properly? |

2024-04-15 16:13:15 +0200 | received badge | ● Notable Question (source) |

2024-04-15 16:07:10 +0200 | asked a question | Combinatorial elements and classes Combinatorial elements and classes I would like to construct a free module over QQ (for simplicity) whose basis is index |

2024-04-15 10:51:26 +0200 | received badge | ● Famous Question (source) |

2024-04-15 10:51:01 +0200 | received badge | ● Notable Question (source) |

2022-04-23 11:17:02 +0200 | received badge | ● Popular Question (source) |

2021-09-15 09:17:17 +0200 | received badge | ● Popular Question (source) |

2018-12-12 10:03:41 +0200 | commented answer | Overloading the binary operation of symmetric groups to reverse the order Thanks for the link to the bug report. That report also mentions setting multiplication to right-to-left (r2l), as you do, but then notes that this breaks code elsewhere. Quite unsatisfying. I'm surprised that the _mul_ method is so hard to overload. |

2018-12-11 17:17:12 +0200 | received badge | ● Nice Question (source) |

2018-12-11 16:49:40 +0200 | asked a question | Overloading the binary operation of symmetric groups to reverse the order I believe the Sage implementation of symmetric groups uses GAP which composes permutations in the opposite order to what I am used to. E.g. if (1,2) denotes the permutations switching 1 and 2, and (2,3) switches 2 and 3, then I would say (1,2) * (2,3) = (1,2,3), because I would first evaluate (2,3) and then (1,2) (the order in which one evaluates functions). Sage on the other hand produces (1,2) * (2,3) = (1,3,2). About a year ago, a friend helped me overload the definition of the binary operation to have the composition of permutations evaluated in the order I am used to. The code that worked was I recently updated to Sage 8.4 and the code no longer works. Here is what happens, after executing the code above, I run: Can anyone spot what I am doing wrong? |

2018-12-09 23:51:13 +0200 | received badge | ● Taxonomist |

2018-11-13 00:48:40 +0200 | received badge | ● Notable Question (source) |

2017-11-08 07:44:40 +0200 | received badge | ● Popular Question (source) |

2016-12-11 21:15:48 +0200 | commented answer | Display the Young lattice using Sage and Latex Hi Sébastien. Thank you for the suggestion and sorry for my long silence. I'm currently travelling. I'll try out your suggestion once I'm back later this week! |

2016-12-08 21:29:29 +0200 | commented question | Display the Young lattice using Sage and Latex The latex code you linked to compiles for me too. How odd, I was certain cloud.sagemath did not produce code that worked for me, yet now it does (both your code and what cloud.sagemath produce for me, work). I wonder why my local installation of sage produces different LaTeX code. |

2016-12-08 12:14:12 +0200 | commented question | Display the Young lattice using Sage and Latex Excellent advice regarding pastebin! I've edited the question accordingly. |

2016-12-07 23:52:29 +0200 | received badge | ● Notable Question (source) |

2016-12-07 19:13:58 +0200 | asked a question | Display the Young lattice using Sage and Latex Hi everyone, I'm trying to follow http://doc.sagemath.org/html/en/thema... to generate pictures of Young's lattice. Unfortunately I seem to be getting LaTeX code which won't compile. I'm using Sage 7.4 (run locally not on the cloud), pdfTeX, Version 3.1415926-2.5-1.40.14 and I have the TKZ packages installed. Running sage locally or on the cloud seems to generate the same LaTeX output. I get the same errors on 2 different computers, both running OpenSUSE 42.1. I've tried generating the LaTeX code using the sagecloud, but as far as I can tell it generates the same source code and I can't compile it. The code I input is: I'd like to attach error logs and the latex source code generated by "latex(H)", but apparently I do not have enough karma to do so. The error messages are basically many repetitions of the following snippet.
- Error log: http://pastebin.com/9CC2LvPr
- LaTeX code generated by sage: http://pastebin.com/Wpj7BDiq
- LaTeX code with preamble: http://pastebin.com/M1mxavNv
I am trying to compile the LaTeX code with the following packages: "tikz", "tkz-graph", "tkz-berge", "tkz-arith" and for tikz I am also loading the "arrows" and "shapes" libraries. Am I missing any necessary libraries? |

2016-08-12 00:44:38 +0200 | received badge | ● Notable Question (source) |

2016-08-12 00:44:38 +0200 | received badge | ● Famous Question (source) |

2014-06-29 21:50:17 +0200 | received badge | ● Notable Question (source) |

2014-06-29 21:50:17 +0200 | received badge | ● Popular Question (source) |

2013-12-11 04:27:21 +0200 | asked a question | Ascending tuples of integers Hi everyone, I'm trying to define the set of all tuples of ascending integers (any length, repetitions allowed). What is the best way to do this? Do I use Family()? I'd like to use this set enumerate the basis of a combinatorial free algebra. Bonus question: Is it possible to add an extra label to each integer in the tuple? |

2013-12-06 08:11:53 +0200 | answered a question | A Sage implementation of the Virasoro algebra and its representations OK. I think I've figured out how to implement the Lie bracket. If there is a cleverer way to do this, I'd be grateful for improvements. It still seems rather clunky. My code is the following: The Virasoro generators are output as I've implemented the Lie bracket as This code seems to work. E.g. Which is the correct output. |

2013-12-05 18:31:19 +0200 | asked a question | A Sage implementation of the Virasoro algebra and its representations Hello everyone, A few years ago I tried to implement the Virasoro algebra on Sage, but due to having a lot of other things to do, I didn't really get anywhere. Now I'd like to try again in earnest. But due to not having a lot of experience with programming, I'm having a hard time reading the Sage documentation. So I was hoping people could give me some pointers to get me going. First some math: The Virasoro algebra is a complex infinite dimensional Lie algebra with generators $L_n, n\in \mathbb{Z}$ and bracket $[L_m,L_n]=(m-n)L_{m+n}+\delta_{m,-n}(m^3-m)\frac{C}{12}$, where $\delta$ is the Kronecker delta and $c$ is the central element of the Virasoro algebra (aka central charge). A Verma module $M(h,c)$ of the Virasoro algebra is generated by a highest weight vector $v(h,c)$ such that $L_0v(h,c)=hv(h,c)$, $Cv(h,c)=cv(h,c)$ and $L_nv(h,c)=0,\ n>0$. The remaining generators act freely up to the relations coming from the Virasoro algebra itself. Therefore, a basis of $M(h,c)$ is given by $L_{-n_1}L_{-n_2}\cdots L_{-n_m}v(h,c)$, where $n_1\geq n_2\geq \cdots \geq n_n\geq1,\ m\geq0$, i.e. it is parametrised by all partitions of integers. Here is what I've learned from talking to people on this forum a few years ago:
Since the Virasoro algebra and its Verma modules are parametrised by integers and partitions of integers, it seems natural to define them using CombinatorialFreeModule, e.g.
The list below is a detailed list of things I wish to implement. If someone could help me with one or two of those, I think I should be able to figure out the rest by example. - Define a bracket on the generators that extends linearly to the whole Virasoro algebra.
- Define an ordering of generators such that a multiplication of generators can be defined, i.e. the universal enveloping algebra. The ordering is: If $m < n$ then $L_m \cdot L_n$ just stays $L_m\cdot L_n$ but $L_n\cdot L_m=[L_n,L_M]+L_m\cdot L_n$. All the better if this product could overload the multiplication symbol *.
- Define an action of Virasoro generators on basis elements of $M(h,c)$ and extend this action linearly to all of $M(h,c)$.
- Extend the action of Virasoro generators on $M(h,c)$ to products of Virasoro generators acting on $M(h,c)$.
Thanks in advance for any advice. |

2013-12-02 14:26:26 +0200 | received badge | ● Popular Question (source) |

2013-11-10 13:43:28 +0200 | received badge | ● Popular Question (source) |

2013-04-23 03:57:17 +0200 | received badge | ● Scholar (source) |

2013-04-23 03:57:17 +0200 | marked best answer | Compiling sage on opensuse 12.3 Do you have gcc installed in your system? |

2013-04-23 03:57:09 +0200 | commented answer | Compiling sage on opensuse 12.3 Yes that was the problem. Can't believe I didn't notice that sooner. Anyway, thank you very much! |

2013-04-22 03:05:50 +0200 | asked a question | Compiling sage on opensuse 12.3 Dear Sage support group, I am trying to compile sage 5.8 on my newly installed opensuse 12.3. However, the install fails after checking my "build system type". I've copy pasted the error message below. Any help would be greatly appreciated. Best, Simon |

2011-08-10 02:32:01 +0200 | received badge | ● Editor (source) |

2011-08-09 07:13:10 +0200 | received badge | ● Nice Question (source) |

2011-08-09 01:14:18 +0200 | commented answer | Infinite dimensional Lie algebras in Sage Thanks a lot for the help Niles and Benjaminfjones. Now I know where to start! |

2011-08-09 01:13:06 +0200 | received badge | ● Supporter (source) |

2011-08-08 08:42:00 +0200 | received badge | ● Student (source) |

2011-08-08 07:32:34 +0200 | asked a question | Infinite dimensional Lie algebras in Sage Dear Sage community, I'm considering giving Sage a spin. Having the scripting possibilities that python offers at one's disposal seems very appealing. But I would first like to know if - short of writing the module I need in python - Sage is currently capable of addressing the kind of problems I am interested in. I mainly work with infinite dimensional Lie algebras such as the Virasoro algebra. Is there an easy way to implement such algebras in Sage, by specifying structure constants or something like that? |

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.