Skip to content

Commit

Permalink
Merge pull request #23 from StardustMath/Durham_2024
Browse files Browse the repository at this point in the history
self intersection via adjunction
  • Loading branch information
HechtiDerLachs authored Nov 21, 2024
2 parents 31c45d4 + ff6c7c2 commit 967c6db
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
4 changes: 3 additions & 1 deletion experimental/Durham2024/src/fixes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ function canonical_divisor(X:: AbsAffineScheme{<:Field, <:MPolyRing})
return CartierDivisor(covered_scheme(X), ZZ)
end


function self_intersection_via_adjunction(K_X::AbsWeilDivisor, C::AbsWeilDivisor, g::Int)
return 2g-2-intersect(K_X, C)
end



Expand Down
1 change: 1 addition & 0 deletions experimental/Durham2024/test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
include("fixes.jl")
include("runtests2.jl")

26 changes: 12 additions & 14 deletions experimental/Durham2024/test/runtests2.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,18 @@ bl_IA3 = domain(pr1)
E = exceptional_divisor(pr1)
bl_X, inc_bl_X, pr2 = strict_transform(pr1, inc_X) #bl_X is the blow up of X

#the canonical divisor of bl_IA3
bl_IA3_canonical_divisor = pullback(pr1, Oscar.canonical_divisor(IA3)) + (dim(IA3)-1)*E

# the cartier divisor of IA3 that correspdonds to X
X_ideal = image_ideal(inc_X)
X_ideal_sheaf = ideal_sheaf(codomain(pr1), IA3, X_ideal)
X_divisor = EffectiveCartierDivisor(X_ideal_sheaf)

#the cartier divisor of bl_IA3 that correspdonds to bl_X
bl_X_divisor = strict_transform(pr1, X_divisor)

# the canonical divisor of bl_X
div_sum = bl_IA3_canonical_divisor + bl_X_divisor
#bl_X_canonical_divisor = pullback(inc_bl_X, div_sum)
EX = pullback(inc_bl_X, E)
EX_weil = weil_divisor(EX)
EX_weil_decom = irreducible_decomposition(EX_weil)
C1 = components(WeilDivisor, EX_weil_decom)[1]
C2 = components(WeilDivisor, EX_weil_decom)[2]

bl_X_canonical_divisor = weil_divisor(bl_X, ZZ)
Z11 = Oscar.self_intersection_via_adjunction(bl_X_canonical_divisor, C1, 0)
Z22 = Oscar.self_intersection_via_adjunction(bl_X_canonical_divisor, C2, 0)
Z12 = intersect(C1, C2)
Z21 = intersect(C2, C1)
Intersection_matrix = ZZ[Z11 Z12; Z21 Z22]
end


Expand Down

0 comments on commit 967c6db

Please sign in to comment.