Euclidean formulation of general relativity