-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
242 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@testset "Herm" begin | ||
include("Herm/Spaces.jl") | ||
include("Herm/Genus.jl") | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
@testset "Genus" begin | ||
Qx, x = QQ["x"] | ||
K, a = NumberField(x^2 - 2, "a") | ||
OK = maximal_order(K) | ||
Kt, t = K["t"] | ||
|
||
E1, b1 = NumberField(t^2 - a, "b1") # ramified at 2 | ||
E2, b2 = NumberField(t^2 - 5, "b2") # unramified at 2 | ||
|
||
p = prime_decomposition(OK, 2)[1][1] | ||
# ramified & dyadic | ||
g = genus(HermLat, E1, p, [(0, 1, 1, 0), (2, 2, -1, 1)], type = :det) | ||
@test sprint(show, "text/plain", g) isa String | ||
@test sprint(show, g) isa String | ||
g = genus(HermLat, E1, p, [(0, 1, 1, 0), (2, 2, -1, 1)], type = :disc) | ||
@test sprint(show, "text/plain", g) isa String | ||
@test sprint(show, g) isa String | ||
@test_throws ErrorException genus(HermLat, E1, p, [(0, 1, 1, 1), (2, 2, -1, 0)], type = :det) | ||
@test_throws ErrorException genus(HermLat, E1, p, [(0, 1, 1, 1), (2, 2, -1, 0)], type = :disc) | ||
@test_throws ErrorException genus(HermLat, E1, p, [(0, 1, 1, 0), (2, 2, -1, 1)], type = :bla) | ||
|
||
# unramified & dyadic | ||
g = genus(HermLat, E2, p, [(0, 1, 1), (2, 2, -1)], type = :det) | ||
@test sprint(show, "text/plain", g) isa String | ||
@test sprint(show, g) isa String | ||
g = genus(HermLat, E2, p, [(0, 1, 1), (2, 2, -1)], type = :disc) | ||
@test sprint(show, "text/plain", g) isa String | ||
@test sprint(show, g) isa String | ||
@test_throws ErrorException genus(HermLat, E2, p, [(0, 1, 1), (2, 2, -1)], type = :bla) | ||
|
||
# ramified & non-dyadic | ||
p = prime_decomposition(OK, 5)[1][1] | ||
g = genus(HermLat, E2, p, [(0, 1, 1), (2, 2, -1)], type = :det) | ||
@test sprint(show, "text/plain", g) isa String | ||
@test sprint(show, g) isa String | ||
g = genus(HermLat, E2, p, [(0, 1, 1), (2, 2, -1)], type = :disc) | ||
@test sprint(show, "text/plain", g) isa String | ||
@test sprint(show, g) isa String | ||
@test_throws ErrorException genus(HermLat, E2, p, [(0, 1, 1), (2, 2, -1)], type = :bla) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
@testset "Spaces" begin | ||
Qx, x = PolynomialRing(FlintQQ, "x") | ||
K, a = NumberField(x^2 - 2, "a1") | ||
Kt, t = K["t"] | ||
|
||
E, b = NumberField(t^2 + 3) | ||
|
||
F = GF(3) | ||
|
||
Hecke.change_base_ring(::Hecke.NfRel, ::Hecke.gfp_mat) = error("asd") | ||
@test_throws ErrorException hermitian_space(E, F[1 2; 2 1]) | ||
|
||
Hecke.change_base_ring(::Hecke.NfRel, x::Hecke.gfp_mat) = x | ||
@test_throws ErrorException hermitian_space(E, F[1 2; 2 1]) | ||
|
||
V = @inferred hermitian_space(E, FlintQQ[1 2; 2 1]) | ||
@test V isa Hecke.HermSpace | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.