Ask Your Question

jobrien715's profile - activity

2016-12-09 19:59:11 +0200 received badge  Teacher (source)
2016-12-09 19:59:11 +0200 received badge  Self-Learner (source)
2016-07-11 11:15:01 +0200 received badge  Student (source)
2016-07-09 23:18:07 +0200 answered a question Unable to coerce dictionary to morphism between finite posets

Was given the following (tweaked) solution using lambda functions on sage-support:

X=Poset({1:[],2:[1]})
Hom(X,X)(lambda x:{1:1,2:2}[x])

2016-07-09 16:51:31 +0200 asked a question Unable to coerce dictionary to morphism between finite posets

Using the code below, I am unsure why I cannot form the identity map (or others such as constant maps) via dictionary. I have done the same process for finite simplicial complexes, so maybe this isn't implemented for finite posets? Thanks for any help!

The input:

X=Poset({1:[],2:[1]})
Hom(X,X)({1:1,2:2})

The output error message:

TypeError: Unable to coerce x (={1: 1, 2: 2}) to a morphism in Set of Morphisms from Finite poset containing 2 elements to Finite poset containing 2 elements in Join of Category of finite posets and Category of finite enumerated sets and Category of facade sets