Text this: Flett's mean value theorem in topological vector spaces