Happy Nowruz 2016 to every one here!
Using the code which James pointed here; I was playing with the following finite semigroup:
gap > f:=FreeSemigroup("a","b");;
a:=f.1;; b:=f.2;;
w:=f/[[a^4,a],[b^2,a^3],[b*a,a^2*b],[b^3,b]];;
T=Range(IsomorphismTransformationSemigroup(w));;
GAP tells us that T has $6$ elements, is regular (Inverse) and has just one idempotent. This means that T is a finite group see here.
But, by calling another codes AsGroup(T) and IsGroup(T) both would end to undesirable results failed and false respectively. Is there anything obvious I cannot see well?
Thanks for the time.
AsGroupis correct. I don't know why it returnsfail, sinceAsGroup(MagmaByMultiplicationTable(MultiplicationTable(AsList(T))));returns a group. But in the other attemptIsGroupis of no help here since it checks the category of the object, and not its mathematical property. – Olexandr Konovalov Mar 20 '16 at 15:57