Skip to content
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

Merged
merged 9 commits into from Jul 3, 2023
Merged

various fixes for schemes #2508

merged 9 commits into from Jul 3, 2023

Conversation

simonbrandhorst
Copy link
Collaborator

Various fixes and preparations for elliptic surfaces.

Copy link
Collaborator

@HechtiDerLachs HechtiDerLachs left a 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)
Copy link
Collaborator

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?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think so.

experimental/Schemes/WeilDivisor.jl Outdated Show resolved Hide resolved
experimental/Schemes/WeilDivisor.jl Outdated Show resolved Hide resolved
src/AlgebraicGeometry/Schemes/SpecOpen/Morphisms/Types.jl Outdated Show resolved Hide resolved
Comment on lines 1057 to 1059
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))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why take this back?

Copy link
Collaborator Author

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/AlgebraicGeometry/Schemes/SpecOpen/Rings/Methods.jl Outdated Show resolved Hide resolved
src/AlgebraicGeometry/Schemes/SpecOpen/Rings/Methods.jl Outdated Show resolved Hide resolved
src/AlgebraicGeometry/Schemes/SpecOpen/Rings/Methods.jl Outdated Show resolved Hide resolved
src/AlgebraicGeometry/Schemes/SpecOpen/Rings/Methods.jl Outdated Show resolved Hide resolved
src/AlgebraicGeometry/Schemes/SpecOpen/Rings/Methods.jl Outdated Show resolved Hide resolved
src/Rings/MPolyMap/MPolyQuo.jl Outdated Show resolved Hide resolved
src/Rings/MPolyMap/MPolyRing.jl Outdated Show resolved Hide resolved
src/Rings/MPolyMap/MPolyRing.jl Outdated Show resolved Hide resolved
Comment on lines 1057 to 1059
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))
Copy link
Collaborator Author

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>
@simonbrandhorst
Copy link
Collaborator Author

Good to go from my part. I set to auto merge.

@simonbrandhorst simonbrandhorst enabled auto-merge (squash) July 3, 2023 12:19
"""
function is_prime(I::IdealSheaf)
is_locally_prime(I) || return false
# TODO: this can be made more efficient
Copy link
Collaborator

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.

Copy link
Collaborator

@afkafkafk13 afkafkafk13 left a 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.

@simonbrandhorst simonbrandhorst merged commit b2ad75c into master Jul 3, 2023
10 of 13 checks passed
@simonbrandhorst simonbrandhorst deleted the preparation branch July 3, 2023 19:31
@@ -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))))

Copy link
Member

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will do thx

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants