New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
various fixes for schemes #2508
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good apart from those very annoying merge artifacts which pop up all the time.
@@ -126,6 +126,16 @@ function pullback(f::AbsCoveredSchemeMorphism, C::EffectiveCartierDivisor) | |||
return EffectiveCartierDivisor(X, triv_dict, trivializing_covering=triv_cov, check=false) | |||
end | |||
|
|||
function pullback(f::AbsCoveredSchemeMorphism, C::CartierDivisor) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had this only been done for effective cartier divisors?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think so.
src/AlgebraicGeometry/Schemes/SpecOpen/Morphisms/Constructors.jl
Outdated
Show resolved
Hide resolved
src/AlgebraicGeometry/Schemes/SpecOpen/Morphisms/Constructors.jl
Outdated
Show resolved
Hide resolved
src/AlgebraicGeometry/Schemes/SpecOpen/Morphisms/Constructors.jl
Outdated
Show resolved
Hide resolved
src/Rings/mpolyquo-localizations.jl
Outdated
isone(lifted_denominator(a)) && return codomain(f)(restricted_map(f)(lifted_numerator(a))) | ||
return codomain(f)(restricted_map(f)(lifted_numerator(a)))*inv(codomain(f)(restricted_map(f)(lifted_denominator(a)))) | ||
return codomain(f)(restricted_map(f)(lifted_numerator(a)), check=false)*inv(codomain(f)(restricted_map(f)(lifted_denominator(a)), check=false)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why take this back?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No clue, I did not know what was the old version and what the new one.
So I will revert to the old version.
src/Rings/mpolyquo-localizations.jl
Outdated
isone(lifted_denominator(a)) && return codomain(f)(restricted_map(f)(lifted_numerator(a))) | ||
return codomain(f)(restricted_map(f)(lifted_numerator(a)))*inv(codomain(f)(restricted_map(f)(lifted_denominator(a)))) | ||
return codomain(f)(restricted_map(f)(lifted_numerator(a)), check=false)*inv(codomain(f)(restricted_map(f)(lifted_denominator(a)), check=false)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No clue, I did not know what was the old version and what the new one.
So I will revert to the old version.
Co-authored-by: Matthias Zach <85350711+HechtiDerLachs@users.noreply.github.com>
Good to go from my part. I set to auto merge. |
""" | ||
function is_prime(I::IdealSheaf) | ||
is_locally_prime(I) || return false | ||
# TODO: this can be made more efficient |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a TODO that we have to make sure that we are on a connected scheme.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
@@ -258,6 +258,8 @@ julia> standard_spec(X) | |||
Spec of Localization of quotient of multivariate polynomial ring at complement of prime ideal | |||
``` | |||
""" | |||
standard_spec(X::AbsSpec{<:Any, <:MPolyLocRing}) = Spec(MPolyQuoLocRing(ambient_coordinate_ring(X), ideal(ambient_coordinate_ring(X), [zero(ambient_coordinate_ring(X))]), inverted_set(OO(X)))) | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a mistake (perhaps made during merging), as the exact same method is defined in line 236. As a result we now get these warnings:
WARNING: Method definition standard_spec(Oscar.AbsSpec{var"#s1896", var"#s1895"} where var"#s1895"<:(Oscar.MPolyLocRing{BaseRingType, BaseRingElemType, RingType, RingElemType, MultSetType} where MultSetType<:Oscar.AbsMPolyMultSet{BaseRingType, BaseRingElemType, RingType, RingElemType} where RingElemType where RingType where BaseRingElemType where BaseRingType) where var"#s1896") in module Oscar at /home/runner/work/Oscar.jl/Oscar.jl/src/AlgebraicGeometry/Schemes/AffineSchemes/Objects/Constructors.jl:236 overwritten at /home/runner/work/Oscar.jl/Oscar.jl/src/AlgebraicGeometry/Schemes/AffineSchemes/Objects/Constructors.jl:261.
@HechtiDerLachs @simonbrandhorst please fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will do thx
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Various fixes and preparations for elliptic surfaces.