Macaulay2 » Documentation
Packages » HilbertSchemeStrata :: passToGB
next | previous | forward | backward | up | index | toc

passToGB -- computes the unfolding of the GB induced by an unfolding of the generators

Description

Given an unfolding of an ideal I, the corresponding unfolding of the GB I0 of I is computed.

i1 : kk=QQ

o1 = QQ

o1 : Ring
i2 : S=kk[x_0..x_3]

o2 = S

o2 : PolynomialRing
i3 : q=x_0*x_2+x_1*x_3

o3 = x x  + x x
      0 2    1 3

o3 : S
i4 : s2=basis(2,S)

o4 = | x_0^2 x_0x_1 x_0x_2 x_0x_3 x_1^2 x_1x_2 x_1x_3 x_2^2 x_2x_3 x_3^2 |

             1      10
o4 : Matrix S  <-- S
i5 : qperp=ideal(s2*syz diff(s2,q))

             2               2                        2         2
o5 = ideal (x , x x , x x , x , x x , - x x  + x x , x , x x , x )
             0   0 1   0 3   1   1 2     0 2    1 3   2   2 3   3

o5 : Ideal of S
i6 : betti (fperp=res qperp)

            0 1  2 3 4
o6 = total: 1 9 16 9 1
         0: 1 .  . . .
         1: . 9 16 9 .
         2: . .  . . 1

o6 : BettiTally
i7 : line=ideal (x_0,x_1)

o7 = ideal (x , x )
             0   1

o7 : Ideal of S
i8 : badScheme=intersect (line, qperp)

                                      2         2
o8 = ideal (x x , x x , x x  - x x , x , x x , x )
             0 3   1 2   0 2    1 3   1   0 1   0

o8 : Ideal of S
i9 : betti res badScheme

            0 1 2 3 4
o9 = total: 1 6 9 5 1
         0: 1 . . . .
         1: . 6 8 3 .
         2: . . 1 2 1

o9 : BettiTally
i10 : I=ideal (gens badScheme)_{5,4,3,2,1,0}+ideal x_2^4

              2         2                            4
o10 = ideal (x , x x , x , x x  - x x , x x , x x , x )
              0   0 1   1   0 2    1 3   1 2   0 3   2

o10 : Ideal of S
i11 : betti res I

             0 1  2 3 4
o11 = total: 1 7 11 6 1
          0: 1 .  . . .
          1: . 6  8 3 .
          2: . .  1 2 1
          3: . 1  2 1 .

o11 : BettiTally
i12 : betti gb I

             0 1
o12 = total: 1 8
          0: 1 .
          1: . 6
          2: . 1
          3: . 1

o12 : BettiTally
i13 : (unf,R)=unfolding(I,qperp);
i14 : SR=ring unf

o14 = SR

o14 : PolynomialRing
i15 : transpose unf

o15 = {-2, 0} | x_0^2+x_2x_3a_(0,0)+x_3^2a_(0,1)         |
      {-2, 0} | x_0x_1+x_2x_3a_(1,0)+x_3^2a_(1,1)        |
      {-2, 0} | x_1^2+x_2x_3a_(2,0)+x_3^2a_(2,1)         |
      {-2, 0} | x_0x_2-x_1x_3+x_2x_3a_(3,0)+x_3^2a_(3,1) |
      {-2, 0} | x_1x_2+x_2x_3a_(4,0)+x_3^2a_(4,1)        |
      {-2, 0} | x_0x_3+x_2x_3a_(5,0)+x_3^2a_(5,1)        |
      {-4, 0} | x_2^4                                    |

               7       1
o15 : Matrix SR  <-- SR
i16 : (I0,unf1)=passToGB(I,unf);
i17 : I0

                                       2         2     2   4
o17 = ideal (x x , x x , x x  - x x , x , x x , x , x x , x )
              0 3   1 2   0 2    1 3   1   0 1   0   1 3   2

o17 : Ideal of S
i18 : transpose unf1

o18 = | x_0x_3+x_2x_3a_(5,0)+x_3^2a_(5,1)                                    
      | x_1x_2+x_2x_3a_(4,0)+x_3^2a_(4,1)                                    
      | x_0x_2-x_1x_3+x_2x_3a_(3,0)+x_3^2a_(3,1)                             
      | x_1^2+x_2x_3a_(2,0)+x_3^2a_(2,1)                                     
      | x_0x_1+x_2x_3a_(1,0)+x_3^2a_(1,1)                                    
      | x_0^2+x_2x_3a_(0,0)+x_3^2a_(0,1)                                     
      | x_2^2x_3a_(5,0)+x_1x_3^2-x_2x_3^2a_(3,0)+x_2x_3^2a_(5,1)-x_3^3a_(3,1)
      | x_2^4                                                                
      -----------------------------------------------------------------------
      |
      |
      |
      |
      |
      |
      |
      |

               8       1
o18 : Matrix SR  <-- SR

Ways to use passToGB:

  • passToGB(Ideal,Matrix)

For the programmer

The object passToGB is a method function.


The source of this document is in /build/reproducible-path/macaulay2-1.26.11+ds/M2/Macaulay2/packages/HilbertSchemeStrata.m2:458:0.