-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Fix vinberg booktests (#3939)"
This reverts commit b04ecbb.
- Loading branch information
Showing
6 changed files
with
141 additions
and
80 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
84 changes: 84 additions & 0 deletions
84
test/book/specialized/brandhorst-zach-fibration-hopping/vinberg_3.jlcon
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,84 @@ | ||
julia> K = QQ | ||
Rational field | ||
|
||
julia> Kt, t = polynomial_ring(K, :t) | ||
(Univariate polynomial ring in t over QQ, t) | ||
|
||
julia> Ktf = fraction_field(Kt) | ||
Fraction field | ||
of univariate polynomial ring in t over QQ | ||
|
||
julia> E = elliptic_curve(Ktf, [0, -t^3, 0, t^3, 0]) | ||
Elliptic curve with equation | ||
y^2 = x^3 - t^3*x^2 + t^3*x | ||
|
||
julia> P = E([t^3, t^3]); | ||
|
||
julia> Y2 = elliptic_surface(E, 2, [P]); | ||
|
||
julia> S = weierstrass_model(Y2)[1]; | ||
|
||
julia> basisNSY2, _, NSY2 = algebraic_lattice(Y2); | ||
|
||
julia> fibers_in_Y2 = [QQ.(vec(collect(i))) for i in [ | ||
[4 2 0 0 0 0 0 0 0 -4 -4 -8 -7 -6 -5 -4 -3 -2 -1 0], | ||
[1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], | ||
[5 2 -2 -3 -4 -3 -2 -1 -2 -5 -4 -8 -7 -6 -5 -4 -3 -2 -1 0], | ||
[4 2 -2 -4 -6 -9//2 -3 -3//2 -7//2 -3 -5//2 -5 -9//2 -4 -7//2 -3 -5//2 -2 -3//2 0], | ||
[2 1 -1 -2 -3 -2 -1 0 -2 -1 -1 -2 -2 -2 -2 -2 -2 -1 0 1], | ||
[2 1 0 0 0 0 0 0 0 -2 -2 -4 -4 -4 -4 -3 -2 -1 0 1] | ||
]] | ||
6-element Vector{Vector{QQFieldElem}}: | ||
[4, 2, 0, 0, 0, 0, 0, 0, 0, -4, -4, -8, -7, -6, -5, -4, -3, -2, -1, 0] | ||
[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] | ||
[5, 2, -2, -3, -4, -3, -2, -1, -2, -5, -4, -8, -7, -6, -5, -4, -3, -2, -1, 0] | ||
[4, 2, -2, -4, -6, -9//2, -3, -3//2, -7//2, -3, -5//2, -5, -9//2, -4, -7//2, -3, -5//2, -2, -3//2, 0] | ||
[2, 1, -1, -2, -3, -2, -1, 0, -2, -1, -1, -2, -2, -2, -2, -2, -2, -1, 0, 1] | ||
[2, 1, 0, 0, 0, 0, 0, 0, 0, -2, -2, -4, -4, -4, -4, -3, -2, -1, 0, 1] | ||
|
||
julia> @assert all(inner_product(ambient_space(NSY2), i,i) == 0 for i in fibers_in_Y2) | ||
|
||
julia> [representative(elliptic_parameter(Y2, f)) for f in fibers_in_Y2[4:6]] | ||
3-element Vector{AbstractAlgebra.Generic.FracFieldElem{QQMPolyRingElem}}: | ||
(y//z)//((x//z)*t) | ||
((y//z) + t^3)//((x//z)*t - t^4) | ||
((y//z) + t^3)//((x//z) - t^3) | ||
|
||
julia> g,_ = two_neighbor_step(Y2, fibers_in_Y2[4]);g | ||
-1//4*x^4 - 1//2*t^2*x^3 - 1//4*t^4*x^2 + x + y^2 | ||
|
||
julia> R = parent(g); K_t = base_ring(R); | ||
|
||
julia> (x,y) = gens(R); P = K_t.([0,0]); # rational point | ||
|
||
julia> g, _ = transform_to_weierstrass(g, x, y, P); | ||
|
||
julia> E4 = elliptic_curve(g, x, y) | ||
Elliptic curve with equation | ||
y^2 = x^3 + 1//4*t^4*x^2 - 1//2*t^2*x + 1//4 | ||
|
||
julia> g,_ = two_neighbor_step(Y2, fibers_in_Y2[5]);g | ||
t^2*x^3 + (-1//4*t^4 + 2*t)*x^2 + x + y^2 | ||
|
||
julia> R = parent(g); K_t = base_ring(R); | ||
|
||
julia> (x,y) = gens(R); P = K_t.([0,0]); # rational point | ||
|
||
julia> g, _ = transform_to_weierstrass(g, x, y, P); | ||
|
||
julia> E5 = elliptic_curve(g, x, y) | ||
Elliptic curve with equation | ||
y^2 = x^3 + (1//4*t^4 - 2*t)*x^2 + t^2*x | ||
|
||
julia> g,_ = two_neighbor_step(Y2, fibers_in_Y2[6]);g | ||
(t^2 + 2*t + 1)*x^3 + y^2 - 1//4*t^4 | ||
|
||
julia> R = parent(g); K_t = base_ring(R); t = gen(K_t); | ||
|
||
julia> (x,y) = gens(R); P = K_t.([0,1//2*t^2]); # rational point | ||
|
||
julia> g, _ = transform_to_weierstrass(g, x, y, P); | ||
|
||
julia> E6 = elliptic_curve(g, x, y) | ||
Elliptic curve with equation | ||
y^2 + (-t^2 - 2*t - 1)//t^4*y = x^3 |
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