Skip to content

Commit 172cbfc

Browse files
committed
Further improvements
1 parent 4bab535 commit 172cbfc

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

experimental/FTheoryTools/src/FamilyOfG4Fluxes/special-intersection-theory.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ function sophisticated_intersection_product(v::NormalToricVariety, indices::NTup
8080
# This only gives the solution [0:1], so one intersection point.
8181
if length(gs_reduced) == 1 && length(remaining_vars) == 2
8282
mons_list = collect(monomials(pt_reduced))
83-
if length(mons_list) == 1 && collect(coefficients(pt_reduced))[1] != 0
83+
if length(mons_list) == 1
8484
list_of_exps = collect(exponents(mons_list[1]))[1]
8585
number_of_zeros = count(==(0), list_of_exps)
8686
if number_of_zeros == length(list_of_exps) - 1
@@ -133,7 +133,7 @@ function sophisticated_intersection_product(v::NormalToricVariety, indices::NTup
133133
end
134134
end
135135

136-
# C.8 In all other cases, proceed via a rationally equivalent cycle
136+
# C.9 In all other cases, proceed via a rationally equivalent cycle
137137
#=
138138
println("")
139139
println("FOUND CASE THAT CANNOT YET BE DECIDED!")

experimental/FTheoryTools/src/FamilyOfG4Fluxes/special_constructors.jl

+12-12
Original file line numberDiff line numberDiff line change
@@ -132,18 +132,7 @@ true
132132
"""
133133
function special_flux_family(m::AbstractFTheoryModel; not_breaking::Bool = false, check::Bool = true, algorithm::String = "default")
134134

135-
# (1) Consistency checks
136-
if arxiv_doi(m) == "10.48550/arXiv.1511.03209" && algorithm == "default"
137-
error("The default algorithm for intersection computations will likely not terminate in a reasonable time for this model and is therefore not supported")
138-
end
139-
@req base_space(m) isa NormalToricVariety "Computation of well-quantized and transversal G4-fluxes only supported for toric base and ambient spaces"
140-
@req dim(ambient_space(m)) == 5 "Computation of well-quantized and transversal G4-fluxes only supported for 5-dimensional toric ambient spaces"
141-
if check
142-
@req is_complete(ambient_space(m)) "Computation of well-quantized and transversal G4-fluxes only supported for complete toric ambient spaces"
143-
@req is_simplicial(ambient_space(m)) "Computation of well-quantized and transversal G4-fluxes only supported for simplicial toric ambient space"
144-
end
145-
146-
# (2) Is result known?
135+
# (1) Is result known?
147136
if !not_breaking
148137
if has_attribute(m, :matrix_integral_quant_transverse) && has_attribute(m, :matrix_rational_quant_transverse) && has_attribute(m, :offset_quant_transverse)
149138
fgs_m_int = matrix_integral_quant_transverse(m, check = check)
@@ -168,6 +157,17 @@ function special_flux_family(m::AbstractFTheoryModel; not_breaking::Bool = false
168157
end
169158
end
170159

160+
# (2) Consistency checks
161+
if arxiv_doi(m) == "10.48550/arXiv.1511.03209" && algorithm == "default"
162+
error("The default algorithm for intersection computations will likely not terminate in a reasonable time for this model and is therefore not supported")
163+
end
164+
@req base_space(m) isa NormalToricVariety "Computation of well-quantized and transversal G4-fluxes only supported for toric base and ambient spaces"
165+
@req dim(ambient_space(m)) == 5 "Computation of well-quantized and transversal G4-fluxes only supported for 5-dimensional toric ambient spaces"
166+
if check
167+
@req is_complete(ambient_space(m)) "Computation of well-quantized and transversal G4-fluxes only supported for complete toric ambient spaces"
168+
@req is_simplicial(ambient_space(m)) "Computation of well-quantized and transversal G4-fluxes only supported for simplicial toric ambient space"
169+
end
170+
171171
# (3) Result not known, compute it!
172172
final_shift = Vector{QQFieldElem}()
173173
res = Vector{ZZMatrix}()

0 commit comments

Comments
 (0)