Hey everyone - I'm having trouble proving a theorem that I don't think should be too hard to prove:

Theorem (Equality of Functions):

If f: A -> B and g: A -> B are functions, then f=g if and only if f(a) = g(a) for all a that are an element of A.

Any help would be greatly appreciated.

Thanks,

Robert