Sign up ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

I'm always needing to learn more about GAP. Can anyone help me on the following question? Question: I have a list of 500 sublists where each sublist consists of six groups. Is there a command to display or renumber only those sublists with trivial intersection? Is there a function in GAP can solve this?

This questioning arose when I studied a problem on coverage of finite groups.

share|cite|improve this question
Just how is this set-theory related? – Asaf Karagila Jan 16 '11 at 19:25
This is off-topic here, I think. Why not ask it in the GAP forum instead? – Arturo Magidin Jan 16 '11 at 20:42
coreFreeList := Filtered( list, sublist -> IsTrivial( Intersection( sublist ) ) );; – Jack Schmidt Jan 17 '11 at 0:08
Thanks Jack Schmidt! This command solved the problem! Thank you very much. – user5802 Jan 20 '11 at 0:40

1 Answer 1

This question is in fact answered in the comment by Jack Schmidt (thanks!):

coreFreeList := Filtered( list, sublist -> IsTrivial( Intersection( sublist ) ) );;

so I'm just answering it formally to prevent it from appearing in the list of unanswered questions.

share|cite|improve this answer
$\LARGE{+1}$ for my GAPy friend. :-) – Babak S. May 3 '13 at 16:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.