Example: Element of weight lattice
Profiles: OSCAR v1.3, OSCAR v1.4, OSCAR v1.5, OSCAR v1.6, OSCAR v1.7, OSCAR v1.8
A fixed element in the weight lattice of A2 x B4.
Related Specification
- References and Parameters
- Weight Lattice Elements (
OSCAR v1.4-v1.8) - Weight Lattice Elements (
OSCAR v1.3)
Systems
Oscar.jl
Generate code (generate.jl) [ edit ]
using Oscar
P = weight_lattice(root_system((:A, 2), (:B, 4)))
save("data.mrdi", WeightLatticeElem(P, [1, -2, 3, 0, 2, -1]))
Data outputs
Profiles: OSCAR v1.3
Data file: data.mrdi
{
"_ns": {"Oscar": ["https://github.com/oscar-system/Oscar.jl", "1.3.1"]},
"_type": {"name": "WeightLatticeElem", "params": "17f32d27-551e-46af-95ac-99e6686d2fc2"},
"data": ["1", "-2", "3", "0", "2", "-1"],
"_refs": {
"17f32d27-551e-46af-95ac-99e6686d2fc2": {"_type": "WeightLattice", "data": {"root_system": "c329b055-e238-477e-964e-2fc2db5758ed"}},
"c329b055-e238-477e-964e-2fc2db5758ed": {
"_type": "RootSystem",
"data": {
"cartan_matrix": [
["2", "-1", "0", "0", "0", "0"],
["-1", "2", "0", "0", "0", "0"],
["0", "0", "2", "-1", "0", "0"],
["0", "0", "-1", "2", "-1", "0"],
["0", "0", "0", "-1", "2", "-1"],
["0", "0", "0", "0", "-2", "2"]
],
"type": [["A", "2"], ["B", "4"]]
}
}
}
}
Profiles: OSCAR v1.4, OSCAR v1.5, OSCAR v1.6, OSCAR v1.7
Data file: data.mrdi
{
"_ns": {"Oscar": ["https://github.com/oscar-system/Oscar.jl", "1.7.0"]},
"_type": {"name": "WeightLatticeElem", "params": "45689013-5109-4d3a-a9b4-72f9056b8c25"},
"data": ["1", "-2", "3", "0", "2", "-1"],
"_refs": {
"45689013-5109-4d3a-a9b4-72f9056b8c25": {
"_type": {"name": "WeightLattice", "params": "94ff9b63-ec4a-4627-ab98-c2620014235c"},
"data": {}
},
"94ff9b63-ec4a-4627-ab98-c2620014235c": {
"_type": "RootSystem",
"data": {
"cartan_matrix": [
["2", "-1", "0", "0", "0", "0"],
["-1", "2", "0", "0", "0", "0"],
["0", "0", "2", "-1", "0", "0"],
["0", "0", "-1", "2", "-1", "0"],
["0", "0", "0", "-1", "2", "-1"],
["0", "0", "0", "0", "-2", "2"]
],
"type": [["A", "2"], ["B", "4"]]
}
}
}
}
This serialized output is equivalent for these profiles up to UUID renaming and recorded namespace version strings.