Laton said:
I wasn't asking for more general, I was asking for more abstract.
You asked for something like an inner product space where the associated field isn't necessarily the real numbers or the complex numbers. I would describe that as "more general", not "more abstract". I don't know what "more abstract" would mean here.
If V is a vector space over a field F, and t is an automorphism of F, you could define your "inner product" as a map (x,y)\mapsto\langle x,y\rangle such that
\langle x+y,z\rangle=\langle x,z\rangle+\langle y,z\rangle
\langle x,y+z\rangle=\langle x,y\rangle+\langle x,z\rangle
\langle ax,by\rangle=t(a)b\langle x,y\rangle
for all x,y,z in V and all a,b in F, and also
\forall x\langle x,y\rangle=0\Rightarrow y=0
\forall y\langle x,y\rangle=0\Rightarrow x=0
I stumbled across something similar today, in
a book on quantum logic. It's on the middle of page 23. I haven't seen anything like this anywhere else, so I don't know how useful it is. Note that the author is talking about a "vector space" over a division ring, not a field. I think most people would call that a module, not a vector space. A division ring is like a field, except that multiplication isn't necessarily commutative.
Edit: I suppose we also need something that corresponds to \langle x,y\rangle^*=\langle y,x\rangle. The first idea that occurs to me is t(\langle x,y\rangle)=\langle y,x\rangle.
Laton said:
An inner product space is a vector space together with an inner product. How is the "together with" formalized? Is an inner product space an ordered pair? Or maybe a 4-tuple (vector set, vector addition, scalar multiplication, inner product)?
I usually define a vector space as a 4-tuple (V,F,a,s), where V is the set, F is the field, a is the addition operation and s is the scalar multiplication function (i.e. multiplication
by a scalar). That makes it convenient to define an inner product space as a pair (X,i) where X is such a 4-tuple and i is the inner product. But it really doesn't matter if you do it this way or any of the other ways which seem reasonable to you, like defining the inner product space to be the 5-tuple (V,F,a,s,i). Instead of including the field F in the list, you could mention its underlying set along with the addition and multiplication operations on it, and if you want to, also the multiplicative inverse operation and additive inverse operation. You have lots of options, and it doesn't matter much which one you choose. The only reason to prefer some of the options over the others is that some of them might make it obvious which functions between two structures of the type we're defining we intend to call "homomorphisms", while others don't.