  
  [1X6 Bistellar flips[0X
  
  
  [1X6.1 Theory[0X
  
  Bistellar  flips,  first introduced by Pachner in [Pac87] and sometimes also
  refered to as Pachner moves, can prove useful for the following tasks:
  
  (1)   Try  to  decide  whether  two  closed  simplicial  pseudomanifolds are
        PL-homeomorphic.
  
  (2)   Reduce a given triangulation without changing its PL-type.
  
  (3)   Verify  whether  a closed simplicial pseudomanifold is a combinatorial
        manifold.
  
  Bistellar  moves  are  a  convenient  means  to  prove the PL equivalence of
  triangulations, see [Lut03] for an example.
  
  Since  bistellar  flips  do  not  respect  the combinatorial properties of a
  complex,  no  attention  to  the  original vertex labels is payed, i. e. the
  flipped  complex  will  be  relabeled  whenever  its  vertex  labels  become
  different  from  the  standard  labeling  (for  example  after every reverse
  0-move).
  
  
  [1X6.2 Functions for bistellar flips[0X
  
  [1X6.2-1 SCBistellarOptions[0m
  
  [2X> SCBistellarOptions( [0X[3X[0X[2X ) ___________________________________________[0Xproperty
  
  Record  of  global variables to adjust output an behavior of bistellar moves
  in    [2XSCIntFunc.SCChooseMove[0m    ([14X6.2-4[0m)   and   [2XSCReduceComplexEx[0m   ([14X6.2-14[0m)
  respectively.
  
  (1)   [10XBaseRelaxation[0m:  determines  the  length  of  the  relaxation  period.
        Default: 3
  
  (2)   [10XBaseHeating[0m: determines the length of the heating period. Default: 4
  
  (3)   [10XRelaxation[0m: value of the current relaxation period. Default: 0
  
  (4)   [10XHeating[0m: value of the current heating period. Default: 0
  
  (5)   [10XMaxRounds[0m:  maximal  over  all  number of bistellar flips that will be
        performed. Default: 500000
  
  (6)   [10XMaxInterval[0m:  maximal number of bistellar flips that will be performed
        without a change of the moved complex. Default: 100000
  
  (7)   [10XMode[0m:  flip  mode,  0=reducing,  1=comparing,  2=reduce as subcomplex.
        Default: 0
  
  (8)   [10XLogLevel[0m: 0=no logging, 1=reduced logging, 2=full logging, information
        about every flip. Default: 2
  
  (9)   [10XWriteLevel[0m:  0=no output, 1=storing of every vertex minimal complex to
        user library, 2=e-mail notification. Default: 1
  
  (10)  [10XMailNotifyIntervall[0m:  (minimum)  number  of seconds between two e-mail
        notifications. Default: 24 * 60 * 60 (one day)
  
  (11)  [10XMaxIntervalIsManifold[0m:  maximal number of bistellar flips that will be
        performed without a change of a vertex link while trying to prove that
        the complex is a combinatorial manifold. Default: 500
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCBistellarOptions.BaseRelaxation;[0X
    [4X 3[0X
    [4X gap> SCBistellarOptions.BaseHeating;[0X
    [4X 4[0X
    [4X gap> SCBistellarOptions.Relaxation;[0X
    [4X 0[0X
    [4X gap> SCBistellarOptions.Heating;[0X
    [4X 0[0X
    [4X gap> SCBistellarOptions.MaxRounds;[0X
    [4X 500000[0X
    [4X gap> SCBistellarOptions.MaxInterval;[0X
    [4X 100000[0X
    [4X gap> SCBistellarOptions.Mode;[0X
    [4X 0[0X
    [4X gap> SCBistellarOptions.LogLevel;[0X
    [4X 2[0X
    [4X gap> SCBistellarOptions.WriteLevel;[0X
    [4X 1[0X
    [4X gap> SCBistellarOptions.MailNotifyInterval;[0X
    [4X 86400[0X
    [4X gap> SCBistellarOptions.MaxIntervalIsManifold;[0X
    [4X 5000[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.2-2 SCEquivalent[0m
  
  [2X> SCEquivalent( [0X[3Xcomplex1, complex2[0X[2X ) _______________________________[0Xfunction
  [6XReturns:[0X  [9Xtrue[0m / [9Xfalse[0m upon success, [9Xfail[0m otherwise.
  
  Tests,  whether the closed simplicial pseudomanifold [3Xcomplex1[0m can be reduced
  via  bistellar  moves  to  [3Xcomplex2[0m, i. e. whether [3Xcomplex1[0m and [3Xcomplex2[0m are
  PL-homeomorphic. Note, that in general the problem is undecidable.
  
  It  is  recommended to use a minimal triangulation of [3Xcomplex2[0m for the check
  if possible.
  
  Internally                      calls                      [2XSCReduceComplexEx[0m
  ([14X6.2-14[0m)[10X(complex1,complex2,1,SCIntFunc.SCChooseMove);[0m
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X # hexagon[0X
    [4X gap> obj:=SC([[1,2],[2,3],[3,4],[4,5],[5,6],[6,1]]);;[0X
    [4X # triangle as a (minimal) reference object[0X
    [4X gap> refObj:=SCBdSimplex(2);;[0X
    [4X gap> SCEquivalent(obj,refObj);[0X
    [4X #I  round 0: [ 5, 5 ][0X
    [4X #I  round 1: [ 4, 4 ][0X
    [4X #I  round 2: [ 3, 3 ][0X
    [4X #I  SCReduceComplexEx: complexes are bistellarly equivalent.[0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.2-3 SCExamineComplexBistellar[0m
  
  [2X> SCExamineComplexBistellar( [0X[3Xcomplex[0X[2X ) _____________________________[0Xfunction
  [6XReturns:[0X  simplicial  complex  passed as argument with additional properties
            upon success, [9Xfail[0m otherwise.
  
  Computes  face  lattice,  f-vector,  AS-determinant,  dimension  and maximal
  vertex label of [3Xcomplex[0m.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> obj:=SC([[1,2],[2,3],[3,4],[4,5],[5,6],[6,1]]);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, Facets, Name, VertexLabels.[0X
    [4X [0X
    [4X  Name="unnamed complex n"[0X
    [4X  Dim=1[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> SCExamineComplexBistellar(obj);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: AltshulerSteinberg, Boundary, Chi, Dim, F, Faces, Facets, [0X
    [4X                    HasBoundary, IsPM, IsPure, Name, VertexLabels.[0X
    [4X [0X
    [4X  Name="unnamed complex 21"[0X
    [4X  Dim=1[0X
    [4X  Chi=0[0X
    [4X  F=[ 6, 6 ][0X
    [4X  HasBoundary=false[0X
    [4X  IsPM=true[0X
    [4X  IsPure=true[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.2-4 SCIntFunc.SCChooseMove[0m
  
  [2X> SCIntFunc.SCChooseMove( [0X[3Xdim, moves[0X[2X ) _____________________________[0Xfunction
  [6XReturns:[0X  a  bistellar  move,  i.  e.  a  pair  of  lists upon success, [9Xfail[0m
            otherwise.
  
  Since  the  problem  of  finding  a  bistellar  flip sequence that reduces a
  simplicial  complex  is undecidable, we have to use an heuristic approach to
  choose the next move.
  
  The  implemented  strategy  [10XSCIntFunc.SCChooseMove[0m  first  tries to directly
  remove  vertices, edges, i-faces in increasing dimension etc. If this is not
  possible it inserts high dimensional faces in decreasing co-dimension. To do
  this  in an efficient way a number of parameters have to be adjusted, namely
  [10XSCBistellarOptions.BaseHeating[0m  and  [10XSCBistellarOptions.BaseRelaxation[0m.  See
  [2XSCBistellarOptions[0m ([14X6.2-1[0m) for further options.
  
  If this strategy does not work for you, just implement a customized strategy
  and pass it to [2XSCReduceComplexEx[0m ([14X6.2-14[0m).
  
  See [2XSCRMoves[0m ([14X6.2-10[0m) for further information.
  
  [1X6.2-5 SCIsKStackedSphere[0m
  
  [2X> SCIsKStackedSphere( [0X[3Xcomplex, k[0X[2X ) _________________________________[0Xfunction
  [6XReturns:[0X  an integer value upon success, [9Xfail[0m otherwise.
  
  Checks,  whether  the  given  [3Xcomplex[0m  that  must  be a homology sphere is a
  [3Xk[0m-stacked sphere by a randomized algorithm based on bistellar moves. Returns
  an integer less or equal to [3Xk[0m, where a positive return value of [10Xi[0m means that
  the  complex is [10Xi[0m-stacked, a zero return value means that the complex cannot
  be [3Xk[0m-stacked and -1 if the question could not be decided.
  
  Internally calls [2XSCReduceComplexEx[0m ([14X6.2-14[0m).
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCLib.SearchByName("S^4~S^1");[0X
    [4X [ [ 204, "S^4~S^1 (VT)" ], [ 339, "S^4~S^1 (VT)" ], [ 341, "S^4~S^1 (VT)" ], [0X
    [4X   [ 438, "S^4~S^1 (VT)" ], [ 493, "S^4~S^1 (VT)" ], [ 494, "S^4~S^1 (VT)" ], [0X
    [4X   [ 495, "S^4~S^1 (VT)" ], [ 496, "S^4~S^1 (VT)" ], [ 497, "S^4~S^1 (VT)" ], [0X
    [4X   [ 500, "S^4~S^1 (VT)" ], [ 501, "S^4~S^1 (VT)" ], [ 502, "S^4~S^1 (VT)" ] ][0X
    [4X gap> c:=SCLib.Load(204);;[0X
    [4X gap> l:=c.Link(1);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, Facets, Name, VertexLabels.[0X
    [4X [0X
    [4X  Name="lk(1) in S^4~S^1 (VT)"[0X
    [4X  Dim=4[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> SCIsKStackedSphere(l,1);[0X
    [4X #I  SCIsKStackedSphere: try 1/50[0X
    [4X #I  round 0: [ 11, 40, 70, 65, 26 ][0X
    [4X #I  round 1: [ 10, 35, 60, 55, 22 ][0X
    [4X #I  round 2: [ 9, 30, 50, 45, 18 ][0X
    [4X #I  round 3: [ 8, 25, 40, 35, 14 ][0X
    [4X #I  round 4: [ 7, 20, 30, 25, 10 ][0X
    [4X #I  round 5: [ 6, 15, 20, 15, 6 ][0X
    [4X #I  SCReduceComplexEx: computed locally minimal complex after 6 rounds.[0X
    [4X 1[0X
    [4X gap> [0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.2-6 SCIsManifold[0m
  
  [2X> SCIsManifold( [0X[3Xcomplex[0X[2X ) __________________________________________[0Xfunction
  [6XReturns:[0X  [9Xtrue[0m / [9Xfalse[0m upon success, [9Xfail[0m otherwise.
  
  Tries  to prove that a closed simplicial d-pseudomanifold is a combinatorial
  manifold by reducing its vertex links to the boundary of the d-simplex.
  
  [9Xfalse[0m is only returned, if a minimal version of a reduced vertex link can be
  computed  which  is  different  from the boundary of the simplex. Internally
  calls  [2XSCReduceComplexEx[0m  ([14X6.2-14[0m)[10X(link,SCEmpty(),0,SCIntFunc.SCChooseMove);[0m
  for every link of [3Xcomplex[0m. Note, that [9Xfalse[0m is returned in case of a bounded
  manifold.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCBdCrossPolytope(3);;[0X
    [4X gap> SCIsManifold(c);[0X
    [4X #I  SCIsManifold: processing vertex link 1/6[0X
    [4X #I  round 0: [ 3, 3 ][0X
    [4X #I  SCReduceComplexEx: computed locally minimal complex after 1 rounds.[0X
    [4X #I  SCIsManifold: link is sphere.[0X
    [4X ...[0X
    [4X #I  SCIsManifold: processing vertex link 6/6[0X
    [4X #I  round 0: [ 3, 3 ][0X
    [4X #I  SCReduceComplexEx: computed locally minimal complex after 1 rounds.[0X
    [4X #I  SCIsManifold: link is sphere.[0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.2-7 SCIsMovableComplex[0m
  
  [2X> SCIsMovableComplex( [0X[3Xcomplex[0X[2X ) ____________________________________[0Xfunction
  [6XReturns:[0X  [9Xtrue[0m / [9Xfalse[0m upon success, [9Xfail[0m otherwise.
  
  Checks,  if  [3Xcomplex[0m  can  be  modified by bistellar moves, i. e. if it is a
  closed combinatorial pseudomanifold.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCBdCrossPolytope(3);;[0X
    [4X gap> SCIsMovableComplex(c);[0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  Bounded pseudomanifold
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SC([[1,2],[2,3],[3,4],[3,1]]);;[0X
    [4X gap> SCIsMovableComplex(c);[0X
    [4X false[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.2-8 SCMove[0m
  
  [2X> SCMove( [0X[3Xcomplex, move[0X[2X ) __________________________________________[0Xfunction
  [6XReturns:[0X  a new simplicial complex in standard labeling.
  
  Applies  the  bistellar move [3Xmove[0m to [3Xcomplex[0m. [3Xmove[0m is given as a (r+1)-tuple
  together with a (d+1-r)-tuple if d is the dimension of [3Xcomplex[0m an if [3Xmove[0m is
  a  r-move.  See  [2XSCRMoves[0m  ([14X6.2-10[0m) for detailed information about bistellar
  r-Moves.
  
  Note:  [3Xmove[0m  and  [3Xcomplex[0m  should  be given in standard labeling to ensure a
  correct result.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> obj:=SC([[1,2],[2,3],[3,4],[4,1]]);[0X
    [4X [SimplicialComplex[0X
    [4X[0X
    [4X Properties known: Dim, Facets, Name, VertexLabels.[0X
    [4X[0X
    [4X Name="unnamed complex n"[0X
    [4X Dim=1[0X
    [4X[0X
    [4X /SimplicialComplex][0X
    [4X gap> moves:=SCMoves(obj);[0X
    [4X [[[[1, 2], []], [[1, 4], []], [0X
    [4X     [[2, 3], []], [[3, 4], []]], [0X
    [4X   [[[1], [2, 4]], [[2], [1, 3]], [0X
    [4X     [[3], [2, 4]], [[4], [1, 3]]]][0X
    [4X gap> obj:=SCMove(obj,last[2][1]);[0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Chi, Dim, F, Faces, Facets, VertexLabels.[0X
    [4X[0X
    [4X  Name="unnamed complex n"[0X
    [4X  Dim=1[0X
    [4X  Chi=0[0X
    [4X  F=[3, 3][0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.2-9 SCMoves[0m
  
  [2X> SCMoves( [0X[3Xcomplex[0X[2X ) _______________________________________________[0Xfunction
  [6XReturns:[0X  a list of list of pairs of lists upon success, [9Xfail[0m otherwise.
  
  See [2XSCRMoves[0m ([14X6.2-10[0m) for further information.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCBdCrossPolytope(3);;[0X
    [4X gap> moves:=SCMoves(c);[0X
    [4X [[0X
    [4X # 0-moves[0X
    [4X   [[[1, 3, 5], []], [[1, 3, 6], []], [[1, 4, 5], []], [0X
    [4X     [[1, 4, 6], []], [[2, 3, 5], []], [[2, 3, 6], []],[0X
    [4X     [[2, 4, 5], []], [[2, 4, 6], []]], [0X
    [4X # 1-moves[0X
    [4X   [[[1, 3], [5, 6]], [[1, 4], [5, 6]], [[1, 5], [3, 4]], [0X
    [4X     [[1, 6], [3, 4]], [[2, 3], [5, 6]], [[2, 4], [5, 6]], [0X
    [4X     [[2, 5], [3, 4]], [[2, 6], [3, 4]], [[3, 5], [1, 2]], [0X
    [4X     [[3, 6], [1, 2]], [[4, 5], [1, 2]], [[4, 6], [1, 2]]],[0X
    [4X # 2-moves[0X
    [4X   [] [0X
    [4X][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.2-10 SCRMoves[0m
  
  [2X> SCRMoves( [0X[3Xcomplex, r[0X[2X ) ___________________________________________[0Xfunction
  [6XReturns:[0X  a list of pairs of the form [10X[ list, list ][0m.
  
  A  bistellar  r-move  of a d-dimensional combinatorial manifold [3Xcomplex[0m is a
  r-face  m_1  together  with  a  d-r-tuple  m_2 where m_1 is a common face of
  exactly (d+1-r) facets and m_2 is not a face of [3Xcomplex[0m.
  
  The  r-Move removes all facets containing m_1 and replaces them by the (r+1)
  faces obtained by uniting m_2 with any subset of m_1 of order r.
  
  The resulting complex has the same (PL-)topolgy as [3Xcomplex[0m.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCBdCrossPolytope(3);;[0X
    [4X gap> moves:=SCRMoves(c,1);[0X
    [4X [ [ [ 1, 3 ], [ 5, 6 ] ], [ [ 1, 4 ], [ 5, 6 ] ], [ [ 1, 5 ], [ 3, 4 ] ], [0X
    [4X   [ [ 1, 6 ], [ 3, 4 ] ], [ [ 2, 3 ], [ 5, 6 ] ], [ [ 2, 4 ], [ 5, 6 ] ], [0X
    [4X   [ [ 2, 5 ], [ 3, 4 ] ], [ [ 2, 6 ], [ 3, 4 ] ], [ [ 3, 5 ], [ 1, 2 ] ], [0X
    [4X   [ [ 3, 6 ], [ 1, 2 ] ], [ [ 4, 5 ], [ 1, 2 ] ], [ [ 4, 6 ], [ 1, 2 ] ] ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.2-11 SCRandomize[0m
  
  [2X> SCRandomize( [0X[3Xcomplex[, allowedmoves][0X[2X ) ___________________________[0Xfunction
  [6XReturns:[0X  a simplicial complex upon success, [9Xfail[0m otherwise.
  
  Randomizes  the  given simplicial complex [3Xcomplex[0m via bistellar moves chosen
  at  random.  By  passing  the optional array [3Xallowedmoves[0m, which has to be a
  dense array of integer values of length [10XSCDim(complex)[0m, certain moves can be
  allowed  or  forbidden  in  the  proccess. An entry [10Xallowedmoves[i]=1[0m allows
  (i-1)-moves  and  an  entry  [10Xallowedmoves[i]=0[0m  forbids  (i-1)-moves  in the
  randomization process. Internally calls [2XSCReduceComplexEx[0m ([14X6.2-14[0m).
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCRandomize(SCBdSimplex(4));[0X
    [4X #I  SCRandomize: randomizing complex S^3_5 with allowed moves [ -1, 1, 1, 1 ][0X
    [4X [SimplicialComplex[0X
    [4X [0X
    [4X  Properties known: Dim, Facets, Name, VertexLabels.[0X
    [4X [0X
    [4X  Name="Randomized S^3_5"[0X
    [4X Dim=3[0X
    [4X [0X
    [4X /SimplicialComplex][0X
    [4X gap> c.F;[0X
    [4X [ 20, 85, 130, 65 ][0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.2-12 SCReduceAsSubcomplex[0m
  
  [2X> SCReduceAsSubcomplex( [0X[3Xcomplex1, complex2[0X[2X ) _______________________[0Xfunction
  [6XReturns:[0X  [10XSCBistellarOptions.WriteLevel=0[0m:  a  triple of the form [10X[ boolean,
            simplicial  complex,  rounds  performed  ][0m upon termination of the
            algorithm.
            [10XSCBistellarOptions.WriteLevel=1[0m: A library of simplicial complexes
            with  all vertex minimal complexes and (upon termination) a triple
            of the form [10X[ boolean, simplicial complex, rounds performed ][0m.
            [10XSCBistellarOptions.WriteLevel=2[0m:  A mail in case a smaller version
            of  [3Xcomplex1[0m was found, a library of simplicial complexes with all
            vertex  minimal  complexes  and (upon termination) a triple of the
            form  [10X[  boolean,  simplicial  complex,  rounds  performed  ][0m upon
            termination of the algorithm.
            Returns [9Xfail[0m upon an error.
  
  Reduces  a  closed  simplicial  pseudomanifold  [3Xcomplex1[0m  as a subcomplex of
  [3Xcomplex2[0m.
  
  Main  application:  Reduce  a  subcomplex  of  the  cross  polytope  without
  introducing diagonals.
  
  Internally                      calls                      [2XSCReduceComplexEx[0m
  ([14X6.2-14[0m)[10X(complex1,complex2,2,SCIntFunc.SCChooseMove);[0m
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> c:=SCFromFacets([[1,3],[3,5],[4,5],[4,1]]);;[0X
    [4X gap> SCReduceAsSubcomplex(c,SCBdCrossPolytope(3));[0X
    [4X #I  round 0, move: [ [ 2 ], [ 1, 4 ] ][0X
    [4X [ 3, 3 ][0X
    [4X #I  SCReduceComplexEx: computed locally minimal complex after 1 rounds.[0X
    [4X [ true, [SimplicialComplex[0X
    [4X     [0X
    [4X      Properties known: Dim, Facets, Name, VertexLabels.[0X
    [4X     [0X
    [4X      Name="unnamed complex 9"[0X
    [4X      Dim=1[0X
    [4X     [0X
    [4X     /SimplicialComplex], 1 ][0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.2-13 SCReduceComplex[0m
  
  [2X> SCReduceComplex( [0X[3Xcomplex[0X[2X ) _______________________________________[0Xfunction
  [6XReturns:[0X  [10XSCBistellarOptions.WriteLevel=0[0m:  a  triple of the form [10X[ boolean,
            simplicial  complex,  rounds  performed  ][0m upon termination of the
            algorithm.
            [10XSCBistellarOptions.WriteLevel=1[0m: A library of simplicial complexes
            with  all vertex minimal complexes and (upon termination) a triple
            of the form [10X[ boolean, simplicial complex, rounds performed ][0m.
            [10XSCBistellarOptions.WriteLevel=2[0m:  A mail in case a smaller version
            of  [3Xcomplex1[0m was found, a library of simplicial complexes with all
            vertex  minimal  complexes  and (upon termination) a triple of the
            form  [10X[  boolean,  simplicial  complex,  rounds  performed  ][0m upon
            termination of the algorithm.
            Returns [9Xfail[0m upon an error..
  
  Reduces  a  closed simplicial pseudomanifold via bistellar moves. Internally
  calls                                                      [2XSCReduceComplexEx[0m
  ([14X6.2-14[0m)[10X(complex,SCEmpty(),0,SCIntFunc.SCChooseMove);[0m
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X # hexagon[0X
    [4X gap> obj:=SC([[1,2],[2,3],[3,4],[4,5],[5,6],[6,1]]);;[0X
    [4X gap> SCReduceComplex(obj);[0X
    [4X #I  round 0, move: [ [ 6 ], [ 1, 5 ] ][0X
    [4X [ 5, 5 ][0X
    [4X #I  round 1, move: [ [ 4 ], [ 3, 5 ] ][0X
    [4X [ 4, 4 ][0X
    [4X #I  round 2, move: [ [ 3 ], [ 2, 5 ] ][0X
    [4X [ 3, 3 ][0X
    [4X #I  SCReduceComplexEx: computed locally minimal complex after 3 rounds.[0X
    [4X [ true, [SimplicialComplex[0X
    [4X     [0X
    [4X      Properties known: Dim, Facets, Name, VertexLabels.[0X
    [4X     [0X
    [4X      Name="unnamed complex 6"[0X
    [4X      Dim=1[0X
    [4X     [0X
    [4X     /SimplicialComplex], 3 ][0X
    [4X ## [0X
  [4X------------------------------------------------------------------[0X
  
  [1X6.2-14 SCReduceComplexEx[0m
  
  [2X> SCReduceComplexEx( [0X[3Xcomplex, refComplex, mode, choosemove[0X[2X ) _______[0Xfunction
  [6XReturns:[0X  [10XSCBistellarOptions.WriteLevel=0[0m:  a  triple of the form [10X[ boolean,
            simplicial complex, rounds ][0m upon termination of the algorithm.
            [10XSCBistellarOptions.WriteLevel=1[0m: A library of simplicial complexes
            with  all vertex minimal complexes and (upon termination) a triple
            of the form [10X[ boolean, simplicial complex, rounds ][0m.
            [10XSCBistellarOptions.WriteLevel=2[0m:  A mail in case a smaller version
            of  [3Xcomplex1[0m was found, a library of simplicial complexes with all
            vertex  minimal  complexes  and (upon termination) a triple of the
            form  [10X[  boolean, simplicial complex, rounds ][0m upon termination of
            the algorithm.
            Returns [9Xfail[0m upon an error.
  
  Reduces  a  closed  simplicial pseudomanifold ([3Xcomplex[0m) via bistellar moves.
  Compares  it  ("mode"=1)  to  [3XrefComplex[0m  or  reduces  it as a subcomplex of
  [3XrefComplex[0m ([3Xmode[0m=2).
  
  [3Xchoosemove[0m  is  a function containing a flip strategy for the flip sequence,
  see also [2XSCIntFunc.SCChooseMove[0m ([14X6.2-4[0m).
  
  The  currently  minimal  complex  is  stored to the variable [10XminComplex[0m, the
  currently minimal f-vector to [10XminF[0m. Note, that in general the algorithm will
  not  stop  until the maximum number of rounds is reached. You can adjust the
  maximum  number  of  rounds via the property [2XSCBistellarOptions[0m ([14X6.2-1[0m). The
  number  of  rounds  performed  is  returned in the third entry of the triple
  returned by this function.
  This function is called by
  
  (1)   [2XSCReduceComplex[0m ([14X6.2-13[0m),
  
  (2)   [2XSCEquivalent[0m ([14X6.2-2[0m),
  
  (3)   [2XSCReduceAsSubcomplex[0m ([14X6.2-12[0m),
  
  (4)   [2XSCIsManifold[0m ([14X6.2-6[0m).
  
  Please  see [2XSCMailIsPending[0m ([14X10.2-3[0m) for further information about the email
  notification system in case [10XSCBistellarOptions.WriteLevel=2[0m is set.
  
