scieee AI-readable full text Open interactive document viewer

Computing the canonical representation of constructible sets

Brunat Blay, Josep Maria,Montes Lozano, Antonio

Abstract

Constructible sets are needed in many algorithms of Computer Algebra, particularly in the GröbnerCover and other algorithms for parametric polynomial systems. In this paper we review the canonical form ofconstructible sets and give algorithms for computing it.

Full text

uncorrected proof Math.Comput.Sci. DOI 10.1007/s11786-016-0248-2 Mathematics in Computer Science Computing the Canonical Representation of Constructible Sets Josep M. Brunat ·Antonio Montes Received: 29 June 2015 / Revised: 14 January 2016 / Accepted: 23 February 2016 © Springer International Publishing 2016 Abstract Constructible sets are needed in many algorithms of Computer Algebra, particularly in the Gröbner1 Cover and other algorithms for parametric polynomial systems. In this paper we review the canonical form of2 constructible sets and give algorithms for computing it.3 Keywords Constructible sets ·Locally closed sets ·Canonical representation ·Parametric polynomial system ·4 Gröbner Cover ·Comprehensive Gröbner system5 Mathematics Subject Classification 13P10 ·68T156 1 Introduction7 In the basic paper defining the Gröbner Cover [16] for discussing parametric polynomial systems of equations, we8 introduced algorithms that have been improved since then. We used our own algorithm buildtree for computing9 the initial Comprehensive Gröbner System (CGS), needed for the Gröbner Cover, now substituted in the Singular [7]10 library “grobcov.lib” by the more efficient Kapur–Sun–Wang algorithm [11]. The algorithm grobcov used specially11 simple locally closed sets, whose union is certified to be also locally closed by Wibmer’s theorem [17] (algorithm12 LCUnion).13 The Gröbner Cover is used in [15] for the automatic deduction of geometric theorems. It is also essential for14 computing geometrical loci and defining a taxonomy of the components of loci in [1], as well as for envelopes.15 In general in these tasks, the representation of locally closed sets, i.e. difference of varieties, is sufficient. But for16 more general applications, where Wibmer’s theorem [17] is not applicable, the union of locally closed sets is not17 always locally closed. This is the reason for reviewing here the canonical representation of constructible sets giving18 algorithms to compute it, as well as to use the new algorithms inside the library for computing higher dimensional19 Partially supported by MTM2011-24097 and Gen. Cat. DGR 2014SGR46. J. M. Brunat ·A. Montes (B ) Universitat Politècnica de Catalunya, Barcelona, Spain e-mail: [email protected] J. M. Brunat e-mail: [email protected] Journal: MCS MS: 0248 TYPESET DISK LE CP Disp.:2016/2/29 Pages: 14 Layout: Medium Author Proof uncorrected proof J. M. Brunat, A. Montes geometrical loci’s. As shown in Example 2, the algorithm for computing the canonical form of constructible sets20 can be very useful in an alternative construction of the Gröbner Cover.21 Canonical form of constructible sets were already introduced by [3], in the context of general topology. More22 recently, [10] have given a description of invariant sequences for constructible sets in Zariski topology. The object of23 this paper is, taken this last description as starting point, to give formulas and algorithms for computing effectively24 the canonical form of constructible sets.25 In Sect. 2, we give the two canonical representations of locally closed sets and an algorithm PCrep for computing26 them, that is central for our purposes. In Sect. 3, we recall the canonical structure of constructible sets introduced by27 [10], complementing it with dimension characteristics and an effective formula. This formula allows us to give an28 algorithm in Sect. 4to build the canonical representation of constructible sets, using the Crep for locally closed sets.29 In Sect. 4we also propose an acceleration method. Finally in Sect. 5clarifying examples are given. In particular an30 example shows why the new algorithms are promising for an alternative approach for building the Gröbner Cover.31 Some remarks about notation. All along the paper we shall use the notations ⊆and ⊂to represent inclusion and32 strict inclusion, respectively. If r≥1 is an integer the symbol [r]means the set [r]={i∈N:1≤i≤r}.Fora33 set S⊆Cn, the complementary set Cn\Sof Sis denoted Sc. Finally A⊎Bmeans disjoint reunion, that is, A∪B34 with the additional information that A∩B=∅.35 2 Canonical Representations of Locally Closed Sets36 Consider the ring Q[x]=Q[x1,...,xn]of polynomials in nindeterminates x1,...,xnwith rational coefficients.37 If N⊆Q[x],thevariety of Nis the set38 V(N)={u∈Cn:g(u)=0 for all g∈N}.39 Let a=rad(N). Then V(N)=V(N)=V(a). The ideal ais called the ideal of the variety V(N), and is40 denoted a=I(V(N)).IfS⊆Cn,theclosure of Sis the smallest variety containing S, and is denoted S. The ideal41 of S, denoted I(S), is defined by I(S)=I(S). By the Nullstellensatz, there is a one-to-one correspondence between42 varieties Vand radical ideals a. For a radical ideal aand a variety V, both I(V(a)) =aand V(I(V)) =Vhold.43 By taking varieties as closed sets, we have a topology in Cncalled the Q-Zariski topology of Cn. For concepts about44 varieties and the Q-Zariski topology of Cnnot defined here (such as irreducible varieties, irreducible components,45 dimension of a variety, etc.), we refer to [2,5].46 AsetS⊆Cnis locally closed if it is the intersection of an open set and a closed set.47 Remark 2.1 The concept of locally closed set admits different but equivalent definitions. Indeed, the following48 conditions are easily shown to be equivalent:49 (a) The set Sis locally closed;50 (b) the set Sis the difference of two closed sets;51 (c) the set Sis open in the closure Sof S;52 (d) the set S\Sis closed.53 Let Sbe an open (resp. closed) set. As Cnis closed (resp. open), then S=S∩Cnis a locally closed set. Thus,54 open sets and closed sets are locally closed.55 We introduce now the canonical C-representation of a locally closed set S.LetSbe a locally closed set. As S56 and S\Sare closed, there exist radical ideals aand bsuch that57 S=V(a)and S\S=V(b).58 These ideals satisfy59 S=S\(S\S)=V(a)\V(b). (2.1)60 Journal: MCS MS: 0248 TYPESET DISK LE CP Disp.:2016/2/29 Pages: 14 Layout: Medium Author Proof uncorrected proof Computing the Canonical Representation of Constructible Sets Taking into account the one-to-one correspondence between radical ideals and varieties, the ideals a=I(S)and61 b=IS\Sare uniquely determined by S. The pair Crep(S)=[a,b]is called the C-canonical representation of62 the locally closed set S. It is canonical in the sense that it does not depend on how the locally closed set Sis given:63 it depends only on S.ThesetV(a)(or a) is called the top of S, whereas V(b)(or b) is called the hole of S.64 Remark 2.2 If [a,b]=Crep(S), then Sis closed if and only if b=1.65 Remark 2.3 Note that if Sis empty, then a=1,b=1.66 The following Proposition explains how to obtain Crep(S)=[a,b]for a locally closed set Sgiven in the form67 S=V(P)\V(Q)by two ideals Pand Q. It uses the decomposition of V(P)into irreducible varieties, which can68 be done by [8] algorithm.69 Proposition 2.4 Let S =V(P)\V(Q)be a locally closed set given by two ideals P and Q, and let {p′ 1,...,p′ s}70 be the prime decomposition of P. Consider the set {p1,...,pr}of ideals p′ isuch that V(p′ i)⊆ V(Q). Then, the71 C-representation [a,b]of S satisfies72 (i) a=r i=1pi;73 (ii) b=rad(a+Q);74 (iii) if S is non-empty then a⊂b.75 Proof (i) For i∈[s]let Vi=V(p′ i). Then V(P)=V1∪···∪Vsis the decomposition of V(P)into irreducible76 varieties. We have77 S=V(P)\V(Q)=s  i=1 Vi\V(Q)= s  i=1 (Vi\(V(Q)∩Vi)).78 Let J={i∈[s]:V(pi)⊆ V(Q)}.Ifi∈[s]\J, then Vi∩V(Q)=Viand so Vi\(V(Q)∩Vi)=∅. Thus the79 set Vi\(V(Q)∩Vi)can be excluded from the union, obtaining80 S= i∈J (Vi\(V(Q)∩Vi)).81 For i∈J,wehaveV(Q)∩Vi⊂Vi.AsViis irreducible, the closure of Vi\(V(Q)∩Vi)is Vi. Therefore,82 S= i∈J Vi= r  i=1 V(pi), (2.2)83 a=I(S)= i∈J I(Vi)= i∈J p′ i= r  i=1 pi.(2.3)84 85 (ii) To obtain b=I(S\S)note that86 S=i∈J(Vi\(V(Q)∩Vi))=i∈J(Vi\V(Q))=i∈JVi\V(Q)=S\V(Q),87 S\S=S\(S\V(Q)) =S∩V(Q)=V(a)∩V(Q)=V(a+Q),88 89 so that, b=I(S\S)=rad(a+Q).90 (iii) From b=Rad(a+Q), clearly b⊇a.Nowb=aimplies S=∅and in this case a=b=1. Therefore, if91 Sis non-empty, then b⊃a.⊓⊔92 We can further decompose Crep(S)=[a,b]and obtain another representation of S.Let{pi:i∈[r]} be the93 prime decomposition of aand for i∈[r]let {pij :j∈[ri]} be the prime decomposition of pi+b.Theset94 Prep(S)={[pi,{pij :j∈[ri]}] : i∈[r]} (2.4)95 Journal: MCS MS: 0248 TYPESET DISK LE CP Disp.:2016/2/29 Pages: 14 Layout: Medium Author Proof uncorrected proof J. M. Brunat, A. Montes is called the P-representation of S. Note that it only depends on S. Each [pi,{pij :j∈[ri]}] is called a component96 of S, from which V(pi)(or pi)isthetop and V(pij)(or pij) with j∈[ri]its holes.97 Remark 2.5 Note that if S=∅, then Prep(S)={[1,{1}]}.98 Proposition 2.6 Let [a,b]and {[pi,{pij :j∈[ri]}] : i∈[r]} be respectively the C-representation and P-99 representation of a locally closed set S. Then100 (i) If S =∅, then pi⊂pij, for all i ∈[r]and j ∈[ri];101 (ii) a=r i=1pi;102 (iii) b=r i=1ri j=1pij;103 (iv) S=r i=1V(pi)ri j=1V(pij).104 Proof (i) It is consequence of the definition of P-representation, as b⊂ pifor non empty S.105 (ii) It is consequence of Proposition 2.4.106 (iii) Considering the intersection of all the identities Rad(pi+b)=pi1∩···∩piriwe have107 T= r  i=1 ri  j=1 pij = r  i=1 Rad(pi+b)=Rad r  i=1 (pi+b) 108 and109 V(T)=Vr  i=1 (pi+b)= r  i=1 V(pi+b)= r  i=1 (V(pi)∩V(b)) 110 =r  i=1 V(pi)∩V(b)=V(a)∩V(b)=V(b).111 112 Taking ideals of the varieties and using the Nullstellensatz, we have b=T, so that (iii) is proved.113 (iv) As [a,b]is the C-representation of S,wehaveS=V(a)\V(b). Then, by taking varieties in (ii) and (iii), we114 have115 S=V(a)\V(b)=r  i=1 V(pi)⎛ ⎝ r  i=1 ri  j=1 V(pij)⎞ ⎠= r  i=1⎛ ⎝V(pi)ri  j=1 V(pij)⎞ ⎠ 116 117 ⊓⊔118 Proposition 2.7 Let S be a non empty locally closed set with119 Crep(S)=[a,b]and Prep(S)={[pi,{pij :j∈[ri]}] : i∈[r]}.120 Then121 (i) dim V(pij)<dim V(pi)for all i ∈[r]and j ∈[ri];122 (ii) dim V(b)<dim V(a).123 Proof (i) As the piand pij are prime and correspond to irreducible varieties the result is obvious.124 (ii) From Proposition 2.6 (iii) , we have125 dim V(b)=dim r  i=1 ri  j=1 V(pij)126 =max{dim V(pij):i∈[r],j∈[ri]}127 <max{dim V(pi):i∈[r]} = dim V(a).128 129 ⊓⊔130 Journal: MCS MS: 0248 TYPESET DISK LE CP Disp.:2016/2/29 Pages: 14 Layout: Medium Author Proof uncorrected proof Computing the Canonical Representation of Constructible Sets [Crep,Prep]←CPrep(P,Q) Input: [P,Q]: a pair of ideals representing the set S=V(P)\V(Q) Output: [a,b]the C-representation of Sand [pi,{pi1,...,piri}] : 1≤i≤rthe P-representation of S begin a=1;Prep =∅;i=0 {p′ 1,...,p′ s}=PrimeDecomp(P) for j=1tosdo if Q⊆ p′ jthen i=i+1; pi=p′ j;a=a∩pi {pi1,...,piri}=PrimeDecomp(Q+pi) Prep =Prep ∪{[pi,{pi1,...,piri}]} end if end for b=rad(Q+a) Crep =[a,b] return([Crep,Prep]) end Algorithm 1: CPrep Corollary 2.8 Let V and W be varieties and S =V\W.IfW ⊂V and V =S, then Crep(S)=[I(V), I(W)]and131 dim W<dim V.132 Proof If S=Vthen a=I(S)=I(V). Moreover133 S\S=(S∩(Sc∪W)=S∩W=W.134 Thus b=I(W). The dimension relation is a consequence of Proposition 2.7.⊓⊔135 Proposition 2.4 and the definition of P-representation justify Algorithm 1CPrep for obtaining the canonical136 representations Crep and Prep of a locally closed set S=V(P)\V(Q)given by a pair of ideals [P,Q].The137 algorithm can be easily modified for obtaining only the C-representation Crep(S)of S.138 Remark 2.9 If the set Sis empty, the algorithm for obtaining CPrep(S)will return CPrep(S)=[[1,1],{[1,139 {1}]}].140 3 Canonical Representation of Constructible Sets141 AsetS⊆Cnis constructible if it is a finite union of locally closed sets. In particular, locally closed sets are142 constructible. Constructible sets appear naturally in solving parametric polynomial systems of equations. Many143 authors give special representations for constructible sets [4,10,12,13], adequate for its goals. Our goal is developing144 the invariant sequence of a constructible set described in [10] setting the outlook on its effective computation, to145 generalize the Crep of a locally closed set.146 Next lemma recalls the behaviour of locally closed sets and constructible sets respect to union, intersection and147 complementation. We omit the proofs which are straightforward.148 Lemma 3.1 .149 (i) If S is locally closed, then Scis constructible;150 (ii) If S1and S2are locally closed, then S1∪S2is constructible and S1∩S2is locally closed;151 (iii) If S1is locally closed and S2is constructible, then S1∪S2and S1∩S2are constructible;152 Journal: MCS MS: 0248 TYPESET DISK LE CP Disp.:2016/2/29 Pages: 14 Layout: Medium Author Proof uncorrected proof J. M. Brunat, A. Montes (iv) If S1and S2are constructible, then S1∪S2and S1∩S2are constructible.153 (v) if S is constructible, then Scis constructible.154 (vi) if S1and S2are constructible, then S1\S2is constructible.155 In the following Ldenotes the family of locally closed sets and Cthe family of constructible sets.156 Remark 3.2 According to Lemma 3.1,ifS1and S2are constructible, then S1∪S2,S1∩S2and Sc 1are constructible157 sets, too. Then Cis a Boolean algebra of subsets of Cncontaining L. On the other hand, if a Boolean algebra A158 contains Lthen it must contain the finite union of locally closed sets, that is, C⊆A. We conclude that Cis the159 Boolean algebra generated by L.LetTbe the union of the family of open sets and the family of closed sets. The160 boolean algebra generated by Tcontains L,soCis also the boolean algebra generated by T.161 The first step of the construction of the canonical structure of the constructible set Sgiven as a union of locally162 closed sets is to separate Sinto two disjoint sets: S=S⊎Cwhere Cis the complement of Swith respect to S.163 Having this in mind we define:164 C(S)=S\S,L(S)=S\C(S), (3.1)165 (If the set Sis clear from the context, we often write Cand Linstead of C(S)and L(S)respectively).166 If S∈C, then, Sand Scare constructible and C(S)=S\Sis a difference of constructibles, so it is a constructible167 set. Thus, the map168 C:C→C S→ C(S)=S\S 169 is well defined. Note:170 (i) S=C(S)⊎S;171 (ii) Sis closed if and only if C(S)=∅;172 (iii) Sis locally closed if and only if C(S)is closed.173 The set L(S)=S\C(where C=C(S)) is a difference of closed sets, so it is locally closed. Then,174 L:C→L S→ L(S)=S\C 175 is a well defined map. Clearly S=L(S)⊎C. Moreover, L(S)⊆S. Indeed,176 L(S)=S\C=S\S\S⊆S\S\S=S.177 For a constructible set S,thesetL(S)can be characterized as the largest locally closed set included in S.178 We give now a Proposition that determines an explicit expression of Cas a union of locally closed sets in terms179 of the input expression of S.180 Proposition 3.3 Let S =S1∪···∪Srbe a constructible set with each Silocally closed. For i ∈[r]let Crep(Si)=181 [ai,bi],V i=V(ai)and Wi=V(bi). Then,182 C=S\S= T⊂[r]⎛ ⎝⎛ ⎝ j∈T Vc j⎞ ⎠∩⎛ ⎝ j∈T Wj⎞ ⎠⎞ ⎠ 183 = T⊂[r]⎛ ⎝⎛ ⎝ j∈T Wj⎞ ⎠⎛ ⎝ j∈T Vj⎞ ⎠⎞ ⎠.(3.2)184 185 Journal: MCS MS: 0248 TYPESET DISK LE CP Disp.:2016/2/29 Pages: 14 Layout: Medium Author Proof uncorrected proof Computing the Canonical Representation of Constructible Sets Proof We have186 S=(V1\W1)∪···∪(Vr\Wr)=(V1∩Wc 1)∪···∪(Vr∩Wc r)187 = T⊆[r]⎛ ⎝⎛ ⎝ j∈T Vj⎞ ⎠∪⎛ ⎝ j∈T Wc j⎞ ⎠⎞ ⎠,188 189 and thus190 Sc= T⊆[r]⎛ ⎝⎛ ⎝ j∈T Vc j⎞ ⎠∩⎛ ⎝ j∈T Wj⎞ ⎠⎞ ⎠.191 For a subset T⊆[r],let192 ZT=⎛ ⎝ j∈T Vc j⎞ ⎠∩⎛ ⎝ j∈T Wj⎞ ⎠,193 so that Sc=T⊆[r]ZT. With this notation, the equality to prove is S\S=T⊂[r]ZT. For a set T⊆[r]and an194 index ℓ∈Twe have195 Vℓ∩ZT⊆Vℓ∩ j∈T Vc j⊆Vℓ∩Vc ℓ=∅,196 (in particular, Vℓ∩Z[r]=∅) and, if ℓ∈T, then Wℓ⊂Vℓand197 Vℓ∩ j∈T Wj= j∈T Wj,198 and we have Vℓ∩ZT=ZT.Therefore, by using the distributive law,199 S\S=(V1∪···∪Vr)∩Sc=(V1∪···∪Vr)∩ T⊆[r] ZT 200 = r  ℓ=1 T⊆[r] (Vℓ∩ZT)= T⊂[r] ZT.201 202 ⊓⊔203 Proposition 3.3 provides an explicit formula of C=S\S, as a union of locally closed sets. We can compute the204 Crep of each one of these subsets of Cand obtain an expression that allows us to handle C⊂Sin the same way as205 we have done with S. This provides an iterative method to build the canonical representation of S. Next Proposition206 summarizes the basic properties of the first step in the recursive construction.207 Proposition 3.4 Let S =∅be a constructible set, C =C(S),L=L(S),a=I(S)and b=I(C). Then,208 (i) C⊂S;209 (ii) C⊂S;210 (iii) S=L;211 (iv) [a,b]=[I(S), I(C)]=[I(S)],I(C)]is the C-representation of L.212 (v) dim C<dim S.213 Journal: MCS MS: 0248 TYPESET DISK LE CP Disp.:2016/2/29 Pages: 14 Layout: Medium Author Proof uncorrected proof J. M. Brunat, A. Montes Proof (i) Let S=S1∪···∪ Srwith Silocally closed. For i∈[r],letCrep(Si)=[ai,bi],Vi=V(ai)and214 Wi=V(bi). Then, S=r i=1(Vi\Wi)with Wi⊂Vi. By taking closures it results in S=r i=1Vi. Now, from215 formula (3.2) of Proposition 3.3 it results in216 C⊆ r  i=1 Wi⊂ r  i=1 Vi=S.217 (ii) Taking closures in the preceding expression, it results in218 C⊆ r  i=1 Wi⊂ r  i=1 Vi=S.219 (iii) From C⊆r j=1Wjwe have220 L=S\C⊇S\⎛ ⎝ r  j=1 Wj⎞ ⎠=r  i=1 Vi⎛ ⎝ r  j=1 Wj⎞ ⎠= r  i=1 ri  k=1⎛ ⎝Vik r  j=1 Wj⎞ ⎠,221 where Vi=ri k=1Vik is the decomposition of Viinto irreducible varieties. If some irreducible variety Vik of Vi 222 of the segment iis cancelled by some Wjof a segment j, i.e. Wj⊇Vik, then Vj⊃Wj⊇Vik, and in this case223 the variety Vik is included in Vj. So, Vik does not cancel in the closure of Lnor of S. Thus L⊇r i=1Vi=S.As224 L⊆Swe also have L⊆S, and the inclusion is proved.225 (iv) and (v) From (ii) and (iii) the expression L=S\Csatisfies the conditions of Corollary 2.8, and thus (iv) and226 (v) follow. ⊓⊔227 We proceed now to describe the method for obtaining the canonical representation. Let Sbe a constructible set.228 Define the sequence (Ai)by229 A1=S,Ai+1=C(Ai).230 By Proposition 3.4 (ii) and (v), if Ai=∅,wehaveAi⊃Ai+1and dim Ai>dim Ai+1. Therefore, there exists231 an integer k≥1 such that Ak+1=∅and Akis closed. Consider the finite sequences232 S=A1,A2,...,Ak,Ak+1=∅ (3.3)233 S=A1⊃A2⊃···⊃ Ak+1=∅,234 dim(S)=dim(A1)>dim(A2)> ··· >dim(Ak).235 236 By construction A2=C(A1)=S\Sis disjoint with S=A1.ButA3=A2\A2is disjoint with A2and a subset237 of S. Thus, we have two decreasing and disjoint subsequences238 S=A1⊃A3⊃···⊃ A2ℓ±1,239 C=A2⊃A4⊃···⊃ A2ℓ.240 241 Applying Lto sequence (3.3), i.e. Li=Ai\Ai+1, we get a new sequence of disjoint sets that fill the whole S,242 L1=A1\A2,L2=A2\A3,...,Lk=Ak\Ak+1=Ak 243 so that244 S=A1=A1\Ak+1=L1⊎L2⊎···⊎Lk.245 As the Libelong alternatively to Sand to Cthe previous sequence is divided into246 S=L1⊎L3⊎···⊎L2ℓ±1,(3.4)247 C=L2⊎L4⊎···⊎L2ℓ.(3.5)248 249 Journal: MCS MS: 0248 TYPESET DISK LE CP Disp.:2016/2/29 Pages: 14 Layout: Medium Author Proof uncorrected proof Computing the Canonical Representation of Constructible Sets [a,C]←FirstLevel(A) Input: A={[a1,b1],...,[ar,br]} asetofCrep’s of the segments defining a constructible set A Output: a: the closure of Aand C:asetofCrep’s of the segments defining C(A) begin a=r i=1ai p=0;q=1;C=∅; top C=1 for all T⊂[r]do for j∈[r]do if j∈Tthen p=p+bjelse q=q∩ajend if end for [a,b]=Crep(p,q) C=append([a,b]to C) end do C=SimplifyUnion(C)# facility for reducing terms return ([a,C]) end Algorithm 2: FirstLevel The odd disjoint locally closed subsets L1,L3...L2ℓ±1in which Sis decomposed by the above procedure form250 the canonical structure of the constructible set S and is independent of the initially given locally closed sets defining251 S. We also obtain the canonical structure of the complement C=S\Sas the union of the even locally closed subsets252 L2⊎L4⊎···⊎L2ℓ. From them it is obvious how to obtain the canonical representation of Sand Cwhose levels253 are already given by their Crep’s.254 For i∈[k], define the ideals ai=I(Ai). By using Proposition 3.4 (iv) and (v) it results255 Li=V(ai)\V(ai+1),256 Crep(Li)=[ai,ai+1],257 dim V(ai)>dim V(ai+1),258 I(S)=a1⊂a2⊂···⊂ak+1=1,259 S=V(a1)⊃V(a2)⊃V(a3)⊃···⊃V(ak+1)=∅260 261 Remark 3.5 In Q[x1,...,xn], taking into account the decreasing dimensions of the levels of a constructible set we262 have263 (i) The maximum number of levels of Sand Cis n+1, that will occur when264 dim(L1)=n,dim(L2)=n−1,dim(L3)=n−2,...,dim(Ln+1)=0.265 (ii) The maximum number of levels of Sis ⌊n 2⌋+1.266 (iii) dim(L2i−1)≥dim(L2i+1)+2.267 4 Algorithms for Obtaining the Canonical Representation of a Constructible Set268 The algorithms work with ideals, whereas the definitions of Cand Las well as the formulas given in the previous269 sections are given in varieties. To set down the algorithms we must consider the one-to-one correspondence between270 ideals of varieties and varieties.271 Journal: MCS MS: 0248 TYPESET DISK LE CP Disp.:2016/2/29 Pages: 14 Layout: Medium Author Proof