Dual Cells and Face Poset
Hello.
I would like to create a procedure in Sage to find the dual cell of a simplex σ in a simplicial complex K. The dual cell D(σ,K) of σ is a subcomplex of the first barycentric subdivision of K. The vertex set is given by the barycentres of all cofaces of σ, and the simplices are joins of barycentres of the form ^σ0^σ1...^σs with σ≤σ0≤...≤σs.
My plan of attack is to view K as a poset, then find the maximal increasing chains [σ0,...,σs] in K which satisfy σ0=σ . These chains would then be the maximal faces of the dual cell D(σ,K).
Creating the poset and finding the maximal chains of simplices is fine. However, if I have a maximal chain [σ0,...,σs] a problem occurs when checking if σ0=σ - Sage sees σ0 as just an element of the poset and not as simplex and σ as a simplex but not an element of the poset so the equality is never satisfied.
How can I correct this?
Thanks, Chris .
What if you define the poset using 'facade=True'?