Operator geometry and algebraic gravity