Slide 1
Slide 1
RIKEN iTHEMS
26 June, 2018
& %
1
' $
Contents
& %
2
' $
• References
1. Cox, D., Little, J. and O’Shea, D. (2000). Ideals, Varieties, and
Algorithms, An Introduction to Computational Algebraic Geometry
and Commutative Algebra. 3rd ed. Springer.
· · · An introduction of Gröbner basis theory.
2. Hibi, T. (ed). (2013). Gröbner Bases, Statistics and Software
Systems. Springer.
· · · Translation of [3]. Chap 1 by Hibi: An introduction of Gröbner
basis theory. Chap 4 by Aoki and Takemura: An application to
the analysis of contingency tables.
3. JST CREST 日比チーム (編). (2011). グレブナー道場. 共立出版.
4. 青木敏.計算代数統計 — グレブナー基底と実験計画法 —.統計学
One Point 第 9 巻.2018 年 8 月刊行予定.
· · · The slides 1 and 2 today are partially based on this book.
& %
3
' $
5. Pistone, G. and Wynn, H. P. (1996). Generalized confounding with
Gröbner bases. Biometrika, 83, 653–666.
· · · An application to the design of experiments. (One of the two
origins of computational algebraic statistics.)
6. Pistone, G., Riccomagno, E. and Wynn, H. P. (2001). Algebraic
statistics: Computational commutative algebra in statistics.
Chapman & Hall Ltd, Boca Raton.
· · · The first textbook of computational algebraic statistics.
7. Diaconis, P. and Sturmfels, B. (1998). Algebraic algorithms for
sampling from conditional distributions. Annals of Statistics. 26,
363–397.
· · · Application to the analysis of contingency tables. (One of the
two origins of computational algebraic statistics.)
8. Aoki, S., Hara, H. and Takemura, A. (2012). Markov bases in
statistics. Springer Series in Statistics.
· · · Application to the analysis of contingency tables.
& %
4
' $
& %
5
' $
& %
6
' $
& %
7
' $
• Answer: ⎧
⎪
⎪ x 2
+ y 2
+ 4z 2
= 81
⎨
x − y + z 2 = 13 (1)
⎪
⎪
⎩
xz − 2y = 18 (2)
From (2) − 2 × (1), we can eliminate y as
xz − 2x − 2z 2 = −8.
(z − 2)(x − 2z − 4) = 0.
& %
8
' $
xz − 3x − 3z + 8 = 0,
& %
9
' $
& %
10
' $
We have
f4 = yz − 3y − z 2 + 12z − 28.
& %
11
' $
f1 = x2 + y 2 + 4z 2 − 90 = 0
f2 = x − y + z − 12 = 0
f4 = yz − 3y − z 2 + 12z − 28 = 0
f1 = (y − z + 12)2 + y 2 + 4z 2 − 90
= 2y 2 − 2yz + 24y + 5z 2 − 24z + 54. (∗)
We have
f5 = y 2 + 9y + 3z 2 /2 − 1.
& %
12
' $
& %
13
' $
yf4 − zf5
= y(yz − 3y − z 2 + 12z − 28) − z(y 2 + 9y + 3z 2 /2 − 1)
= −3y 2 − yz 2 + 3yz − 28y − 3z 3 /2 + z. (∗∗)
& %
14
' $
& %
15
' $
& %
16
' $
x + 5z 3 /2 − 33z 2 /2 + 28z − 9,
y + 5z 3 /2 − 33z 2 /2 + 27z + 3,
z 4 − 48z 3 /5 + 31z 2 − 36z + 38/5
is a Gröbner basis.
• The polynomial deformation we done is a Buchberger algorithm.
• For general simultaneous algebraic equations, we can obtain the
polynomial of z in similar way, if x, y can be eliminated.
• Prof. Hibi says, “Gröbner basis is a powerful technique for
solving simultaneous equations”.
& %
17
' $
& %
18
' $
& %
19
' $
• To introduce an ideal of K[x1 , . . . , xn ], consider Prof.
Takayama’s words: “Ideal is an algebraic equations”.
◦ For f1 (x1 , . . . , xn ), . . . , fr (x1 , . . . , xn ) ∈ K[x1 , . . . , xn ],
consider the simultaneous equation
⎧
⎪
⎪ f1 (x1 , . . . , xn ) = 0
⎪
⎪
⎪
⎪
⎨ f2 (x1 , . . . , xn ) = 0
⎪ ..
⎪
⎪ .
⎪
⎪
⎪
⎩ fr (x1 , . . . , xn ) = 0.
◦ Affine variety of f1 , . . . , fr :
20
' $
◦ In Prob. 3, we have
√ √
7 ± 3 −13 ± 3 3 √
V(f1 , f2 , f3 ) = , ,2 ± 3 ,
2 2
√ √
√ −26 ± 6 6 14 ± 6
4 ± 6, ,
5 5
for K = R and
& %
21
' $
f1 = x2 + y 2 + 4z 2 − 90 = 0
f2 = x − y + z − 12 = 0
f3 = xz − 3y − 28 = 0
& %
22
' $
f1 = x2 + y 2 + 4z 2 − 90 = 0
f2 = x − y + z − 12 = 0
f4 = yz − 3y − z 2 + 12z − 28 = 0
Note that
1 x + y − z + 12
f1 − f2 + f4 = f5 .
2 2
& %
23
' $
◦ Next, to eliminate yz of f4 and y 2 of f5 , consider yf4 − zf5 ,
and substitute yz = · · · from f4 = 0 and y 2 = · · · from f5 = 0
into it. Then multiply it by −1, we have
⎧
⎪
⎨ f2 = x − y + z − 12 = 0
⎪
f4 = yz − 3y − z 2 + 12z − 28 = 0
⎪
⎪
⎩
f6 = y + 5z 3 /2 − 33z 2 /2 + 27z + 3 = 0.
Note that
−1 × (yf4 − zf5 + 3f5 + (z − 3)f4 + 3f4 )
= (−y − z)f4 + (z − 3)f5 = f6 .
◦ Finally we have f6 = f7 = f8 = 0 as
f7 = f2 + f6 = x + 5z 3 /2 − 33z 2 /2 + 28z − 9
2 2z − 6 48 38
f8 = − f4 + f6 = z 4 − z 3 + 31z 2 − 36z + .
5 5 5 5
& %
24
' $
f1 , . . . , fr
= {h1 f1 + · · · + hr fr | h1 , . . . , hr ∈ K[x1 , . . . , xr ]},
& %
25
' $
Proposition I = f1 , . . . , fr
is an ideal of K[x1 , . . . , xn ].
& %
26
' $
• f1 , . . . , fr
is the ideal generated by {f1 , . . . , fr }, i.e., finitely
generated ideal.
◦ In general, let {fλ | λ ∈ Λ} be a nonempty subset of
K[x1 , . . . , xn ], then we can show that
{fλ | λ ∈ Λ}
= finite sum hλ fλ , hλ ∈ K[x1 , . . . , xn ]
λ∈Λ
is an ideal of K[x1 , . . . , xn ].
◦ Conversely, for an ideal I ⊂ K[x1 , . . . , xn ], there exists
{fλ | λ ∈ Λ} ⊂ K[x1 , . . . , xn ] satisfying I = {fλ | λ ∈ Λ}
.
The subset {fλ | λ ∈ Λ} is called a system of generators of I.
& %
27
' $
I = f1 , . . . , fr
28
' $
Prob. 4
Divide f (x) = x4 + 2x3 − x2 + 4x − 1 by g(x) = x2 − 3x + 1.
Answer:
x2 + 5x + 13
x2 − 3x + 1 x4 +2x3 − x2 + 4x − 1
x4 −3x3 + x2
5x3 − 2x2 + 4x − 1
5x3 −15x2 + 5x
13x2 − x − 1
13x2 −39x+13
38x−14
The quotient is x2 + 5x + 13 and the remainder is 38x − 14.
& %
29
' $
& %
30
' $
& %
31
' $
• Ideal description problem for K[x]
◦ I ⊂ K[x]: ideal.
◦ g ∈ I: an element of I with a minimum degree.
◦ For each f ∈ I, we have the expression
f = qg + r,
where r = 0 or deg(r) < deg(g).
I = {qg | q ∈ K[x]} = g
.
32
' $
f = qg + r, q, r ∈ K[x],
where r = 0 or deg(r) < deg(g).
Then we have
r = 0 ⇔ f ∈ g
.
& %
33
' $
34
' $
1 ≺ x ≺ x2 ≺ x 3 ≺ · · ·
is a monomial order on M1 .
& %
35
' $
• Examples of monomial orders:
a b
Definition Let u = x1 1 · · · xann , v = x11 · · · xbnn ∈ Mn .
(i) We define u ≺purelex v if the leftmost nonzero element of
(b1 − a1 , . . . , bn − an ) is positive. It follows ≺purelex is a
monomial order on K[x1 , . . . , xn ], called the pure
lexicographic order.
(ii) We define u ≺lex v if either (i) deg(v) > deg(u) or (ii)
deg(v) = deg(u) and the leftmost nonzero element of
(b1 − a1 , . . . , bn − an ) is positive. It follows ≺lex is a monomial
order on K[x1 , . . . , xn ], called the lexicographic order.
(iii) We define u ≺rev v if either (i) deg(v) > deg(u) or (ii)
deg(v) = deg(u) and the rightmost nonzero element of
(b1 − a1 , . . . , bn − an ) is negative. It follows ≺rev is a monomial
order on K[x1 , . . . , xn ], called the reverse lexicographic order.
& %
36
' $
x4 , x3 y, x3 z, x3 , x2 y 2 , x2 yz, x2 y, x2 z 2 , x2 z, x2 ,
xy 3 , xy 2 z, xy 2 , xyz 2 , xyz, xy, xz 3 , xz 2 , xz, x,
y 4 , y 3 z, y 3 , y 2 z 2 , y 2 z, y 2 , yz 3 , yz 2 , yz, y,
z 4 , z 3 , z 2 , z, 1
& %
37
' $
x4 , x3 y, x3 z, x2 y 2 , x2 yz, x2 z 2 , xy 3 , xy 2 z, xyz 2 , xz 3 ,
y 4 , y 3 z, y 2 z 2 , yz 3 , z 4 ,
x3 , x2 y, x2 z, xy 2 , xyz, xz 2 , y 3 , y 2 z, yz 2 , z 3 ,
x2 , xy, xz, y 2 , yz, z 2 , x, y, z, 1
x4 , x3 y, x2 y 2 , xy 3 , y 4 , x3 z, x2 yz, xy 2 z, y 3 z,
x2 z 2 , xyz 2 , y 2 z 2 , xz 3 , yz 3 , z 4 ,
x3 , x2 y, xy 2 , y 3 , x2 z, xyz, y 2 z, xz 2 , yz 2 , z 3 ,
x2 , xy, y 2 , xz, yz, z 2 , x, y, z, 1
& %
38
' $
& %
39
' $
& %
40
' $
f = q1 g1 + · · · + qs gs + r
& %
41
' $
& %
42
' $
g1 = yz − x, g2 = xz − y 2
f = xyz + xz 2 − y 2 − 1
= x(g1 + x) + xz 2 − y 2 − 1
= xg1 + x2 + xz 2 − y 2 − 1
= xg1 + x2 + z(g2 + y 2 ) − y 2 − 1
= xg1 + zg2 + x2 + y 2 z − y 2 − 1
= xg1 + zg2 + x2 + y(g1 + x) − y 2 − 1
= (x + y)g1 + zg2 + x2 + xy − y 2 − 1
& %
43
' $
f = xyz + xz 2 − y 2 − 1
= y(g2 + y 2 ) + xz 2 − y 2 − 1
= yg2 + y 3 + xz 2 − y 2 − 1
= yg2 + y 3 + z(g2 + y 2 ) − y 2 − 1
= (y + z)g2 + y 3 + y 2 z − y 2 − 1
= (y + z)g2 + y 3 + y(g1 + x) − y 2 − 1
= yg1 + (y + z)g2 + y 3 + xy − y 2 − 1.
& %
44
' $
& %
45
' $
f = (x + y)g1 + zg2
= yg1 + (y + z)g2 + y 3 − x2
f = (x + y)g1 + zg2
= yg1 + (y + z)g2 + g3 .
46
' $
• Consider the case that f ∈ I = g1 , . . . , gs
has a standard form
f = q1 g1 + · · · + qs gs + r,
where r = 0.
• Here, r = f − q1 g1 − · · · − qs gs ∈ I. Each monomial of r cannot
be divided by any of in≺ (g1 ), . . . , in≺ (gs ). In particular, in≺ (r)
cannot be divided by any of in≺ (g1 ), . . . , in≺ (gs ), i.e.,
f ∈ g1 , . . . , gs
⇒ in≺ (f ) ∈ in≺ (g1 ), . . . , in≺ (gs )
,
47
' $
& %
48
' $
• For I = g1 , . . . , gs
, in≺ (I) ⊃ in≺ (g1 ), . . . , in≺ (gs )
in general.
• The converse does not necessary hold.
Example.
For ≺lex on M3 , consider g1 = yz − x, g2 = xz − y 2 , I = g1 , g2
.
From y 3 − x2 = xg1 − yg2 ∈ I, in≺lex (y 3 − x2 ) = y 3 ∈ in≺lex (I)
holds. However, y 3 ∈ yz, xz
= in≺lex (g1 ), in≺lex (g2 )
, i.e.,
in≺lex (I) = in≺lex (g1 ), in≺lex (g2 )
.
& %
49
' $
& %
50
' $
& %
51
' $
& %
52
' $
& %
53
' $
• The S-polynomial of f and g is obtained by cancelling the initial
monomials of f and g.
• Example: g1 = yz − x, g2 = xz − y 2
Lexicographic order:
54
' $
& %
55
' $
• Example:
g1 = yz − x, g2 = xz − y 2 , I = G
⊂ K[x, y, z], G = {g1 , g2 }
◦ Lexicographic order ≺lex
S(g1 , g2 ) = y 3 − x2 is a standard form w.r.t. G and is a
remainder itself. Therefore G is not a Gröbner basis of I.
Write g3 = y 3 − x2 and G = G ∪ {g3 }, then
S(g1 , g3 ) = x2 z − xy 2 = xg2
S(g2 , g3 ) = −y 2 g3 + x2 g2 (∗)
& %
56
' $
S(g1 , g3 ) = xy 2 − x2 z = −xg2
S(g2 , g3 ) = −xzg3 − xyg2 (∗)
& %
57
' $
& %
58
' $
& %
59
' $
& %
60
' $
f1 = x2 + y 2 + 4z 2 − 90, f2 = x − y + z − 12, f3 = xz − 3y − 2.
& %
61
' $
S(f2 , f3 ) = zf2 − f3
= −yz + 3y + z 2 − 12z + 28.
& %
62
' $
S(f1 , f2 ) = f1 − xf2
= xy − xz + 12x + y 2 + 4z 2 − 90
= (y − z + 12)f2 − 2f4 + 2y 2 + 18y + 3z 2 − 2.
& %
63
' $
& %
64
' $
• Now we have
f1 = x2 + y 2 + 4z 2 − 90,
f2 = x − y + z − 12,
f3 = xz − 3y − 2,
f4 = yz − 3y − z 2 + 12z − 28,
f5 = y 2 + 9y + 32 z 2 − 1,
f6 = y + 52 z 3 − 33 2
2 z + 27z + 3.
& %
65
' $
& %
66
' $
S(f4 , f6 ) = f4 − zf6
= −3y − 5z 4 /2 + 33z 3 /2 − 28z 2 + 9z − 28
= −3f6 − 5z 4 /2 + 24z 3 − 155z 2 /2 + 90z − 19
& %
67
' $
S(f5 , f6 ) = f5 − yf6
= −5yz 3 /2 + 33yz 2 /2 − 27yz + 6y + 3z 2 /2 − 1
= (−5z 2 /2 + 9z)f4 + 6f6 − (5/2)f8 .
& %
68
' $
• Now we have
f1 = x2 + y 2 + 4z 2 − 90,
f2 = x − y + z − 12,
f3 = xz − 3y − 2,
f4 = yz − 3y − z 2 + 12z − 28,
f5 = y 2 + 9y + 32 z 2 − 1,
f6 = y + 52 z 3 − 33 2
2 z + 27z + 3.,
48 3 38
f8 = z 4 − 5 z + 31z 2 − 36z + 5
& %
69
' $
S(f3 , f8 ) = z 3 f3 − xf8
= 48xz 3 /5 − 31xz 2 + 36xz − 38x/5 − 3yz 3 − 28z 3
= −(38/5)f2 + (48z 2 /5 − 31z + 36)f3
+(−3z 2 + 99z/5 − 168/5)f4 − (2/5)f6 − 3f8 .
S(f4 , f8 ) = z 3 f4 − yf8
= 33yz 3 /5 − 31yz 2 + 36yz − 38y/5 − z 5 + 12z 4 − 28z 3
= (33z 2 /5 − 31z + 99z/5 − 57 + 297/5)f4
−(2/5)f6 − (z − 9)f8 .
These are standard forms w.r.t. F with 0 remainder.
Therefore F = {f1 , f2 , f3 , f4 , f5 , f6 , f8 } is a Gröbner basis of I
w.r.t. ≺purelex from the Buchberger criterion.
& %
70
' $
& %
71
' $
f1 = x2 + y 2 + 4z 2 − 90, f2 = x − y + z − 12, f3 = xz − 3y − 28
includes a polynomial of z,
as an element.
• In fact, the Gröbner basis w.r.t. the pure lexicographic order is
effective for solving simultaneous equations.
& %
72
' $
Proposition Let I = f1 , . . . , fr
is an ideal of K[x, y, z]. If
I ∩ K[z] = 0
, there is only one polynomial of K[z] in the
reduced Grob̈ner basis of I w.r.t. ≺purelex satisfying
x
purelex y
purelex z, and is unique. Write this element be
g ∗ ∈ G ∩ K[z], then I ∩ K[z] = g ∗
holds.
& %
73
' $
& %
74
' $
• Extending Proposition.
• Let K[xi1 , xi2 , . . . , xim ] be the set of the polynomials in
K[x1 , . . . , xn ] with the variables xi1 , xi2 , . . . , xim
(1 ≤ i1 < i2 < · · · < im ≤ n). This is a polynomial ring.
• A monomial order ≺ on K[x1 , . . . , xn ] naturally induce the
monomial order ≺ on K[xi1 , xi2 , . . . , xim ].
& %
75
' $
& %
76
' $
of I = g1 , g2 , g3
w.r.t. ≺purelex .
From the elimination theorem,
◦ {g1 } is a Gröbner basis of I ∩ K[z],
◦ {g1 , g2 } is a Gröbner basis of I ∩ K[y, z] w.r.t. y
purelex z.
& %
77
' $
& %
78