Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Obtaining the poset of subsets

Let G be a set of subsets of a set with $n$ elements. Here a (stupid) example:

p=5
S = Subsets([1,..,p])
G=[t for t in S if sum(t)==p]
display(S)
display(G)

My question is how do I obtain the set G as a poset in Sage?

Obtaining the poset of subsets

Let G be a set of subsets of a set with $n$ elements. Here a (stupid) example:

p=5
S = Subsets([1,..,p])
G=[t for t in S if sum(t)==p]
display(S)
display(G)

My question is how do I obtain the set G as a poset in Sage?Sage? Thanks for any help.