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

Bug in KlyachkoBundle_class.random_deformation #29956

Closed
kliem opened this issue Jun 24, 2020 · 9 comments
Closed

Bug in KlyachkoBundle_class.random_deformation #29956

kliem opened this issue Jun 24, 2020 · 9 comments

Comments

@kliem
Copy link
Contributor

kliem commented Jun 24, 2020

The doctest in src/sage/schemes/toric/sheaf/klyachko.py does produce an error on some random seeds:

sage: set_random_seed(151058820726654196682836430928254760259)
sage: P1 = toric_varieties.P1()
sage: H = P1.divisor(0)
sage: V = P1.sheaves.line_bundle(H) + P1.sheaves.line_bundle(-H)
sage: V.cohomology(dim=True, weight=(0,))
(1, 0)
sage: Vtilde = V.random_deformation()
sage: Vtilde = V.random_deformation()
sage: Vtilde = V.random_deformation()
sage: Vtilde = V.random_deformation()
sage: Vtilde = V.random_deformation()
sage: Vtilde = V.random_deformation()
sage: Vtilde = V.random_deformation()
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-12-3095c5f6f78e> in <module>()
----> 1 Vtilde = V.random_deformation()

/home/jonathan/Applications/sage/local/lib/python3.7/site-packages/sage/schemes/toric/sheaf/klyachko.py in random_deformation(self, epsilon)
    953         """
    954         filt = self._filt.random_deformation(epsilon)
--> 955         return self.__class__(self.variety(), filt, check=True)

/home/jonathan/Applications/sage/local/lib/python3.7/site-packages/sage/schemes/toric/sheaf/klyachko.py in __init__(self, toric_variety, multi_filtration, check)
    176                              ' all rays of the fan.')
    177         if not multi_filtration.is_exhaustive():
--> 178             raise ValueError('multi-filtration must be exhaustive')
    179         if not multi_filtration.is_separating():
    180             raise ValueError('multi-filtration must be separating')

ValueError: multi-filtration must be exhaustive

Doctests are marked untested in #32543.

CC: @vbraun

Component: algebraic geometry

Keywords: CPR-Fano toric variety

Author: Andrey Belgorodski

Branch/Commit: 5f8fe4e

Reviewer: Jonathan Kliem

Issue created by migration from https://trac.sagemath.org/ticket/29956

@kliem kliem added this to the sage-9.2 milestone Jun 24, 2020
@mkoeppe mkoeppe modified the milestones: sage-9.2, sage-9.3 Oct 24, 2020
@mkoeppe
Copy link
Member

mkoeppe commented May 10, 2021

comment:3

Moving to 9.4, as 9.3 has been released.

@mkoeppe mkoeppe modified the milestones: sage-9.3, sage-9.4 May 10, 2021
@mkoeppe mkoeppe modified the milestones: sage-9.4, sage-9.5 Aug 22, 2021
@kliem

This comment has been minimized.

@sheerluck
Copy link
Contributor

comment:6
diff --git a/src/sage/schemes/toric/sheaf/klyachko.py b/src/sage/schemes/toric/sheaf/klyachko.py
index 1ed3ac290b..32821e6d06 100644
--- a/src/sage/schemes/toric/sheaf/klyachko.py
+++ b/src/sage/schemes/toric/sheaf/klyachko.py
@@ -952,4 +952,6 @@ class KlyachkoBundle_class(SageObject):
            (1, 0)
         """
         filt = self._filt.random_deformation(epsilon)
+        while not filt.is_exhaustive():
+            filt = self._filt.random_deformation(epsilon)
         return self.__class__(self.variety(), filt, check=True)

@kliem
Copy link
Contributor Author

kliem commented Sep 30, 2021

Branch: public/29956

@kliem
Copy link
Contributor Author

kliem commented Sep 30, 2021

New commits:

0828599mark unstable tests due to 29956
9fabf8aMerge branch 'u/gh-kliem/mark_doctests_for_29956' of git://trac.sagemath.org/sage into public/29956
5f8fe4emake sure that random multi-filtration is exhaustive

@kliem
Copy link
Contributor Author

kliem commented Sep 30, 2021

Reviewer: Jonathan Kliem

@kliem
Copy link
Contributor Author

kliem commented Sep 30, 2021

Commit: 5f8fe4e

@kliem
Copy link
Contributor Author

kliem commented Sep 30, 2021

Author: Andrey Belgorodski

@vbraun
Copy link
Member

vbraun commented Oct 9, 2021

Changed branch from public/29956 to 5f8fe4e

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

No branches or pull requests

4 participants