Skip to content

Commit 44f230e

Browse files
committed
Test Bacher polynomials
1 parent 0d3fe34 commit 44f230e

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

test/QuadForm/Quad/ZLattices.jl

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,14 @@ end
273273
@test automorphism_group_order(L) == lattice_automorphism_group_order(D, i)
274274
end
275275

276+
# Call the Bacher polynomials
277+
L = integer_lattice(gram = gram_matrix(lattice(D, 100)))
278+
Ge = automorphism_group_generators(L, ambient_representation = true, bacher_depth = 1)
279+
test_automorphisms(L, Ge, true)
280+
Ge = automorphism_group_generators(L, ambient_representation = false, bacher_depth = 1)
281+
test_automorphisms(L, Ge, false)
282+
@test automorphism_group_order(L) == lattice_automorphism_group_order(D, 100)
283+
276284
# automorphisms for indefinite of rank 2
277285
U = hyperbolic_plane_lattice()
278286
G = @inferred automorphism_group_generators(U)
@@ -325,6 +333,16 @@ end
325333
@test T * gram_matrix(L2) * transpose(T) == gram_matrix(L)
326334
end
327335

336+
# Call the Bacher polynomials
337+
L = integer_lattice(gram = gram_matrix(lattice(D, 100)))
338+
n = rank(L)
339+
X = change_base_ring(FlintQQ, _random_invertible_matrix(n, -3:3))
340+
@assert abs(det(X)) == 1
341+
L2 = integer_lattice(gram = X * gram_matrix(L) * transpose(X))
342+
b, T = is_isometric_with_isometry(L, L2, ambient_representation = false, bacher_depth = 1)
343+
@test b
344+
@test T * gram_matrix(L2) * transpose(T) == gram_matrix(L)
345+
328346
#discriminant of a lattice
329347
L = integer_lattice(ZZ[1 0; 0 1], gram = matrix(QQ, 2,2, [2, 1, 1, 2]))
330348
@test discriminant(L) == -3

0 commit comments

Comments
 (0)