Skip to content

Commit

Permalink
fix spinor genera in genus for QuadLat (#1173)
Browse files Browse the repository at this point in the history
  • Loading branch information
StevellM authored Jul 21, 2023
1 parent 84fffb9 commit 6fa1321
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/QuadForm/Quad/GenusRep.jl
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ function spinor_genera_in_genus(L, mod_out)
if i > ncols(Gr)
error("Lattice is degenerated")
end
@assert !iszero(Gr[1, i])
spinornorm = 2 * Gr[1, i]
end
@assert !iszero(Gr[1, i])
spinornorm = 2 * Gr[1, i]
end

# 2) At a place p where spinornorm does not generate norm(L_p)
Expand Down
4 changes: 4 additions & 0 deletions test/QuadForm/Quad/GenusRep.jl
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@
L = integer_lattice(B, gram = G);
@test length(genus_representatives(L))==1

U = hyperbolic_plane_lattice()
L = direct_sum(U, U)[1]
G = genus(L)
@test length(representatives(G)) == 1
end

@testset "Genus Representatives Number Field" begin
Expand Down

0 comments on commit 6fa1321

Please sign in to comment.