On an algebraic approach to higher dimensional statistical mechanics