Lattice models and topological quantum field theories I