Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 24 additions & 4 deletions lmfdb/tests/snippet_tests/lattice/code-1.1.1.3.1-oscar.log
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,23 @@ with gram matrix
julia> rank(L)
1

julia> signature_tuple(L)
(1, 0, 0)
julia> signature_tuple(L)[[1,3]]
(1, 0)

julia> det(L)
1

julia> discriminant(L)
1

julia> iseven(L)
julia> is_even(L)
false

julia> automorphism_group_order(L)
julia> isometry_group(L)
Matrix group of degree 1
over rational field

julia> order(isometry_group(L))
2

julia> minimum(L)
Expand All @@ -38,6 +42,9 @@ Quadratic value module: Q/Z
Gram matrix quadratic form:
0 by 0 empty matrix

julia> j = last(image_in_Oq(L)); divexact(order(codomain(j)), order(domain(j)))
1

julia> gram_matrix(L)
[1]

Expand All @@ -52,4 +59,17 @@ julia> det(dual(L))
julia> kissing_number(dual(L))
2

julia> irreducible_components(L)
1-element Vector{ZZLat}:
Integer lattice of rank 1 and degree 1

julia> even_sublattice(L)
Integer lattice of rank 1 and degree 1
with gram matrix
[4]

julia> shortest_vectors(L)
1-element Vector{Vector{ZZRingElem}}:
[1]

julia>
98 changes: 85 additions & 13 deletions lmfdb/tests/snippet_tests/lattice/code-3.1.1.3.1-oscar.log
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,67 @@ with gram matrix
julia> rank(L)
3

julia> signature_tuple(L)
(2, 0, 1)
julia> signature_tuple(L)[[1,3]]
(2, 1)

julia> det(L)
-1

julia> discriminant(L)
1

julia> iseven(L)
julia> is_even(L)
false

julia> automorphism_group_order(L)
ERROR: ArgumentError: The lattice must be definite
julia> isometry_group(L)
ERROR: ArgumentError: Lattice must be definite or of rank at most 2
Stacktrace:
[1] macro expansion
@ ~/.julia/packages/AbstractAlgebra/Ccm2Q/src/Assertions.jl:602 [inlined]
[2] automorphism_group_order(L::ZZLat; kwargs::@Kwargs{})
@ Hecke ~/.julia/packages/Hecke/eAMEn/src/QuadForm/Quad/ZLattices.jl:547
[3] automorphism_group_order(L::ZZLat)
@ Hecke ~/.julia/packages/Hecke/eAMEn/src/QuadForm/Quad/ZLattices.jl:540
[4] top-level scope
@ none:1
[1] macro expansion
@ ~/.julia/packages/AbstractAlgebra/Ccm2Q/src/Assertions.jl:602 [inlined]
[2]
@ Oscar ~/.julia/packages/Oscar/BRgjA/src/Groups/matrices/isometry_group.jl:134
[3] _assert_has_automorphisms_ZZLat
@ ~/.julia/packages/Oscar/BRgjA/src/Groups/matrices/isometry_group.jl:113 [inlined]
[4]
@ Oscar ~/.julia/packages/Oscar/BRgjA/src/Groups/matrices/isometry_group.jl:54
[5] __compute_isometry_group__
@ ~/.julia/packages/Oscar/BRgjA/src/Groups/matrices/isometry_group.jl:45 [inlined]
[6] #1673
@ ~/.julia/packages/AbstractAlgebra/Ccm2Q/src/Attributes.jl:358 [inlined]
[7] get!(default::Oscar.var"#1673#1674"{Symbol, Int64, Int64, Bool, Bool, ZZLat}, h::Dict{Symbol, Any}, key::Symbol)
@ Base ./dict.jl:458
[8] get_attribute!
@ ~/.julia/packages/AbstractAlgebra/Ccm2Q/src/Attributes.jl:237 [inlined]
[9] isometry_group(L::ZZLat)
@ Oscar ~/.julia/packages/Oscar/BRgjA/src/Groups/matrices/isometry_group.jl:45
[10] top-level scope
@ none:1
Some type information was truncated. Use `show(err)` to see complete types.

