A simplicial gauge theory