Foundations of algebraic analysis