Here is part of a code I wrote:
Select[Subsets[Range[16]],
MemberQ[#, 2] && !
ContainsAll[
Level[Position[ζ[[All, 2]], 1], {2}]][#] ∨
MemberQ[#, 3] && !
ContainsAll[
Level[Position[ζ[[All, 3]], 1], {2}]][#] ∨
MemberQ[#, 4] && !
ContainsAll[
Level[Position[ζ[[All, 4]], 1], {2}]][#] ∨
MemberQ[#, 5] && !
ContainsAll[
Level[Position[ζ[[All, 5]], 1], {2}]][#] ∨
MemberQ[#, 6] && !
ContainsAll[
Level[Position[ζ[[All, 6]], 1], {2}]][#] ∨
MemberQ[#, 7] && !
ContainsAll[
Level[Position[ζ[[All, 7]], 1], {2}]][#] ∨
MemberQ[#, 8] && !
ContainsAll[
Level[Position[ζ[[All, 8]], 1], {2}]][#] ∨
MemberQ[#, 9] && !
ContainsAll[
Level[Position[ζ[[All, 9]], 1], {2}]][#] ∨
MemberQ[#, 10] && !
ContainsAll[
Level[Position[ζ[[All, 10]], 1], {2}]][#] ∨
MemberQ[#, 11] && !
ContainsAll[
Level[Position[ζ[[All, 11]], 1], {2}]][#] ∨
MemberQ[#, 12] && !
ContainsAll[
Level[Position[ζ[[All, 12]], 1], {2}]][#] ∨
MemberQ[#, 13] && !
ContainsAll[
Level[Position[ζ[[All, 13]], 1], {2}]][#] ∨
MemberQ[#, 14] && !
ContainsAll[
Level[Position[ζ[[All, 14]], 1], {2}]][#] ∨
MemberQ[#, 15] && !
ContainsAll[
Level[Position[ζ[[All, 15]], 1], {2}]][#] ∨
MemberQ[#, 16] && !
ContainsAll[
Level[Position[ζ[[All, 16]], 1], {2}]][#] &]];
Is there a way to condense all the "or" commands into a single line?
Graph
... A poset is basically a tree (or a forest), right? Unfortunately I do not have the time to find out what an order ideal is. Can you please explain that in short, non expert terms? And a concrete example forζ
to play with would be great. $\endgroup$TopologicalSort[Graph[ζ]]
might bring you closer to the solution... $\endgroup$