  Building on a classical solution to the pentagon equation, constructed
earlier by the author and E.V. Martyushev and related to the flat geometry
invariant under the group SL(2), we construct an algebraic complex
corresponding to a triangulation of a three-manifold. In case if this complex
is acyclic (which is confirmed by examples), we use it for constructing a
manifold invariant .
