3
$\begingroup$

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.

$\endgroup$
4
  • $\begingroup$ Just how is this set-theory related? $\endgroup$
    – Asaf Karagila
    Jan 16, 2011 at 19:25
  • 1
    $\begingroup$ This is off-topic here, I think. Why not ask it in the GAP forum instead? gap-system.org/Contacts/Forum/forum.html $\endgroup$ Jan 16, 2011 at 20:42
  • 4
    $\begingroup$ coreFreeList := Filtered( list, sublist -> IsTrivial( Intersection( sublist ) ) );; $\endgroup$ Jan 17, 2011 at 0:08
  • 1
    $\begingroup$ Thanks Jack Schmidt! This command solved the problem! Thank you very much. $\endgroup$
    – user5802
    Jan 20, 2011 at 0:40

1 Answer 1

5
$\begingroup$

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.

$\endgroup$
1
  • 1
    $\begingroup$ $\LARGE{+1}$ for my GAPy friend. :-) $\endgroup$
    – Mikasa
    May 3, 2013 at 16:09

You must log in to answer this question.