julia> order(isometry_group(L))
ERROR: ArgumentError: Lattice must be definite or of rank at most 2
Stacktrace:
[1] macro expansion
@ ~/.julia/packages/AbstractAlgebra/Ccm2Q/src/Assertions.jl:602 [inlined]
[2]
@ Oscar ~/.julia/packages/Oscar/BRgjA/src/Groups/matrices/isometry_group.jl:134
[3] _assert_has_automorphisms_ZZLat
@ ~/.julia/packages/Oscar/BRgjA/src/Groups/matrices/isometry_group.jl:113 [inlined]
[4]
@ Oscar ~/.julia/packages/Oscar/BRgjA/src/Groups/matrices/isometry_group.jl:54
[5] __compute_isometry_group__
@ ~/.julia/packages/Oscar/BRgjA/src/Groups/matrices/isometry_group.jl:45 [inlined]
[6] #1673
@ ~/.julia/packages/AbstractAlgebra/Ccm2Q/src/Attributes.jl:358 [inlined]
[7] get!(default::Oscar.var"#1673#1674"{Symbol, Int64, Int64, Bool, Bool, ZZLat}, h::Dict{Symbol, Any}, key::Symbol)
@ Base ./dict.jl:458
[8] get_attribute!
@ ~/.julia/packages/AbstractAlgebra/Ccm2Q/src/Attributes.jl:237 [inlined]
[9] isometry_group(L::ZZLat)
@ Oscar ~/.julia/packages/Oscar/BRgjA/src/Groups/matrices/isometry_group.jl:45
[10] top-level scope
@ none:1
Some type information was truncated. Use `show(err)` to see complete types.

julia> minimum(L)
ERROR: ArgumentError: Lattice must be definite
Expand Down Expand Up @@ -77,6 +115,9 @@ Quadratic value module: Q/Z
Gram matrix quadratic form:
0 by 0 empty matrix

julia> j = last(image_in_Oq(L)); divexact(order(codomain(j)), order(domain(j)))
1

julia> gram_matrix(L)
[0 0 1]
[0 1 0]
Expand Down Expand Up @@ -112,4 +153,35 @@ Stacktrace:
[8] top-level scope
@ none:1

julia> irreducible_components(L)
ERROR: ArgumentError: Lattice must be definite
Stacktrace:
[1] macro expansion
@ ~/.julia/packages/AbstractAlgebra/Ccm2Q/src/Assertions.jl:602 [inlined]
[2] irreducible_components(L::ZZLat)
@ Hecke ~/.julia/packages/Hecke/eAMEn/src/QuadForm/Quad/ZLattices.jl:2275
[3] top-level scope
@ none:1

julia> even_sublattice(L)
Integer lattice of rank 3 and degree 3
with gram matrix
[0 0 1]
[0 4 2]
[1 2 2]

julia> shortest_vectors(L)
ERROR: ArgumentError: Lattice must be definite
Stacktrace:
[1] macro expansion
@ ~/.julia/packages/AbstractAlgebra/Ccm2Q/src/Assertions.jl:602 [inlined]
[2] shortest_vectors(L::ZZLat, elem_type::Type{ZZRingElem}; check::Bool)
@ Hecke ~/.julia/packages/Hecke/eAMEn/src/QuadForm/ShortVectors.jl:112
[3] shortest_vectors
@ ~/.julia/packages/Hecke/eAMEn/src/QuadForm/ShortVectors.jl:109 [inlined]
[4] shortest_vectors(L::ZZLat)
@ Hecke ~/.julia/packages/Hecke/eAMEn/src/QuadForm/ShortVectors.jl:109
[5] top-level scope
@ none:1

julia>
4 changes: 2 additions & 2 deletions lmfdb/tests/snippet_tests/lattice/code-3.1.1.3.1-sage.log
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ False
sage: L.automorphisms()
---------------------------------------------------------------------------
NotImplementedError Traceback (most recent call last)
Cell In[73], line 1
Cell In[105], line 1
----> 1 L.automorphisms()

File /usr/share/miniconda/envs/lmfdb/lib/python3.12/site-packages/sage/modules/free_quadratic_module_integer_symmetric.py:1292, in FreeQuadraticModule_integer_symmetric.orthogonal_group(self, gens, is_finite)
Expand All @@ -31,7 +31,7 @@ File /usr/share/miniconda/envs/lmfdb/lib/python3.12/site-packages/sage/mo
sage: L.automorphisms().order()
---------------------------------------------------------------------------
NotImplementedError Traceback (most recent call last)
Cell In[74], line 1
Cell In[106], line 1
----> 1 L.automorphisms().order()

