/* black box recognition procedure for HS */ StandardGeneratorsHS := function (G : Projective := false, Limit := 75) Fct := Projective select ProjectiveOrder else Order; P := RandomProcessWithWords (G); g, w := ElementOfOrder (P, 20, Limit: Fct := Fct); if Type (g) eq BoolElt then return false, _; end if; o := Fct (g); x := g^(o div 2); xw := w^(o div 2); b := g^(o div 5); bw := w^(o div 5); nmr := Limit; repeat nmr -:= 1; c, cw := Random (P); a := x^c; until Fct (a * b) eq 11 or nmr eq 0; if nmr eq 0 then return false, _; end if; aw := xw^cw; if not PresentationHS (G: UserGenerators := [a, b], Projective := Projective) then return false, _; end if; return [a, b], [aw, bw]; end function;