First time here? Check out the FAQ!
answered 2023-05-09 21:04:51 +0100
Like this
sage: S = Subsets([1,..,5]) sage: G = [t for t in S if sum(t)<=3] sage: Poset((G, lambda x,y: x.issubset(y))) Finite poset containing 5 elements
And I am slightly tempted to say RTFM.