File /usr/share/miniconda/envs/lmfdb/lib/python3.12/site-packages/sage/modules/free_quadratic_module_integer_symmetric.py:1292, in FreeQuadraticModule_integer_symmetric.orthogonal_group(self, gens, is_finite)
Expand Down
34 changes: 30 additions & 4 deletions lmfdb/tests/snippet_tests/lattice/code-3.3.1.7.1-oscar.log
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,23 @@ with gram matrix
julia> rank(L)
3

julia> signature_tuple(L)
(3, 0, 0)
julia> signature_tuple(L)[[1,3]]
(3, 0)

julia> det(L)
1

julia> discriminant(L)
-1

julia> iseven(L)
julia> is_even(L)
false

julia> automorphism_group_order(L)
julia> isometry_group(L)
Matrix group of degree 3
over rational field

julia> order(isometry_group(L))
48

julia> minimum(L)
Expand All @@ -40,6 +44,9 @@ Quadratic value module: Q/Z
Gram matrix quadratic form:
0 by 0 empty matrix

julia> j = last(image_in_Oq(L)); divexact(order(codomain(j)), order(domain(j)))
1

julia> gram_matrix(L)
[1 0 0]
[0 1 0]
Expand All @@ -58,4 +65,23 @@ julia> det(dual(L))
julia> kissing_number(dual(L))
6

julia> irreducible_components(L)
3-element Vector{ZZLat}:
Integer lattice of rank 1 and degree 3
Integer lattice of rank 1 and degree 3
Integer lattice of rank 1 and degree 3

julia> even_sublattice(L)
Integer lattice of rank 3 and degree 3
with gram matrix
[4 2 2]
[2 2 1]
[2 1 2]

julia> shortest_vectors(L)
3-element Vector{Vector{ZZRingElem}}:
[0, 0, 1]
[0, 1, 0]
[1, 0, 0]

julia>
99 changes: 86 additions & 13 deletions lmfdb/tests/snippet_tests/lattice/code-4.2.1.5.1-oscar.log
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,67 @@ with gram matrix
julia> rank(L)
4

julia> signature_tuple(L)
(3, 0, 1)
julia> signature_tuple(L)[[1,3]]
(3, 1)

julia> det(L)
-1

julia> discriminant(L)
-1

julia> iseven(L)
julia> is_even(L)
false

julia> automorphism_group_order(L)
ERROR: ArgumentError: The lattice must be definite
julia> isometry_group(L)
ERROR: ArgumentError: Lattice must be definite or of rank at most 2
Stacktrace:
[1] macro expansion
@ ~/.julia/packages/AbstractAlgebra/Ccm2Q/src/Assertions.jl:602 [inlined]
[2] automorphism_group_order(L::ZZLat; kwargs::@Kwargs{})
@ Hecke ~/.julia/packages/Hecke/eAMEn/src/QuadForm/Quad/ZLattices.jl:547
[3] automorphism_group_order(L::ZZLat)
@ Hecke ~/.julia/packages/Hecke/eAMEn/src/QuadForm/Quad/ZLattices.jl:540
[4] top-level scope
@ none:1
[1] macro expansion
@ ~/.julia/packages/AbstractAlgebra/Ccm2Q/src/Assertions.jl:602 [inlined]
[2]
@ Oscar ~/.julia/packages/Oscar/BRgjA/src/Groups/matrices/isometry_group.jl:134
[3] _assert_has_automorphisms_ZZLat
@ ~/.julia/packages/Oscar/BRgjA/src/Groups/matrices/isometry_group.jl:113 [inlined]
[4]
@ Oscar ~/.julia/packages/Oscar/BRgjA/src/Groups/matrices/isometry_group.jl:54
[5] __compute_isometry_group__
@ ~/.julia/packages/Oscar/BRgjA/src/Groups/matrices/isometry_group.jl:45 [inlined]
[6] #1673
@ ~/.julia/packages/AbstractAlgebra/Ccm2Q/src/Attributes.jl:358 [inlined]
[7] get!(default::Oscar.var"#1673#1674"{Symbol, Int64, Int64, Bool, Bool, ZZLat}, h::Dict{Symbol, Any}, key::Symbol)
@ Base ./dict.jl:458
[8] get_attribute!
@ ~/.julia/packages/AbstractAlgebra/Ccm2Q/src/Attributes.jl:237 [inlined]
[9] isometry_group(L::ZZLat)
@ Oscar ~/.julia/packages/Oscar/BRgjA/src/Groups/matrices/isometry_group.jl:45
[10] top-level scope
@ none:1
Some type information was truncated. Use `show(err)` to see complete types.

