def coordinates {Num a} : Vector a := [t, x, y, z] def metric {Num a} : Matrix a := generateTensor (\match as list integer with | [#1, #1] -> -1 | [$n, #n] -> 1 | _ -> 0) [4, 4]