julia> order(isometry_group(L))
ERROR: ArgumentError: Lattice must be definite or of rank at most 2
Stacktrace:
[1] macro expansion
@ ~/.julia/packages/AbstractAlgebra/Ccm2Q/src/Assertions.jl:602 [inlined]
[2]
@ Oscar ~/.julia/packages/Oscar/BRgjA/src/Groups/matrices/isometry_group.jl:134
[3] _assert_has_automorphisms_ZZLat
@ ~/.julia/packages/Oscar/BRgjA/src/Groups/matrices/isometry_group.jl:113 [inlined]
[4]
@ Oscar ~/.julia/packages/Oscar/BRgjA/src/Groups/matrices/isometry_group.jl:54
[5] __compute_isometry_group__
@ ~/.julia/packages/Oscar/BRgjA/src/Groups/matrices/isometry_group.jl:45 [inlined]
[6] #1673
@ ~/.julia/packages/AbstractAlgebra/Ccm2Q/src/Attributes.jl:358 [inlined]
[7] get!(default::Oscar.var"#1673#1674"{Symbol, Int64, Int64, Bool, Bool, ZZLat}, h::Dict{Symbol, Any}, key::Symbol)
@ Base ./dict.jl:458
[8] get_attribute!
@ ~/.julia/packages/AbstractAlgebra/Ccm2Q/src/Attributes.jl:237 [inlined]
[9] isometry_group(L::ZZLat)
@ Oscar ~/.julia/packages/Oscar/BRgjA/src/Groups/matrices/isometry_group.jl:45
[10] top-level scope
@ none:1
Some type information was truncated. Use `show(err)` to see complete types.

julia> minimum(L)
ERROR: ArgumentError: Lattice must be definite
Expand Down Expand Up @@ -78,6 +116,9 @@ Quadratic value module: Q/Z
Gram matrix quadratic form:
0 by 0 empty matrix

julia> j = last(image_in_Oq(L)); divexact(order(codomain(j)), order(domain(j)))
1

julia> gram_matrix(L)
[0 1 0 0]
[1 0 0 0]
Expand Down Expand Up @@ -115,4 +156,36 @@ Stacktrace:
[8] top-level scope
@ none:1

julia> irreducible_components(L)
ERROR: ArgumentError: Lattice must be definite
Stacktrace:
[1] macro expansion
@ ~/.julia/packages/AbstractAlgebra/Ccm2Q/src/Assertions.jl:602 [inlined]
[2] irreducible_components(L::ZZLat)
@ Hecke ~/.julia/packages/Hecke/eAMEn/src/QuadForm/Quad/ZLattices.jl:2275
[3] top-level scope
@ none:1

julia> even_sublattice(L)
Integer lattice of rank 4 and degree 4
with gram matrix
[0 1 0 0]
[1 0 0 0]
[0 0 4 2]
[0 0 2 2]

julia> shortest_vectors(L)
ERROR: ArgumentError: Lattice must be definite
Stacktrace:
[1] macro expansion
@ ~/.julia/packages/AbstractAlgebra/Ccm2Q/src/Assertions.jl:602 [inlined]
[2] shortest_vectors(L::ZZLat, elem_type::Type{ZZRingElem}; check::Bool)
@ Hecke ~/.julia/packages/Hecke/eAMEn/src/QuadForm/ShortVectors.jl:112
[3] shortest_vectors
@ ~/.julia/packages/Hecke/eAMEn/src/QuadForm/ShortVectors.jl:109 [inlined]
[4] shortest_vectors(L::ZZLat)
@ Hecke ~/.julia/packages/Hecke/eAMEn/src/QuadForm/ShortVectors.jl:109
[5] top-level scope
@ none:1

julia>
Loading